test_code_execution_tool_result_block() — langchain Function Reference
Architecture documentation for the test_code_execution_tool_result_block() function in test_prompt_caching.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD c2b220cf_a8da_e7cc_f6e8_2dab74334253["test_code_execution_tool_result_block()"] 84026b53_c23e_171c_9aac_ba34c6489805["TestIsCodeExecutionRelatedBlock"] c2b220cf_a8da_e7cc_f6e8_2dab74334253 -->|defined in| 84026b53_c23e_171c_9aac_ba34c6489805 style c2b220cf_a8da_e7cc_f6e8_2dab74334253 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/partners/anthropic/tests/unit_tests/middleware/test_prompt_caching.py lines 522–530
def test_code_execution_tool_result_block(self) -> None:
"""Test tool_result block for code_execution called tool."""
block = {
"type": "tool_result",
"tool_use_id": "toolu_code_exec",
"content": "Sunny, 72°F",
}
code_exec_ids = {"toolu_code_exec"}
assert _is_code_execution_related_block(block, code_exec_ids)
Domain
Subdomains
Source
Frequently Asked Questions
What does test_code_execution_tool_result_block() do?
test_code_execution_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_code_execution_tool_result_block() defined?
test_code_execution_tool_result_block() is defined in libs/partners/anthropic/tests/unit_tests/middleware/test_prompt_caching.py at line 522.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free