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.
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.
Base result of an AI model execution across all modalities. Contains common execution status, tracking, token usage, cost, and model metadata.