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:
Andrew Nguonly
2024-10-09 14:33:14 +02:00
committed by Tat Dat Duong
parent 598bb5a641
commit 6d4a426059
+2 -1
View File
@@ -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"]