Struct ai2::prompts::base::PromptChain
source · pub struct PromptChain { /* private fields */ }
Implementations§
source§impl PromptChain
impl PromptChain
pub fn new( args: PromptArguments, templates: Vec<(PromptPriority, Box<dyn PromptTemplate>)> ) -> Self
pub fn generate(&self, truncate: bool) -> Result<(String, usize)>
Auto Trait Implementations§
impl !RefUnwindSafe for PromptChain
impl !Send for PromptChain
impl !Sync for PromptChain
impl Unpin for PromptChain
impl !UnwindSafe for PromptChain
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