mirror of
https://github.com/temporalio/skill-temporal-developer.git
synced 2026-09-14 13:52:58 +08:00
Update ai-patterns.md (#226)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user