Home / Function/ test_groq_translate_content_with_tool_calls() — langchain Function Reference

test_groq_translate_content_with_tool_calls() — langchain Function Reference

Architecture documentation for the test_groq_translate_content_with_tool_calls() function in test_groq.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  204876b2_045b_01ee_ae06_72174dc0376f["test_groq_translate_content_with_tool_calls()"]
  9858a811_d607_0538_c702_16bcd3e0f2c7["test_groq.py"]
  204876b2_045b_01ee_ae06_72174dc0376f -->|defined in| 9858a811_d607_0538_c702_16bcd3e0f2c7
  style 204876b2_045b_01ee_ae06_72174dc0376f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/tests/unit_tests/messages/block_translators/test_groq.py lines 63–83

def test_groq_translate_content_with_tool_calls() -> None:
    """Test groq content translation with tool calls."""
    # Test with tool calls
    message = AIMessage(
        content="",
        tool_calls=[
            {
                "name": "search",
                "args": {"query": "test"},
                "id": "call_123",
            }
        ],
    )
    blocks = translate_content(message)

    assert isinstance(blocks, list)
    assert len(blocks) == 1
    assert blocks[0]["type"] == "tool_call"
    assert blocks[0]["name"] == "search"
    assert blocks[0]["args"] == {"query": "test"}
    assert blocks[0]["id"] == "call_123"

Domain

Subdomains

Frequently Asked Questions

What does test_groq_translate_content_with_tool_calls() do?
test_groq_translate_content_with_tool_calls() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/messages/block_translators/test_groq.py.
Where is test_groq_translate_content_with_tool_calls() defined?
test_groq_translate_content_with_tool_calls() is defined in libs/core/tests/unit_tests/messages/block_translators/test_groq.py at line 63.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free