Skip to content

Commit 0605025

Browse files
authored
docs: fix ChatKit streaming helper usage (#9523)
1 parent b7ce0d6 commit 0605025

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎python/packages/chatkit/AGENTS.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ Integration with OpenAI ChatKit (Python) for building chat UIs.
1919
```python
2020
from agent_framework.chatkit import stream_agent_response, ThreadItemConverter
2121

22-
async for event in stream_agent_response(agent, messages):
22+
response_stream = agent.run(messages, stream=True)
23+
async for event in stream_agent_response(response_stream, thread_id):
2324
# Handle ChatKit events
2425
pass
2526
```

0 commit comments

Comments
 (0)