diff --git a/libs/sdk-py/langgraph_sdk/__init__.py b/libs/sdk-py/langgraph_sdk/__init__.py index 1e79b00bb..3defc5f2b 100644 --- a/libs/sdk-py/langgraph_sdk/__init__.py +++ b/libs/sdk-py/langgraph_sdk/__init__.py @@ -1,6 +1,6 @@ from langgraph_sdk.auth import Auth from langgraph_sdk.client import get_client, get_sync_client -__version__ = "0.2.9" +__version__ = "0.2.10" __all__ = ["Auth", "get_client", "get_sync_client"] diff --git a/libs/sdk-py/langgraph_sdk/client.py b/libs/sdk-py/langgraph_sdk/client.py index 9c1ecf27f..1a5961556 100644 --- a/libs/sdk-py/langgraph_sdk/client.py +++ b/libs/sdk-py/langgraph_sdk/client.py @@ -1033,6 +1033,7 @@ class AssistantsClient: *, metadata: Json = None, graph_id: str | None = None, + name: str | None = None, limit: int = 10, offset: int = 0, sort_by: AssistantSortBy | None = None, @@ -1047,6 +1048,8 @@ class AssistantsClient: metadata: Metadata to filter by. Exact match filter for each KV pair. graph_id: The ID of the graph to filter by. The graph ID is normally set in your langgraph.json configuration. + name: The name of the assistant to filter by. + The filtering logic will match assistants where 'name' is a substring (case insensitive) of the assistant name. limit: The maximum number of results to return. offset: The number of results to skip. sort_by: The field to sort by. @@ -1077,6 +1080,8 @@ class AssistantsClient: payload["metadata"] = metadata if graph_id: payload["graph_id"] = graph_id + if name: + payload["name"] = name if sort_by: payload["sort_by"] = sort_by if sort_order: @@ -4289,6 +4294,7 @@ class SyncAssistantsClient: *, metadata: Json = None, graph_id: str | None = None, + name: str | None = None, limit: int = 10, offset: int = 0, sort_by: AssistantSortBy | None = None, @@ -4303,6 +4309,8 @@ class SyncAssistantsClient: metadata: Metadata to filter by. Exact match filter for each KV pair. graph_id: The ID of the graph to filter by. The graph ID is normally set in your langgraph.json configuration. + name: The name of the assistant to filter by. + The filtering logic will match assistants where 'name' is a substring (case insensitive) of the assistant name. limit: The maximum number of results to return. offset: The number of results to skip. headers: Optional custom headers to include with the request. @@ -4330,6 +4338,8 @@ class SyncAssistantsClient: payload["metadata"] = metadata if graph_id: payload["graph_id"] = graph_id + if name: + payload["name"] = name if sort_by: payload["sort_by"] = sort_by if sort_order: diff --git a/libs/sdk-py/langgraph_sdk/schema.py b/libs/sdk-py/langgraph_sdk/schema.py index 43ff6430b..35ea2bc60 100644 --- a/libs/sdk-py/langgraph_sdk/schema.py +++ b/libs/sdk-py/langgraph_sdk/schema.py @@ -413,6 +413,7 @@ CronSelectField = Literal[ "next_run_date", "metadata", "now", + "on_run_completed", ] PrimitiveData = str | int | float | bool | None