pub struct PendingMessage {
pub id: String,
pub message: Message,
}Expand description
A message queued for future delivery to the agent.
Steering messages are injected into the current turn mid-flight. Queued messages are automatically started as new turns after the current turn naturally finishes.
Fields§
§id: StringUnique identifier for this pending message
message: MessageThe message that will start the next turn
Trait Implementations§
Source§impl Clone for PendingMessage
impl Clone for PendingMessage
Source§fn clone(&self) -> PendingMessage
fn clone(&self) -> PendingMessage
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 moreSource§impl Debug for PendingMessage
impl Debug for PendingMessage
Source§impl<'de> Deserialize<'de> for PendingMessage
impl<'de> Deserialize<'de> for PendingMessage
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PendingMessage
impl PartialEq for PendingMessage
Source§fn eq(&self, other: &PendingMessage) -> bool
fn eq(&self, other: &PendingMessage) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PendingMessage
impl Serialize for PendingMessage
impl StructuralPartialEq for PendingMessage
Auto Trait Implementations§
impl Freeze for PendingMessage
impl RefUnwindSafe for PendingMessage
impl Send for PendingMessage
impl Sync for PendingMessage
impl Unpin for PendingMessage
impl UnsafeUnpin for PendingMessage
impl UnwindSafe for PendingMessage
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