copyWith method
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,
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,
);