Home / Function/ test_regular_tool_result_block() — langchain Function Reference

test_regular_tool_result_block() — langchain Function Reference

Architecture documentation for the test_regular_tool_result_block() function in test_prompt_caching.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  102231ad_3fb7_0530_3041_7201ca7f5ab6["test_regular_tool_result_block()"]
  84026b53_c23e_171c_9aac_ba34c6489805["TestIsCodeExecutionRelatedBlock"]
  102231ad_3fb7_0530_3041_7201ca7f5ab6 -->|defined in| 84026b53_c23e_171c_9aac_ba34c6489805
  style 102231ad_3fb7_0530_3041_7201ca7f5ab6 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/partners/anthropic/tests/unit_tests/middleware/test_prompt_caching.py lines 512–520

    def test_regular_tool_result_block(self) -> None:
        """Test tool_result block for regular tool."""
        block = {
            "type": "tool_result",
            "tool_use_id": "toolu_regular",
            "content": "Sunny, 72°F",
        }
        code_exec_ids = {"toolu_code_exec"}
        assert not _is_code_execution_related_block(block, code_exec_ids)

Domain

Subdomains

Frequently Asked Questions

What does test_regular_tool_result_block() do?
test_regular_tool_result_block() is a function in the langchain codebase, defined in libs/partners/anthropic/tests/unit_tests/middleware/test_prompt_caching.py.
Where is test_regular_tool_result_block() defined?
test_regular_tool_result_block() is defined in libs/partners/anthropic/tests/unit_tests/middleware/test_prompt_caching.py at line 512.

Analyze Your Own Codebase

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

Try Supermodel Free