mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-20 18:12:35 +00:00
test(groq): xfail tool integration test (#32960)
Groq models have known issues with tool calling consistency, [particularly with complex tools derived from runnables](https://github.com/langchain-ai/langchain/discussions/19990). [(more)](https://github.com/langchain-ai/langchain/discussions/24309) xfail until we can dedicate time to wrangling their API/model handling
This commit is contained in:
@@ -30,6 +30,13 @@ class TestGroq(ChatModelIntegrationTests):
|
|||||||
) -> None:
|
) -> None:
|
||||||
super().test_tool_message_histories_list_content(model, my_adder_tool)
|
super().test_tool_message_histories_list_content(model, my_adder_tool)
|
||||||
|
|
||||||
|
@pytest.mark.xfail(
|
||||||
|
reason="Groq models have inconsistent tool calling performance. See: "
|
||||||
|
"https://github.com/langchain-ai/langchain/discussions/19990"
|
||||||
|
)
|
||||||
|
def test_bind_runnables_as_tools(self, model: BaseChatModel) -> None:
|
||||||
|
super().test_bind_runnables_as_tools(model)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def supports_json_mode(self) -> bool:
|
def supports_json_mode(self) -> bool:
|
||||||
return True
|
return True
|
||||||
|
8
libs/partners/groq/uv.lock
generated
8
libs/partners/groq/uv.lock
generated
@@ -1,5 +1,5 @@
|
|||||||
version = 1
|
version = 1
|
||||||
revision = 2
|
revision = 3
|
||||||
requires-python = ">=3.9"
|
requires-python = ">=3.9"
|
||||||
resolution-markers = [
|
resolution-markers = [
|
||||||
"python_full_version >= '3.13' and platform_python_implementation == 'PyPy'",
|
"python_full_version >= '3.13' and platform_python_implementation == 'PyPy'",
|
||||||
@@ -331,7 +331,7 @@ wheels = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "langchain-core"
|
name = "langchain-core"
|
||||||
version = "0.3.75"
|
version = "0.3.76"
|
||||||
source = { editable = "../../core" }
|
source = { editable = "../../core" }
|
||||||
dependencies = [
|
dependencies = [
|
||||||
{ name = "jsonpatch" },
|
{ name = "jsonpatch" },
|
||||||
@@ -382,7 +382,7 @@ test = [
|
|||||||
test-integration = []
|
test-integration = []
|
||||||
typing = [
|
typing = [
|
||||||
{ name = "langchain-text-splitters", directory = "../../text-splitters" },
|
{ name = "langchain-text-splitters", directory = "../../text-splitters" },
|
||||||
{ name = "mypy", specifier = ">=1.17.1,<1.18" },
|
{ name = "mypy", specifier = ">=1.18.1,<1.19" },
|
||||||
{ name = "types-pyyaml", specifier = ">=6.0.12.2,<7.0.0.0" },
|
{ name = "types-pyyaml", specifier = ">=6.0.12.2,<7.0.0.0" },
|
||||||
{ name = "types-requests", specifier = ">=2.28.11.5,<3.0.0.0" },
|
{ name = "types-requests", specifier = ">=2.28.11.5,<3.0.0.0" },
|
||||||
]
|
]
|
||||||
@@ -489,7 +489,7 @@ test = [{ name = "langchain-core", editable = "../../core" }]
|
|||||||
test-integration = []
|
test-integration = []
|
||||||
typing = [
|
typing = [
|
||||||
{ name = "langchain-core", editable = "../../core" },
|
{ name = "langchain-core", editable = "../../core" },
|
||||||
{ name = "mypy", specifier = ">=1.17.1,<1.18" },
|
{ name = "mypy", specifier = ">=1.18.1,<1.19" },
|
||||||
{ name = "types-pyyaml", specifier = ">=6.0.12.2,<7.0.0.0" },
|
{ name = "types-pyyaml", specifier = ">=6.0.12.2,<7.0.0.0" },
|
||||||
]
|
]
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user