mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-09-13 21:27:52 +02:00
sdk-py: Add custom stream mode to StreamMode type (#2051)
### Summary The LangGraph API supports `custom` stream mode type. Reference: https://github.com/langchain-ai/langgraph/blob/main/docs/docs/cloud/reference/api/openapi.json#L2403
This commit is contained in:
committed by
Tat Dat Duong
parent
598bb5a641
commit
6d4a426059
@@ -25,7 +25,7 @@ Represents the status of a thread:
|
||||
- "interrupted": The thread's execution was interrupted.
|
||||
"""
|
||||
|
||||
StreamMode = Literal["values", "messages", "updates", "events", "debug"]
|
||||
StreamMode = Literal["values", "messages", "updates", "events", "debug", "custom"]
|
||||
"""
|
||||
Defines the mode of streaming:
|
||||
- "values": Stream only the values.
|
||||
@@ -33,6 +33,7 @@ Defines the mode of streaming:
|
||||
- "updates": Stream updates to the state.
|
||||
- "events": Stream events occurring during execution.
|
||||
- "debug": Stream detailed debug information.
|
||||
- "custom": Stream custom events.
|
||||
"""
|
||||
|
||||
DisconnectMode = Literal["cancel", "continue"]
|
||||
|
||||
Reference in New Issue
Block a user