Interface IGenerativeAIPromptJob

Represents bounded prompt job ready to be run or streamed.

interface IGenerativeAIPromptJob {
    id: string;
    options: IGenerativeAIPromptOptions;
    prompt: string;
    run: (() => Promise<IGenerativeAIPromptResult>);
    stream: (() => AsyncGenerator<IGenerativeAIPromptResult, any, unknown>);
}

Hierarchy (view full)

Properties

id: string

The job ID.

The options for the prompt.

prompt: string

The prompt to be processed

Run the prompt job.

Type declaration

stream: (() => AsyncGenerator<IGenerativeAIPromptResult, any, unknown>)

Stream the prompt job.

Type declaration