LLMGenerationOptions constructor

LLMGenerationOptions({
  1. int? maxOutputTokens,
  2. double? temperature,
  3. double? topP,
  4. int? topK,
  5. double? repeatPenalty,
  6. Iterable<String>? stopSequences,
  7. InferenceFramework? preferredFramework,
  8. String? systemPrompt,
  9. ReasoningOptions? reasoning,
  10. ExecutionTarget? executionTarget,
  11. StructuredOutputOptions? structuredOutput,
  12. Int64? seed,
  13. double? frequencyPenalty,
  14. double? presencePenalty,
  15. int? repeatLastN,
  16. double? minP,
  17. bool? echoPrompt,
  18. ToolCallingOptions? toolCalling,
})

Implementation

factory LLMGenerationOptions({
  $core.int? maxOutputTokens,
  $core.double? temperature,
  $core.double? topP,
  $core.int? topK,
  $core.double? repeatPenalty,
  $core.Iterable<$core.String>? stopSequences,
  $5.InferenceFramework? preferredFramework,
  $core.String? systemPrompt,
  $0.ReasoningOptions? reasoning,
  ExecutionTarget? executionTarget,
  $1.StructuredOutputOptions? structuredOutput,
  $fixnum.Int64? seed,
  $core.double? frequencyPenalty,
  $core.double? presencePenalty,
  $core.int? repeatLastN,
  $core.double? minP,
  $core.bool? echoPrompt,
  $2.ToolCallingOptions? toolCalling,
}) {
  final result = create();
  if (maxOutputTokens != null) result.maxOutputTokens = maxOutputTokens;
  if (temperature != null) result.temperature = temperature;
  if (topP != null) result.topP = topP;
  if (topK != null) result.topK = topK;
  if (repeatPenalty != null) result.repeatPenalty = repeatPenalty;
  if (stopSequences != null) result.stopSequences.addAll(stopSequences);
  if (preferredFramework != null)
    result.preferredFramework = preferredFramework;
  if (systemPrompt != null) result.systemPrompt = systemPrompt;
  if (reasoning != null) result.reasoning = reasoning;
  if (executionTarget != null) result.executionTarget = executionTarget;
  if (structuredOutput != null) result.structuredOutput = structuredOutput;
  if (seed != null) result.seed = seed;
  if (frequencyPenalty != null) result.frequencyPenalty = frequencyPenalty;
  if (presencePenalty != null) result.presencePenalty = presencePenalty;
  if (repeatLastN != null) result.repeatLastN = repeatLastN;
  if (minP != null) result.minP = minP;
  if (echoPrompt != null) result.echoPrompt = echoPrompt;
  if (toolCalling != null) result.toolCalling = toolCalling;
  return result;
}