pub enum EventFrame {
Show 21 variants
ResponseStart {
response_id: String,
},
ResponseDelta {
response_id: String,
delta: String,
},
ResponseEnd {
response_id: String,
},
ToolCallStart {
response_id: String,
tool_name: String,
arguments: Value,
},
ToolCallResult {
response_id: String,
tool_name: String,
output: Value,
},
McpStartupUpdate {
update: McpStartupUpdateEvent,
},
McpStartupComplete {
summary: McpStartupCompleteEvent,
},
McpToolCallBegin {
server_name: String,
tool_name: String,
},
McpToolCallEnd {
server_name: String,
tool_name: String,
ok: bool,
},
ExecApprovalRequest {
request: ExecApprovalRequestEvent,
},
ApplyPatchApprovalRequest {
request: ExecApprovalRequestEvent,
},
ElicitationRequest {
server_name: String,
request_id: String,
prompt: String,
},
ExecCommandBegin {
command: String,
cwd: String,
},
ExecCommandOutputDelta {
command: String,
delta: String,
},
ExecCommandEnd {
command: String,
exit_code: i32,
},
PatchApplyBegin {
path: String,
},
PatchApplyEnd {
path: String,
ok: bool,
},
TurnStarted {
turn_id: String,
},
TurnComplete {
turn_id: String,
},
TurnAborted {
turn_id: String,
reason: String,
},
Error {
response_id: String,
message: String,
},
}Variants§
ResponseStart
ResponseDelta
ResponseEnd
ToolCallStart
ToolCallResult
McpStartupUpdate
Fields
§
update: McpStartupUpdateEventMcpStartupComplete
Fields
§
summary: McpStartupCompleteEventMcpToolCallBegin
McpToolCallEnd
ExecApprovalRequest
Fields
§
request: ExecApprovalRequestEventApplyPatchApprovalRequest
Fields
§
request: ExecApprovalRequestEventElicitationRequest
ExecCommandBegin
ExecCommandOutputDelta
ExecCommandEnd
PatchApplyBegin
PatchApplyEnd
TurnStarted
TurnComplete
TurnAborted
Error
Trait Implementations§
Source§impl Clone for EventFrame
impl Clone for EventFrame
Source§fn clone(&self) -> EventFrame
fn clone(&self) -> EventFrame
Returns a duplicate of the value. Read more
1.0.0 · 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 EventFrame
impl Debug for EventFrame
Source§impl<'de> Deserialize<'de> for EventFrame
impl<'de> Deserialize<'de> for EventFrame
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 EventFrame
impl RefUnwindSafe for EventFrame
impl Send for EventFrame
impl Sync for EventFrame
impl Unpin for EventFrame
impl UnsafeUnpin for EventFrame
impl UnwindSafe for EventFrame
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