pub enum SimError {
RateLimit,
Timeout,
Transport,
Overloaded,
Authentication,
QuotaExhausted,
UnsupportedModel(String),
InvalidResponse(String),
Other(String),
}Expand description
Error to inject for a scripted turn.
Variants§
RateLimit
Provider rate limit.
Timeout
Provider timeout.
Transport
Transport failure.
Overloaded
Provider overload.
Authentication
Authentication failure.
QuotaExhausted
Provider quota exhaustion.
UnsupportedModel(String)
Unsupported model id.
InvalidResponse(String)
Invalid provider response.
Other(String)
Other injected LLM error.
Trait Implementations§
impl StructuralPartialEq for SimError
Auto Trait Implementations§
impl Forget for SimError
impl Freeze for SimError
impl Move for SimError
impl RefUnwindSafe for SimError
impl Send for SimError
impl Sync for SimError
impl Unpin for SimError
impl UnsafeUnpin for SimError
impl UnwindSafe for SimError
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