pub struct TextMessageContentEvent {
pub base: BaseEvent,
pub message_id: MessageId,
pub delta: String,
pub subagent_run_id: Option<SubagentRunId>,
}Expand description
Appends a chunk of text to an open message.
Fields§
§base: BaseEventTimestamp and raw provider event.
message_id: MessageIdThe message being appended to.
delta: StringThe text to append.
subagent_run_id: Option<SubagentRunId>The subagent that produced this event; absent means the parent agent.
A JSON null is rejected — see crate::event::subagent.
Implementations§
Trait Implementations§
Source§impl Clone for TextMessageContentEvent
impl Clone for TextMessageContentEvent
Source§fn clone(&self) -> TextMessageContentEvent
fn clone(&self) -> TextMessageContentEvent
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 ComposeSchema for TextMessageContentEvent
impl ComposeSchema for TextMessageContentEvent
Source§impl Debug for TextMessageContentEvent
impl Debug for TextMessageContentEvent
Source§impl Default for TextMessageContentEvent
impl Default for TextMessageContentEvent
Source§fn default() -> TextMessageContentEvent
fn default() -> TextMessageContentEvent
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TextMessageContentEvent
impl<'de> Deserialize<'de> for TextMessageContentEvent
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 From<TextMessageContentEvent> for Event
impl From<TextMessageContentEvent> for Event
Source§fn from(payload: TextMessageContentEvent) -> Self
fn from(payload: TextMessageContentEvent) -> Self
Converts to this type from the input type.
Source§impl JsonSchema for TextMessageContentEvent
impl JsonSchema for TextMessageContentEvent
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for TextMessageContentEvent
impl PartialEq for TextMessageContentEvent
Source§fn eq(&self, other: &TextMessageContentEvent) -> bool
fn eq(&self, other: &TextMessageContentEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TextMessageContentEvent
impl Serialize for TextMessageContentEvent
impl StructuralPartialEq for TextMessageContentEvent
Auto Trait Implementations§
impl Freeze for TextMessageContentEvent
impl RefUnwindSafe for TextMessageContentEvent
impl Send for TextMessageContentEvent
impl Sync for TextMessageContentEvent
impl Unpin for TextMessageContentEvent
impl UnsafeUnpin for TextMessageContentEvent
impl UnwindSafe for TextMessageContentEvent
Blanket Implementations§
impl<T> AgentState for T
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