Initial commit

This commit is contained in:
William FH
2024-09-13 16:28:17 -07:00
committed by GitHub
commit 523dc46aff
23 changed files with 3428 additions and 0 deletions

View File

@@ -0,0 +1 @@
"""Define any integration tests you want in this directory."""

View 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()