The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
groq,openai,mistralai: fix unit tests (#28279)
Erick Friis29f8a79ebeb7
diff --git a/libs/partners/groq/tests/unit_tests/test_chat_models.py b/libs/partners/groq/tests/unit_tests/test_chat_models.pyindex fbec8424a3..1d7ec63c51 100644--- a/libs/partners/groq/tests/unit_tests/test_chat_models.py+++ b/libs/partners/groq/tests/unit_tests/test_chat_models.py@@ -112,7 +112,7 @@ def test__convert_dict_to_message_tool_call() -> None:name="GenerateUsername",args="oops",id="call_wm0JY6CdwOMZ4eTxHWUThDNz",- error="Function GenerateUsername arguments:\n\noops\n\nare not valid JSON. Received JSONDecodeError Expecting value: line 1 column 1 (char 0)\nFor troubleshooting, visit: https://python.langchain.com/docs/troubleshooting/errors/OUTPUT_PARSING_FAILURE", # noqa: E501+ error="Function GenerateUsername arguments:\n\noops\n\nare not valid JSON. Received JSONDecodeError Expecting value: line 1 column 1 (char 0)\nFor troubleshooting, visit: https://python.langchain.com/docs/troubleshooting/errors/OUTPUT_PARSING_FAILURE ", # noqa: E501type="invalid_tool_call",),],diff --git a/libs/partners/mistralai/tests/unit_tests/test_chat_models.py b/libs/partners/mistralai/tests/unit_tests/test_chat_models.pyindex 2c5c230536..f90507c687 100644--- a/libs/partners/mistralai/tests/unit_tests/test_chat_models.py+++ b/libs/partners/mistralai/tests/unit_tests/test_chat_models.py@@ -212,7 +212,7 @@ def test__convert_dict_to_message_tool_call() -> None:InvalidToolCall(name="GenerateUsername",args="oops",- error="Function GenerateUsername arguments:\n\noops\n\nare not valid JSON. Received JSONDecodeError Expecting value: line 1 column 1 (char 0)\nFor troubleshooting, visit: https://python.langchain.com/docs/troubleshooting/errors/OUTPUT_PARSING_FAILURE", # noqa: E501+ error="Function GenerateUsername arguments:\n\noops\n\nare not valid JSON. Received JSONDecodeError Expecting value: line 1 column 1 (char 0)\nFor troubleshooting, visit: https://python.langchain.com/docs/troubleshooting/errors/OUTPUT_PARSING_FAILURE ", # noqa: E501id="ssAbar4Dr",type="invalid_tool_call",),diff --git a/libs/partners/openai/tests/unit_tests/chat_models/test_base.py b/libs/partners/openai/tests/unit_tests/chat_models/test_base.pyindex 4ea4da055d..b97819e218 100644--- a/libs/partners/openai/tests/unit_tests/chat_models/test_base.py+++ b/libs/partners/openai/tests/unit_tests/chat_models/test_base.py@@ -168,7 +168,7 @@ def test__convert_dict_to_message_tool_call() -> None:"Function GenerateUsername arguments:\n\noops\n\nare not ""valid JSON. Received JSONDecodeError Expecting value: line 1 ""column 1 (char 0)\nFor troubleshooting, visit: https://python"- ".langchain.com/docs/troubleshooting/errors/OUTPUT_PARSING_FAILURE"+ ".langchain.com/docs/troubleshooting/errors/OUTPUT_PARSING_FAILURE "),type="invalid_tool_call",)