pub struct TurnActivity {
pub id: TurnActivityId,
pub correlation_id: TurnActivityId,
pub event: TurnEvent,
}Expand description
App-facing semantic activity emitted during a turn.
id is unique per emitted activity event. correlation_id groups related
events in the same logical activity, such as code start/completion, tool
start/completion, or text deltas from one output block.
Fields§
§id: TurnActivityId§correlation_id: TurnActivityId§event: TurnEventImplementations§
Source§impl TurnActivity
impl TurnActivity
pub fn new(correlation_id: TurnActivityId, event: TurnEvent) -> Self
pub fn independent(event: TurnEvent) -> Self
Trait Implementations§
Source§impl Clone for TurnActivity
impl Clone for TurnActivity
Source§fn clone(&self) -> TurnActivity
fn clone(&self) -> TurnActivity
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 TurnActivity
impl Debug for TurnActivity
Source§impl<'de> Deserialize<'de> for TurnActivity
impl<'de> Deserialize<'de> for TurnActivity
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 TurnActivity
impl RefUnwindSafe for TurnActivity
impl Send for TurnActivity
impl Sync for TurnActivity
impl Unpin for TurnActivity
impl UnsafeUnpin for TurnActivity
impl UnwindSafe for TurnActivity
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