Skip to content

Commit 0a54124

Browse files
committed
Change print to return for final output in hello_world.py
1 parent 0eb0e33 commit 0a54124

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

samples-v2/openai_agents/basic/hello_world.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ async def main():
1010
)
1111

1212
result = await Runner.run(agent, "Tell me about recursion in programming.")
13-
print(result.final_output)
13+
return result.final_output
1414
# Function calls itself,
1515
# Looping in smaller pieces,
1616
# Endless by design.

0 commit comments

Comments
 (0)