You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Both `fullStream` and `textStream` are supported. Use `fullStream` with multi-step agents — it preserves paragraph breaks between steps. Any `AsyncIterable<string>` also works for custom streams.
152
+
Both `fullStream` and `textStream` are supported. Use `fullStream` with multi-step agents — it preserves paragraph breaks between steps. Any `AsyncIterable<string>` also works for custom streams. For Slack-specific streaming controls like `taskDisplayMode` or `stopBlocks`, pass a second argument: `await thread.post(result.fullStream, { stream: { taskDisplayMode: "plan" } })`.
153
153
154
154
See the [Streaming](/docs/streaming) page for details on platform behavior and configuration.
Copy file name to clipboardExpand all lines: apps/docs/content/docs/streaming.mdx
+17-13Lines changed: 17 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -150,8 +150,10 @@ await thread.post(stream);
150
150
Control how `task_update` chunks render in Slack by passing `taskDisplayMode` in stream options:
151
151
152
152
```typescript
153
-
awaitthread.stream(stream, {
154
-
taskDisplayMode: "plan", // Group all tasks into a single plan block
153
+
awaitthread.post(stream, {
154
+
stream: {
155
+
taskDisplayMode: "plan", // Group all tasks into a single plan block
156
+
},
155
157
});
156
158
```
157
159
@@ -167,17 +169,19 @@ Adapters without structured chunk support extract text from `markdown_text` chun
167
169
When streaming in Slack, you can attach Block Kit elements to the final message using `stopBlocks`. This is useful for adding action buttons after a streamed response completes:
0 commit comments