Compare commits

...
8 changed files with 63 additions and 22 deletions

No files matched your search

+15 -3
View File
@@ -110,7 +110,11 @@ class CronClient:
timezone: IANA timezone for the cron schedule. Accepts a string (e.g. 'America/New_York') or a ``datetime.tzinfo`` instance (e.g. ``ZoneInfo("America/New_York")``).
stream_mode: The stream mode(s) to use.
stream_subgraphs: Whether to stream output from subgraphs.
stream_resumable: Whether to persist the stream chunks in order to resume the stream later.
stream_resumable: Whether to keep the run's stream events so a client
can rejoin the stream later from a last event ID. Since Agent Server
0.19, the server keeps every run's events for a limited time (2 minutes
by default) regardless of this flag. It only takes effect on the
in-memory server used by `langgraph dev`.
durability: Durability level for the run. Must be one of 'sync', 'async', or 'exit'.
"async" means checkpoints are persisted async while next graph step executes, replaces checkpoint_during=True
"sync" means checkpoints are persisted sync after graph step executes, replaces checkpoint_during=False
@@ -228,7 +232,11 @@ class CronClient:
timezone: IANA timezone for the cron schedule. Accepts a string (e.g. 'America/New_York') or a ``datetime.tzinfo`` instance (e.g. ``ZoneInfo("America/New_York")``).
stream_mode: The stream mode(s) to use.
stream_subgraphs: Whether to stream output from subgraphs.
stream_resumable: Whether to persist the stream chunks in order to resume the stream later.
stream_resumable: Whether to keep the run's stream events so a client
can rejoin the stream later from a last event ID. Since Agent Server
0.19, the server keeps every run's events for a limited time (2 minutes
by default) regardless of this flag. It only takes effect on the
in-memory server used by `langgraph dev`.
durability: Durability level for the run. Must be one of 'sync', 'async', or 'exit'.
"async" means checkpoints are persisted async while next graph step executes, replaces checkpoint_during=True
"sync" means checkpoints are persisted sync after graph step executes, replaces checkpoint_during=False
@@ -369,7 +377,11 @@ class CronClient:
timezone: IANA timezone for the cron schedule. Accepts a string (e.g. 'America/New_York') or a ``datetime.tzinfo`` instance (e.g. ``ZoneInfo("America/New_York")``).
stream_mode: The stream mode(s) to use.
stream_subgraphs: Whether to stream output from subgraphs.
stream_resumable: Whether to persist the stream chunks in order to resume the stream later.
stream_resumable: Whether to keep the run's stream events so a client
can rejoin the stream later from a last event ID. Since Agent Server
0.19, the server keeps every run's events for a limited time (2 minutes
by default) regardless of this flag. It only takes effect on the
in-memory server used by `langgraph dev`.
durability: Durability level for the run. Must be one of 'sync', 'async', or 'exit'.
headers: Optional custom headers to include with the request.
params: Optional query parameters to include with the request.
+3 -3
View File
@@ -247,9 +247,9 @@ class HttpClient:
):
warnings.warn(
"Reconnecting without a Last-Event-ID, so events sent while "
"disconnected are not replayed. Only runs created with "
"stream_resumable=True send the event IDs a reconnect resumes "
"from.",
"disconnected are not replayed. The in-memory server used by "
"`langgraph dev` only sends the event IDs a reconnect resumes "
"from for runs created with stream_resumable=True.",
stacklevel=2,
)
+10 -4
View File
@@ -244,8 +244,11 @@ class RunsClient:
command: A command to execute. Cannot be combined with input.
stream_mode: The stream mode(s) to use.
stream_subgraphs: Whether to stream output from subgraphs.
stream_resumable: Whether the stream is considered resumable.
If true, the stream can be resumed and replayed in its entirety even after disconnection.
stream_resumable: Whether to keep the run's stream events so a client
can rejoin the stream later from a last event ID. Since Agent Server
0.19, the server keeps every run's events for a limited time (2 minutes
by default) regardless of this flag. It only takes effect on the
in-memory server used by `langgraph dev`.
metadata: Metadata to assign to the run.
config: The configuration for the assistant.
context: Static context to add to the assistant.
@@ -474,8 +477,11 @@ class RunsClient:
command: A command to execute. Cannot be combined with input.
stream_mode: The stream mode(s) to use.
stream_subgraphs: Whether to stream output from subgraphs.
stream_resumable: Whether the stream is considered resumable.
If true, the stream can be resumed and replayed in its entirety even after disconnection.
stream_resumable: Whether to keep the run's stream events so a client
can rejoin the stream later from a last event ID. Since Agent Server
0.19, the server keeps every run's events for a limited time (2 minutes
by default) regardless of this flag. It only takes effect on the
in-memory server used by `langgraph dev`.
metadata: Metadata to assign to the run.
config: The configuration for the assistant.
context: Static context to add to the assistant.
+1 -1
View File
@@ -833,7 +833,7 @@ class ThreadsClient:
```python
for chunk in client.threads.join_stream(
async for chunk in await client.threads.join_stream(
thread_id="my_thread_id",
last_event_id="my_event_id",
):
+15 -3
View File
@@ -102,7 +102,11 @@ class SyncCronClient:
timezone: IANA timezone for the cron schedule. Accepts a string (e.g. 'America/New_York') or a ``datetime.tzinfo`` instance (e.g. ``ZoneInfo("America/New_York")``).
stream_mode: The stream mode(s) to use.
stream_subgraphs: Whether to stream output from subgraphs.
stream_resumable: Whether to persist the stream chunks in order to resume the stream later.
stream_resumable: Whether to keep the run's stream events so a client
can rejoin the stream later from a last event ID. Since Agent Server
0.19, the server keeps every run's events for a limited time (2 minutes
by default) regardless of this flag. It only takes effect on the
in-memory server used by `langgraph dev`.
durability: Durability level for the run. Must be one of 'sync', 'async', or 'exit'.
"async" means checkpoints are persisted async while next graph step executes, replaces checkpoint_during=True
"sync" means checkpoints are persisted sync after graph step executes, replaces checkpoint_during=False
@@ -218,7 +222,11 @@ class SyncCronClient:
timezone: IANA timezone for the cron schedule. Accepts a string (e.g. 'America/New_York') or a ``datetime.tzinfo`` instance (e.g. ``ZoneInfo("America/New_York")``).
stream_mode: The stream mode(s) to use.
stream_subgraphs: Whether to stream output from subgraphs.
stream_resumable: Whether to persist the stream chunks in order to resume the stream later.
stream_resumable: Whether to keep the run's stream events so a client
can rejoin the stream later from a last event ID. Since Agent Server
0.19, the server keeps every run's events for a limited time (2 minutes
by default) regardless of this flag. It only takes effect on the
in-memory server used by `langgraph dev`.
durability: Durability level for the run. Must be one of 'sync', 'async', or 'exit'.
"async" means checkpoints are persisted async while next graph step executes, replaces checkpoint_during=True
"sync" means checkpoints are persisted sync after graph step executes, replaces checkpoint_during=False
@@ -358,7 +366,11 @@ class SyncCronClient:
timezone: IANA timezone for the cron schedule. Accepts a string (e.g. 'America/New_York') or a ``datetime.tzinfo`` instance (e.g. ``ZoneInfo("America/New_York")``).
stream_mode: The stream mode(s) to use.
stream_subgraphs: Whether to stream output from subgraphs.
stream_resumable: Whether to persist the stream chunks in order to resume the stream later.
stream_resumable: Whether to keep the run's stream events so a client
can rejoin the stream later from a last event ID. Since Agent Server
0.19, the server keeps every run's events for a limited time (2 minutes
by default) regardless of this flag. It only takes effect on the
in-memory server used by `langgraph dev`.
durability: Durability level for the run. Must be one of 'sync', 'async', or 'exit'.
headers: Optional custom headers to include with the request.
params: Optional query parameters to include with the request.
+3 -3
View File
@@ -250,9 +250,9 @@ class SyncHttpClient:
):
warnings.warn(
"Reconnecting without a Last-Event-ID, so events sent while "
"disconnected are not replayed. Only runs created with "
"stream_resumable=True send the event IDs a reconnect resumes "
"from.",
"disconnected are not replayed. The in-memory server used by "
"`langgraph dev` only sends the event IDs a reconnect resumes "
"from for runs created with stream_resumable=True.",
stacklevel=2,
)
+10 -4
View File
@@ -244,8 +244,11 @@ class SyncRunsClient:
command: The command to execute.
stream_mode: The stream mode(s) to use.
stream_subgraphs: Whether to stream output from subgraphs.
stream_resumable: Whether the stream is considered resumable.
If true, the stream can be resumed and replayed in its entirety even after disconnection.
stream_resumable: Whether to keep the run's stream events so a client
can rejoin the stream later from a last event ID. Since Agent Server
0.19, the server keeps every run's events for a limited time (2 minutes
by default) regardless of this flag. It only takes effect on the
in-memory server used by `langgraph dev`.
metadata: Metadata to assign to the run.
config: The configuration for the assistant.
context: Static context to add to the assistant.
@@ -469,8 +472,11 @@ class SyncRunsClient:
command: The command to execute.
stream_mode: The stream mode(s) to use.
stream_subgraphs: Whether to stream output from subgraphs.
stream_resumable: Whether the stream is considered resumable.
If true, the stream can be resumed and replayed in its entirety even after disconnection.
stream_resumable: Whether to keep the run's stream events so a client
can rejoin the stream later from a last event ID. Since Agent Server
0.19, the server keeps every run's events for a limited time (2 minutes
by default) regardless of this flag. It only takes effect on the
in-memory server used by `langgraph dev`.
metadata: Metadata to assign to the run.
config: The configuration for the assistant.
context: Static context to add to the assistant.
+6 -1
View File
@@ -454,7 +454,12 @@ class CronUpdate(TypedDict, total=False):
stream_subgraphs: bool
"""Whether to stream output from subgraphs."""
stream_resumable: bool
"""Whether to persist the stream chunks in order to resume the stream later."""
"""Whether to keep the run's stream events so a client can rejoin the stream later.
Since Agent Server 0.19, the server keeps every run's events for a limited time
(2 minutes by default) regardless of this flag. It only takes effect on the
in-memory server used by `langgraph dev`.
"""
durability: Durability
"""Durability level for the run. Must be one of 'sync', 'async', or 'exit'."""