mirror of
https://github.com/hwchase17/langchain.git
synced 2025-05-17 04:52:00 +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."""
|
"""Test ChatAnthropic chat model."""
|
||||||
|
|
||||||
|
import json
|
||||||
|
|
||||||
from langchain_core.prompts import ChatPromptTemplate
|
from langchain_core.prompts import ChatPromptTemplate
|
||||||
from langchain_core.pydantic_v1 import BaseModel
|
from langchain_core.pydantic_v1 import BaseModel
|
||||||
|
|
||||||
@ -114,7 +116,7 @@ def test_tools() -> None:
|
|||||||
assert tool_call["type"] == "function"
|
assert tool_call["type"] == "function"
|
||||||
function = tool_call["function"]
|
function = tool_call["function"]
|
||||||
assert function["name"] == "Person"
|
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:
|
def test_with_structured_output() -> None:
|
||||||
|
Loading…
Reference in New Issue
Block a user