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(rust): add the inline-tools-2026-09-15 beta to AnthropicBeta (#45439)

devin-ai-integration[bot]3822947b0d9c
diff --git a/litellm-rust/crates/llms-types/src/providers/anthropic.rs b/litellm-rust/crates/llms-types/src/providers/anthropic.rs
index c7e58f9a60a..97bb26a4088 100644
--- a/litellm-rust/crates/llms-types/src/providers/anthropic.rs
+++ b/litellm-rust/crates/llms-types/src/providers/anthropic.rs
@@ -122,12 +122,14 @@ pub enum AnthropicBeta {
ToolExamples20251029,
#[strum(serialize = "tool-search-tool-2025-10-19")]
ToolSearchTool20251019,
+ #[strum(serialize = "inline-tools-2026-09-15")]
+ InlineTools20260915,
#[strum(default, transparent)]
Other(String),
}
impl AnthropicBeta {
- pub const KNOWN: [Self; 39] = [
+ pub const KNOWN: [Self; 40] = [
Self::Oauth20250420,
Self::WebFetch20250910,
Self::WebSearch20250305,
@@ -167,6 +169,7 @@ impl AnthropicBeta {
Self::TokenEfficientTools20250219,
Self::ToolExamples20251029,
Self::ToolSearchTool20251019,
+ Self::InlineTools20260915,
];
pub fn as_str(&self) -> &str {
@@ -276,6 +279,13 @@ impl AnthropicBeta {
BetaProvider::BedrockConverse,
BetaProvider::Databricks,
],
+ Self::InlineTools20260915 => &[
+ BetaProvider::AzureAi,
+ BetaProvider::BedrockConverse,
+ BetaProvider::Bedrock,
+ BetaProvider::BedrockMantle,
+ BetaProvider::Databricks,
+ ],
Self::Other(_) => BetaProvider::VARIANTS,
}
}
@@ -429,7 +439,8 @@ mod tests {
AnthropicBeta::ThinkingDisplayUpdates20260818,
AnthropicBeta::TokenEfficientTools20250219,
AnthropicBeta::ToolExamples20251029,
- AnthropicBeta::ToolSearchTool20251019
+ AnthropicBeta::ToolSearchTool20251019,
+ AnthropicBeta::InlineTools20260915
)]
beta: AnthropicBeta,
) {