newtrone / tests /integration_tests /test_graph.py
nulltron's picture
Upload 62 files
c2df2b9 verified
Raw
History Blame Contribute Delete
455 Bytes
import pytest
from react_agent import graph
from react_agent.context import Context
pytestmark = pytest.mark.anyio
async def test_react_agent_simple_passthrough() -> None:
res = await graph.ainvoke(
{"messages": [("user", "Who is the founder of LangChain?")]}, # type: ignore
context=Context(system_prompt="You are a helpful AI assistant."),
)
assert "harrison" in str(res["messages"][-1].content).lower()