feat: add Anthropic 1M context window toggle for Agents model configs (#27257)

This commit is contained in:
Michael Suchacz
2026-07-17 13:04:13 +02:00
committed by GitHub
parent 2ac2295b1e
commit 1ac106255b
12 changed files with 327 additions and 29 deletions
+1
View File
@@ -1354,6 +1354,7 @@ type ChatModelAnthropicProviderOptions struct {
WebSearchEnabled *bool `json:"web_search_enabled,omitempty" description:"Enable Anthropic web search tool for grounding responses with real-time information"`
AllowedDomains []string `json:"allowed_domains,omitempty" label:"Web Search: Allowed Domains" description:"Restrict web search to these domains (cannot be used with blocked_domains)" visible_when:"web_search_enabled" conflicts_with:"blocked_domains"`
BlockedDomains []string `json:"blocked_domains,omitempty" label:"Web Search: Blocked Domains" description:"Block web search on these domains (cannot be used with allowed_domains)" visible_when:"web_search_enabled" conflicts_with:"allowed_domains"`
Context1MEnabled *bool `json:"context_1m_enabled,omitempty" label:"1M Context Window" description:"Send the anthropic-beta context-1m-2025-08-07 header to unlock the 1M token context window on supported Claude models. Pair with a matching Context Limit. Long-context pricing and higher latency may apply above 200K tokens."`
}
// ChatModelGoogleThinkingConfig configures Google thinking behavior.