langchain.js
    Preparing search index...

    Abstract class that defines the interface for selecting a prompt for a given language model.

    Hierarchy (View Summary)

    Index

    Constructors

    Methods

    • Abstract method that must be implemented by any class that extends BasePromptSelector. It takes a language model as an argument and returns a prompt template.

      Parameters

      Returns BasePromptTemplate

      A prompt template.