pub enum AgentRunState {
Done {
total_turns: u32,
input_tokens: u64,
output_tokens: u64,
},
Error(AgentError),
AwaitingConfirmation {
tool_call_id: String,
tool_name: String,
display_name: String,
input: Value,
description: String,
continuation: Box<AgentContinuation>,
},
}Expand description
Outcome of running the agent loop.
Variants§
Done
Agent completed successfully.
Error(AgentError)
Agent encountered an error.
AwaitingConfirmation
Agent is awaiting confirmation for a tool call. The application should present this to the user and call resume.
Fields
§
continuation: Box<AgentContinuation>Continuation state for resuming (boxed for enum size efficiency)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AgentRunState
impl RefUnwindSafe for AgentRunState
impl Send for AgentRunState
impl Sync for AgentRunState
impl Unpin for AgentRunState
impl UnwindSafe for AgentRunState
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