The AI prompt result Interface Represents the result of an AI prompt.

interface IPromptResult {
    context?: ISearchResult[];
    inputTokens?: number;
    output?: PromptTypeText | PromptTypeVector;
    outputTokens?: number;
}

Hierarchy (view full)

Properties

context?: ISearchResult[]

The relevant context used by the AI job.

inputTokens?: number

The tokens used by the AI job.

The output of the AI job.

outputTokens?: number

The tokens generated by the AI job.