LLMGenerationOptions constructor

LLMGenerationOptions({
  1. int? maxTokens,
  2. double? temperature,
  3. double? topP,
  4. int? topK,
  5. double? repetitionPenalty,
  6. Iterable<String>? stopSequences,
  7. bool? streamingEnabled,
  8. InferenceFramework? preferredFramework,
  9. String? systemPrompt,
  10. String? jsonSchema,
  11. ThinkingTagPattern? thinkingPattern,
  12. ExecutionTarget? executionTarget,
  13. StructuredOutputOptions? structuredOutput,
  14. bool? enableRealTimeTracking,
  15. Int64? seed,
  16. double? frequencyPenalty,
  17. double? presencePenalty,
  18. int? repeatLastN,
  19. double? minP,
  20. String? grammar,
  21. String? responseFormat,
  22. bool? echoPrompt,
  23. int? nThreads,
  24. ToolCallingOptions? toolCalling,
  25. bool? disableThinking,
})

Implementation

factory LLMGenerationOptions({
  $core.int? maxTokens,
  $core.double? temperature,
  $core.double? topP,
  $core.int? topK,
  $core.double? repetitionPenalty,
  $core.Iterable<$core.String>? stopSequences,
  $core.bool? streamingEnabled,
  $3.InferenceFramework? preferredFramework,
  $core.String? systemPrompt,
  $core.String? jsonSchema,
  $0.ThinkingTagPattern? thinkingPattern,
  ExecutionTarget? executionTarget,
  $1.StructuredOutputOptions? structuredOutput,
  $core.bool? enableRealTimeTracking,
  $fixnum.Int64? seed,
  $core.double? frequencyPenalty,
  $core.double? presencePenalty,
  $core.int? repeatLastN,
  $core.double? minP,
  $core.String? grammar,
  $core.String? responseFormat,
  $core.bool? echoPrompt,
  $core.int? nThreads,
  $2.ToolCallingOptions? toolCalling,
  $core.bool? disableThinking,
}) {
  final result = create();
  if (maxTokens != null) result.maxTokens = maxTokens;
  if (temperature != null) result.temperature = temperature;
  if (topP != null) result.topP = topP;
  if (topK != null) result.topK = topK;
  if (repetitionPenalty != null) result.repetitionPenalty = repetitionPenalty;
  if (stopSequences != null) result.stopSequences.addAll(stopSequences);
  if (streamingEnabled != null) result.streamingEnabled = streamingEnabled;
  if (preferredFramework != null)
    result.preferredFramework = preferredFramework;
  if (systemPrompt != null) result.systemPrompt = systemPrompt;
  if (jsonSchema != null) result.jsonSchema = jsonSchema;
  if (thinkingPattern != null) result.thinkingPattern = thinkingPattern;
  if (executionTarget != null) result.executionTarget = executionTarget;
  if (structuredOutput != null) result.structuredOutput = structuredOutput;
  if (enableRealTimeTracking != null)
    result.enableRealTimeTracking = enableRealTimeTracking;
  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 (grammar != null) result.grammar = grammar;
  if (responseFormat != null) result.responseFormat = responseFormat;
  if (echoPrompt != null) result.echoPrompt = echoPrompt;
  if (nThreads != null) result.nThreads = nThreads;
  if (toolCalling != null) result.toolCalling = toolCalling;
  if (disableThinking != null) result.disableThinking = disableThinking;
  return result;
}