pub struct SystemNotificationResponsePart {
pub content: StringOrMarkdown,
pub meta: Option<JsonObject>,
}Expand description
A system notification surfaced as part of the response stream.
System notifications are messages authored by the agent harness that need to be visible to both the agent (for situational awareness) and the user (for transcript continuity). Examples include “background subagent X completed” or “task Y was cancelled”.
Fields§
§content: StringOrMarkdownThe text of the system notification
meta: Option<JsonObject>Additional provider-specific metadata for this notification.
A host MAY attach a machine-readable descriptor of what triggered the
notification so clients can categorize, icon, group, filter, or localize
it without parsing content. Clients MAY look for well-known keys here to
provide enhanced UI, and MUST render coherently from content alone when
_meta is absent or unrecognized.
Trait Implementations§
Source§impl Clone for SystemNotificationResponsePart
impl Clone for SystemNotificationResponsePart
Source§fn clone(&self) -> SystemNotificationResponsePart
fn clone(&self) -> SystemNotificationResponsePart
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<'de> Deserialize<'de> for SystemNotificationResponsePart
impl<'de> Deserialize<'de> for SystemNotificationResponsePart
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
impl StructuralPartialEq for SystemNotificationResponsePart
Auto Trait Implementations§
impl Freeze for SystemNotificationResponsePart
impl RefUnwindSafe for SystemNotificationResponsePart
impl Send for SystemNotificationResponsePart
impl Sync for SystemNotificationResponsePart
impl Unpin for SystemNotificationResponsePart
impl UnsafeUnpin for SystemNotificationResponsePart
impl UnwindSafe for SystemNotificationResponsePart
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