pub enum EvalFileError {
Show 16 variants
ReadEvalFile {
path: PathBuf,
source: Error,
},
ParseEvalFile {
path: PathBuf,
source: Error,
},
ParseSpec {
source: Error,
},
InvalidAgentCommand {
message: String,
},
EvalPathNotFound {
path: PathBuf,
},
DiscoverEvalFiles {
path: PathBuf,
source: Error,
},
NoEvalFilesFound {
paths: Vec<PathBuf>,
},
NoMatchingEval {
name: String,
},
DuplicateEvalName {
name: String,
},
JudgeModel {
model: String,
source: LlmError,
},
Image(DockerImageParseError),
DockerPath {
path: PathBuf,
source: Error,
},
ImageBuild(ImageBuildError),
InvalidInlineJudge {
message: String,
},
ReadJudgeFile {
path: PathBuf,
source: Error,
},
ParseJudgeFile {
path: PathBuf,
source: Error,
},
}Expand description
Eval-file setup errors. Setup — loading, image resolution and builds, settings — happens
before any eval runs and aborts the collection. Faults inside an individual eval (workspace
setup, the agent run, the judge call) do not abort a collection run; they are recorded on
that eval’s crate::spec::EvalOutcome instead.
Variants§
ReadEvalFile
ParseEvalFile
ParseSpec
InvalidAgentCommand
EvalPathNotFound
DiscoverEvalFiles
NoEvalFilesFound
NoMatchingEval
DuplicateEvalName
JudgeModel
Image(DockerImageParseError)
DockerPath
ImageBuild(ImageBuildError)
InvalidInlineJudge
ReadJudgeFile
ParseJudgeFile
Trait Implementations§
Source§impl Debug for EvalFileError
impl Debug for EvalFileError
Source§impl Display for EvalFileError
impl Display for EvalFileError
Source§impl Error for EvalFileError
impl Error for EvalFileError
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<DockerImageParseError> for EvalFileError
impl From<DockerImageParseError> for EvalFileError
Source§fn from(source: DockerImageParseError) -> Self
fn from(source: DockerImageParseError) -> Self
Converts to this type from the input type.
Source§impl From<ImageBuildError> for EvalFileError
impl From<ImageBuildError> for EvalFileError
Source§fn from(source: ImageBuildError) -> Self
fn from(source: ImageBuildError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for EvalFileError
impl !UnwindSafe for EvalFileError
impl Freeze for EvalFileError
impl Send for EvalFileError
impl Sync for EvalFileError
impl Unpin for EvalFileError
impl UnsafeUnpin for EvalFileError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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 moreSource§impl<T> IntoMaybeUndefined<T> for T
impl<T> IntoMaybeUndefined<T> for T
fn into_maybe_undefined(self) -> MaybeUndefined<T>
Source§impl<T> IntoOption<T> for T
impl<T> IntoOption<T> for T
fn into_option(self) -> Option<T>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request