The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
feat(anthropic): add AnthropicAdvisorTool type and ADVISOR_TOOL_2026_03_01 beta header enum
Ishaan Jaffer506de4527e9e
diff --git a/litellm/types/llms/anthropic.py b/litellm/types/llms/anthropic.pyindex 37044c2b4f5..b9e1ebd4173 100644--- a/litellm/types/llms/anthropic.py+++ b/litellm/types/llms/anthropic.py@@ -126,6 +126,16 @@ class AnthropicToolSearchToolBM25(TypedDict, total=False):input_examples: Optional[List[Dict[str, Any]]]+class AnthropicAdvisorTool(TypedDict, total=False):+ """Advisor tool — pairs a fast executor model with a high-intelligence advisor model."""++ type: Required[Literal["advisor_20260301"]]+ name: Required[Literal["advisor"]]+ model: Required[str]+ max_uses: Optional[int]+ caching: Optional[dict]++class ToolReference(TypedDict, total=False):"""Reference to a tool that should be expanded from deferred tools."""@@ -165,6 +175,7 @@ AllAnthropicToolsValues = Union[AnthropicMemoryTool,AnthropicToolSearchToolRegex,AnthropicToolSearchToolBM25,+ AnthropicAdvisorTool,]@@ -654,6 +665,7 @@ class ANTHROPIC_BETA_HEADER_VALUES(str, Enum):STRUCTURED_OUTPUT_2025_09_25 = "structured-outputs-2025-11-13"ADVANCED_TOOL_USE_2025_11_20 = "advanced-tool-use-2025-11-20"FAST_MODE_2026_02_01 = "fast-mode-2026-02-01"+ ADVISOR_TOOL_2026_03_01 = "advisor-tool-2026-03-01"# Tool search beta header constant (for Anthropic direct API and Microsoft Foundry)