diff --git a/pyproject.toml b/pyproject.toml index 360a2ff0..5e5a3ec3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -46,11 +46,11 @@ test = [ "black[jupyter]==25.1.0", "isort==6.0.1", "mypy==1.15.0", - "pytest-asyncio==0.25.3", - "pytest==8.3.4", - "pytest-cov==6.0.0", - "langchain-tests==0.3.12", - "langgraph==0.2.74" + "pytest-asyncio==0.26.0", + "pytest==8.3.5", + "pytest-cov==6.1.1", + "langchain-tests==0.3.19", + "langgraph==0.3.31" ] [build-system] diff --git a/requirements.txt b/requirements.txt index 20a2c527..31d4c8af 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,7 +1,7 @@ cloud-sql-python-connector[asyncpg]==1.18.1 -langchain-core==0.3.40 -numpy==2.2.3; python_version > "3.9" -numpy== 2.0.2; python_version <= "3.9" -pgvector==0.3.6 -SQLAlchemy[asyncio]==2.0.38 -langgraph-checkpoint==2.0.10 +langchain-core==0.3.55 +numpy==2.2.5; python_version > "3.9" +numpy==2.0.2; python_version <= "3.9" +pgvector==0.4.0 +SQLAlchemy[asyncio]==2.0.40 +langgraph==0.3.31 diff --git a/samples/index_tuning_sample/requirements.txt b/samples/index_tuning_sample/requirements.txt index 19489979..e2124edf 100644 --- a/samples/index_tuning_sample/requirements.txt +++ b/samples/index_tuning_sample/requirements.txt @@ -1,3 +1,3 @@ -langchain-community==0.3.18 -langchain-google-cloud-sql-pg==0.12.1 -langchain-google-vertexai==2.0.14 +langchain-community==0.3.22 +langchain-google-cloud-sql-pg==0.13.0 +langchain-google-vertexai==2.0.20 diff --git a/samples/langchain_on_vertexai/requirements.txt b/samples/langchain_on_vertexai/requirements.txt index 153755af..f823fca7 100644 --- a/samples/langchain_on_vertexai/requirements.txt +++ b/samples/langchain_on_vertexai/requirements.txt @@ -1,5 +1,5 @@ -google-cloud-aiplatform[reasoningengine,langchain]==1.81.0 -google-cloud-resource-manager==1.14.1 -langchain-community==0.3.18 -langchain-google-cloud-sql-pg==0.12.1 -langchain-google-vertexai==2.0.14 +google-cloud-aiplatform[reasoningengine,langchain]==1.89.0 +google-cloud-resource-manager==1.14.2 +langchain-community==0.3.22 +langchain-google-cloud-sql-pg==0.13.0 +langchain-google-vertexai==2.0.20 diff --git a/samples/requirements.txt b/samples/requirements.txt index 153755af..f823fca7 100644 --- a/samples/requirements.txt +++ b/samples/requirements.txt @@ -1,5 +1,5 @@ -google-cloud-aiplatform[reasoningengine,langchain]==1.81.0 -google-cloud-resource-manager==1.14.1 -langchain-community==0.3.18 -langchain-google-cloud-sql-pg==0.12.1 -langchain-google-vertexai==2.0.14 +google-cloud-aiplatform[reasoningengine,langchain]==1.89.0 +google-cloud-resource-manager==1.14.2 +langchain-community==0.3.22 +langchain-google-cloud-sql-pg==0.13.0 +langchain-google-vertexai==2.0.20 diff --git a/tests/test_async_checkpoint.py b/tests/test_async_checkpoint.py index cea48e6d..69d36518 100644 --- a/tests/test_async_checkpoint.py +++ b/tests/test_async_checkpoint.py @@ -39,7 +39,7 @@ empty_checkpoint, ) from langgraph.checkpoint.serde.jsonplus import JsonPlusSerializer -from langgraph.prebuilt import ( +from langgraph.prebuilt import ( # type: ignore[import-not-found] ToolNode, ValidationNode, create_react_agent, @@ -374,13 +374,14 @@ def _AnyIdHumanMessage(**kwargs: Any) -> HumanMessage: saved = await checkpointer.aget_tuple(thread_agent_config) assert saved is not None - assert saved.checkpoint["channel_values"] == { - "messages": [ - _AnyIdHumanMessage(content="hi?"), - AIMessage(content="hi?", id="0"), - ], - "agent": "agent", - } + assert ( + _AnyIdHumanMessage(content="hi?") + in saved.checkpoint["channel_values"]["messages"] + ) + assert ( + AIMessage(content="hi?", id="0") + in saved.checkpoint["channel_values"]["messages"] + ) assert saved.metadata == { "parents": {}, "source": "loop",