Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ TEST_FILE ?= tests/unit_tests/
test:
python -m pytest $(TEST_FILE)

integration_tests:
python -m pytest tests/integration_tests

test_watch:
python -m ptw --snapshot-update --now . -- -vv tests/unit_tests

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ The primary [search tool](./src/react_agent/tools.py) [^1] used is [Tavily](http
The defaults values for `model` are shown below:

```yaml
model: anthropic/claude-3-5-sonnet-20240620
model: claude-sonnet-4-5-20250929
```

Follow the instructions below to get set up, or pick one of the additional options.
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ convention = "google"

[dependency-groups]
dev = [
"anyio>=4.7.0",
"langgraph-cli[inmem]>=0.1.71",
"pytest>=8.3.5",
]
2 changes: 1 addition & 1 deletion src/react_agent/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class Context:
)

model: Annotated[str, {"__template_metadata__": {"kind": "llm"}}] = field(
default="anthropic/claude-4-5",
default="anthropic/claude-sonnet-4-5-20250929",
metadata={
"description": "The name of the language model to use for the agent's main interactions. "
"Should be in the form: provider/model-name."
Expand Down
7 changes: 7 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import pytest


@pytest.fixture(scope="session")
def anyio_backend():
return "asyncio"

5 changes: 2 additions & 3 deletions tests/integration_tests/test_graph.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import pytest
from langsmith import unit

from react_agent import graph
from react_agent.context import Context

pytestmark = pytest.mark.anyio


@pytest.mark.asyncio
@unit
async def test_react_agent_simple_passthrough() -> None:
res = await graph.ainvoke(
{"messages": [("user", "Who is the founder of LangChain?")]}, # type: ignore
Expand Down