Interface IGenerativeAIPromptWorkerConnectorParameters

AI prompt worker connector parameters Interface

interface IGenerativeAIPromptWorkerConnectorParameters {
    functions?: Map<string, IPromptFunction>;
    grammar?: string;
    history?: IPromptHistory[];
    instructions?: string;
    internalContext?: {
        [key: string]: string;
    };
    maxTokens?: number;
    prompt: string;
    temperature?: number;
    threadId: string;
    type: Prompt;
}

Hierarchy (view full)

Properties

functions?: Map<string, IPromptFunction>

The functions that can be called by the LLM.

grammar?: string

The grammar to use for the AI job.

history?: IPromptHistory[]

The context for the AI job.

instructions?: string

The instructions for the AI job.

internalContext?: {
    [key: string]: string;
}

The internal context for the AI job.

maxTokens?: number

The maximum number of tokens to generate.

prompt: string

The prompt for the AI job.

temperature?: number

The temperature for the LLM.

threadId: string

The thread id

type: Prompt

The AI job type.