pub enum SessionOp {
Submit {
message: String,
},
PreviewRequest {
message: String,
},
SetSkillContext {
name: Option<String>,
content: Option<String>,
},
Interrupt,
Shutdown,
}Expand description
Commands sent to the session actor via the bounded SQ.
Variants§
Submit
Submit a user message for the agent to process.
PreviewRequest
Build a provider request preview for diagnostics without calling the provider.
SetSkillContext
Replace the model-visible activated Skill context.
The CLI/runtime layer is responsible for validating paths and budgets before sending this operation. The session actor only updates prompt state and invalidates the agent’s stable prompt prefix.
Fields
Interrupt
Interrupt the current turn.
Shutdown
Shut down the session actor.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SessionOp
impl<'de> Deserialize<'de> for SessionOp
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 SessionOp
impl RefUnwindSafe for SessionOp
impl Send for SessionOp
impl Sync for SessionOp
impl Unpin for SessionOp
impl UnsafeUnpin for SessionOp
impl UnwindSafe for SessionOp
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