Type alias SerializedPromptTemplate

SerializedPromptTemplate: {
    input_variables: string[];
    _type?: "prompt";
    template?: string;
    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

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

Generated using TypeDoc