Skip to content

bugs in run.py #570

New issue

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

Open
shinianzhihou opened this issue Apr 22, 2025 · 1 comment
Open

bugs in run.py #570

shinianzhihou opened this issue Apr 22, 2025 · 1 comment

Comments

@shinianzhihou
Copy link

HERE:

https://github.com/openai/openai-agents-python/blob/83ce49ec7e065a9688783341507b21af6a919de9/src/agents/run.py#L529C1-L530C72

all_tools = await cls._get_all_tools(current_agent)
tool_names = [t.name for t in all_tools]
current_span.span_data.tools = tool_names

at the first run step

if the agent is not written with with ... as server:, the cls->agent will not be initialized and this will dump

@rm-openai
Copy link
Collaborator

Is this related to MCP? The docs do clearly state that you must connect the MCP server yourself

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants