Skip to content

Python: Wrapper + Samples 1st - #5177

Merged
TaoChenOSU merged 13 commits into
feature/python-foundry-hosted-agent-vnextfrom
feature/python-foundry-hosted-agent-vnext-dev
Apr 10, 2026
Merged

Python: Wrapper + Samples 1st#5177
TaoChenOSU merged 13 commits into
feature/python-foundry-hosted-agent-vnextfrom
feature/python-foundry-hosted-agent-vnext-dev

Conversation

@TaoChenOSU

Copy link
Copy Markdown
Contributor

Motivation and Context

Initial PR to add Python Foundry hosted agent wrapper and samples.

Description

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.

@TaoChenOSU TaoChenOSU self-assigned this Apr 8, 2026
@moonbox3 moonbox3 added documentation Usage: [Issues, PRs], Target: documentation in the code base and learn docs python Usage: [Issues, PRs], Target: Python labels Apr 8, 2026
@github-actions github-actions Bot changed the title Wrapper + Samples Python: Wrapper + Samples Apr 8, 2026

@eavanvalkenburg eavanvalkenburg left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

left a bunch of comments, and also really wondering if there is way to make the samples not need 6 files?

Comment thread python/packages/core/pyproject.toml Outdated
Comment thread python/packages/foundry_hosting/agent_framework_foundry_hosting/_responses.py Outdated
Comment thread python/packages/foundry_hosting/agent_framework_foundry_hosting/_responses.py Outdated
Comment thread python/packages/foundry_hosting/agent_framework_foundry_hosting/_responses.py Outdated
Comment thread python/packages/foundry_hosting/agent_framework_foundry_hosting/_responses.py Outdated
Comment thread python/packages/foundry_hosting/pyproject.toml Outdated
Comment thread python/packages/foundry_hosting/agent_framework_foundry_hosting/_responses.py Outdated
Comment thread python/packages/core/agent_framework/_telemetry.py
@TaoChenOSU TaoChenOSU changed the title Python: Wrapper + Samples Python: Wrapper + Samples 1st Apr 10, 2026
@TaoChenOSU
TaoChenOSU merged commit 615ef90 into feature/python-foundry-hosted-agent-vnext Apr 10, 2026
2 checks passed
@TaoChenOSU
TaoChenOSU deleted the feature/python-foundry-hosted-agent-vnext-dev branch April 10, 2026 22:58
moonbox3 added a commit to moonbox3/agent-framework that referenced this pull request Apr 21, 2026
* Python: Wrapper + Samples 1st (microsoft#5177)

* Experiment

* Update dependency and add non streaming

* Add more samples

* Rename samples

* Add invocations

* Comments 1

* Comments 2

* Comments 3

* Improve README

* Add local shell sample

* WIP: Add eval and memory samples

* Update user agent prefix

* Update user agent prefix doc

* Update dependency (microsoft#5215)

* Add tests and more content types (microsoft#5235)

* Add tests

* fix tests and sample

* Fix formatting

* Remove function approval contents

* Python: Refine samples and upgrade packages (microsoft#5261)

* Refine samples and upgrade pacakges

* Upgrade to a new package that fixes a bug

* Update model env var

* Move samples (microsoft#5281)

* Python: Upgrade agentserver packages (microsoft#5284)

* Upgrade agentserver packages

* Fix new types

* Python: Add special handling for workflows (microsoft#5298)

* Add special handling for workflows

* Address comments

* Improve samples (microsoft#5372)

* Python: Add more types (microsoft#5378)

* Add more type supports

* Upgrade packages

* Remove TODOs in README

* Fix README

* Comments and mypy

* User agent scoped

* Fix README

* Fix pre commit

* Fix pre commit 2

* Fix pre commit 3

* Fix pre commit 4

* Fix pre commit 5

* Fix pre commit 6

* Add azure-monitor-opentelemetry to dev deps

Fixes Samples & Markdown CI failure. The PR's new transitive dep on
azure-monitor-opentelemetry-exporter (via azure-ai-agentserver-core) makes
pyright resolve the azure.monitor.opentelemetry namespace, flipping the
check_md_code_blocks diagnostic for `configure_azure_monitor` from
reportMissingImports (filtered) to reportAttributeAccessIssue (not filtered).
Installing the umbrella azure-monitor-opentelemetry package in dev makes
pyright resolve the symbol correctly, matching the install guidance the
observability README already gives users.

---------

Co-authored-by: Evan Mattson <evan.mattson@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Usage: [Issues, PRs], Target: documentation in the code base and learn docs python Usage: [Issues, PRs], Target: Python

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants