Cell API
    Preparing search index...

    Interface Prompt

    Interface representing a request to an AI model. This interface encapsulates the necessary information required to interact with an AI model, including instructions or inputs (of generic type T) and additional model options. It provides a standardized way to send requests to AI models, ensuring that all necessary details are included and can be easily managed.

    interface Prompt {
        contents: string;
        instructions: Message[];
        options: ChatOptions;
        copy(): Prompt;
    }

    Hierarchy (View Summary)

    Implemented by

    Index
    contents: string
    instructions: Message[]

    Retrieves the instructions or input required by the AI model. The instructions or input required by the AI model

    options: ChatOptions

    Retrieves the customizable options for AI model interactions. The customizable options for AI model interactions