copyWith method

AnthropicConfig copyWith({
  1. String? apiKey,
  2. String? baseUrl,
  3. String? model,
  4. int? maxTokens,
  5. double? temperature,
  6. String? systemPrompt,
  7. Duration? timeout,
  8. bool? stream,
  9. double? topP,
  10. int? topK,
  11. List<Tool>? tools,
  12. ToolChoice? toolChoice,
  13. bool? reasoning,
  14. int? thinkingBudgetTokens,
  15. bool? interleavedThinking,
  16. List<String>? stopSequences,
  17. String? user,
  18. ServiceTier? serviceTier,
})

Implementation

AnthropicConfig copyWith({
  String? apiKey,
  String? baseUrl,
  String? model,
  int? maxTokens,
  double? temperature,
  String? systemPrompt,
  Duration? timeout,
  bool? stream,
  double? topP,
  int? topK,
  List<Tool>? tools,
  ToolChoice? toolChoice,
  bool? reasoning,
  int? thinkingBudgetTokens,
  bool? interleavedThinking,
  List<String>? stopSequences,
  String? user,
  ServiceTier? serviceTier,
}) =>
    AnthropicConfig(
      apiKey: apiKey ?? this.apiKey,
      baseUrl: baseUrl ?? this.baseUrl,
      model: model ?? this.model,
      maxTokens: maxTokens ?? this.maxTokens,
      temperature: temperature ?? this.temperature,
      systemPrompt: systemPrompt ?? this.systemPrompt,
      timeout: timeout ?? this.timeout,
      stream: stream ?? this.stream,
      topP: topP ?? this.topP,
      topK: topK ?? this.topK,
      tools: tools ?? this.tools,
      toolChoice: toolChoice ?? this.toolChoice,
      reasoning: reasoning ?? this.reasoning,
      thinkingBudgetTokens: thinkingBudgetTokens ?? this.thinkingBudgetTokens,
      interleavedThinking: interleavedThinking ?? this.interleavedThinking,
      stopSequences: stopSequences ?? this.stopSequences,
      user: user ?? this.user,
      serviceTier: serviceTier ?? this.serviceTier,
    );