langchain.js
    Preparing search index...

    Concrete implementation of BasePromptSelector that selects a prompt based on a set of conditions. It has a default prompt that it returns if none of the conditions are met.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    conditionals: [
        condition: (llm: BaseLanguageModelInterface) => boolean,
        prompt: BasePromptTemplate<any, BasePromptValueInterface, any>,
    ][]
    defaultPrompt: BasePromptTemplate

    Methods