Type alias SerializedPromptTemplate
SerializedPromptTemplate: { input_variables: string[]; _type?: "prompt"; template?: string; template_format?: TemplateFormat; }
Type declaration
-
input_variables: string[]
-
Optional _type?: "prompt"
-
Optional template?: string
-
Represents a serialized version of a prompt template. This type is used to create dynamic prompts for language models. It contains an optional
_typefield which, if present, is set to 'prompt'. It also includesinput_variables, an array of strings representing the variables to be used in the prompt, an optionaltemplate_formatspecifying the format of the template, and an optionaltemplatewhich is the actual template string.