The answers by question key. Empty on failure, so a caller never acts on partial answers.
OptionalcancellationReason for cancellation if applicable
OptionalcancelledWhether the execution was cancelled
OptionalcompletionNumber of tokens generated in the completion/output. This follows the ModelUsage convention from @memberjunction/ai
OptionalcostCost of this execution if provided by the AI provider. The currency is specified in the costCurrency field.
OptionalcostISO 4217 currency code for the cost field. Examples: 'USD', 'EUR', 'GBP', 'JPY', etc.
OptionalDecisionThe driver's own result, including Usage and the vendor's ResolvedModel version.
OptionalDriverThe driver class that answered, or was selected when the call failed.
OptionalerrorError message if execution failed
OptionalexecutionTotal execution time in milliseconds
OptionalmodelModel information for this result
OptionalmodelModel selection information for debugging and analysis
OptionalpromptThe AIPromptRun entity that was created for tracking
OptionalpromptNumber of tokens used in the prompt/input. This follows the ModelUsage convention from @memberjunction/ai
OptionalstatusCurrent execution status
Whether the execution was successful
OptionaltokensTotal tokens used (promptTokens + completionTokens). Note: This is a computed value - when creating objects, you don't need to set this.
The result of
AIDecisionRunner.ExecuteDecision. The inherited members carry the outcome, the run row, timing, tokens, cost and the model that answered.