pub enum FrontendMessage {
UserInput(String),
Cancel,
ConfirmationResponse {
tool_call_id: String,
approved: bool,
},
}Expand description
Messages sent from Frontend to Agent.
Variants§
UserInput(String)
User typed a new message.
Cancel
User wants to cancel the current operation.
ConfirmationResponse
User responded to a tool confirmation request.
Trait Implementations§
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