Skip to content

Commit dbf7fdc

Browse files
authored
Fix incorrect input argument passed to Runner.run
Use user\_input instead of input to avoid passing the built-in function by mistake.
1 parent 2823d27 commit dbf7fdc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/agents/agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ async def run_agent(context: RunContextWrapper, user_input: str) -> str:
269269

270270
output = await Runner.run(
271271
starting_agent=self,
272-
input=input,
272+
input=user_input,
273273
context=context.context,
274274
)
275275
if custom_output_extractor:

0 commit comments

Comments
 (0)