pub trait PromptFromatter: Send + Sync {
    // Required methods
    fn template(&self) -> String;
    fn variables(&self) -> Vec<String>;
    fn format(
        &self,
        input_variables: PromptArgs
    ) -> Result<String, Box<dyn Error>>;
}

Required Methods§

source

fn template(&self) -> String

source

fn variables(&self) -> Vec<String>

source

fn format(&self, input_variables: PromptArgs) -> Result<String, Box<dyn Error>>

Implementors§