anthropic[patch]: fix argument integration test (#18605)

pull/18606/head
Erick Friis 7 months ago committed by GitHub
parent bd4993141d
commit 1831733c2e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1,5 +1,7 @@
"""Test ChatAnthropic chat model."""
import json
from langchain_core.prompts import ChatPromptTemplate
from langchain_core.pydantic_v1 import BaseModel
@ -114,7 +116,7 @@ def test_tools() -> None:
assert tool_call["type"] == "function"
function = tool_call["function"]
assert function["name"] == "Person"
assert function["arguments"] == {"name": "Erick", "age": "27"}
assert json.loads(function["arguments"]) == {"name": "Erick", "age": "27"}
def test_with_structured_output() -> None:

Loading…
Cancel
Save