You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hmm good point. I'm not sure if we should pass through the entire config, since it may have settings we don't want to apply to the sub-agent. There's also a workaround - you can just have your own @function_tool that passes the context along.
Perhaps we could just document it - or maybe we ask for an optional config to be passed in. Thoughts?
run_config
is 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_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.openai-agents-python/src/agents/agent.py
Line 211 in 84fb734
The text was updated successfully, but these errors were encountered: