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

Required Methods§

source

fn template(&self) -> String

source

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

source

fn format(&self, input_variables: PromptArgs) -> Result<String, PromptError>

Implementors§