LLMGenerationResult constructor
LLMGenerationResult({
- String? text,
- String? thinkingContent,
- int? inputTokens,
- int? tokensGenerated,
- String? modelUsed,
- double? generationTimeMs,
- double? ttftMs,
- double? tokensPerSecond,
- String? framework,
- String? finishReason,
- int? thinkingTokens,
- int? responseTokens,
- String? jsonOutput,
- PerformanceMetrics? performance,
- ExecutionTarget? executedOn,
- StructuredOutputValidation? structuredOutputValidation,
- int? totalTokens,
- String? errorMessage,
- int? errorCode,
- int? cachedPromptTokens,
- Int64? promptEvalTimeMs,
- Int64? decodeTimeMs,
- Iterable<
ToolCall> ? toolCalls, - Iterable<
ToolResult> ? toolResults,
Implementation
factory LLMGenerationResult({
$core.String? text,
$core.String? thinkingContent,
$core.int? inputTokens,
$core.int? tokensGenerated,
$core.String? modelUsed,
$core.double? generationTimeMs,
$core.double? ttftMs,
$core.double? tokensPerSecond,
$core.String? framework,
$core.String? finishReason,
$core.int? thinkingTokens,
$core.int? responseTokens,
$core.String? jsonOutput,
PerformanceMetrics? performance,
ExecutionTarget? executedOn,
$1.StructuredOutputValidation? structuredOutputValidation,
$core.int? totalTokens,
$core.String? errorMessage,
$core.int? errorCode,
$core.int? cachedPromptTokens,
$fixnum.Int64? promptEvalTimeMs,
$fixnum.Int64? decodeTimeMs,
$core.Iterable<$2.ToolCall>? toolCalls,
$core.Iterable<$2.ToolResult>? toolResults,
}) {
final result = create();
if (text != null) result.text = text;
if (thinkingContent != null) result.thinkingContent = thinkingContent;
if (inputTokens != null) result.inputTokens = inputTokens;
if (tokensGenerated != null) result.tokensGenerated = tokensGenerated;
if (modelUsed != null) result.modelUsed = modelUsed;
if (generationTimeMs != null) result.generationTimeMs = generationTimeMs;
if (ttftMs != null) result.ttftMs = ttftMs;
if (tokensPerSecond != null) result.tokensPerSecond = tokensPerSecond;
if (framework != null) result.framework = framework;
if (finishReason != null) result.finishReason = finishReason;
if (thinkingTokens != null) result.thinkingTokens = thinkingTokens;
if (responseTokens != null) result.responseTokens = responseTokens;
if (jsonOutput != null) result.jsonOutput = jsonOutput;
if (performance != null) result.performance = performance;
if (executedOn != null) result.executedOn = executedOn;
if (structuredOutputValidation != null)
result.structuredOutputValidation = structuredOutputValidation;
if (totalTokens != null) result.totalTokens = totalTokens;
if (errorMessage != null) result.errorMessage = errorMessage;
if (errorCode != null) result.errorCode = errorCode;
if (cachedPromptTokens != null)
result.cachedPromptTokens = cachedPromptTokens;
if (promptEvalTimeMs != null) result.promptEvalTimeMs = promptEvalTimeMs;
if (decodeTimeMs != null) result.decodeTimeMs = decodeTimeMs;
if (toolCalls != null) result.toolCalls.addAll(toolCalls);
if (toolResults != null) result.toolResults.addAll(toolResults);
return result;
}