pub struct CustomPromptStrategy {
pub blocks: Vec<PromptBlockDef>,
}Expand description
User-defined strategy with custom block definitions.
Fields§
§blocks: Vec<PromptBlockDef>Trait Implementations§
Source§impl SystemPromptStrategy for CustomPromptStrategy
impl SystemPromptStrategy for CustomPromptStrategy
Source§fn block_defs(&self) -> &[PromptBlockDef]
fn block_defs(&self) -> &[PromptBlockDef]
Return block definitions (structure only, no content).
Auto Trait Implementations§
impl Freeze for CustomPromptStrategy
impl RefUnwindSafe for CustomPromptStrategy
impl Send for CustomPromptStrategy
impl Sync for CustomPromptStrategy
impl Unpin for CustomPromptStrategy
impl UnsafeUnpin for CustomPromptStrategy
impl UnwindSafe for CustomPromptStrategy
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