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
"""Stream markdown text into a conversation.
3046
3044
3047
-
This method provides an easy way to stream markdown text using the following endpoints:
3048
-
- chat.startStream: Starts a new streaming conversation
3049
-
- chat.appendStream: Appends text to an existing streaming conversation
3050
-
- chat.stopStream: Stops a streaming conversation
3045
+
This method starts a new chat stream in a coversation that can be appended to. After appending an entire message, the stream can be stopped with concluding arguments such as "blocks" for gathering feedback.
3046
+
3047
+
The following methods are used:
3048
+
3049
+
- chat.startStream: Starts a new streaming conversation. [Reference](https://docs.slack.dev/reference/methods/chat.startStream).
3050
+
- chat.appendStream: Appends text to an existing streaming conversation. [Reference](https://docs.slack.dev/reference/methods/chat.appendStream).
3051
+
- chat.stopStream: Stops a streaming conversation. [Reference](https://docs.slack.dev/reference/methods/chat.stopStream).
3051
3052
3052
3053
Args:
3053
-
buffer_size: Size of the internal buffer before automatically flushing (default: 256)
3054
-
channel: Channel to stream to
3055
-
thread_ts: Thread timestamp to stream to (required)
3056
-
recipient_team_id: Team ID of the recipient (for Slack Connect)
3057
-
recipient_user_id: User ID of the recipient (for Slack Connect)
3058
-
unfurl_links: Whether to unfurl links
3059
-
unfurl_media: Whether to unfurl media
3060
-
**kwargs: Additional arguments passed to the underlying API calls
3054
+
buffer_size: The length of markdown_text to buffer in-memory before calling a method. Increasing this value decreases the number of method calls made for the same amount of text, which is useful to avoid rate limits. Default: 256.
3055
+
channel: An encoded ID that represents a channel, private group, or DM.
3056
+
thread_ts: Provide another message's ts value to reply to. Streamed messages should always be replies to a user request.
3057
+
recipient_team_id: The encoded ID of the team the user receiving the streaming text belongs to. Required when streaming to channels.
3058
+
recipient_user_id: The encoded ID of the user to receive the streaming text. Required when streaming to channels.
3059
+
**kwargs: Additional arguments passed to the underlying API calls.
"""Stream markdown text into a conversation.
10428
10423
10429
-
This method provides an easy way to stream markdown text using the following endpoints:
10430
-
- chat.startStream: Starts a new streaming conversation
10431
-
- chat.appendStream: Appends text to an existing streaming conversation
10432
-
- chat.stopStream: Stops a streaming conversation
10424
+
This method starts a new chat stream in a coversation that can be appended to. After appending an entire message, the stream can be stopped with concluding arguments such as "blocks" for gathering feedback.
10425
+
10426
+
The following methods are used:
10427
+
10428
+
- chat.startStream: Starts a new streaming conversation. [Reference](https://docs.slack.dev/reference/methods/chat.startStream).
10429
+
- chat.appendStream: Appends text to an existing streaming conversation. [Reference](https://docs.slack.dev/reference/methods/chat.appendStream).
10430
+
- chat.stopStream: Stops a streaming conversation. [Reference](https://docs.slack.dev/reference/methods/chat.stopStream).
10433
10431
10434
10432
Args:
10435
-
buffer_size: Size of the internal buffer before automatically flushing (default: 256)
10436
-
channel: Channel to stream to
10437
-
thread_ts: Thread timestamp to stream to (required)
10438
-
recipient_team_id: Team ID of the recipient (for Slack Connect)
10439
-
recipient_user_id: User ID of the recipient (for Slack Connect)
10440
-
unfurl_links: Whether to unfurl links
10441
-
unfurl_media: Whether to unfurl media
10442
-
**kwargs: Additional arguments passed to the underlying API calls
10433
+
buffer_size: The length of markdown_text to buffer in-memory before calling a method. Increasing this value decreases the number of method calls made for the same amount of text, which is useful to avoid rate limits. Default: 256.
10434
+
channel: An encoded ID that represents a channel, private group, or DM.
10435
+
thread_ts: Provide another message's ts value to reply to. Streamed messages should always be replies to a user request.
10436
+
recipient_team_id: The encoded ID of the team the user receiving the streaming text belongs to. Required when streaming to channels.
10437
+
recipient_user_id: The encoded ID of the user to receive the streaming text. Required when streaming to channels.
10438
+
**kwargs: Additional arguments passed to the underlying API calls.
10443
10439
10444
10440
Returns:
10445
-
ChatStreamer instance for managing the stream
10441
+
ChatStream instance for managing the stream
10446
10442
10447
10443
Example:
10448
10444
```python
@@ -10464,38 +10460,35 @@ <h3>Methods</h3>
10464
10460
thread_ts=thread_ts,
10465
10461
recipient_team_id=recipient_team_id,
10466
10462
recipient_user_id=recipient_user_id,
10467
-
unfurl_links=unfurl_links,
10468
-
unfurl_media=unfurl_media,
10469
10463
buffer_size=buffer_size,
10470
10464
**kwargs,
10471
10465
)</code></pre>
10472
10466
</details>
10473
10467
<div class="desc"><p>Stream markdown text into a conversation.</p>
10474
-
<p>This method provides an easy way to stream markdown text using the following endpoints:
10475
-
- chat.startStream: Starts a new streaming conversation
10476
-
- chat.appendStream: Appends text to an existing streaming conversation
10477
-
- chat.stopStream: Stops a streaming conversation</p>
10468
+
<p>This method starts a new chat stream in a coversation that can be appended to. After appending an entire message, the stream can be stopped with concluding arguments such as "blocks" for gathering feedback.</p>
10469
+
<p>The following methods are used:</p>
10470
+
<ul>
10471
+
<li>chat.startStream: Starts a new streaming conversation. <a href="https://docs.slack.dev/reference/methods/chat.startStream">Reference</a>.</li>
10472
+
<li>chat.appendStream: Appends text to an existing streaming conversation. <a href="https://docs.slack.dev/reference/methods/chat.appendStream">Reference</a>.</li>
10473
+
<li>chat.stopStream: Stops a streaming conversation. <a href="https://docs.slack.dev/reference/methods/chat.stopStream">Reference</a>.</li>
<dd>Size of the internal buffer before automatically flushing (default: 256)</dd>
10478
+
<dd>The length of markdown_text to buffer in-memory before calling a method. Increasing this value decreases the number of method calls made for the same amount of text, which is useful to avoid rate limits. Default: 256.</dd>
10482
10479
<dt><strong><code>channel</code></strong></dt>
10483
-
<dd>Channel to stream to</dd>
10480
+
<dd>An encoded ID that represents a channel, private group, or DM.</dd>
10484
10481
<dt><strong><code>thread_ts</code></strong></dt>
10485
-
<dd>Thread timestamp to stream to (required)</dd>
10482
+
<dd>Provide another message's ts value to reply to. Streamed messages should always be replies to a user request.</dd>
0 commit comments