Skip to content

Commit f59fb8c

Browse files
small update in sample
1 parent 5ce4989 commit f59fb8c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/decisions/00XX-python-get-response-simplification.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ async def main() -> None:
169169

170170
# Non-streaming usage
171171
print(f"User: {message}")
172-
response = await client.get_response(message, tools=get_weather, stream=False)
172+
response = await client.get_response(message, tools=get_weather)
173173
print(f"Assistant: {response.text}")
174174

175175
# Streaming usage - same method, different parameter
@@ -191,7 +191,7 @@ async def main() -> None:
191191

192192
# Non-streaming agent
193193
print(f"\nUser: {message}")
194-
result = await agent.run(message, thread=thread, stream=False)
194+
result = await agent.run(message, thread=thread) # default would be stream=False
195195
print(f"{agent.name}: {result.text}")
196196

197197
# Streaming agent - same method, different parameter

0 commit comments

Comments
 (0)