AnthropicConfig constructor
const
AnthropicConfig({
- required String apiKey,
- String baseUrl = ProviderDefaults.anthropicBaseUrl,
- String model = ProviderDefaults.anthropicDefaultModel,
- int? maxTokens,
- double? temperature,
- String? systemPrompt,
- Duration? timeout,
- bool stream = false,
- double? topP,
- int? topK,
- List<
Tool> ? tools, - ToolChoice? toolChoice,
- bool reasoning = false,
- int? thinkingBudgetTokens,
- bool interleavedThinking = false,
- List<
String> ? stopSequences, - String? user,
- ServiceTier? serviceTier,
- LLMConfig? originalConfig,
Implementation
const AnthropicConfig({
required this.apiKey,
this.baseUrl = ProviderDefaults.anthropicBaseUrl,
this.model = ProviderDefaults.anthropicDefaultModel,
this.maxTokens,
this.temperature,
this.systemPrompt,
this.timeout,
this.stream = false,
this.topP,
this.topK,
this.tools,
this.toolChoice,
this.reasoning = false,
this.thinkingBudgetTokens,
this.interleavedThinking = false,
this.stopSequences,
this.user,
this.serviceTier,
LLMConfig? originalConfig,
}) : _originalConfig = originalConfig;