Repository navigation
Python: Fix Hyperlight imports in Python samples - #10006
momo-not-emo (Momo-Not-Emo) wants to merge 1 commit into
Conversation
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
|
@microsoft-github-policy-service agree |
|
momo-not-emo (@Momo-Not-Emo) Thanks for the contribution. |
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