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( |
run_configis not passed to the new run when we useagent.as_tool(). Therefore, if a custom provider is set, it cannot run the tool agent.Debug information
Expected behavior
run_configmust 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.openai-agents-python/src/agents/agent.py
Line 211 in 84fb734