Skip to content

Conversation

@TaoChenOSU
Copy link
Contributor

@TaoChenOSU TaoChenOSU commented Nov 13, 2025

Motivation and Context

Add hosted agent samples to Python.

Samples ported from .Net: https://github.com/microsoft/agent-framework/tree/main/dotnet/samples/HostedAgents

Description

Add hosted agent samples to Python.

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.

@markwallace-microsoft markwallace-microsoft added documentation Improvements or additions to documentation python labels Nov 13, 2025
@github-actions github-actions bot changed the title Add hosted agent samples Python: Add hosted agent samples Nov 13, 2025
@TaoChenOSU TaoChenOSU self-assigned this Nov 14, 2025
@TaoChenOSU TaoChenOSU marked this pull request as ready for review November 14, 2025 00:12
Copy link
Contributor

Copilot AI left a comment

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 adds three Python hosted agent sample demos, ported from the .NET samples. The samples demonstrate how to deploy agents as hosted endpoints in Docker containers.

  • Adds agents_in_workflow demo showing concurrent workflow execution
  • Adds agent_with_text_search_rag demo showcasing RAG with custom context providers
  • Adds agent_with_hosted_mcp demo integrating hosted MCP tools

Reviewed Changes

Copilot reviewed 15 out of 16 changed files in this pull request and generated 3 comments.

File Description
python/uv.lock Standard dependency version updates (cachetools, fastapi, huggingface-hub, mcp, mem0ai, openai, openai-agents, openai-chatkit, ruff)
python/samples/demos/hosted_agents/agents_in_workflow/* New demo: Workflow of concurrent agents (researcher, marketer, legal) with Docker deployment
python/samples/demos/hosted_agents/agent_with_text_search_rag/* New demo: RAG agent with custom TextSearchContextProvider for customer support with Docker deployment
python/samples/demos/hosted_agents/agent_with_hosted_mcp/* New demo: Agent with hosted MCP tool for Microsoft Learn documentation with Docker deployment

@TaoChenOSU TaoChenOSU enabled auto-merge November 14, 2025 01:02
@TaoChenOSU TaoChenOSU added this pull request to the merge queue Nov 14, 2025
Merged via the queue into microsoft:main with commit a2a9922 Nov 14, 2025
29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation python

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants