The AI prompt function Interface Represents a function that can be called by the LLM.

interface IPromptFunction {
    callback: ((params?: {
        [key: string]: string | number | boolean;
    }) => string | Promise<string>);
    description: string;
    params?: IPromptFunctionParams;
}

Properties

callback: ((params?: {
    [key: string]: string | number | boolean;
}) => string | Promise<string>)

The function callback.

description: string

The function description.

The function parameters.