pub struct SystemPromptBuilder { /* private fields */ }Implementations§
Source§impl SystemPromptBuilder
impl SystemPromptBuilder
pub fn new(profile: PromptProfile) -> Self
pub fn push_section( &mut self, title: impl Into<String>, body: impl Into<String>, )
pub fn with_section( self, title: impl Into<String>, body: impl Into<String>, ) -> Self
pub fn push_context(&mut self, context: PromptContext)
pub fn with_context(self, context: PromptContext) -> Self
pub fn push_available_skills(&mut self, body: impl Into<String>)
pub fn with_available_skills(self, body: impl Into<String>) -> Self
pub fn build(&self) -> String
Trait Implementations§
Source§impl Clone for SystemPromptBuilder
impl Clone for SystemPromptBuilder
Source§fn clone(&self) -> SystemPromptBuilder
fn clone(&self) -> SystemPromptBuilder
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 SystemPromptBuilder
impl RefUnwindSafe for SystemPromptBuilder
impl Send for SystemPromptBuilder
impl Sync for SystemPromptBuilder
impl Unpin for SystemPromptBuilder
impl UnsafeUnpin for SystemPromptBuilder
impl UnwindSafe for SystemPromptBuilder
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