Skip to content

Python: Update hosted agent samples with agent manifests#2240

Merged
TaoChenOSU merged 5 commits into
microsoft:mainfrom
TaoChenOSU:taochen/python-add-hosted-agent-samples-update
Nov 15, 2025
Merged

Python: Update hosted agent samples with agent manifests#2240
TaoChenOSU merged 5 commits into
microsoft:mainfrom
TaoChenOSU:taochen/python-add-hosted-agent-samples-update

Conversation

@TaoChenOSU

@TaoChenOSU TaoChenOSU commented Nov 15, 2025

Copy link
Copy Markdown
Contributor

Motivation and Context

Previously, the hosted agent samples didn't contain the agent manifest files and only work in local container with OpenAI resources.

Description

This PR performs the following:

  1. Add agent manifest files to the samples
  2. Use Azure OpenAI instead
  3. Remove unnecessary files

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 Nov 15, 2025
Copilot AI review requested due to automatic review settings November 15, 2025 00:45
@TaoChenOSU TaoChenOSU added the python Usage: [Issues, PRs], Target: Python label Nov 15, 2025
@github-actions github-actions Bot changed the title Update hosted agent samples with agent manifests Python: Update hosted agent samples with agent manifests Nov 15, 2025
@markwallace-microsoft markwallace-microsoft added the documentation Usage: [Issues, PRs], Target: documentation in the code base and learn docs label Nov 15, 2025

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.

Pull Request Overview

This PR updates three hosted agent samples to include agent manifest files and migrates them from OpenAI to Azure OpenAI. The changes remove local Docker configuration files (README.md and .env.example) and add agent.yaml manifests for each sample, enabling them to work with Azure AI AgentServer.

Key changes:

  • Migration from OpenAIChatClient to AzureOpenAIChatClient across all samples
  • Addition of agent.yaml manifest files defining agent metadata, environment variables, and deployment configuration
  • Removal of Docker-specific documentation and environment variable examples

Reviewed Changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
python/samples/demos/hosted_agents/agents_in_workflow/main.py Updated to use AzureOpenAIChatClient without explicit credentials
python/samples/demos/hosted_agents/agents_in_workflow/agent.yaml Added agent manifest defining workflow agent configuration
python/samples/demos/hosted_agents/agents_in_workflow/README.md Removed Docker deployment documentation
python/samples/demos/hosted_agents/agents_in_workflow/.env.example Removed OpenAI environment variable template
python/samples/demos/hosted_agents/agent_with_text_search_rag/main.py Updated to use AzureOpenAIChatClient with DefaultAzureCredential
python/samples/demos/hosted_agents/agent_with_text_search_rag/agent.yaml Added agent manifest defining RAG agent configuration
python/samples/demos/hosted_agents/agent_with_text_search_rag/README.md Removed Docker deployment documentation
python/samples/demos/hosted_agents/agent_with_text_search_rag/.env.example Removed OpenAI environment variable template
python/samples/demos/hosted_agents/agent_with_hosted_mcp/main.py Updated to use AzureOpenAIChatClient with DefaultAzureCredential
python/samples/demos/hosted_agents/agent_with_hosted_mcp/agent.yaml Added agent manifest defining MCP agent configuration
python/samples/demos/hosted_agents/agent_with_hosted_mcp/README.md Removed Docker deployment documentation
python/samples/demos/hosted_agents/agent_with_hosted_mcp/.env.example Removed OpenAI environment variable template

Comment thread python/samples/demos/hosted_agents/agents_in_workflow/main.py
Comment thread python/samples/demos/hosted_agents/agent_with_hosted_mcp/main.py Outdated
Comment thread python/samples/demos/hosted_agents/agent_with_text_search_rag/main.py Outdated
Comment thread python/samples/demos/hosted_agents/agent_with_hosted_mcp/agent.yaml Outdated
@TaoChenOSU TaoChenOSU enabled auto-merge November 15, 2025 00:56
@TaoChenOSU TaoChenOSU added this pull request to the merge queue Nov 15, 2025
Merged via the queue into microsoft:main with commit 580a0c4 Nov 15, 2025
23 checks passed
arisng pushed a commit to arisng/agent-framework that referenced this pull request Feb 2, 2026
)

* Add agent manifests

* Correct agent manifest

* Correct agent manifest 2

* use resource substitution

* address comments
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

Status: Done

Development

Successfully merging this pull request may close these issues.

5 participants