pub enum BridgeEvent {
TextChunk {
text: String,
},
ToolUse {
name: String,
},
ToolResult {
name: String,
output: String,
is_read: bool,
},
PermissionRequest {
tool: ToolCallInfo,
options: Vec<PermissionOption>,
reply: Sender<PermissionOutcome>,
},
SessionCreated {
session_id: String,
},
PromptDone {
stop_reason: String,
},
Error {
message: String,
},
AgentExited {
code: Option<i32>,
},
}Variants§
TextChunk
ToolUse
ToolResult
Emitted when a tool call completes and returns output.
is_read is true when the tool’s kind is ToolKind::Read (file read).
PermissionRequest
SessionCreated
PromptDone
Error
AgentExited
Auto Trait Implementations§
impl Freeze for BridgeEvent
impl !RefUnwindSafe for BridgeEvent
impl Send for BridgeEvent
impl Sync for BridgeEvent
impl Unpin for BridgeEvent
impl UnsafeUnpin for BridgeEvent
impl !UnwindSafe for BridgeEvent
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