pub enum EventFrame {
Show 24 variants
ResponseStart {
response_id: String,
},
ResponseDelta {
response_id: String,
delta: String,
channel: ResponseChannel,
},
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,
},
UserInputRequest {
request: UserInputRequestEvent,
},
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,
},
ThreadGoalUpdated {
goal: ThreadGoal,
},
ThreadGoalCleared {
thread_id: String,
},
Error {
response_id: String,
message: String,
},
}Expand description
A single streaming event frame emitted during agent execution.
Events are tagged by the event field and cover the full lifecycle of a
turn: response streaming, tool calls, MCP lifecycle, command execution,
patch application, approvals, and errors.
Variants§
ResponseStart
A new model response has started.
ResponseDelta
A incremental text delta for an in-progress response.
ResponseEnd
The model response has finished.
ToolCallStart
A tool call has begun.
ToolCallResult
A tool call has completed and produced a result.
McpStartupUpdate
Progress update for an MCP server starting up.
Fields
update: McpStartupUpdateEventMcpStartupComplete
All MCP servers have finished starting.
Fields
summary: McpStartupCompleteEventMcpToolCallBegin
An MCP tool call has begun.
McpToolCallEnd
An MCP tool call has finished.
ExecApprovalRequest
User approval is needed for a command execution.
Fields
request: ExecApprovalRequestEventApplyPatchApprovalRequest
User approval is needed for applying a patch.
Fields
request: ExecApprovalRequestEventUserInputRequest
A model tool is requesting structured clarification input from the user.
Headless sibling of the TUI’s request_user_input modal flow.
request_id correlates with an AppRequest::SubmitUserInput reply.
Fields
request: UserInputRequestEventElicitationRequest
An MCP server is requesting user input (elicitation).
ExecCommandBegin
A command has started executing.
ExecCommandOutputDelta
Incremental output from a running command.
ExecCommandEnd
A command has finished executing.
PatchApplyBegin
A patch has started being applied to a file.
PatchApplyEnd
A patch has finished being applied.
TurnStarted
A new turn has started within a thread.
TurnComplete
A turn has completed successfully.
TurnAborted
A turn was aborted before completion.
ThreadGoalUpdated
A thread goal was set or updated.
Fields
goal: ThreadGoalThreadGoalCleared
A thread goal was cleared.
Error
An error occurred during processing.
Trait Implementations§
Source§impl Clone for EventFrame
impl Clone for EventFrame
Source§fn clone(&self) -> EventFrame
fn clone(&self) -> EventFrame
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more