Skip to content

Commit 1baecec

Browse files
renovate-botaverikitschvishwarajanand
authored
chore(deps): update python-nonmajor (#297)
* chore(deps): update python-nonmajor * Update pyproject.toml * Update requirements.txt * chore: undo connectors version upgrade * chore: add a new package langgraph-prebuilt * chore: migrate from langgraph subpackages [checkpoint, prebuilt] to only langgraph * chore: fix tests * chore: add type ignore for langchain prebuilt import missing --------- Co-authored-by: Averi Kitsch <akitsch@google.com> Co-authored-by: Vishwaraj Anand <vishwaraj.anand00@gmail.com> Co-authored-by: Vishwaraj Anand <vishwarajanand@google.com>
1 parent 809893e commit 1baecec

File tree

6 files changed

+33
-32
lines changed

6 files changed

+33
-32
lines changed

pyproject.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@ test = [
4646
"black[jupyter]==25.1.0",
4747
"isort==6.0.1",
4848
"mypy==1.15.0",
49-
"pytest-asyncio==0.25.3",
50-
"pytest==8.3.4",
51-
"pytest-cov==6.0.0",
52-
"langchain-tests==0.3.12",
53-
"langgraph==0.2.74"
49+
"pytest-asyncio==0.26.0",
50+
"pytest==8.3.5",
51+
"pytest-cov==6.1.1",
52+
"langchain-tests==0.3.19",
53+
"langgraph==0.3.31"
5454
]
5555

5656
[build-system]

requirements.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
cloud-sql-python-connector[asyncpg]==1.18.1
2-
langchain-core==0.3.40
3-
numpy==2.2.3; python_version > "3.9"
4-
numpy== 2.0.2; python_version <= "3.9"
5-
pgvector==0.3.6
6-
SQLAlchemy[asyncio]==2.0.38
7-
langgraph-checkpoint==2.0.10
2+
langchain-core==0.3.55
3+
numpy==2.2.5; python_version > "3.9"
4+
numpy==2.0.2; python_version <= "3.9"
5+
pgvector==0.4.0
6+
SQLAlchemy[asyncio]==2.0.40
7+
langgraph==0.3.31
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
langchain-community==0.3.18
2-
langchain-google-cloud-sql-pg==0.12.1
3-
langchain-google-vertexai==2.0.14
1+
langchain-community==0.3.22
2+
langchain-google-cloud-sql-pg==0.13.0
3+
langchain-google-vertexai==2.0.20
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
google-cloud-aiplatform[reasoningengine,langchain]==1.81.0
2-
google-cloud-resource-manager==1.14.1
3-
langchain-community==0.3.18
4-
langchain-google-cloud-sql-pg==0.12.1
5-
langchain-google-vertexai==2.0.14
1+
google-cloud-aiplatform[reasoningengine,langchain]==1.89.0
2+
google-cloud-resource-manager==1.14.2
3+
langchain-community==0.3.22
4+
langchain-google-cloud-sql-pg==0.13.0
5+
langchain-google-vertexai==2.0.20

samples/requirements.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
google-cloud-aiplatform[reasoningengine,langchain]==1.81.0
2-
google-cloud-resource-manager==1.14.1
3-
langchain-community==0.3.18
4-
langchain-google-cloud-sql-pg==0.12.1
5-
langchain-google-vertexai==2.0.14
1+
google-cloud-aiplatform[reasoningengine,langchain]==1.89.0
2+
google-cloud-resource-manager==1.14.2
3+
langchain-community==0.3.22
4+
langchain-google-cloud-sql-pg==0.13.0
5+
langchain-google-vertexai==2.0.20

tests/test_async_checkpoint.py

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
empty_checkpoint,
4040
)
4141
from langgraph.checkpoint.serde.jsonplus import JsonPlusSerializer
42-
from langgraph.prebuilt import (
42+
from langgraph.prebuilt import ( # type: ignore[import-not-found]
4343
ToolNode,
4444
ValidationNode,
4545
create_react_agent,
@@ -374,13 +374,14 @@ def _AnyIdHumanMessage(**kwargs: Any) -> HumanMessage:
374374

375375
saved = await checkpointer.aget_tuple(thread_agent_config)
376376
assert saved is not None
377-
assert saved.checkpoint["channel_values"] == {
378-
"messages": [
379-
_AnyIdHumanMessage(content="hi?"),
380-
AIMessage(content="hi?", id="0"),
381-
],
382-
"agent": "agent",
383-
}
377+
assert (
378+
_AnyIdHumanMessage(content="hi?")
379+
in saved.checkpoint["channel_values"]["messages"]
380+
)
381+
assert (
382+
AIMessage(content="hi?", id="0")
383+
in saved.checkpoint["channel_values"]["messages"]
384+
)
384385
assert saved.metadata == {
385386
"parents": {},
386387
"source": "loop",

0 commit comments

Comments
 (0)