Trait langchain_rust::prompt::PromptFromatter
source · 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>>;
}