From f1162ac8985e04d5a071b44ad6fb904443fb9bdc Mon Sep 17 00:00:00 2001 From: William Fu-Hinthorn <13333726+hinthornw@users.noreply.github.com> Date: Tue, 11 Mar 2025 20:16:29 -0700 Subject: [PATCH] Bump --- .../langgraph/store/base/__init__.py | 4 +-- libs/checkpoint/pyproject.toml | 2 +- libs/cli/pyproject.toml | 2 +- libs/cli/schemas/schema.json | 2 +- libs/cli/schemas/schema.v0.json | 32 +++++++++++++++++++ libs/sdk-py/pyproject.toml | 2 +- 6 files changed, 38 insertions(+), 6 deletions(-) diff --git a/libs/checkpoint/langgraph/store/base/__init__.py b/libs/checkpoint/langgraph/store/base/__init__.py index 8dddab6d3..fff90cc56 100644 --- a/libs/checkpoint/langgraph/store/base/__init__.py +++ b/libs/checkpoint/langgraph/store/base/__init__.py @@ -866,7 +866,7 @@ class BaseStore(ABC): ``` """ _validate_namespace(namespace) - if ttl is not None and not self.supports_ttl: + if ttl not in (NOT_PROVIDED, None) and not self.supports_ttl: raise NotImplementedError( f"TTL is not supported by {self.__class__.__name__}. " f"Use a store implementation that supports TTL or set ttl=None." @@ -1115,7 +1115,7 @@ class BaseStore(ABC): ``` """ _validate_namespace(namespace) - if ttl is not None and not self.supports_ttl: + if ttl not in (NOT_PROVIDED, None) and not self.supports_ttl: raise NotImplementedError( f"TTL is not supported by {self.__class__.__name__}. " f"Use a store implementation that supports TTL or set ttl=None." diff --git a/libs/checkpoint/pyproject.toml b/libs/checkpoint/pyproject.toml index 249bf3728..354205b2a 100644 --- a/libs/checkpoint/pyproject.toml +++ b/libs/checkpoint/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "langgraph-checkpoint" -version = "2.0.18" +version = "2.0.19" description = "Library with base interfaces for LangGraph checkpoint savers." authors = [] license = "MIT" diff --git a/libs/cli/pyproject.toml b/libs/cli/pyproject.toml index 1bb7171d8..1f7c38cb8 100644 --- a/libs/cli/pyproject.toml +++ b/libs/cli/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "langgraph-cli" -version = "0.1.75" +version = "0.1.76" description = "CLI for interacting with LangGraph API" authors = [] license = "MIT" diff --git a/libs/cli/schemas/schema.json b/libs/cli/schemas/schema.json index 65aa876e9..72eeec475 100644 --- a/libs/cli/schemas/schema.json +++ b/libs/cli/schemas/schema.json @@ -466,5 +466,5 @@ }, "title": "LangGraph CLI Configuration", "description": "Configuration schema for langgraph-cli", - "version": "v1" + "version": "v0" } \ No newline at end of file diff --git a/libs/cli/schemas/schema.v0.json b/libs/cli/schemas/schema.v0.json index 37186cd95..72eeec475 100644 --- a/libs/cli/schemas/schema.v0.json +++ b/libs/cli/schemas/schema.v0.json @@ -397,6 +397,17 @@ } ], "description": "Optional. Defines the vector-based semantic search configuration.\n\n- Generate embeddings according to `index.embed`\n- Enforce the embedding dimension given by `index.dims`\n- Embed only specified JSON fields (if any) from `index.fields`\n\nIf omitted, no vector index is initialized.\n" + }, + "ttl": { + "anyOf": [ + { + "$ref": "#/$defs/TTLConfig" + }, + { + "type": "null" + } + ], + "description": "Optional. Defines the TTL (time-to-live) behavior configuration.\n\nIf provided, the store will apply TTL settings according to the configuration.\nIf omitted, no TTL behavior is configured.\n" } }, "required": [] @@ -430,6 +441,27 @@ } }, "required": [] + }, + "TTLConfig": { + "title": "TTLConfig", + "description": "Configuration for TTL (time-to-live) behavior in the store.", + "type": "object", + "properties": { + "default_ttl": { + "anyOf": [ + { + "type": "number" + }, + { + "type": "null" + } + ] + }, + "refresh_on_read": { + "type": "boolean" + } + }, + "required": [] } }, "title": "LangGraph CLI Configuration", diff --git a/libs/sdk-py/pyproject.toml b/libs/sdk-py/pyproject.toml index 2cdd946da..f784ec418 100644 --- a/libs/sdk-py/pyproject.toml +++ b/libs/sdk-py/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "langgraph-sdk" -version = "0.1.55" +version = "0.1.56" description = "SDK for interacting with LangGraph API" authors = [] license = "MIT"