Home / Function/ test_get_buffer_string_with_tool_calls_empty_content() — langchain Function Reference

test_get_buffer_string_with_tool_calls_empty_content() — langchain Function Reference

Architecture documentation for the test_get_buffer_string_with_tool_calls_empty_content() function in test_utils.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  1d9866b7_2e98_31f4_86ba_05e28170202d["test_get_buffer_string_with_tool_calls_empty_content()"]
  03f6a5ae_d57a_eb66_626a_b9e082b763ea["test_utils.py"]
  1d9866b7_2e98_31f4_86ba_05e28170202d -->|defined in| 03f6a5ae_d57a_eb66_626a_b9e082b763ea
  style 1d9866b7_2e98_31f4_86ba_05e28170202d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/tests/unit_tests/messages/test_utils.py lines 1779–1796

def test_get_buffer_string_with_tool_calls_empty_content() -> None:
    """Test `get_buffer_string` with `tool_calls` and empty `content`."""
    messages = [
        AIMessage(
            content="",
            tool_calls=[
                {
                    "name": "search",
                    "args": {"query": "test"},
                    "id": "call_2",
                    "type": "tool_call",
                }
            ],
        ),
    ]
    result = get_buffer_string(messages)
    assert "AI: " in result
    assert "search" in result

Domain

Subdomains

Frequently Asked Questions

What does test_get_buffer_string_with_tool_calls_empty_content() do?
test_get_buffer_string_with_tool_calls_empty_content() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/messages/test_utils.py.
Where is test_get_buffer_string_with_tool_calls_empty_content() defined?
test_get_buffer_string_with_tool_calls_empty_content() is defined in libs/core/tests/unit_tests/messages/test_utils.py at line 1779.

Analyze Your Own Codebase

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

Try Supermodel Free