#[non_exhaustive]pub enum EvalError {
MissingReference {
case: String,
field: &'static str,
},
Judge(StructuredOutputError),
Other(BoxError),
}Expand description
Why an evaluator could not score a run. An experiment records it as a
failed score labelled "error" and carries on.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
MissingReference
The case lacks the reference the evaluator compares with.
Judge(StructuredOutputError)
The judge model did not return a verdict. LlmJudge reports this as
a failed score labelled error (keeping the tokens it spent) instead.
Other(BoxError)
Any other failure, such as a remote evaluator’s.
Trait Implementations§
Source§impl Error for EvalError
impl Error for EvalError
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<AgentCoreError> for EvalError
Available on crate feature agentcore only.
impl From<AgentCoreError> for EvalError
Available on crate feature
agentcore only.Source§fn from(error: AgentCoreError) -> Self
fn from(error: AgentCoreError) -> Self
Converts to this type from the input type.
Source§impl From<StructuredOutputError> for EvalError
impl From<StructuredOutputError> for EvalError
Source§fn from(source: StructuredOutputError) -> Self
fn from(source: StructuredOutputError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for EvalError
impl !UnwindSafe for EvalError
impl Forget for EvalError
impl Freeze for EvalErrorwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
&'static str: Freeze,
*const ArcInner<Error> is !null: Freeze,
PhantomData<ArcInner<Error>>: Freeze,
*const ArcInner<Error> is !null: Freeze,
PhantomData<ArcInner<Error>>: Freeze,
*const ArcInner<dyn Error + Send + Sync> is !null: Freeze,
PhantomData<ArcInner<dyn Error + Send + Sync>>: Freeze,
NonZero<u16>: Freeze,
*const [Pos] is !null: Freeze,
PhantomData<[Pos]>: Freeze,
PhantomData<Bucket<HeaderValue>>: Freeze,
PhantomData<ExtraValue<HeaderValue>>: Freeze,
*const ErrorReport is !null: Freeze,
PhantomData<ErrorReport>: Freeze,
String: Freeze,
PhantomData<String>: Freeze,
*const () is !null: Freeze,
PhantomData<ErrorData<CustomOwner>>: Freeze,
*const PromptResponse is !null: Freeze,
PhantomData<PromptResponse>: Freeze,
PhantomData<Message>: Freeze,
PhantomData<UserContent>: Freeze,
PhantomData<AssistantContent>: Freeze,
PhantomData<Problem>: Freeze,
*const ErrorImpl is !null: Freeze,
PhantomData<ErrorImpl>: Freeze,
*const dyn Error + Send + Sync is !null: Freeze,
PhantomData<dyn Error + Send + Sync>: Freeze,
impl Move for EvalError
impl Send for EvalErrorwhere
RawVecInner: Send,
&'static str: Send,
Arc<Error>: Send,
Arc<Error>: Send,
Arc<dyn Error + Send + Sync>: Send,
NonZero<u16>: Send,
BoxRaw<[Pos]>: Send,
Bytes: Send,
BoxRaw<ErrorReport>: Send,
String: Send,
Repr: Send,
BoxRaw<PromptResponse>: Send,
NodeRef<Owned, String, Value, LeafOrInternal>: Send,
BoxRaw<(String, Value)>: Send,
BoxRaw<ErrorImpl>: Send,
BoxRaw<dyn Error + Send + Sync>: Send,
impl Sync for EvalErrorwhere
RawVecInner: Sync,
Arc<Error>: Sync,
Arc<Error>: Sync,
Arc<dyn Error + Send + Sync>: Sync,
NonZero<u16>: Sync,
BoxRaw<[Pos]>: Sync,
Bytes: Sync,
BoxRaw<ErrorReport>: Sync,
String: Sync,
Repr: Sync,
BoxRaw<PromptResponse>: Sync,
NodeRef<Owned, String, Value, LeafOrInternal>: Sync,
BoxRaw<(String, Value)>: Sync,
BoxRaw<ErrorImpl>: Sync,
BoxRaw<dyn Error + Send + Sync>: Sync,
impl Unpin for EvalErrorwhere
*const u8 is !null: Unpin,
&'static str: Unpin,
Arc<Error>: Unpin,
Arc<Error>: Unpin,
Arc<dyn Error + Send + Sync>: Unpin,
NonZero<u16>: Unpin,
Box<[Pos]>: Unpin,
*const u8: Unpin,
Align8<*mut ()>: Unpin,
&'static Vtable: Unpin,
Box<ErrorReport>: Unpin,
String: Unpin,
*const () is !null: Unpin,
&'static SimpleMessage: Unpin,
*const Custom is !null: Unpin,
Box<PromptResponse>: Unpin,
*const LeafNode<String, Value> is !null: Unpin,
Box<(String, Value)>: Unpin,
Box<ErrorImpl>: Unpin,
Box<dyn Error + Send + Sync>: Unpin,
impl UnsafeUnpin for EvalErrorwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
&'static str: UnsafeUnpin,
*const ArcInner<Error> is !null: UnsafeUnpin,
PhantomData<ArcInner<Error>>: UnsafeUnpin,
*const ArcInner<Error> is !null: UnsafeUnpin,
PhantomData<ArcInner<Error>>: UnsafeUnpin,
*const ArcInner<dyn Error + Send + Sync> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn Error + Send + Sync>>: UnsafeUnpin,
NonZeroU16Inner: UnsafeUnpin,
*const [Pos] is !null: UnsafeUnpin,
PhantomData<[Pos]>: UnsafeUnpin,
PhantomData<Bucket<HeaderValue>>: UnsafeUnpin,
PhantomData<ExtraValue<HeaderValue>>: UnsafeUnpin,
*const ErrorReport is !null: UnsafeUnpin,
PhantomData<ErrorReport>: UnsafeUnpin,
String: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
*const () is !null: UnsafeUnpin,
PhantomData<ErrorData<CustomOwner>>: UnsafeUnpin,
*const PromptResponse is !null: UnsafeUnpin,
PhantomData<PromptResponse>: UnsafeUnpin,
PhantomData<Message>: UnsafeUnpin,
PhantomData<UserContent>: UnsafeUnpin,
PhantomData<AssistantContent>: UnsafeUnpin,
PhantomData<Problem>: UnsafeUnpin,
*const ErrorImpl is !null: UnsafeUnpin,
PhantomData<ErrorImpl>: UnsafeUnpin,
*const dyn Error + Send + Sync is !null: UnsafeUnpin,
PhantomData<dyn Error + Send + Sync>: UnsafeUnpin,
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.