From aa6d0056d3ae8e01097caf303be318e7fdae4a39 Mon Sep 17 00:00:00 2001 From: Sameer Kankute Date: Mon, 15 Dec 2025 17:22:57 +0530 Subject: [PATCH] Add anthropic programatic tool calling support for responses api --- .../litellm_completion_transformation/transformation.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/litellm/responses/litellm_completion_transformation/transformation.py b/litellm/responses/litellm_completion_transformation/transformation.py index da5b3e65cdd..5f1271d7919 100644 --- a/litellm/responses/litellm_completion_transformation/transformation.py +++ b/litellm/responses/litellm_completion_transformation/transformation.py @@ -716,6 +716,12 @@ class LiteLLMCompletionResponsesConfig: ) if tool.get("cache_control"): chat_completion_tool["cache_control"] = tool.get("cache_control") + if tool.get("defer_loading"): + chat_completion_tool["defer_loading"] = tool.get("defer_loading") + if tool.get("allowed_callers"): + chat_completion_tool["allowed_callers"] = tool.get("allowed_callers") + if tool.get("input_examples"): + chat_completion_tool["input_examples"] = tool.get("input_examples") chat_completion_tools.append( chat_completion_tool )