test_groq_translate_content_with_reasoning() — langchain Function Reference
Architecture documentation for the test_groq_translate_content_with_reasoning() function in test_groq.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 7ceabd90_7d4c_b83e_44d7_e8ab0470ca32["test_groq_translate_content_with_reasoning()"] 9858a811_d607_0538_c702_16bcd3e0f2c7["test_groq.py"] 7ceabd90_7d4c_b83e_44d7_e8ab0470ca32 -->|defined in| 9858a811_d607_0538_c702_16bcd3e0f2c7 style 7ceabd90_7d4c_b83e_44d7_e8ab0470ca32 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/tests/unit_tests/messages/block_translators/test_groq.py lines 42–60
def test_groq_translate_content_with_reasoning() -> None:
"""Test groq content translation with reasoning content."""
# Test with reasoning content in additional_kwargs
message = AIMessage(
content="Final answer",
additional_kwargs={"reasoning_content": "Let me think about this..."},
)
blocks = translate_content(message)
assert isinstance(blocks, list)
assert len(blocks) == 2
# First block should be reasoning
assert blocks[0]["type"] == "reasoning"
assert blocks[0]["reasoning"] == "Let me think about this..."
# Second block should be text
assert blocks[1]["type"] == "text"
assert blocks[1]["text"] == "Final answer"
Domain
Subdomains
Source
Frequently Asked Questions
What does test_groq_translate_content_with_reasoning() do?
test_groq_translate_content_with_reasoning() 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_reasoning() defined?
test_groq_translate_content_with_reasoning() is defined in libs/core/tests/unit_tests/messages/block_translators/test_groq.py at line 42.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free