# Hosting agents with Foundry Hosting and the `responses` API This folder contains a list of samples that show how to host agents using the `responses` API and deploy them to Foundry Hosting. | Sample | Description | | --- | --- | | [01_basic](./01_basic) | A basic example of hosting an agent with the `responses` API and carrying on a multi-turn conversation. | | [02_local_tools](./02_local_tools) | An example of hosting an agent with the `responses` API and local tools including a function tool and a local shell tool. | | [03_remote_mcp](./03_remote_mcp) | An example of hosting an agent with the `responses` API and remote MCPs, including a GitHub MCP server and a Foundry Toolbox. | | [04_workflows](./04_workflows) | An example of hosting a workflow with the `responses` API. | | [using_deployed_agent.py](./using_deployed_agent.py) | An example of how to use the deployed agent in Agent Framework. |