openai-agents-python/tests/voice
Rohan Mehta 68c800d2a3 [2/n] Add MCP support to Runner
### Summary:
This enables users to **use** MCP inside the SDK.
1. You add a list of MCP servers to `Agent`, via `mcp_server=[...]`
2. When an agent runs, we look up its MCP tools and add them to the list of tools.
3. When a tool call occurs, we call the relevant MCP server.

Notes:
1. There's some refactoring to make sure we send the full list of tools to the Runner/Model etc.
2. Right now, you could have a locally defined tool that conflicts with an MCP defined tool. I didn't add errors for that, will do in a followup.

### Test Plan:
See unit tests. Also has an end to end example next PR.
2025-03-24 15:08:02 -04:00
..
__init__.py feat: add voice pipeline support 2025-03-20 09:43:13 -07:00
conftest.py fix tests 2025-03-20 09:52:15 -07:00
fake_models.py update tests 2025-03-20 13:08:38 -04:00
helpers.py update tests 2025-03-20 13:08:38 -04:00
test_input.py update tests 2025-03-20 13:08:38 -04:00
test_openai_stt.py [2/n] Add MCP support to Runner 2025-03-24 15:08:02 -04:00
test_openai_tts.py update tests 2025-03-20 13:08:38 -04:00
test_pipeline.py update tests 2025-03-20 13:08:38 -04:00
test_workflow.py update tests 2025-03-20 13:08:38 -04:00