pub struct AgentTurn { /* private fields */ }Implementations§
Source§impl AgentTurn
impl AgentTurn
Sourcepub fn receipt(&self) -> Option<&UsageReceipt>
pub fn receipt(&self) -> Option<&UsageReceipt>
Canonical receipt after the turn has completed or been marked unavailable.
Ends an interrupted turn with unavailable metering and returns its receipt.
pub async fn next_event(&mut self) -> Result<Option<AgentEvent>>
pub async fn respond(&mut self, call_id: &str, result: ToolResult) -> Result<()>
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