We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87f88e3 commit 7bf5202Copy full SHA for 7bf5202
src/agents/agent.py
@@ -222,12 +222,11 @@ def as_tool(
222
description_override=tool_description or "",
223
)
224
async def run_agent(context: RunContextWrapper, input: str) -> str:
225
- from .run import Runner
226
- from .tracing.scope import Scope
+ from .run import Runner, get_current_run_config
227
228
# Get the current run_config from context if available
229
run_config = None
230
- current_run_config = Scope.get_current_run_config()
+ current_run_config = get_current_run_config()
231
if current_run_config and current_run_config.pass_run_config_to_sub_agents:
232
run_config = current_run_config
233
0 commit comments