pub struct SystemPromptGenerator { /* private fields */ }Implementations§
Source§impl SystemPromptGenerator
impl SystemPromptGenerator
Sourcepub fn with_background(self, background: Vec<String>) -> Self
pub fn with_background(self, background: Vec<String>) -> Self
Set the background for the system prompt.
Sourcepub fn with_steps(self, steps: Vec<String>) -> Self
pub fn with_steps(self, steps: Vec<String>) -> Self
Set the steps for the system prompt.
Sourcepub fn with_output_instructions(self, output_instructions: Vec<String>) -> Self
pub fn with_output_instructions(self, output_instructions: Vec<String>) -> Self
Set the output instructions for the system prompt.
Trait Implementations§
Source§impl Default for SystemPromptGenerator
impl Default for SystemPromptGenerator
Source§fn default() -> SystemPromptGenerator
fn default() -> SystemPromptGenerator
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SystemPromptGenerator
impl !RefUnwindSafe for SystemPromptGenerator
impl Send for SystemPromptGenerator
impl !Sync for SystemPromptGenerator
impl Unpin for SystemPromptGenerator
impl UnsafeUnpin for SystemPromptGenerator
impl !UnwindSafe for SystemPromptGenerator
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