pub struct ActivityDeltaEvent {
pub base: BaseEvent,
pub message_id: MessageId,
pub activity_type: String,
pub patch: Vec<PatchOperation>,
pub subagent_run_id: Option<SubagentRunId>,
}Expand description
Mutates an activity’s content with a JSON Patch document.
Fields§
§base: BaseEventTimestamp and raw provider event.
message_id: MessageIdThe activity message being patched.
activity_type: StringClient-defined activity discriminator.
patch: Vec<PatchOperation>RFC 6902 operations, applied in order to the activity content.
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 ActivityDeltaEvent
impl Clone for ActivityDeltaEvent
Source§fn clone(&self) -> ActivityDeltaEvent
fn clone(&self) -> ActivityDeltaEvent
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 ActivityDeltaEvent
impl ComposeSchema for ActivityDeltaEvent
Source§impl Debug for ActivityDeltaEvent
impl Debug for ActivityDeltaEvent
Source§impl Default for ActivityDeltaEvent
impl Default for ActivityDeltaEvent
Source§fn default() -> ActivityDeltaEvent
fn default() -> ActivityDeltaEvent
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ActivityDeltaEvent
impl<'de> Deserialize<'de> for ActivityDeltaEvent
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<ActivityDeltaEvent> for Event
impl From<ActivityDeltaEvent> for Event
Source§fn from(payload: ActivityDeltaEvent) -> Self
fn from(payload: ActivityDeltaEvent) -> Self
Converts to this type from the input type.
Source§impl JsonSchema for ActivityDeltaEvent
impl JsonSchema for ActivityDeltaEvent
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 ActivityDeltaEvent
impl PartialEq for ActivityDeltaEvent
Source§fn eq(&self, other: &ActivityDeltaEvent) -> bool
fn eq(&self, other: &ActivityDeltaEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ActivityDeltaEvent
impl Serialize for ActivityDeltaEvent
impl StructuralPartialEq for ActivityDeltaEvent
Auto Trait Implementations§
impl Freeze for ActivityDeltaEvent
impl RefUnwindSafe for ActivityDeltaEvent
impl Send for ActivityDeltaEvent
impl Sync for ActivityDeltaEvent
impl Unpin for ActivityDeltaEvent
impl UnsafeUnpin for ActivityDeltaEvent
impl UnwindSafe for ActivityDeltaEvent
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