interface AwsPromptVersionInput {
    description?: string;
    invocationParameters?: {
        max_tokens?: number;
        temperature?: number;
        top_p?: number;
    };
    modelName: string;
    modelProvider: "AWS";
    template: {
        content: | string
        | (
            | { text: string; type: "text" }
            | {
                tool_call: { arguments: string; name: string; type: "function" };
                tool_call_id: string;
                type: "tool_call";
            }
            | {
                tool_call_id: string;
                tool_result: | null
                | string
                | number
                | boolean
                | { [key: string]: unknown }
                | unknown[];
                type: "tool_result";
            }
        )[];
        role: | "user"
        | "assistant"
        | "model"
        | "ai"
        | "tool"
        | "system"
        | "developer";
    }[];
    templateFormat?: "NONE"
    | "MUSTACHE"
    | "F_STRING";
}

Hierarchy

  • PromptVersionInputBase
    • AwsPromptVersionInput

Properties

description?: string

The description of the prompt version.

invocationParameters?: {
    max_tokens?: number;
    temperature?: number;
    top_p?: number;
}

Type declaration

  • Optionalmax_tokens?: number

    Max Tokens

  • Optionaltemperature?: number

    Temperature

  • Optionaltop_p?: number

    Top P

modelName: string

The name of the model to use for the prompt version.

modelProvider: "AWS"
template: {
    content:
        | string
        | (
            | { text: string; type: "text" }
            | {
                tool_call: { arguments: string; name: string; type: "function" };
                tool_call_id: string;
                type: "tool_call";
            }
            | {
                tool_call_id: string;
                tool_result: | null
                | string
                | number
                | boolean
                | { [key: string]: unknown }
                | unknown[];
                type: "tool_result";
            }
        )[];
    role: | "user"
    | "assistant"
    | "model"
    | "ai"
    | "tool"
    | "system"
    | "developer";
}[]

The template for the prompt version. Currently only chat is supported.

Type declaration

  • content:
        | string
        | (
            | { text: string; type: "text" }
            | {
                tool_call: { arguments: string; name: string; type: "function" };
                tool_call_id: string;
                type: "tool_call";
            }
            | {
                tool_call_id: string;
                tool_result: | null
                | string
                | number
                | boolean
                | { [key: string]: unknown }
                | unknown[];
                type: "tool_result";
            }
        )[]

    Content

  • role: "user" | "assistant" | "model" | "ai" | "tool" | "system" | "developer"

    Role

templateFormat?: "NONE" | "MUSTACHE" | "F_STRING"

The format of the template.

"MUSTACHE"