Interface IGenerativeAIWorkerConnectorPromptResult

AI worker connector prompt result Interface

interface IGenerativeAIWorkerConnectorPromptResult {
    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.