pub struct AgentTurn { /* private fields */ }Expand description
Interactive handle for a running Codex turn.
Implementations§
Source§impl AgentTurn
impl AgentTurn
Sourcepub async fn next_event(&mut self) -> Option<Result<AgentEvent>>
pub async fn next_event(&mut self) -> Option<Result<AgentEvent>>
Waits for the next provider-input, tool-call, or completion event.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AgentTurn
impl RefUnwindSafe for AgentTurn
impl Send for AgentTurn
impl Sync for AgentTurn
impl Unpin for AgentTurn
impl UnsafeUnpin for AgentTurn
impl UnwindSafe for AgentTurn
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