doc updates (#1639)

---------

Co-authored-by: vbarda <vadym@langchain.dev>
This commit is contained in:
Isaac Francisco
2024-09-08 16:55:52 +00:00
committed by GitHub
co-authored by vbarda
parent 38a644cf79
commit db306cd01b
98 changed files with 3227 additions and 978 deletions
+5 -1
View File
@@ -2,6 +2,8 @@
This guide covers how to configure multiple streaming modes at the same time.
## Setup
First let's set up our client and thread:
=== "Python"
@@ -51,6 +53,8 @@ Output:
'values': None
}
## Stream graph with multiple modes
When configuring multiple streaming modes for a run, responses for each respective mode will be produced. In the following example, note that a `list` of modes (`messages`, `events`, `debug`) is passed to the `stream_mode` parameter and the response contains `events`, `debug`, `messages/complete`, `messages/metadata`, and `messages/partial` event types.
=== "Python"
@@ -60,7 +64,7 @@ When configuring multiple streaming modes for a run, responses for each respecti
input = {
"messages": [
{
"role": "human",
"role": "user",
"content": "What's the weather in SF?",
}
]