From 3822947b0d9ce3e63827b0e69033631825928485 Mon Sep 17 00:00:00 2001 From: "devin-ai-integration[bot]" <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Thu, 8 Oct 2026 15:25:17 -0700 Subject: [PATCH] fix(rust): add the inline-tools-2026-09-15 beta to AnthropicBeta (#45439) Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- .../crates/llms-types/src/providers/anthropic.rs | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) 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, ) {