Skip to content

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]

fix(types): annotate ANTHROPIC_ADVISOR_TOOL_TYPE as Literal to satisfy mypy

Ishaan Jafferf40995418bb9
diff --git a/litellm/types/llms/anthropic.py b/litellm/types/llms/anthropic.py
index c76f27bdd6c..e3f63d05742 100644
--- a/litellm/types/llms/anthropic.py
+++ b/litellm/types/llms/anthropic.py
@@ -126,7 +126,7 @@ class AnthropicToolSearchToolBM25(TypedDict, total=False):
input_examples: Optional[List[Dict[str, Any]]]
-ANTHROPIC_ADVISOR_TOOL_TYPE = "advisor_20260301"
+ANTHROPIC_ADVISOR_TOOL_TYPE: Literal["advisor_20260301"] = "advisor_20260301"
class AnthropicAdvisorTool(TypedDict, total=False):