test_regular_tool_use_block() — langchain Function Reference
Architecture documentation for the test_regular_tool_use_block() function in test_prompt_caching.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD d889e1fb_ce6f_736e_e4e7_4ab933efcd7b["test_regular_tool_use_block()"] 84026b53_c23e_171c_9aac_ba34c6489805["TestIsCodeExecutionRelatedBlock"] d889e1fb_ce6f_736e_e4e7_4ab933efcd7b -->|defined in| 84026b53_c23e_171c_9aac_ba34c6489805 style d889e1fb_ce6f_736e_e4e7_4ab933efcd7b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/partners/anthropic/tests/unit_tests/middleware/test_prompt_caching.py lines 488–496
def test_regular_tool_use_block(self) -> None:
"""Test regular tool_use block without caller."""
block = {
"type": "tool_use",
"id": "toolu_regular",
"name": "get_weather",
"input": {"location": "NYC"},
}
assert not _is_code_execution_related_block(block, set())
Domain
Subdomains
Source
Frequently Asked Questions
What does test_regular_tool_use_block() do?
test_regular_tool_use_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_use_block() defined?
test_regular_tool_use_block() is defined in libs/partners/anthropic/tests/unit_tests/middleware/test_prompt_caching.py at line 488.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free