Skip to content

Commit feadc6c

Browse files
committed
Update docs
1 parent 981d6c3 commit feadc6c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docs/patterns/streaming-tasks.mdx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Streaming
33
description: Process agent responses, tool calls and results in real-time through streaming or handlers.
4-
icon: wave-square
4+
icon: bars-staggered
55
---
66

77
import { VersionBadge } from '/snippets/version-badge.mdx'
@@ -35,7 +35,7 @@ for event, snapshot, delta in cf.run(
3535
print(delta, end="", flush=True)
3636
```
3737

38-
You can focus on specific events using the `Stream` enum:
38+
You can focus on specific events using the `Stream` enum. Here, we return only content updates:
3939

4040
```python
4141
from controlflow import Stream
@@ -63,6 +63,8 @@ You can combine filters with the `|` operator:
6363
stream = Stream.CONTENT | Stream.TOOLS
6464
```
6565

66+
For more complex filtering, set stream=True and filter the events manually, or use a handler.
67+
6668
## Handlers
6769
<VersionBadge version="0.9.2" />
6870

0 commit comments

Comments
 (0)