pub enum AgentRunError {
AlreadyStreaming,
TurnInterrupted,
Other(String),
}Expand description
Errors that can short-circuit prompt / continue_.
Variants§
AlreadyStreaming
TurnInterrupted
The current turn was interrupted via Agent::interrupt and no steering
message was queued, so the run ended at the turn boundary.
Other(String)
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
1.30.0 · 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()
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