Trait FormatPrompter

Source
pub trait FormatPrompter: Send + Sync {
    // Required methods
    fn format_prompt(
        &self,
        input_variables: PromptArgs,
    ) -> Result<PromptValue, PromptError>;
    fn get_input_variables(&self) -> Vec<String>;
}

Required Methods§

Trait Implementations§

Source§

impl<FP> From<FP> for Box<dyn FormatPrompter>
where FP: FormatPrompter + 'static,

Source§

fn from(prompt: FP) -> Self

Converts to this type from the input type.

Implementors§