clone method

ChatOptions clone()

Creates a deep copy of this ChatOptions.

Implementation

ChatOptions clone() => ChatOptions(
      conversationId: conversationId,
      modelId: modelId,
      temperature: temperature,
      topP: topP,
      topK: topK,
      maxOutputTokens: maxOutputTokens,
      seed: seed,
      frequencyPenalty: frequencyPenalty,
      presencePenalty: presencePenalty,
      responseFormat: responseFormat,
      stopSequences:
          stopSequences != null ? List<String>.of(stopSequences!) : null,
      instructions: instructions,
      tools: tools != null ? List<AITool>.of(tools!) : null,
      toolMode: toolMode,
      allowMultipleToolCalls: allowMultipleToolCalls,
      continuationToken: continuationToken,
      additionalProperties:
          additionalProperties != null ? Map.of(additionalProperties!) : null,
    );