Ask a question to get started
Enter to send•Shift+Enter new line
class ConditionalPromptSelector
BasePromptSelector
Abstract method that must be implemented by any class that extends
Asynchronous version of getPrompt that also accepts an options object
getPrompt
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.
Asynchronous version of getPrompt that also accepts an options object for partial variables.
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.