#[non_exhaustive]pub enum EvalError {
Show 16 variants
LoadError(String),
ParseError(String),
ExecutionError(String),
AgentError(String),
ConfigError(String),
IoError(Error),
JsonError(Error),
ScoringError(String),
JudgeError(String),
JudgeParseError(String),
EmbeddingError(String),
BaselineError(String),
AnnotationError(String),
GenerationError(String),
StatisticsError(String),
Refused(Box<AdkError>),
}Expand description
Errors that can occur during evaluation
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.
LoadError(String)
Failed to load test file
ParseError(String)
Failed to parse test file
ExecutionError(String)
Test case execution failed
AgentError(String)
Agent error during evaluation
ConfigError(String)
Invalid configuration
IoError(Error)
IO error
JsonError(Error)
JSON serialization error
ScoringError(String)
Scoring error
JudgeError(String)
LLM judge error
JudgeParseError(String)
Structured judge parse error
EmbeddingError(String)
Embedding scorer error
BaselineError(String)
Baseline I/O error
AnnotationError(String)
Annotation format error
GenerationError(String)
Test generation error
StatisticsError(String)
Statistics computation error
Refused(Box<AdkError>)
A budget, a spend cap or a kill switch refused a model call or run, so nothing was judged. The evaluation stops rather than counting the refusal as a failed case.
Implementations§
Source§impl EvalError
impl EvalError
Sourcepub fn is_refusal(&self) -> bool
pub fn is_refusal(&self) -> bool
Returns true for EvalError::Refused.
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()
Auto Trait Implementations§
impl !RefUnwindSafe for EvalError
impl !UnwindSafe for EvalError
impl Forget for EvalError
impl Freeze for EvalError
impl Move for EvalError
impl Send for EvalError
impl Sync for EvalError
impl Unpin for EvalError
impl UnsafeUnpin for EvalErrorwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const () is !null: UnsafeUnpin,
PhantomData<ErrorData<CustomOwner>>: UnsafeUnpin,
*const ErrorImpl is !null: UnsafeUnpin,
PhantomData<ErrorImpl>: UnsafeUnpin,
*const AdkError is !null: UnsafeUnpin,
PhantomData<AdkError>: 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