File tree Expand file tree Collapse file tree 6 files changed +16
-4
lines changed Expand file tree Collapse file tree 6 files changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,9 @@ TEST_FILE ?= tests/unit_tests/
99test :
1010 python -m pytest $(TEST_FILE )
1111
12+ integration_tests :
13+ python -m pytest tests/integration_tests
14+
1215test_watch :
1316 python -m ptw --snapshot-update --now . -- -vv tests/unit_tests
1417
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ The primary [search tool](./src/react_agent/tools.py) [^1] used is [Tavily](http
4141The defaults values for ` model ` are shown below:
4242
4343``` yaml
44- model : anthropic/ claude-3-5-sonnet-20240620
44+ model : claude-sonnet-4-5-20250929
4545` ` `
4646
4747Follow the instructions below to get set up, or pick one of the additional options.
Original file line number Diff line number Diff line change @@ -62,6 +62,7 @@ convention = "google"
6262
6363[dependency-groups ]
6464dev = [
65+ " anyio>=4.7.0" ,
6566 " langgraph-cli[inmem]>=0.1.71" ,
6667 " pytest>=8.3.5" ,
6768]
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ class Context:
2222 )
2323
2424 model : Annotated [str , {"__template_metadata__" : {"kind" : "llm" }}] = field (
25- default = "anthropic/claude-4-5" ,
25+ default = "anthropic/claude-sonnet- 4-5-20250929 " ,
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."
Original file line number Diff line number Diff line change 1+ import pytest
2+
3+
4+ @pytest .fixture (scope = "session" )
5+ def anyio_backend ():
6+ return "asyncio"
7+
Original file line number Diff line number Diff line change 44from react_agent import graph
55from react_agent .context import Context
66
7+ pytestmark = pytest .mark .anyio
8+
79
8- @pytest .mark .asyncio
9- @unit
1010async def test_react_agent_simple_passthrough () -> None :
1111 res = await graph .ainvoke (
1212 {"messages" : [("user" , "Who is the founder of LangChain?" )]}, # type: ignore
1313 context = Context (system_prompt = "You are a helpful AI assistant." ),
1414 )
15+ print (res )
1516
1617 assert "harrison" in str (res ["messages" ][- 1 ].content ).lower ()
You can’t perform that action at this time.
0 commit comments