diff --git a/.github/workflows/_integration_test.yml b/.github/workflows/_integration_test.yml index e5d5f66e5..3be88dae0 100644 --- a/.github/workflows/_integration_test.yml +++ b/.github/workflows/_integration_test.yml @@ -32,7 +32,7 @@ jobs: run: working-directory: libs/cli steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: Get changed files id: changed-files uses: Ana06/get-changed-files@v2.3.0 diff --git a/.github/workflows/_lint.yml b/.github/workflows/_lint.yml index bee84039a..5786893fd 100644 --- a/.github/workflows/_lint.yml +++ b/.github/workflows/_lint.yml @@ -31,7 +31,7 @@ jobs: - "3.12" name: "lint #${{ matrix.python-version }}" steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: Get changed files id: changed-files uses: Ana06/get-changed-files@v2.3.0 diff --git a/.github/workflows/_test.yml b/.github/workflows/_test.yml index d2c9c222e..2ce229956 100644 --- a/.github/workflows/_test.yml +++ b/.github/workflows/_test.yml @@ -25,7 +25,7 @@ jobs: name: "test #${{ matrix.python-version }}" steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: Set up Python ${{ matrix.python-version }} uses: astral-sh/setup-uv@v7 with: diff --git a/.github/workflows/_test_langgraph.yml b/.github/workflows/_test_langgraph.yml index 5450ce7c3..3aee8b3f9 100644 --- a/.github/workflows/_test_langgraph.yml +++ b/.github/workflows/_test_langgraph.yml @@ -23,7 +23,7 @@ jobs: working-directory: libs/langgraph name: "test #${{ matrix.python-version }}" steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: Set up Python ${{ matrix.python-version }} uses: astral-sh/setup-uv@v7 with: diff --git a/.github/workflows/_test_release.yml b/.github/workflows/_test_release.yml index 474600aea..a6fb42c57 100644 --- a/.github/workflows/_test_release.yml +++ b/.github/workflows/_test_release.yml @@ -23,7 +23,7 @@ jobs: version: ${{ steps.check-version.outputs.version }} steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: Set up Python $${ env.PYTHON_VERSION }} uses: astral-sh/setup-uv@v7 @@ -74,7 +74,7 @@ jobs: id-token: write steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - uses: actions/download-artifact@v6 with: diff --git a/.github/workflows/baseline.yml b/.github/workflows/baseline.yml index 259079488..1577d6cc7 100644 --- a/.github/workflows/baseline.yml +++ b/.github/workflows/baseline.yml @@ -17,7 +17,7 @@ jobs: run: working-directory: libs/langgraph steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - run: SHA=$(git rev-parse HEAD) && echo "SHA=$SHA" >> $GITHUB_ENV - name: Set up Python 3.11 uses: astral-sh/setup-uv@v7 diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml index d86080bef..526e4de56 100644 --- a/.github/workflows/bench.yml +++ b/.github/workflows/bench.yml @@ -15,7 +15,7 @@ jobs: run: working-directory: libs/langgraph steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - id: files name: Get changed files uses: Ana06/get-changed-files@v2.3.0 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2016a08c0..9d79d09b9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,7 +27,7 @@ jobs: python: ${{ steps.filter.outputs.python }} deps: ${{ steps.filter.outputs.deps }} steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - uses: dorny/paths-filter@v3 id: filter with: @@ -100,7 +100,7 @@ jobs: name: "Check SDK methods matching" runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: Set up Python uses: actions/setup-python@v6 with: @@ -118,7 +118,7 @@ jobs: python-version: - "3.11" steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: Set up Python ${{ matrix.python-version }} uses: astral-sh/setup-uv@v7 with: diff --git a/.github/workflows/codespell.yml b/.github/workflows/codespell.yml index b1be72f7e..e0409d75a 100644 --- a/.github/workflows/codespell.yml +++ b/.github/workflows/codespell.yml @@ -21,7 +21,7 @@ steps: - name: Checkout - uses: actions/checkout@v5 + uses: actions/checkout@v6 - name: Install Dependencies run: | diff --git a/.github/workflows/deploy_docs.yml b/.github/workflows/deploy_docs.yml index 9b805039b..61e696376 100644 --- a/.github/workflows/deploy_docs.yml +++ b/.github/workflows/deploy_docs.yml @@ -26,7 +26,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.MKDOCS_GITHUB_TOKEN }} steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 with: fetch-depth: 0 diff --git a/.github/workflows/link_check.yml b/.github/workflows/link_check.yml index 95e792b18..4eb51168a 100644 --- a/.github/workflows/link_check.yml +++ b/.github/workflows/link_check.yml @@ -19,7 +19,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v5 + uses: actions/checkout@v6 with: fetch-depth: 0 @@ -36,7 +36,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v5 + uses: actions/checkout@v6 with: fetch-depth: 1 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6b22228e6..ca27ed38c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,7 +25,7 @@ jobs: tag: ${{ steps.check-version.outputs.tag }} steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: Set up Python uses: astral-sh/setup-uv@v7 @@ -86,7 +86,7 @@ jobs: outputs: release-body: ${{ steps.generate-release-body.outputs.release-body }} steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 with: repository: langchain-ai/langgraph path: langgraph @@ -157,7 +157,7 @@ jobs: - test-pypi-publish runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 # We explicitly *don't* set up caching here. This ensures our tests are # maximally sensitive to catching breakage. @@ -260,7 +260,7 @@ jobs: working-directory: ${{ inputs.working-directory }} steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: Set up Python uses: astral-sh/setup-uv@v7 @@ -301,7 +301,7 @@ jobs: working-directory: ${{ inputs.working-directory }} steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: Set up Python uses: astral-sh/setup-uv@v7 diff --git a/.github/workflows/run_notebooks.yml b/.github/workflows/run_notebooks.yml index 606815949..6b8fd4567 100644 --- a/.github/workflows/run_notebooks.yml +++ b/.github/workflows/run_notebooks.yml @@ -28,7 +28,7 @@ jobs: - "latest" steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: Set up Python + Poetry uses: astral-sh/setup-uv@v7 with: diff --git a/.github/workflows/uv_lock_ugprade.yml b/.github/workflows/uv_lock_ugprade.yml index 3e4382aa7..0d1df2e37 100644 --- a/.github/workflows/uv_lock_ugprade.yml +++ b/.github/workflows/uv_lock_ugprade.yml @@ -16,7 +16,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: Set up uv uses: astral-sh/setup-uv@v7 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