diff --git a/libs/cli/langgraph_cli/schemas.py b/libs/cli/langgraph_cli/schemas.py index b559e6a0d..fb517becd 100644 --- a/libs/cli/langgraph_cli/schemas.py +++ b/libs/cli/langgraph_cli/schemas.py @@ -179,6 +179,8 @@ class CheckpointerConfig(TypedDict, total=False): This configuration requires server version 0.5 or later to take effect. """ + sweep_limit: int | None + """Maximum number of threads to process per sweep iteration. Defaults to 1000.""" class SecurityConfig(TypedDict, total=False): diff --git a/libs/cli/schemas/schema.json b/libs/cli/schemas/schema.json index d79e47ec8..e4f31bb4d 100644 --- a/libs/cli/schemas/schema.json +++ b/libs/cli/schemas/schema.json @@ -554,6 +554,17 @@ ], "description": "Optional. Defines the serde configuration.\n\nIf provided, the checkpointer will apply serde settings according to the configuration.\nIf omitted, no serde behavior is configured.\n\nThis configuration requires server version 0.5 or later to take effect.\n" }, + "sweep_limit": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "description": "Maximum number of threads to process per sweep iteration. Defaults to 1000." + }, "ttl": { "anyOf": [ { diff --git a/libs/cli/schemas/schema.v0.json b/libs/cli/schemas/schema.v0.json index d79e47ec8..e4f31bb4d 100644 --- a/libs/cli/schemas/schema.v0.json +++ b/libs/cli/schemas/schema.v0.json @@ -554,6 +554,17 @@ ], "description": "Optional. Defines the serde configuration.\n\nIf provided, the checkpointer will apply serde settings according to the configuration.\nIf omitted, no serde behavior is configured.\n\nThis configuration requires server version 0.5 or later to take effect.\n" }, + "sweep_limit": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "description": "Maximum number of threads to process per sweep iteration. Defaults to 1000." + }, "ttl": { "anyOf": [ {