mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-09-11 12:17:53 +02:00
Rm other mentions of stream_mode=messages
This commit is contained in:
@@ -506,7 +506,7 @@ class Pregel(PregelProtocol):
|
||||
|
||||
stream_eager: bool = False
|
||||
"""Whether to force emitting stream events eagerly, automatically turned on
|
||||
for stream_mode "messages" and "custom"."""
|
||||
for stream_mode "custom"."""
|
||||
|
||||
output_channels: Union[str, Sequence[str]]
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@ Checkpointer = Union[None, bool, BaseCheckpointSaver]
|
||||
- False disables checkpointing, even if the parent graph has a checkpointer.
|
||||
- None inherits checkpointer from the parent graph."""
|
||||
|
||||
StreamMode = Literal["values", "updates", "debug", "messages", "custom"]
|
||||
StreamMode = Literal["values", "updates", "debug", "custom"]
|
||||
"""How the stream method should emit outputs.
|
||||
|
||||
- `"values"`: Emit all values in the state after each step.
|
||||
@@ -51,7 +51,6 @@ StreamMode = Literal["values", "updates", "debug", "messages", "custom"]
|
||||
- `"updates"`: Emit only the node or task names and updates returned by the nodes or tasks after each step.
|
||||
If multiple updates are made in the same step (e.g. multiple nodes are run) then those updates are emitted separately.
|
||||
- `"custom"`: Emit custom data using from inside nodes or tasks using `StreamWriter`.
|
||||
- `"messages"`: Emit LLM messages token-by-token together with metadata for any LLM invocations inside nodes or tasks.
|
||||
- `"debug"`: Emit debug events with as much information as possible for each step.
|
||||
"""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user