pub struct Turn {
pub items: Vec<ThreadItem>,
pub final_response: String,
pub usage: Option<Usage>,
}Expand description
Completed turn.
Fields§
§items: Vec<ThreadItem>Completed items emitted during the turn.
final_response: StringFinal assistant response text from the latest agent_message item.
usage: Option<Usage>Token usage when reported by the CLI.
Trait Implementations§
impl StructuralPartialEq for Turn
Auto Trait Implementations§
impl Freeze for Turn
impl RefUnwindSafe for Turn
impl Send for Turn
impl Sync for Turn
impl Unpin for Turn
impl UnsafeUnpin for Turn
impl UnwindSafe for Turn
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