Member Junction
    Preparing search index...

    Params for an Interactive Component to execute a prompt

    interface SimpleExecutePromptParams {
        contextUser?: UserInfo;
        messages?: { message: string; role: "user" | "assistant" }[];
        modelPower?: "medium" | "lowest" | "highest";
        preferredModels?: string[];
        systemPrompt: string;
    }
    Index

    Properties

    contextUser?: UserInfo

    Optional context user information

    messages?: { message: string; role: "user" | "assistant" }[]

    Optional, message history to append to the conversation after the system prompt

    modelPower?: "medium" | "lowest" | "highest"

    Optional power level for model selection when preferredModels is not provided. 'lowest' = least powerful/cheapest model 'medium' = balanced power/cost (default) 'highest' = most powerful model

    preferredModels?: string[]

    An ordered array of model names that are preferred for this prompt. This is not guaranteed but the preferences are taken into account

    systemPrompt: string

    Text for the prompt, will be sent in as the system message