Home / Function/ translate_content_chunk() — langchain Function Reference

translate_content_chunk() — langchain Function Reference

Architecture documentation for the translate_content_chunk() function in groq.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  84304337_3d26_515e_aeb4_1effbf41e0bb["translate_content_chunk()"]
  0e434ace_bc91_58ed_0c26_ebc25d9a766a["groq.py"]
  84304337_3d26_515e_aeb4_1effbf41e0bb -->|defined in| 0e434ace_bc91_58ed_0c26_ebc25d9a766a
  9d4d24e2_43fa_881e_628f_8a0a55cde2e6["_convert_to_v1_from_groq()"]
  84304337_3d26_515e_aeb4_1effbf41e0bb -->|calls| 9d4d24e2_43fa_881e_628f_8a0a55cde2e6
  style 84304337_3d26_515e_aeb4_1effbf41e0bb fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/langchain_core/messages/block_translators/groq.py lines 133–142

def translate_content_chunk(message: AIMessageChunk) -> list[types.ContentBlock]:
    """Derive standard content blocks from a message chunk with groq content.

    Args:
        message: The message chunk to translate.

    Returns:
        The derived content blocks.
    """
    return _convert_to_v1_from_groq(message)

Domain

Subdomains

Frequently Asked Questions

What does translate_content_chunk() do?
translate_content_chunk() is a function in the langchain codebase, defined in libs/core/langchain_core/messages/block_translators/groq.py.
Where is translate_content_chunk() defined?
translate_content_chunk() is defined in libs/core/langchain_core/messages/block_translators/groq.py at line 133.
What does translate_content_chunk() call?
translate_content_chunk() calls 1 function(s): _convert_to_v1_from_groq.

Analyze Your Own Codebase

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

Try Supermodel Free