Skip to content

Commit

Permalink
Add stream_subgraphs param
Browse files Browse the repository at this point in the history
  • Loading branch information
nfcampos committed Sep 20, 2024
1 parent eadcec7 commit 41cb547
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions libs/sdk-py/langgraph_sdk/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -961,6 +961,7 @@ def stream(
*,
input: Optional[dict] = None,
stream_mode: Union[StreamMode, list[StreamMode]] = "values",
stream_subgraphs: bool = False,
metadata: Optional[dict] = None,
config: Optional[Config] = None,
checkpoint_id: Optional[str] = None,
Expand All @@ -981,6 +982,7 @@ def stream(
*,
input: Optional[dict] = None,
stream_mode: Union[StreamMode, list[StreamMode]] = "values",
stream_subgraphs: bool = False,
metadata: Optional[dict] = None,
config: Optional[Config] = None,
interrupt_before: Optional[list[str]] = None,
Expand All @@ -999,6 +1001,7 @@ def stream(
*,
input: Optional[dict] = None,
stream_mode: Union[StreamMode, list[StreamMode]] = "values",
stream_subgraphs: bool = False,
metadata: Optional[dict] = None,
config: Optional[Config] = None,
checkpoint_id: Optional[str] = None,
Expand All @@ -1020,6 +1023,7 @@ def stream(
If using graph name, will default to first assistant created from that graph.
input: The input to the graph.
stream_mode: The stream mode(s) to use.
stream_subgraphs: Whether to stream output from subgraphs.
metadata: Metadata to assign to the run.
config: The configuration for the assistant.
checkpoint_id: The checkpoint to start streaming from.
Expand Down Expand Up @@ -1072,6 +1076,7 @@ def stream(
"config": config,
"metadata": metadata,
"stream_mode": stream_mode,
"stream_subgraphs": stream_subgraphs,
"assistant_id": assistant_id,
"interrupt_before": interrupt_before,
"interrupt_after": interrupt_after,
Expand Down Expand Up @@ -1099,6 +1104,8 @@ async def create(
assistant_id: str,
*,
input: Optional[dict] = None,
stream_mode: Union[StreamMode, list[StreamMode]] = "values",
stream_subgraphs: bool = False,
metadata: Optional[dict] = None,
config: Optional[Config] = None,
interrupt_before: Optional[list[str]] = None,
Expand All @@ -1115,6 +1122,8 @@ async def create(
assistant_id: str,
*,
input: Optional[dict] = None,
stream_mode: Union[StreamMode, list[StreamMode]] = "values",
stream_subgraphs: bool = False,
metadata: Optional[dict] = None,
config: Optional[Config] = None,
checkpoint_id: Optional[str] = None,
Expand All @@ -1131,6 +1140,8 @@ async def create(
assistant_id: str,
*,
input: Optional[dict] = None,
stream_mode: Union[StreamMode, list[StreamMode]] = "values",
stream_subgraphs: bool = False,
metadata: Optional[dict] = None,
config: Optional[Config] = None,
checkpoint_id: Optional[str] = None,
Expand All @@ -1149,6 +1160,8 @@ async def create(
assistant_id: The assistant ID or graph name to stream from.
If using graph name, will default to first assistant created from that graph.
input: The input to the graph.
stream_mode: The stream mode(s) to use.
stream_subgraphs: Whether to stream output from subgraphs.
metadata: Metadata to assign to the run.
config: The configuration for the assistant.
checkpoint_id: The checkpoint to start streaming from.
Expand Down Expand Up @@ -1232,6 +1245,8 @@ async def create(
""" # noqa: E501
payload = {
"input": input,
"stream_mode": stream_mode,
"stream_subgraphs": stream_subgraphs,
"config": config,
"metadata": metadata,
"assistant_id": assistant_id,
Expand Down

0 comments on commit 41cb547

Please sign in to comment.