Interface IGenerativeAIPromptResult

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

interface IGenerativeAIPromptResult {
    context?: ISearchResult[];
    index?: number;
    inputTokens?: number;
    output?: PromptTypeText | PromptTypeVector;
    outputTokens?: number;
    type: Prompt;
}

Hierarchy (view full)

Properties

context?: ISearchResult[]

The relevant context used by the AI job.

index?: number

The index of the output, in case of partial results.

inputTokens?: number

The tokens used by the AI job.

The output of the AI job.

outputTokens?: number

The tokens generated by the AI job.

type: Prompt

The prompt AI job type.