Update ai-patterns.md (#226)

This commit is contained in:
Donald Pinckney
2026-05-15 16:44:14 -04:00
committed by GitHub
parent 14d412f37d
commit 8ad839585a
+4
View File
@@ -322,6 +322,10 @@ class DurableAgentWorkflow:
return result.output
```
## Streaming LLM Output / Tool Calls / etc. to a UI
For streaming tokens or progress events from an Activity to an outside subscriber (browser, terminal, SSE endpoint), see `references/python/workflow-streams.md`. Workflow Streams is a `contrib` module that handles batching, dedup, and offset-based consumption built on Signals, Updates, and Queries.
## Best Practices
1. **Always use Pydantic data converter** for complex types