From 64b12e0225acc5c97a66780921e94e4e6cdbcff7 Mon Sep 17 00:00:00 2001 From: Sameer Kankute Date: Mon, 15 Dec 2025 17:20:03 +0530 Subject: [PATCH] Add anthropic specific tools --- .../litellm_completion_transformation/transformation.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/litellm/responses/litellm_completion_transformation/transformation.py b/litellm/responses/litellm_completion_transformation/transformation.py index e56622fc777..0a42deb559a 100644 --- a/litellm/responses/litellm_completion_transformation/transformation.py +++ b/litellm/responses/litellm_completion_transformation/transformation.py @@ -697,6 +697,8 @@ class LiteLLMCompletionResponsesConfig: chat_completion_tools.append(tool) elif tool.get("type") == "computer_use": chat_completion_tools.append(tool) + elif tool.get("name") == "tool_search_tool_regex" or tool.get("name") == "tool_search_tool_bm25" or tool.get("type") == "code_execution_20250825": + chat_completion_tools.append(tool) else: typed_tool = cast(FunctionToolParam, tool) # Ensure parameters has "type": "object" as required by providers like Anthropic