langchain.js
    Preparing search index...

    Interface BasePromptTemplateInput<InputVariables, PartialVariableName>

    Input common to all prompt templates.

    interface BasePromptTemplateInput<
        InputVariables extends InputValues = any,
        PartialVariableName extends string = any,
    > {
        inputVariables: Extract<keyof InputVariables, string>[];
        outputParser?: BaseOutputParser<unknown>;
        partialVariables?: PartialValues<PartialVariableName>;
    }

    Type Parameters

    • InputVariables extends InputValues = any
    • PartialVariableName extends string = any

    Hierarchy (View Summary)

    Implemented by

    Index

    Properties

    inputVariables: Extract<keyof InputVariables, string>[]

    A list of variable names the prompt template expects

    outputParser?: BaseOutputParser<unknown>

    How to parse the output of calling an LLM on this formatted prompt

    Partial variables