pub struct CompletedTurn {
pub thread_id: String,
pub turn_id: String,
pub answer: String,
pub usage: Option<TokenUsage>,
}Expand description
Successful terminal state of one Codex turn.
Fields§
§thread_id: StringCodex thread identifier used for continuation.
turn_id: StringCodex turn identifier.
answer: StringTerminal assistant text. It may be empty after a control tool call.
usage: Option<TokenUsage>Latest provider token accounting, when reported.
Trait Implementations§
Source§impl Clone for CompletedTurn
impl Clone for CompletedTurn
Source§fn clone(&self) -> CompletedTurn
fn clone(&self) -> CompletedTurn
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 CompletedTurn
impl Debug for CompletedTurn
impl Eq for CompletedTurn
Source§impl PartialEq for CompletedTurn
impl PartialEq for CompletedTurn
impl StructuralPartialEq for CompletedTurn
Auto Trait Implementations§
impl Freeze for CompletedTurn
impl RefUnwindSafe for CompletedTurn
impl Send for CompletedTurn
impl Sync for CompletedTurn
impl Unpin for CompletedTurn
impl UnsafeUnpin for CompletedTurn
impl UnwindSafe for CompletedTurn
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