langchain.js
    Preparing search index...

    Type Alias SerializedPromptTemplate

    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 SerializedPromptTemplate = {
        _type?: "prompt";
        input_variables: string[];
        template?: MessageContent;
        template_format?: TemplateFormat;
    }
    Index

    Properties

    _type?: "prompt"
    input_variables: string[]
    template?: MessageContent
    template_format?: TemplateFormat