mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-09-30 21:45:08 +02:00
Merge branch 'nc/11oct/checkpoint-task-result' of github.com:langchain-ai/langgraph into nc/11oct/checkpoint-task-result
This commit is contained in:
@@ -33,6 +33,11 @@ jobs:
|
|||||||
poetry-version: ${{ env.POETRY_VERSION }}
|
poetry-version: ${{ env.POETRY_VERSION }}
|
||||||
working-directory: ${{ inputs.working-directory }}
|
working-directory: ${{ inputs.working-directory }}
|
||||||
cache-key: test-${{ inputs.working-directory }}
|
cache-key: test-${{ inputs.working-directory }}
|
||||||
|
- name: Login to Docker Hub
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKERHUB_RO_TOKEN }}
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|||||||
@@ -18,8 +18,10 @@ jobs:
|
|||||||
- "3.12"
|
- "3.12"
|
||||||
- "3.13"
|
- "3.13"
|
||||||
core-version:
|
core-version:
|
||||||
- ">=0.2.39,<0.3.0"
|
|
||||||
- "latest"
|
- "latest"
|
||||||
|
include:
|
||||||
|
- python-version: "3.11"
|
||||||
|
core-version: ">=0.2.39,<0.3.0"
|
||||||
|
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
@@ -33,6 +35,11 @@ jobs:
|
|||||||
python-version: ${{ matrix.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
poetry-version: ${{ env.POETRY_VERSION }}
|
poetry-version: ${{ env.POETRY_VERSION }}
|
||||||
cache-key: test-langgraph
|
cache-key: test-langgraph
|
||||||
|
- name: Login to Docker Hub
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKERHUB_RO_TOKEN }}
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|||||||
@@ -27,6 +27,11 @@ jobs:
|
|||||||
python-version: ${{ matrix.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
poetry-version: ${{ env.POETRY_VERSION }}
|
poetry-version: ${{ env.POETRY_VERSION }}
|
||||||
cache-key: test-scheduler-kafka
|
cache-key: test-scheduler-kafka
|
||||||
|
- name: Login to Docker Hub
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKERHUB_RO_TOKEN }}
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|||||||
@@ -1,33 +0,0 @@
|
|||||||
{
|
|
||||||
"cells": [
|
|
||||||
{
|
|
||||||
"cell_type": "markdown",
|
|
||||||
"id": "8a63cfe9",
|
|
||||||
"metadata": {},
|
|
||||||
"source": [
|
|
||||||
"This file has been moved to https://github.com/langchain-ai/langgraph/blob/main/docs/docs/tutorials/tutorials/tool-calling-agent-local.ipynb"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"metadata": {
|
|
||||||
"kernelspec": {
|
|
||||||
"display_name": "Python 3 (ipykernel)",
|
|
||||||
"language": "python",
|
|
||||||
"name": "python3"
|
|
||||||
},
|
|
||||||
"language_info": {
|
|
||||||
"codemirror_mode": {
|
|
||||||
"name": "ipython",
|
|
||||||
"version": 3
|
|
||||||
},
|
|
||||||
"file_extension": ".py",
|
|
||||||
"mimetype": "text/x-python",
|
|
||||||
"name": "python",
|
|
||||||
"nbconvert_exporter": "python",
|
|
||||||
"pygments_lexer": "ipython3",
|
|
||||||
"version": "3.11.8"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nbformat": 4,
|
|
||||||
"nbformat_minor": 5
|
|
||||||
}
|
|
||||||
@@ -252,8 +252,8 @@ class Pregel(Runnable[Union[dict[str, Any], Any], Union[dict[str, Any], Any]]):
|
|||||||
if auto_validate:
|
if auto_validate:
|
||||||
self.validate()
|
self.validate()
|
||||||
|
|
||||||
def copy(self, update: dict[str, Any]) -> Self:
|
def copy(self, update: dict[str, Any] | None = None) -> Self:
|
||||||
attrs = {**self.__dict__, **update}
|
attrs = {**self.__dict__, **(update or {})}
|
||||||
return self.__class__(**attrs)
|
return self.__class__(**attrs)
|
||||||
|
|
||||||
def with_config(self, config: RunnableConfig | None = None, **kwargs: Any) -> Self:
|
def with_config(self, config: RunnableConfig | None = None, **kwargs: Any) -> Self:
|
||||||
|
|||||||
@@ -154,6 +154,8 @@ class RemoteGraph(PregelProtocol, Runnable):
|
|||||||
interrupts=tuple(interrupts),
|
interrupts=tuple(interrupts),
|
||||||
state=self._create_state_snapshot(task["state"])
|
state=self._create_state_snapshot(task["state"])
|
||||||
if task["state"]
|
if task["state"]
|
||||||
|
else {"configurable": task["checkpoint"]}
|
||||||
|
if task["checkpoint"]
|
||||||
else None,
|
else None,
|
||||||
result=task.get("result"),
|
result=task.get("result"),
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user