mirror of
https://github.com/hwchase17/langchain.git
synced 2026-02-21 06:33:41 +00:00
fix(langchain): fix tests on standard content branch (#32590)
This commit is contained in:
@@ -47,7 +47,12 @@ def parse_ai_message_to_tool_action(
|
||||
try:
|
||||
args = json.loads(function["arguments"] or "{}")
|
||||
tool_calls.append(
|
||||
ToolCall(name=function_name, args=args, id=tool_call["id"]),
|
||||
ToolCall(
|
||||
type="tool_call",
|
||||
name=function_name,
|
||||
args=args,
|
||||
id=tool_call["id"],
|
||||
),
|
||||
)
|
||||
except JSONDecodeError as e:
|
||||
msg = (
|
||||
|
||||
@@ -277,6 +277,7 @@ def test_configurable_with_default() -> None:
|
||||
"model_kwargs": {},
|
||||
"streaming": False,
|
||||
"stream_usage": True,
|
||||
"output_version": "v0",
|
||||
},
|
||||
"kwargs": {
|
||||
"tools": [{"name": "foo", "description": "foo", "input_schema": {}}],
|
||||
|
||||
@@ -277,6 +277,7 @@ def test_configurable_with_default() -> None:
|
||||
"model_kwargs": {},
|
||||
"streaming": False,
|
||||
"stream_usage": True,
|
||||
"output_version": "v0",
|
||||
},
|
||||
"kwargs": {
|
||||
"tools": [{"name": "foo", "description": "foo", "input_schema": {}}],
|
||||
|
||||
Reference in New Issue
Block a user