pub enum SignalEvent {
SwitchMode {
mode: AgentMode,
},
Question {
question: String,
answers: Vec<String>,
},
AutoCompact {
focus: String,
},
InvokeSkill {
skill_name: String,
},
}Expand description
Events emitted by signal-category tools that the caller must interpret. These tools return a result string, but the caller should parse these into structured events for proper handling (e.g., prompting the user, switching mode, triggering compaction).
Variants§
SwitchMode
The model requests a mode switch.
Question
The model asks the user a question with options.
AutoCompact
The model requests conversation compaction.
InvokeSkill
The model requests invocation of a skill by name.
Trait Implementations§
Source§impl Clone for SignalEvent
impl Clone for SignalEvent
Auto Trait Implementations§
impl Forget for SignalEvent
impl Freeze for SignalEvent
impl RefUnwindSafe for SignalEvent
impl Send for SignalEvent
impl Sync for SignalEvent
impl Unpin for SignalEvent
impl UnsafeUnpin for SignalEvent
impl UnwindSafe for SignalEvent
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