AnthropicConfig constructor

const AnthropicConfig({
  1. required String apiKey,
  2. String baseUrl = ProviderDefaults.anthropicBaseUrl,
  3. String model = ProviderDefaults.anthropicDefaultModel,
  4. int? maxTokens,
  5. double? temperature,
  6. String? systemPrompt,
  7. Duration? timeout,
  8. bool stream = false,
  9. double? topP,
  10. int? topK,
  11. List<Tool>? tools,
  12. ToolChoice? toolChoice,
  13. bool reasoning = false,
  14. int? thinkingBudgetTokens,
  15. bool interleavedThinking = false,
  16. List<String>? stopSequences,
  17. String? user,
  18. ServiceTier? serviceTier,
  19. 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;