Struct langchain_rust::prompt::PromptTemplate
source · pub struct PromptTemplate { /* private fields */ }
Implementations§
Trait Implementations§
source§impl Clone for PromptTemplate
impl Clone for PromptTemplate
source§fn clone(&self) -> PromptTemplate
fn clone(&self) -> PromptTemplate
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl FormatPrompter for PromptTemplate
impl FormatPrompter for PromptTemplate
fn format_prompt( &self, input_variables: PromptArgs ) -> Result<PromptValue, PromptError>
fn get_input_variables(&self) -> Vec<String>
source§impl PromptFromatter for PromptTemplate
impl PromptFromatter for PromptTemplate
Auto Trait Implementations§
impl Freeze for PromptTemplate
impl RefUnwindSafe for PromptTemplate
impl Send for PromptTemplate
impl Sync for PromptTemplate
impl Unpin for PromptTemplate
impl UnwindSafe for PromptTemplate
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more