pub enum InnerError<'a> {
Builder {
builder_index: u64,
agent_completion_index: u64,
error: Cow<'a, ResponseError>,
},
Evaluation {
evaluation_index: u64,
agent_completion_index: u64,
error: Cow<'a, ResponseError>,
},
}Expand description
An inner error from a LaboratoryExecutionChunk.
Yielded by LaboratoryExecutionChunk::inner_errors.
The variant identifies which child collection the failing agent
completion came from; fields locate it by index (builder or
evaluation index) and agent_index (agent slot within that builder
or evaluation), with the underlying ResponseError
held as a Cow so iteration is zero-allocation while deserialization
still produces a self-owning value.
Wire shape (internally tagged on "type"):
{ "type": "builder", "builder_index": 0, "agent_completion_index": 1, "error": { } }
{ "type": "evaluation", "evaluation_index": 2, "agent_completion_index": 0, "error": { } }Does NOT include the lab chunk’s own top-level .error — that
field is the chunk’s own failure state and is reachable directly
via LaboratoryExecutionChunk::error.
Variants§
Builder
An error from a BuilderChunk.
Fields
agent_completion_index: u64Agent completion index within the builder (matches BuilderChunk::agent_index).
error: Cow<'a, ResponseError>The underlying error from the agent completion.
Evaluation
An error from an EvaluationChunk.
Trait Implementations§
Source§impl<'a> Clone for InnerError<'a>
impl<'a> Clone for InnerError<'a>
Source§fn clone(&self) -> InnerError<'a>
fn clone(&self) -> InnerError<'a>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<'a> Debug for InnerError<'a>
impl<'a> Debug for InnerError<'a>
Source§impl<'de, 'a> Deserialize<'de> for InnerError<'a>
impl<'de, 'a> Deserialize<'de> for InnerError<'a>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl<'a> JsonSchema for InnerError<'a>
impl<'a> JsonSchema for InnerError<'a>
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl<'a> PartialEq for InnerError<'a>
impl<'a> PartialEq for InnerError<'a>
Source§fn eq(&self, other: &InnerError<'a>) -> bool
fn eq(&self, other: &InnerError<'a>) -> bool
self and other values to be equal, and is used by ==.Source§impl<'a> Serialize for InnerError<'a>
impl<'a> Serialize for InnerError<'a>
impl<'a> StructuralPartialEq for InnerError<'a>
Auto Trait Implementations§
impl<'a> Freeze for InnerError<'a>
impl<'a> RefUnwindSafe for InnerError<'a>
impl<'a> Send for InnerError<'a>
impl<'a> Sync for InnerError<'a>
impl<'a> Unpin for InnerError<'a>
impl<'a> UnsafeUnpin for InnerError<'a>
impl<'a> UnwindSafe for InnerError<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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>
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 more