pub struct PromptBuilder { /* private fields */ }Expand description
Builder for creating prompt orchestrators
Implementations§
Source§impl PromptBuilder
impl PromptBuilder
pub fn new<P: Into<PathBuf>>(working_dir: P) -> Self
pub fn profile(self, profile: PromptProfile) -> Self
pub fn add_section(self, section: PromptSection) -> Self
pub fn add_static(self, name: impl Into<String>, content: &'static str) -> Self
pub fn add_dynamic<F>(self, name: impl Into<String>, compute: F) -> Self
pub fn no_boundary(self) -> Self
pub fn no_context(self) -> Self
pub fn build(self) -> PromptOrchestrator
Auto Trait Implementations§
impl Freeze for PromptBuilder
impl !RefUnwindSafe for PromptBuilder
impl Send for PromptBuilder
impl Sync for PromptBuilder
impl Unpin for PromptBuilder
impl UnsafeUnpin for PromptBuilder
impl !UnwindSafe for PromptBuilder
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