pub enum FrontendMessage {
UserInput {
text: String,
attachments: Vec<MediaAttachment>,
},
Cancel,
ConfirmationResponse {
tool_call_id: String,
approved: bool,
},
}Expand description
Messages sent from Frontend to Agent.
Variants§
UserInput
User typed a new message with optional media attachments.
Cancel
User wants to cancel the current operation.
ConfirmationResponse
User responded to a tool confirmation request.
Trait Implementations§
Source§impl Debug for FrontendMessage
impl Debug for FrontendMessage
Source§impl From<&str> for FrontendMessage
impl From<&str> for FrontendMessage
Auto Trait Implementations§
impl Freeze for FrontendMessage
impl RefUnwindSafe for FrontendMessage
impl Send for FrontendMessage
impl Sync for FrontendMessage
impl Unpin for FrontendMessage
impl UnsafeUnpin for FrontendMessage
impl UnwindSafe for FrontendMessage
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