#[non_exhaustive]pub enum SessionMessage {
SessionMessage(Dispatch),
StopReason(StopReason),
}Expand description
Incoming message from the agent
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
SessionMessage(Dispatch)
Periodic updates with new content, tool requests, etc.
Use MatchDispatch to match on the message type.
StopReason(StopReason)
When a prompt completes, the stop reason.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SessionMessage
impl !RefUnwindSafe for SessionMessage
impl Send for SessionMessage
impl !Sync for SessionMessage
impl Unpin for SessionMessage
impl UnsafeUnpin for SessionMessage
impl !UnwindSafe for SessionMessage
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