Type alias SerializedPromptTemplate

SerializedPromptTemplate: {
    input_variables: string[];
    template?: MessageContent;
    template_format?: TemplateFormat;
}

Represents a serialized version of a prompt template. This type is used to create dynamic prompts for language models. It contains an optional _type field which, if present, is set to 'prompt'. It also includes input_variables, an array of strings representing the variables to be used in the prompt, an optional template_format specifying the format of the template, and an optional template which is the actual template string.

Type declaration

Generated using TypeDoc