Interface AIVariable

A variable is a short string that is used to reference a value that is resolved and replaced in the user prompt at request-time.

interface AIVariable {
    args?: AIVariableDescription[];
    description: string;
    iconClasses?: string[];
    id: string;
    isContextVariable?: boolean;
    label?: string;
    name: string;
}

Hierarchy (view full)

Properties

optional arguments for resolving the variable into a value

description: string

variable description

iconClasses?: string[]

optional icon classes, used for showing the variable in the UI.

id: string

provider id

isContextVariable?: boolean

specifies whether this variable contributes to the context --

See

ResolvedAIContextVariable

label?: string

optional label, used for showing the variable in the UI. If not provided, the variable name is used

name: string

variable name, used for referencing variables in the chat