Skip to content

Python: Align Python get-started hosting sample with Azure Functions#3922

Merged
eavanvalkenburg merged 1 commit intomicrosoft:mainfrom
eavanvalkenburg:docs/python-get-started-hosting-azurefunctions
Feb 13, 2026
Merged

Python: Align Python get-started hosting sample with Azure Functions#3922
eavanvalkenburg merged 1 commit intomicrosoft:mainfrom
eavanvalkenburg:docs/python-get-started-hosting-azurefunctions

Conversation

@eavanvalkenburg
Copy link
Member

@eavanvalkenburg eavanvalkenburg commented Feb 13, 2026

Summary

  • update python/samples/01-get-started/06_host_your_agent.py to use the Azure Functions hosting pattern
  • remove Python A2A-specific guidance from this get-started hosting sample
  • update python/samples/01-get-started/README.md step 6 description accordingly

Why

This aligns the Python get-started hosting sample with current docs guidance and supported hosting flow.

Copilot AI review requested due to automatic review settings February 13, 2026 15:10
@markwallace-microsoft markwallace-microsoft added documentation Improvements or additions to documentation python labels Feb 13, 2026
@github-actions github-actions bot changed the title Align Python get-started hosting sample with Azure Functions Python: Align Python get-started hosting sample with Azure Functions Feb 13, 2026
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 updates the Python get-started hosting sample (06_host_your_agent.py) to align with the Azure Functions hosting pattern documented in the framework. The sample previously demonstrated A2A (Agent-to-Agent) protocol hosting, but now shows the recommended approach using AgentFunctionApp from the agent-framework-azurefunctions package.

Changes:

  • Replaced A2A hosting stub with Azure Functions hosting pattern using AgentFunctionApp
  • Updated environment variables from AZURE_AI_PROJECT_ENDPOINT and AZURE_OPENAI_RESPONSES_DEPLOYMENT_NAME to AZURE_OPENAI_ENDPOINT and AZURE_OPENAI_CHAT_DEPLOYMENT_NAME
  • Changed from AzureOpenAIResponsesClient to AzureOpenAIChatClient for agent creation
  • Updated step 6 description in README to reflect Azure Functions hosting

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
python/samples/01-get-started/README.md Updated step 6 description from "Prepare your agent for A2A hosting" to "Host a single agent with Azure Functions"
python/samples/01-get-started/06_host_your_agent.py Complete rewrite: removed A2A hosting stub, added Azure Functions hosting pattern with AgentFunctionApp, updated imports, environment variables, and documentation

@eavanvalkenburg eavanvalkenburg added this pull request to the merge queue Feb 13, 2026
Merged via the queue into microsoft:main with commit e563849 Feb 13, 2026
33 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

None yet

Development

Successfully merging this pull request may close these issues.

4 participants