pub struct SessionMessageDelta {
pub session_id: String,
pub message_id: String,
pub content_append: Option<String>,
pub parts_append: Option<Vec<ContentPart>>,
pub parts_update: Option<Vec<PartsUpdate>>,
pub tool_state_update: Option<ToolState>,
pub timestamp: String,
}Expand description
Incremental update applied to an existing SessionMessage by message_id.
content_append— concatenate tocontent.parts_append/parts_update— extend or replace entries inparts.tool_state_update— replacetool.statewholesale; do NOT merge fields.
Fields§
§session_id: String§message_id: String§content_append: Option<String>§parts_append: Option<Vec<ContentPart>>§parts_update: Option<Vec<PartsUpdate>>§tool_state_update: Option<ToolState>§timestamp: StringTrait Implementations§
Source§impl Clone for SessionMessageDelta
impl Clone for SessionMessageDelta
Source§fn clone(&self) -> SessionMessageDelta
fn clone(&self) -> SessionMessageDelta
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 SessionMessageDelta
impl Debug for SessionMessageDelta
Source§impl<'de> Deserialize<'de> for SessionMessageDelta
impl<'de> Deserialize<'de> for SessionMessageDelta
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
Auto Trait Implementations§
impl Freeze for SessionMessageDelta
impl RefUnwindSafe for SessionMessageDelta
impl Send for SessionMessageDelta
impl Sync for SessionMessageDelta
impl Unpin for SessionMessageDelta
impl UnsafeUnpin for SessionMessageDelta
impl UnwindSafe for SessionMessageDelta
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