copyWith method

GoogleConfig 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. StructuredOutputFormat? jsonSchema,
  14. ReasoningEffort? reasoningEffort,
  15. int? thinkingBudgetTokens,
  16. bool? includeThoughts,
  17. bool? enableImageGeneration,
  18. List<String>? responseModalities,
  19. List<SafetySetting>? safetySettings,
  20. int? maxInlineDataSize,
  21. int? candidateCount,
  22. List<String>? stopSequences,
  23. String? embeddingTaskType,
  24. String? embeddingTitle,
  25. int? embeddingDimensions,
})

Implementation

GoogleConfig 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,
  StructuredOutputFormat? jsonSchema,
  ReasoningEffort? reasoningEffort,
  int? thinkingBudgetTokens,
  bool? includeThoughts,
  bool? enableImageGeneration,
  List<String>? responseModalities,
  List<SafetySetting>? safetySettings,
  int? maxInlineDataSize,
  int? candidateCount,
  List<String>? stopSequences,
  String? embeddingTaskType,
  String? embeddingTitle,
  int? embeddingDimensions,
}) =>
    GoogleConfig(
      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,
      jsonSchema: jsonSchema ?? this.jsonSchema,
      reasoningEffort: reasoningEffort ?? this.reasoningEffort,
      thinkingBudgetTokens: thinkingBudgetTokens ?? this.thinkingBudgetTokens,
      includeThoughts: includeThoughts ?? this.includeThoughts,
      enableImageGeneration:
          enableImageGeneration ?? this.enableImageGeneration,
      responseModalities: responseModalities ?? this.responseModalities,
      safetySettings: safetySettings ?? this.safetySettings,
      maxInlineDataSize: maxInlineDataSize ?? this.maxInlineDataSize,
      candidateCount: candidateCount ?? this.candidateCount,
      stopSequences: stopSequences ?? this.stopSequences,
      embeddingTaskType: embeddingTaskType ?? this.embeddingTaskType,
      embeddingTitle: embeddingTitle ?? this.embeddingTitle,
      embeddingDimensions: embeddingDimensions ?? this.embeddingDimensions,
    );