Skip to content

Commit f675777

Browse files
authored
chore: bump langgraph to v1.0 (#29)
2 parents 88832fe + ceb1c6f commit f675777

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ readme = "README.md"
99
license = { text = "MIT" }
1010
requires-python = ">=3.11,<4.0"
1111
dependencies = [
12-
"langgraph>=0.6.6,<0.7.0",
12+
"langgraph>=1.0.0",
1313
"langchain-openai>=0.1.22",
1414
"langchain-anthropic>=0.1.23",
1515
"langchain>=0.2.14",

src/react_agent/context.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class Context:
2222
)
2323

2424
model: Annotated[str, {"__template_metadata__": {"kind": "llm"}}] = field(
25-
default="anthropic/claude-3-5-sonnet-20240620",
25+
default="anthropic/claude-4-5",
2626
metadata={
2727
"description": "The name of the language model to use for the agent's main interactions. "
2828
"Should be in the form: provider/model-name."

src/react_agent/graph.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ async def call_model(
4242
)
4343

4444
# Get the model's response
45-
response = cast(
45+
response = cast( # type: ignore[redundant-cast]
4646
AIMessage,
4747
await model.ainvoke(
4848
[{"role": "system", "content": system_message}, *state.messages]

src/react_agent/tools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
from typing import Any, Callable, List, Optional, cast
1010

11-
from langchain_tavily import TavilySearch # type: ignore[import-not-found]
11+
from langchain_tavily import TavilySearch
1212
from langgraph.runtime import get_runtime
1313

1414
from react_agent.context import Context

0 commit comments

Comments
 (0)