Repository navigation
Python: Fix Hyperlight imports in Python samples - #10006
Open
momo-not-emo (Momo-Not-Emo) wants to merge 1 commit into
Open
momo-not-emo (Momo-Not-Emo) wants to merge 1 commit into
momo-not-emo (Momo-Not-Emo) wants to merge 1 commit into
Conversation
momo-not-emo (Momo-Not-Emo)
temporarily deployed
to
github-app-auth
November 3, 2026 03:50 — with
GitHub Actions
Inactive
momo-not-emo (Momo-Not-Emo)
requested review from
Darren Cohen (dargilco),
Jose Alvarez (jpalvarezl) and
sophia-ramsey
as code owners
November 3, 2026 03:50
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
There are no active review issues for the import-path updates across the four Python samples.
No open issues 🎉
What changed in this PR
Updates four Python samples to import Hyperlight APIs directly from agent_framework_hyperlight, replacing the outdated agent_framework.hyperlight path.
Changes:
- Corrects
HyperlightCodeActProviderimports in the container-hosting and CodeAct samples. - Corrects
HyperlightExecuteCodeToolimports in both local code interpreter samples. - Leaves sample logic unchanged.
| File | Description |
|---|---|
python/samples/04-hosting/container/hyperlight_codeact/main.py |
Corrects the container sample’s provider import. |
python/samples/02-agents/tools/local_code_interpreter/local_code_interpreter.py |
Corrects the execution tool import. |
python/samples/02-agents/tools/local_code_interpreter/local_code_interpreter_manual_wiring.py |
Corrects the manual-wiring sample’s execution tool import. |
python/samples/02-agents/context_providers/code_act/code_act.py |
Corrects the CodeAct provider import. |
Review effort: Balanced
Author
|
@microsoft-github-policy-service agree |
This branch was previously deployed
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 & Context
The Hyperlight CodeAct container sample uses outdated import paths for Hyperlight APIs, which do not match the actual package structure.
This change corrects the imports so that the sample can correctly reference the Hyperlight integration package.
Description & Review Guide
What are the major changes?
HyperlightCodeActProviderfromagent_framework.hyperlighttoagent_framework_hyperlight.HyperlightExecuteCodeToolfromagent_framework.hyperlighttoagent_framework_hyperlight.samples/04-hosting/container/hyperlight_codeact/main.py.What is the impact of these changes?
What do you want reviewers to focus on?
Related Issue
N/A - trivial change. This PR fixes two incorrect import paths in an existing sample.
AI Assistance
AI assistance details:
AI assistance was used to help prepare this PR description. The code changes were identified and made by me.
Contribution Checklist