Initial commit
This commit is contained in:
14
tests/integration_tests/test_graph.py
Normal file
14
tests/integration_tests/test_graph.py
Normal file
@@ -0,0 +1,14 @@
|
||||
import pytest
|
||||
from langsmith import unit
|
||||
|
||||
from react_agent import graph
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
@unit
|
||||
async def test_react_agent_simple_passthrough() -> None:
|
||||
res = await graph.ainvoke(
|
||||
{"messages": [("user", "Who is the founder of LangChain?")]}
|
||||
)
|
||||
|
||||
assert "harrison" in str(res["messages"][-1].content).lower()
|
||||
Reference in New Issue
Block a user