test_non_dict_block() — langchain Function Reference
Architecture documentation for the test_non_dict_block() function in test_prompt_caching.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 22115633_3acf_e763_a552_dca96f5d6f7c["test_non_dict_block()"] 84026b53_c23e_171c_9aac_ba34c6489805["TestIsCodeExecutionRelatedBlock"] 22115633_3acf_e763_a552_dca96f5d6f7c -->|defined in| 84026b53_c23e_171c_9aac_ba34c6489805 style 22115633_3acf_e763_a552_dca96f5d6f7c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/partners/anthropic/tests/unit_tests/middleware/test_prompt_caching.py lines 537–541
def test_non_dict_block(self) -> None:
"""Test that non-dict values return False."""
assert not _is_code_execution_related_block("string", set()) # type: ignore[arg-type]
assert not _is_code_execution_related_block(None, set()) # type: ignore[arg-type]
assert not _is_code_execution_related_block(123, set()) # type: ignore[arg-type]
Domain
Subdomains
Source
Frequently Asked Questions
What does test_non_dict_block() do?
test_non_dict_block() is a function in the langchain codebase, defined in libs/partners/anthropic/tests/unit_tests/middleware/test_prompt_caching.py.
Where is test_non_dict_block() defined?
test_non_dict_block() is defined in libs/partners/anthropic/tests/unit_tests/middleware/test_prompt_caching.py at line 537.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free