pub struct HatInfo {
pub name: String,
pub description: String,
pub subscribes_to: Vec<String>,
pub publishes: Vec<String>,
pub instructions: String,
pub event_receivers: HashMap<String, Vec<EventReceiver>>,
pub disallowed_tools: Vec<String>,
}Expand description
Information about a hat for prompt generation.
Fields§
§name: String§description: String§subscribes_to: Vec<String>§publishes: Vec<String>§instructions: String§event_receivers: HashMap<String, Vec<EventReceiver>>Maps each published event to the hats that receive it.
disallowed_tools: Vec<String>Tools the hat is not allowed to use (prompt-level enforcement).
Implementations§
Source§impl HatInfo
impl HatInfo
Sourcepub fn event_publishing_guide(&self) -> Option<String>
pub fn event_publishing_guide(&self) -> Option<String>
Generates an Event Publishing Guide section showing what happens when this hat publishes events.
Returns None if the hat doesn’t publish any events.
Sourcepub fn wave_dispatch_section(&self) -> String
pub fn wave_dispatch_section(&self) -> String
Generates a Wave Dispatch section when downstream hats support parallel execution.
Shows a table of wave-capable topics and usage instructions for ralph wave emit.
Returns empty string if no downstream hats have concurrency > 1.
Auto Trait Implementations§
impl Freeze for HatInfo
impl RefUnwindSafe for HatInfo
impl Send for HatInfo
impl Sync for HatInfo
impl Unpin for HatInfo
impl UnsafeUnpin for HatInfo
impl UnwindSafe for HatInfo
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