mirror of
https://github.com/hwchase17/langchain.git
synced 2025-05-16 20:42:01 +00:00
anthropic[patch]: fix argument integration test (#18605)
This commit is contained in:
parent
bd4993141d
commit
1831733c2e
@ -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…
Reference in New Issue
Block a user