Files
microsoft--agent-framework/python/samples/04-hosting
Eduard van Valkenburg d08200d00e Python: Bump package versions for 1.12.0 release (#7238)
* Bump Python package versions for 1.12.0 release

Bump packages represented in the 1.12.0 changelog, promote Foundry Hosting, Azure Content Understanding, Gemini, Mistral, Monty, and Tools to beta, and apply the requested beta cohort date stamp. Root and core move to 1.12.0, released and RC packages use their selected increments, alpha packages including Hosting MCP use the 260721 stamp, and core floors are raised only for proven consumers.

Copilot-Session: 2dd9980a-b869-4c16-8642-75b7a6d6ebdf

* fix version in readme

* Add Responses conversation ID changes to release notes

Include the breaking Hosting Responses conversation ID helper changes from #7234 in the Python 1.12.0 changelog.

Copilot-Session: 2dd9980a-b869-4c16-8642-75b7a6d6ebdf
2026-07-21 15:45:00 +00:00
..

Hosting Samples

This directory contains Python samples that demonstrate different ways to host Agent Framework agents. Use this page to choose the hosting model that best fits your scenario, then continue to the README in the relevant subdirectory.

Hosting Options

Option Use this when you need... Start here
A2A Agent-to-Agent protocol interoperability or remote agent invocation. a2a/README.md
Azure Functions HTTP or serverless hosting on Azure Functions. azure_functions/README.md
Durable Task Durable execution, long-running flows, or orchestration patterns. durabletask/README.md
Foundry Hosted Agents Microsoft Foundry hosted agent deployment. foundry-hosted-agents/README.md
Self-Hosted Protocol Helpers Application-owned OpenAI Responses endpoints or Telegram bots. af-hosting/README.md

How to Choose

  • Start with A2A if you want one agent to call or expose another agent over the A2A protocol.
  • Start with Azure Functions if you want an HTTP-hosted or serverless entry point using Azure Functions.
  • Start with Durable Task if you need persistent state, durable workflows, or orchestration across multiple steps.
  • Start with Foundry Hosted Agents if you want to package and deploy an agent as a hosted agent in Microsoft Foundry.
  • Start with Self-Hosted Protocol Helpers if you want to own the web framework or native SDK, routing, authorization, and state storage while using OpenAI Responses or Telegram helpers.

Common Prerequisites

Most hosting samples share a small set of prerequisites:

  • A supported Python environment for running the samples locally.
  • A Microsoft Foundry project endpoint and model deployment name for FOUNDRY_PROJECT_ENDPOINT and FOUNDRY_MODEL.
  • Azure CLI authentication via az login when the sample uses AzureCliCredential.
  • Any hosting-specific tools or extra services called out in the subdirectory README.

Next Steps

  1. Pick the hosting approach that matches your scenario.
  2. Open the corresponding README for setup and run instructions.
  3. Follow that sample's environment, dependency, and execution steps.