Home / Function/ test_tool_message_repr() — langchain Function Reference

test_tool_message_repr() — langchain Function Reference

Architecture documentation for the test_tool_message_repr() function in test_messages.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  648a80ef_18b8_3f16_5d25_c1f874a643e7["test_tool_message_repr()"]
  1c821c4f_25a2_9606_a15f_b3df054105ac["test_messages.py"]
  648a80ef_18b8_3f16_5d25_c1f874a643e7 -->|defined in| 1c821c4f_25a2_9606_a15f_b3df054105ac
  style 648a80ef_18b8_3f16_5d25_c1f874a643e7 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/tests/unit_tests/test_messages.py lines 988–994

def test_tool_message_repr() -> None:
    message = ToolMessage("foo", artifact={"bar": {"baz": 123}}, tool_call_id="1")
    expected = (
        "ToolMessage(content='foo', tool_call_id='1', artifact={'bar': {'baz': 123}})"
    )
    actual = repr(message)
    assert expected == actual

Domain

Subdomains

Frequently Asked Questions

What does test_tool_message_repr() do?
test_tool_message_repr() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/test_messages.py.
Where is test_tool_message_repr() defined?
test_tool_message_repr() is defined in libs/core/tests/unit_tests/test_messages.py at line 988.

Analyze Your Own Codebase

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

Try Supermodel Free