File size: 455 Bytes
c2df2b9 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | 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()
|