mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-08-15 14:08:00 +00:00
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:
parent
09abdb0a37
commit
b994465cc2
1 changed files with 3 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue