pub struct SystemPromptProcessor { /* private fields */ }Expand description
Prepends the routed target’s system prompt to the outbound request.
Implementations§
Source§impl SystemPromptProcessor
impl SystemPromptProcessor
Sourcepub fn new(prompts: TargetPrompts) -> Self
pub fn new(prompts: TargetPrompts) -> Self
Hand each target the prompt configured for it.
Auto Trait Implementations§
impl Freeze for SystemPromptProcessor
impl RefUnwindSafe for SystemPromptProcessor
impl Send for SystemPromptProcessor
impl Sync for SystemPromptProcessor
impl Unpin for SystemPromptProcessor
impl UnsafeUnpin for SystemPromptProcessor
impl UnwindSafe for SystemPromptProcessor
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