Python: Update hosted agent samples with agent manifests#2240
Merged
TaoChenOSU merged 5 commits intoNov 15, 2025
Merged
Conversation
Contributor
There was a problem hiding this comment.
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
OpenAIChatClienttoAzureOpenAIChatClientacross 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 |
SergeyMenshykh
approved these changes
Nov 15, 2025
peibekwe
approved these changes
Nov 15, 2025
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 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:
Contribution Checklist