Skip to content

bugs in run.py #570

Open
Open
@shinianzhihou

Description

@shinianzhihou

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions