From b994465cc2491ba13de2388f7e822c47d5d4a5ba Mon Sep 17 00:00:00 2001 From: Dean Wampler Date: Mon, 28 Jul 2025 08:02:23 -0500 Subject: [PATCH] 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`. --- docs/source/getting_started/demo_script.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/source/getting_started/demo_script.py b/docs/source/getting_started/demo_script.py index 298fd9899..117251ecd 100644 --- a/docs/source/getting_started/demo_script.py +++ b/docs/source/getting_started/demo_script.py @@ -58,5 +58,8 @@ response = agent.create_turn( 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): log.print()