pub struct ActiveTurn {
pub id: String,
pub user_message: UserMessage,
pub response_parts: Vec<ResponsePart>,
pub usage: Option<UsageInfo>,
}Expand description
An in-progress turn — the assistant is actively streaming.
Fields§
§id: StringTurn identifier
user_message: UserMessageThe user’s input
response_parts: Vec<ResponsePart>All response content in stream order: text, tool calls, reasoning, and content refs.
Tool call parts include pendingPermissions when permissions are awaiting user approval.
usage: Option<UsageInfo>Token usage info
Trait Implementations§
Source§impl Clone for ActiveTurn
impl Clone for ActiveTurn
Source§fn clone(&self) -> ActiveTurn
fn clone(&self) -> ActiveTurn
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 ActiveTurn
impl Debug for ActiveTurn
Source§impl<'de> Deserialize<'de> for ActiveTurn
impl<'de> Deserialize<'de> for ActiveTurn
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 PartialEq for ActiveTurn
impl PartialEq for ActiveTurn
Source§fn eq(&self, other: &ActiveTurn) -> bool
fn eq(&self, other: &ActiveTurn) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ActiveTurn
impl Serialize for ActiveTurn
impl StructuralPartialEq for ActiveTurn
Auto Trait Implementations§
impl Freeze for ActiveTurn
impl RefUnwindSafe for ActiveTurn
impl Send for ActiveTurn
impl Sync for ActiveTurn
impl Unpin for ActiveTurn
impl UnsafeUnpin for ActiveTurn
impl UnwindSafe for ActiveTurn
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