Added comment about a known limitation of AgentEventLogger

`AgentEventLogger` only supports streaming responses, so I suggest adding a comment near the bottom of `demo_script.py` letting the user know this, e.g., if they change the `stream` value to `False` in the call to `create_turn`.
This commit is contained in:
Dean Wampler 2025-07-28 08:02:23 -05:00 committed by GitHub
parent 09abdb0a37
commit b994465cc2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -58,5 +58,8 @@ response = agent.create_turn(
stream=True, stream=True,
) )
# NOTE: `AgentEventLogger().log(response)` only works with streaming responses.
# So, if you change the value for `stream` to `False` in the `create_turn` call,
# comment out the following two lines!
for log in AgentEventLogger().log(response): for log in AgentEventLogger().log(response):
log.print() log.print()