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

Constructors

Properties

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

Methods

Generated using TypeDoc