get working
This commit is contained in:
@@ -1,14 +1,12 @@
|
||||
import pytest
|
||||
from langsmith import unit
|
||||
|
||||
from agent import graph
|
||||
from langsmith import expect, unit
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
@unit
|
||||
async def test_agent_simple_passthrough() -> None:
|
||||
res = await graph.ainvoke(
|
||||
{"messages": [("user", "Who is the founder of LangChain?")]}
|
||||
{"messages": [{"role": "user", "content": "What's 62 - 19?"}]}
|
||||
)
|
||||
|
||||
assert "harrison" in str(res["messages"][-1].content).lower()
|
||||
expect(res["messages"][-1]["content"][0]["text"]).to_contain("43")
|
||||
|
||||
Reference in New Issue
Block a user