Class BasePromptSelectorAbstract

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

Hierarchy

Constructors

Methods

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<any, BasePromptValueInterface, any>

    A prompt template.

  • Asynchronous version of getPrompt that also accepts an options object for partial variables.

    Parameters

    Returns Promise<BasePromptTemplate<any, BasePromptValueInterface, any>>

    A Promise that resolves to a prompt template.

Generated using TypeDoc