pub enum OutboundMessage {
TextDelta {
session_id: Uuid,
text: String,
},
AgentEvent {
session_id: Uuid,
event: AgentEvent,
},
InputNeeded {
session_id: Uuid,
interaction_id: Uuid,
},
ApprovalNeeded {
session_id: Uuid,
interaction_id: Uuid,
tool_calls: Value,
},
QuestionNeeded {
session_id: Uuid,
interaction_id: Uuid,
request: QuestionRequest,
},
ChatFinal {
session_id: Uuid,
result: String,
},
ChatError {
session_id: Uuid,
error: String,
},
RawFrame(WsFrame),
}Expand description
Messages sent from bridge to the WS handler for forwarding to the client.
Variants§
TextDelta
Streaming text chunk from the agent.
AgentEvent
Forwarded AgentEvent for the client.
InputNeeded
Interactive input requested from the client.
Fields
ApprovalNeeded
Human-in-the-loop approval requested for one or more tool calls.
Fields
QuestionNeeded
Structured agent question requested from the client.
Fields
§
request: QuestionRequestThe question payload (questions, options, etc.).
ChatFinal
Agent run completed successfully.
ChatError
Agent run failed with an error.
RawFrame(WsFrame)
Pre-built WS frame (e.g., method responses) to send as-is.
Trait Implementations§
Source§impl Clone for OutboundMessage
impl Clone for OutboundMessage
Source§fn clone(&self) -> OutboundMessage
fn clone(&self) -> OutboundMessage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for OutboundMessage
impl RefUnwindSafe for OutboundMessage
impl Send for OutboundMessage
impl Sync for OutboundMessage
impl Unpin for OutboundMessage
impl UnsafeUnpin for OutboundMessage
impl UnwindSafe for OutboundMessage
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