Trait langchain_rust::prompt::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§