Skip to content

Python: Fix Hyperlight imports in Python samples - #10006

Open
momo-not-emo (Momo-Not-Emo) wants to merge 1 commit into
microsoft:mainfrom
Momo-Not-Emo:fix-docs
Open

momo-not-emo (Momo-Not-Emo) wants to merge 1 commit into
microsoft:mainfrom
Momo-Not-Emo:fix-docs

Conversation

@Momo-Not-Emo

Copy link
Copy Markdown

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?

    • Updated the import path for HyperlightCodeActProvider from agent_framework.hyperlight to agent_framework_hyperlight.
    • Updated the import path for HyperlightExecuteCodeTool from agent_framework.hyperlight to agent_framework_hyperlight.
    • Both changes are in samples/04-hosting/container/hyperlight_codeact/main.py.
  • What is the impact of these changes?

    • Aligns the sample imports with the actual package structure.
    • No changes to functionality or behavior.
  • What do you want reviewers to focus on?

    • Verify that the updated import paths are correct.

Related Issue

N/A - trivial change. This PR fixes two incorrect import paths in an existing sample.

AI Assistance

  • No material AI assistance was used.
  • This is an AI-assisted contribution. I reviewed, understood, and verified all submitted content and accept responsibility for it.

AI assistance details:

AI assistance was used to help prepare this PR description. The code changes were identified and made by me.

Contribution Checklist

Copilot AI balanced review requested due to automatic review settings November 3, 2026 03:50
@agent-framework-automation agent-framework-automation Bot added the python Usage: [Issues, PRs], Target: Python label Nov 3, 2026
@github-actions github-actions Bot changed the title Fix Hyperlight imports in Python samples Python: Fix Hyperlight imports in Python samples Nov 3, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 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 HyperlightCodeActProvider imports in the container-hosting and CodeAct samples.
  • Corrects HyperlightExecuteCodeTool imports 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

@Momo-Not-Emo

Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree

This branch was previously deployed

1 inactive deployment
github-app-auth — 22dcd09a Deployed Nov 3, 2026 by Momo-Not-Emo via add_label #26914
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

python Usage: [Issues, PRs], Target: Python

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants