diff --git a/pyproject.toml b/pyproject.toml index 3fe2f50..06e5060 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -9,7 +9,7 @@ readme = "README.md" license = { text = "MIT" } requires-python = ">=3.11,<4.0" dependencies = [ - "langgraph>=0.6.6,<0.7.0", + "langgraph>=1.0.0", "langchain-openai>=0.1.22", "langchain-anthropic>=0.1.23", "langchain>=0.2.14", diff --git a/src/react_agent/context.py b/src/react_agent/context.py index 8ccfa75..d691776 100644 --- a/src/react_agent/context.py +++ b/src/react_agent/context.py @@ -22,7 +22,7 @@ class Context: ) model: Annotated[str, {"__template_metadata__": {"kind": "llm"}}] = field( - default="anthropic/claude-3-5-sonnet-20240620", + default="anthropic/claude-4-5", metadata={ "description": "The name of the language model to use for the agent's main interactions. " "Should be in the form: provider/model-name." diff --git a/src/react_agent/graph.py b/src/react_agent/graph.py index 098f51b..9d2ca76 100644 --- a/src/react_agent/graph.py +++ b/src/react_agent/graph.py @@ -42,7 +42,7 @@ async def call_model( ) # Get the model's response - response = cast( + response = cast( # type: ignore[redundant-cast] AIMessage, await model.ainvoke( [{"role": "system", "content": system_message}, *state.messages] diff --git a/src/react_agent/tools.py b/src/react_agent/tools.py index 4ce1eb6..7afd11b 100644 --- a/src/react_agent/tools.py +++ b/src/react_agent/tools.py @@ -8,7 +8,7 @@ from typing import Any, Callable, List, Optional, cast -from langchain_tavily import TavilySearch # type: ignore[import-not-found] +from langchain_tavily import TavilySearch from langgraph.runtime import get_runtime from react_agent.context import Context