pub enum AgentRunError {
Provider(ProviderError),
Tool {
message: String,
},
MaxStepsExceeded {
max_steps: u32,
},
Session {
message: String,
},
Cancelled,
}Expand description
Errors that can occur during agent execution
Variants§
Provider(ProviderError)
Provider error during completion
Tool
Tool execution error
MaxStepsExceeded
Maximum steps exceeded
Session
Session error
Cancelled
Operation was cancelled
Implementations§
Trait Implementations§
Source§impl Debug for AgentRunError
impl Debug for AgentRunError
Source§impl Display for AgentRunError
impl Display for AgentRunError
Source§impl Error for AgentRunError
impl Error for AgentRunError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<ProviderError> for AgentRunError
impl From<ProviderError> for AgentRunError
Source§fn from(source: ProviderError) -> Self
fn from(source: ProviderError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AgentRunError
impl RefUnwindSafe for AgentRunError
impl Send for AgentRunError
impl Sync for AgentRunError
impl Unpin for AgentRunError
impl UnsafeUnpin for AgentRunError
impl UnwindSafe for AgentRunError
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