Skip to content

.NET: Add bundled Python guest options#5859

Open
jsturtevant wants to merge 2 commits into
microsoft:mainfrom
jsturtevant:wasm-include
Open

.NET: Add bundled Python guest options#5859
jsturtevant wants to merge 2 commits into
microsoft:mainfrom
jsturtevant:wasm-include

Conversation

@jsturtevant
Copy link
Copy Markdown
Contributor

Motivation and Context

Adding the bundled package for python to the Codeact provider makes it easier to get started with using python from .net CodeAct provider. The current experience requires you to provide your own image but this makes similar to the Python SDK.

Description

Add HyperlightCodeActProviderOptions.CreateForPython() backed by the Hyperlight Python guest package. Resolve the bundled module through PythonGuestModule.GetModulePath() so the existing backend/module path configuration stays simple and consistent with custom Wasm modules.

Contribution Checklist

  • The code builds clean without any errors or warnings
  • The PR follows the Contribution Guidelines
  • All unit tests pass, and I have added new tests where possible
  • Is this a breaking change? If yes, add "[BREAKING]" prefix to the title of the PR.

Copilot AI review requested due to automatic review settings May 14, 2026 17:48
@jsturtevant
Copy link
Copy Markdown
Contributor Author

@eavanvalkenburg

@moonbox3 moonbox3 added documentation Improvements or additions to documentation .NET labels May 14, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Adds a first-class option for using a bundled Hyperlight Python guest with the .NET CodeAct provider, reducing setup friction compared to requiring a custom Wasm module path.

Changes:

  • Introduces HyperlightCodeActProviderOptions.CreateForPython() that resolves the bundled Python guest module path.
  • Updates docs to show Python quick start and clarifies backend choices.
  • Adds unit tests for the new factory and existing option constructors.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
dotnet/src/Microsoft.Agents.AI.Hyperlight/HyperlightCodeActProviderOptions.cs Adds CreateForPython() and updates XML docs around module path behavior.
dotnet/src/Microsoft.Agents.AI.Hyperlight/Microsoft.Agents.AI.Hyperlight.csproj Adds NuGet dependency on the bundled Python guest package.
dotnet/Directory.Packages.props Pins the Python guest package version.
dotnet/src/Microsoft.Agents.AI.Hyperlight/HyperlightCodeActProvider.cs Updates constructor docs to mention bundled Python option.
dotnet/src/Microsoft.Agents.AI.Hyperlight/README.md Adds “Bundled Python Guest” quick start and refreshes requirements section.
dotnet/tests/Microsoft.Agents.AI.Hyperlight.UnitTests/HyperlightCodeActProviderTests.cs Adds tests verifying the new Python option and other factory defaults.

Comment thread dotnet/src/Microsoft.Agents.AI.Hyperlight/HyperlightCodeActProviderOptions.cs Outdated
Comment thread dotnet/src/Microsoft.Agents.AI.Hyperlight/README.md Outdated
@github-actions github-actions Bot changed the title Add bundled Python guest options .NET: Add bundled Python guest options May 14, 2026
Add HyperlightCodeActProviderOptions.CreateForPython() backed by the Hyperlight Python guest package. Resolve the bundled module through PythonGuestModule.GetModulePath() so the existing backend/module path configuration stays simple and consistent with custom Wasm modules.  Adding the bundled package makes it easier to get started with using python.

Signed-off-by: James Sturtevant <jsturtevant@gmail.com>
Signed-off-by: James Sturtevant <jsturtevant@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation .NET

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants