high75%
Agentic run with dynamic filtering (web_search_20260209) fails due to missing code_execution_tool_result block
LangChain agent using Anthropic's web_search_20260209 tool intermittently fails with a 400 error because the request payload includes a code_execution tool_use without a corresponding code_execution_tool_result. This occurs when web_search triggers automatic code_execution and LangChain's message handling drops the tool result.
