pub struct InstructionBuilder { /* private fields */ }Expand description
Builds instructions for custom hats.
Uses ghuntley methodology: numbered phases, specific verbs (“study”), subagent limits (parallel for reads, single for builds).
Implementations§
Source§impl InstructionBuilder
impl InstructionBuilder
Sourcepub fn new(core: CoreConfig) -> Self
pub fn new(core: CoreConfig) -> Self
Creates a new instruction builder with core configuration.
Sourcepub fn with_events(
core: CoreConfig,
events: HashMap<String, EventMetadata>,
) -> Self
pub fn with_events( core: CoreConfig, events: HashMap<String, EventMetadata>, ) -> Self
Creates a new instruction builder with event metadata for custom hats.
Sourcepub fn build_custom_hat(&self, hat: &Hat, events_context: &str) -> String
pub fn build_custom_hat(&self, hat: &Hat, events_context: &str) -> String
Builds custom hat instructions for extended multi-agent configurations.
Use this for hats beyond the default Ralph. When instructions are empty, derives them from the pub/sub contract.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for InstructionBuilder
impl RefUnwindSafe for InstructionBuilder
impl Send for InstructionBuilder
impl Sync for InstructionBuilder
impl Unpin for InstructionBuilder
impl UnsafeUnpin for InstructionBuilder
impl UnwindSafe for InstructionBuilder
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