Skip to content

Agent as tool does not keep the run config #476

Closed
@jack-lac

Description

@jack-lac

run_config is not passed to the new run when we use agent.as_tool(). Therefore, if a custom provider is set, it cannot run the tool agent.

Debug information

  • Agents SDK version: 0.0.9
  • Python version: 3.11.11

Expected behavior

run_config must be passed in a way to the runner of "as_tool agent" so the "tool-run" is done with the same configuration than the main run.

output = await Runner.run(

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneeds-more-infoWaiting for a reply/more info from the author

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions