pub enum PrincipleExtractionError {
Adapter(LlmError),
Parse(ReflectError),
WindowSerialization(Error),
}Expand description
Extraction failures before a candidate-only report can be returned.
Variants§
Adapter(LlmError)
Adapter failed before producing output.
Parse(ReflectError)
Adapter output was not valid principle-candidate JSON.
WindowSerialization(Error)
The input window could not be serialized into the prompt.
Trait Implementations§
Source§impl Debug for PrincipleExtractionError
impl Debug for PrincipleExtractionError
Source§impl Display for PrincipleExtractionError
impl Display for PrincipleExtractionError
Source§impl Error for PrincipleExtractionError
impl Error for PrincipleExtractionError
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<Error> for PrincipleExtractionError
impl From<Error> for PrincipleExtractionError
Source§impl From<LlmError> for PrincipleExtractionError
impl From<LlmError> for PrincipleExtractionError
Source§impl From<ReflectError> for PrincipleExtractionError
impl From<ReflectError> for PrincipleExtractionError
Source§fn from(source: ReflectError) -> Self
fn from(source: ReflectError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PrincipleExtractionError
impl !RefUnwindSafe for PrincipleExtractionError
impl Send for PrincipleExtractionError
impl Sync for PrincipleExtractionError
impl Unpin for PrincipleExtractionError
impl UnsafeUnpin for PrincipleExtractionError
impl !UnwindSafe for PrincipleExtractionError
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