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§
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