TestGroq Class — langchain Architecture
Architecture documentation for the TestGroq class in test_standard.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 88a75621_a7b1_4a8e_e627_6e20460cb338["TestGroq"] 971e928f_9c9b_ce7a_b93d_e762f2f5aa54["ChatModelIntegrationTests"] 88a75621_a7b1_4a8e_e627_6e20460cb338 -->|extends| 971e928f_9c9b_ce7a_b93d_e762f2f5aa54 cccb55dd_44c7_c92f_75a0_aa1cc79fdaed["test_standard.py"] 88a75621_a7b1_4a8e_e627_6e20460cb338 -->|defined in| cccb55dd_44c7_c92f_75a0_aa1cc79fdaed 8389efc6_bd47_2a0a_9b81_4f4749b49ab4["chat_model_class()"] 88a75621_a7b1_4a8e_e627_6e20460cb338 -->|method| 8389efc6_bd47_2a0a_9b81_4f4749b49ab4 c54374c0_e192_172f_b541_390a7fec1649["chat_model_params()"] 88a75621_a7b1_4a8e_e627_6e20460cb338 -->|method| c54374c0_e192_172f_b541_390a7fec1649 49a5de40_267e_13e6_5f1a_eacdbd935340["test_bind_runnables_as_tools()"] 88a75621_a7b1_4a8e_e627_6e20460cb338 -->|method| 49a5de40_267e_13e6_5f1a_eacdbd935340 49042894_862e_2d65_681b_0b0d928c987e["test_tool_calling()"] 88a75621_a7b1_4a8e_e627_6e20460cb338 -->|method| 49042894_862e_2d65_681b_0b0d928c987e 7091921e_2826_b20a_cb41_0a1f8f4cc2cf["test_tool_calling_async()"] 88a75621_a7b1_4a8e_e627_6e20460cb338 -->|method| 7091921e_2826_b20a_cb41_0a1f8f4cc2cf f2a5b622_a0d0_c4f2_7999_72cf1522dde0["test_tool_calling_with_no_arguments()"] 88a75621_a7b1_4a8e_e627_6e20460cb338 -->|method| f2a5b622_a0d0_c4f2_7999_72cf1522dde0 ecb06dd9_7944_1d76_bba9_33f7c8830a57["supports_json_mode()"] 88a75621_a7b1_4a8e_e627_6e20460cb338 -->|method| ecb06dd9_7944_1d76_bba9_33f7c8830a57
Relationship Graph
Source Code
libs/partners/groq/tests/integration_tests/test_standard.py lines 17–50
class TestGroq(ChatModelIntegrationTests):
@property
def chat_model_class(self) -> type[BaseChatModel]:
return ChatGroq
@property
def chat_model_params(self) -> dict:
return {"model": "llama-3.3-70b-versatile", "rate_limiter": rate_limiter}
@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)
@pytest.mark.xfail(reason="Retry flaky tool calling behavior")
@pytest.mark.retry(count=3, delay=1)
def test_tool_calling(self, model: BaseChatModel) -> None:
super().test_tool_calling(model)
@pytest.mark.xfail(reason="Retry flaky tool calling behavior")
@pytest.mark.retry(count=3, delay=1)
async def test_tool_calling_async(self, model: BaseChatModel) -> None:
await super().test_tool_calling_async(model)
@pytest.mark.xfail(reason="Retry flaky tool calling behavior")
@pytest.mark.retry(count=3, delay=1)
def test_tool_calling_with_no_arguments(self, model: BaseChatModel) -> None:
super().test_tool_calling_with_no_arguments(model)
@property
def supports_json_mode(self) -> bool:
return True
Extends
Source
Frequently Asked Questions
What is the TestGroq class?
TestGroq is a class in the langchain codebase, defined in libs/partners/groq/tests/integration_tests/test_standard.py.
Where is TestGroq defined?
TestGroq is defined in libs/partners/groq/tests/integration_tests/test_standard.py at line 17.
What does TestGroq extend?
TestGroq extends ChatModelIntegrationTests.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free