pub struct EventActions {
pub state_delta: HashMap<String, Value>,
pub persist_conversation: bool,
pub compact_memory: bool,
pub demote_memory: bool,
pub request_approval: Option<ApprovalRequest>,
pub emit_progress: Option<ProgressEvent>,
pub notify_user: Option<String>,
pub write_trace: Option<String>,
}Expand description
Side-effect declarations associated with an event.
Hooks and the runtime use these to express “what should happen next” without directly performing I/O. This keeps the event system compatible with sans-IO state machines.
Fields§
§state_delta: HashMap<String, Value>State changes to apply to the session.
persist_conversation: boolPersist the current conversation to storage.
compact_memory: boolRequest memory compaction.
demote_memory: boolRequest memory demotion.
request_approval: Option<ApprovalRequest>Request tool approval.
emit_progress: Option<ProgressEvent>Emit a progress event.
notify_user: Option<String>Notify the user (e.g., via push notification).
write_trace: Option<String>Write a trace event.
Implementations§
Source§impl EventActions
impl EventActions
Trait Implementations§
Source§impl Clone for EventActions
impl Clone for EventActions
Source§fn clone(&self) -> EventActions
fn clone(&self) -> EventActions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EventActions
impl Debug for EventActions
Source§impl Default for EventActions
impl Default for EventActions
Source§fn default() -> EventActions
fn default() -> EventActions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EventActions
impl<'de> Deserialize<'de> for EventActions
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for EventActions
impl RefUnwindSafe for EventActions
impl Send for EventActions
impl Sync for EventActions
impl Unpin for EventActions
impl UnsafeUnpin for EventActions
impl UnwindSafe for EventActions
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