pub enum ModelSpecError {
EmptyContextWindow,
EmptyOutputLimit,
OutputExceedsContext,
EmptyReasoningEfforts,
DuplicateReasoningEffort,
ReasoningDefaultUnsupported,
}Expand description
Error returned when model limits are inconsistent.
Variants§
EmptyContextWindow
Context window must contain at least one token.
EmptyOutputLimit
Output limit must contain at least one token.
OutputExceedsContext
Output token limit exceeds the full context window.
EmptyReasoningEfforts
A reasoning profile must advertise at least one level.
DuplicateReasoningEffort
A reasoning profile cannot repeat a canonical level.
ReasoningDefaultUnsupported
The model default must be one of its supported levels.
Trait Implementations§
Source§impl Clone for ModelSpecError
impl Clone for ModelSpecError
Source§fn clone(&self) -> ModelSpecError
fn clone(&self) -> ModelSpecError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ModelSpecError
Source§impl Debug for ModelSpecError
impl Debug for ModelSpecError
Source§impl Display for ModelSpecError
impl Display for ModelSpecError
impl Eq for ModelSpecError
Source§impl Error for ModelSpecError
impl Error for ModelSpecError
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 PartialEq for ModelSpecError
impl PartialEq for ModelSpecError
impl StructuralPartialEq for ModelSpecError
Auto Trait Implementations§
impl Freeze for ModelSpecError
impl RefUnwindSafe for ModelSpecError
impl Send for ModelSpecError
impl Sync for ModelSpecError
impl Unpin for ModelSpecError
impl UnsafeUnpin for ModelSpecError
impl UnwindSafe for ModelSpecError
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