pub enum PluginRequest {
Init {
ctx: SessionCtx,
},
Hook {
req: HookReq,
},
ToolCall {
call: ToolCallReq,
},
CancelToolCall {
tool_call_id: String,
},
SessionStart {
ctx: SessionCtx,
},
Idle,
}Variants§
Init
Fields
§
ctx: SessionCtxHook
ToolCall
Fields
§
call: ToolCallReqCancelToolCall
SessionStart
Fields
§
ctx: SessionCtxIdle
Trait Implementations§
Source§impl Debug for PluginRequest
impl Debug for PluginRequest
Source§impl<'de> Deserialize<'de> for PluginRequest
impl<'de> Deserialize<'de> for PluginRequest
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 PluginRequest
impl RefUnwindSafe for PluginRequest
impl Send for PluginRequest
impl Sync for PluginRequest
impl Unpin for PluginRequest
impl UnsafeUnpin for PluginRequest
impl UnwindSafe for PluginRequest
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