We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I get this warning using HostedMCPTool in an agent
HostedMCPTool
Unexpected output type, ignoring: <class 'openai.types.responses.response_output_item.McpCall'>
A clear and concise description of what the bug is.
OPENAI_API_KEY=sk-nottellin uv run -q main.py
main.py
# /// script # requires-python = ">=3.13" # dependencies = ["openai-agents~=0.0.16"] # /// import asyncio from agents import Agent, HostedMCPTool, Runner async def main(): agent = Agent( name="Assistant", tools=[ HostedMCPTool( tool_config={ "type": "mcp", "server_label": "gitmcp", "server_url": "https://gitmcp.io/elastic/elasticsearch", "require_approval": "never", } ) ], ) res = await Runner.run(agent, "Which language is this repo written in?") print(res.final_output) if __name__ == "__main__": asyncio.run(main())
expect no warnings
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
I get this warning using
HostedMCPTool
in an agentA clear and concise description of what the bug is.
Debug information
Repro steps
main.py
Expected behavior
expect no warnings
The text was updated successfully, but these errors were encountered: