pub enum LlmResolveError {
UnknownAgent {
name: String,
known: String,
},
AgentMissingModel {
agent: String,
},
UnknownModel {
name: String,
},
UnknownProvider {
name: String,
},
MistralrsFeatureDisabled {
name: String,
},
MistralrsDeviceInvalid {
model: String,
device: String,
},
MistralrsDeviceUnavailable {
model: String,
device: String,
feature: &'static str,
},
MistralrsDeviceOverrideUnsupported {
model: String,
provider: String,
},
RigClientBuild(String),
}Expand description
Failures that surface while walking agents -> models -> providers or
constructing the Rig client. Wrapped into crate::error::OutrigError
at the top level via #[from].
Variants§
UnknownAgent
AgentMissingModel
UnknownModel
UnknownProvider
MistralrsFeatureDisabled
MistralrsDeviceInvalid
MistralrsDeviceOverrideUnsupported
RigClientBuild(String)
Trait Implementations§
Source§impl Debug for LlmResolveError
impl Debug for LlmResolveError
Source§impl Display for LlmResolveError
impl Display for LlmResolveError
Source§impl Error for LlmResolveError
impl Error for LlmResolveError
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()
Source§impl From<LlmResolveError> for CliError
impl From<LlmResolveError> for CliError
Source§fn from(source: LlmResolveError) -> Self
fn from(source: LlmResolveError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for LlmResolveError
impl RefUnwindSafe for LlmResolveError
impl Send for LlmResolveError
impl Sync for LlmResolveError
impl Unpin for LlmResolveError
impl UnsafeUnpin for LlmResolveError
impl UnwindSafe for LlmResolveError
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