mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-05 06:33:20 +00:00
tests[patch]: fix query for test_tool_calling_with_no_arguments (#29793)
This commit is contained in:
parent
1a225fad03
commit
49cc6106f7
@ -1122,7 +1122,7 @@ class ChatModelIntegrationTests(ChatModelTests):
|
|||||||
model_with_tools = model.bind_tools(
|
model_with_tools = model.bind_tools(
|
||||||
[magic_function_no_args], tool_choice=tool_choice
|
[magic_function_no_args], tool_choice=tool_choice
|
||||||
)
|
)
|
||||||
query = "What is the value of magic_function()? Use the tool."
|
query = "What is the value of magic_function_no_args()? Use the tool."
|
||||||
result = model_with_tools.invoke(query)
|
result = model_with_tools.invoke(query)
|
||||||
_validate_tool_call_message_no_args(result)
|
_validate_tool_call_message_no_args(result)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user