test_no_code_execution_calls() — langchain Function Reference
Architecture documentation for the test_no_code_execution_calls() function in test_prompt_caching.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD f10195c2_a859_2e87_2d6a_236eb1915935["test_no_code_execution_calls()"] ced2036e_7d46_6b8d_cbe5_b356ff572281["TestCollectCodeExecutionToolIds"] f10195c2_a859_2e87_2d6a_236eb1915935 -->|defined in| ced2036e_7d46_6b8d_cbe5_b356ff572281 style f10195c2_a859_2e87_2d6a_236eb1915935 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/partners/anthropic/tests/unit_tests/middleware/test_prompt_caching.py lines 351–371
def test_no_code_execution_calls(self) -> None:
"""Test messages without any code_execution calls."""
messages = [
{
"role": "user",
"content": [{"type": "text", "text": "Hello"}],
},
{
"role": "assistant",
"content": [
{
"type": "tool_use",
"id": "toolu_regular",
"name": "get_weather",
"input": {"location": "NYC"},
}
],
},
]
result = _collect_code_execution_tool_ids(messages)
assert result == set()
Domain
Subdomains
Source
Frequently Asked Questions
What does test_no_code_execution_calls() do?
test_no_code_execution_calls() is a function in the langchain codebase, defined in libs/partners/anthropic/tests/unit_tests/middleware/test_prompt_caching.py.
Where is test_no_code_execution_calls() defined?
test_no_code_execution_calls() is defined in libs/partners/anthropic/tests/unit_tests/middleware/test_prompt_caching.py at line 351.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free