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§
fn format_prompt( &self, input_variables: PromptArgs, ) -> Result<PromptValue, PromptError>
fn get_input_variables(&self) -> Vec<String>
Trait Implementations§
Source§impl<FP> From<FP> for Box<dyn FormatPrompter>where
FP: FormatPrompter + 'static,
impl<FP> From<FP> for Box<dyn FormatPrompter>where
FP: FormatPrompter + 'static,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".