Setup New Project template

(Remove react agent code)
This commit is contained in:
William FH
2024-09-13 17:12:07 -07:00
committed by William Fu-Hinthorn
21 changed files with 138 additions and 784 deletions

View File

@@ -1,14 +1,11 @@
import pytest
from langsmith import unit
from react_agent import graph
from 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()
async def test_agent_simple_passthrough() -> None:
res = await graph.ainvoke({"changeme": "some_val"})
assert res is not None