.NET: Add bundled Python guest options#5859
Open
jsturtevant wants to merge 2 commits into
Open
Conversation
Contributor
Author
Contributor
There was a problem hiding this comment.
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. |
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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