pub struct SystemPromptRenderer { /* private fields */ }Implementations§
Source§impl SystemPromptRenderer
impl SystemPromptRenderer
pub fn new(cache: Arc<PromptCache>) -> Self
pub fn render(&self, input: SystemPromptInput) -> RenderedPrompt
Trait Implementations§
Source§impl Clone for SystemPromptRenderer
impl Clone for SystemPromptRenderer
Source§fn clone(&self) -> SystemPromptRenderer
fn clone(&self) -> SystemPromptRenderer
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SystemPromptRenderer
impl RefUnwindSafe for SystemPromptRenderer
impl Send for SystemPromptRenderer
impl Sync for SystemPromptRenderer
impl Unpin for SystemPromptRenderer
impl UnsafeUnpin for SystemPromptRenderer
impl UnwindSafe for SystemPromptRenderer
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