pub enum AgentStopReason {
TextResponse,
MaxIterations,
NoAction,
Error(String),
}Expand description
Why the agent stopped executing.
Variants§
TextResponse
Model produced a text response with no tool calls.
MaxIterations
Maximum iterations reached.
NoAction
No tool calls and no text response.
Error(String)
Error during execution.
Trait Implementations§
Source§impl Clone for AgentStopReason
impl Clone for AgentStopReason
Source§fn clone(&self) -> AgentStopReason
fn clone(&self) -> AgentStopReason
Returns a duplicate of the value. Read more
1.0.0 · 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 AgentStopReason
impl Debug for AgentStopReason
Source§impl PartialEq for AgentStopReason
impl PartialEq for AgentStopReason
impl StructuralPartialEq for AgentStopReason
Auto Trait Implementations§
impl Freeze for AgentStopReason
impl RefUnwindSafe for AgentStopReason
impl Send for AgentStopReason
impl Sync for AgentStopReason
impl Unpin for AgentStopReason
impl UnsafeUnpin for AgentStopReason
impl UnwindSafe for AgentStopReason
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