LLMGenerationOptions constructor
LLMGenerationOptions({
- int? maxTokens,
- double? temperature,
- double? topP,
- int? topK,
- double? repetitionPenalty,
- Iterable<
String> ? stopSequences, - bool? streamingEnabled,
- InferenceFramework? preferredFramework,
- String? systemPrompt,
- String? jsonSchema,
- ThinkingTagPattern? thinkingPattern,
- ExecutionTarget? executionTarget,
- StructuredOutputOptions? structuredOutput,
- bool? enableRealTimeTracking,
- Int64? seed,
- double? frequencyPenalty,
- double? presencePenalty,
- int? repeatLastN,
- double? minP,
- String? grammar,
- String? responseFormat,
- bool? echoPrompt,
- int? nThreads,
- ToolCallingOptions? toolCalling,
- 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;
}