mirror of
https://github.com/langchain-ai/react-agent-tool-server.git
synced 2026-07-01 18:28:34 -04:00
16 lines
412 B
Python
16 lines
412 B
Python
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?")]},
|
|
{"configurable": {"system_prompt": "You are a helpful AI assistant."}},
|
|
)
|
|
|
|
assert "harrison" in str(res["messages"][-1].content).lower()
|