Add anthropic programatic tool calling support for responses api

This commit is contained in:
Sameer Kankute 2025-12-15 17:22:57 +05:30
parent f0928e1423
commit aa6d0056d3

View file

@ -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
)