pub enum InnerError<'a> {
FunctionTaskError {
task_path: Vec<u64>,
swiss_pool_index: Option<u64>,
swiss_round: Option<u64>,
split_index: Option<u64>,
error: Cow<'a, ResponseError>,
},
VectorCompletionTaskError {
task_path: Vec<u64>,
agent_completion_index: Option<u64>,
error: Cow<'a, ResponseError>,
},
ReasoningAgentCompletionError {
task_path: Vec<u64>,
error: Cow<'a, ResponseError>,
},
}Expand description
An inner error from a FunctionExecutionChunk.
Each variant carries task_path — the full hierarchical path from the
root execution down to the failing task (or, for the reasoning variant,
to the execution whose reasoning agent failed). Empty task_path means
the error is at the root execution itself.
Wire shape (internally tagged on "type"):
{"type":"function_task_error","task_path":[0],
"swiss_pool_index":1,"swiss_round":0,"error":{}}
{"type":"vector_completion_task_error","task_path":[0,1],"error":{}}
{"type":"vector_completion_task_error","task_path":[0,1],
"agent_completion_index":2,"error":{}}
{"type":"reasoning_agent_completion_error","task_path":[],"error":{}}Does NOT include:
- The chunk’s own top-level
.error— reachable directly viaFunctionExecutionChunk::error. - The reasoning summary’s own
.error; only the inner agent completion’s failure surfaces as a reasoning error.
Variants§
FunctionTaskError
A nested function execution task failed at its top level.
Yielded when a
FunctionExecutionTaskChunk’s
wrapped inner FunctionExecutionChunk has its own .error set.
task_path locates the failing task; swiss_pool_index /
swiss_round / split_index carry the tournament/split context
from the wrapper when set.
Fields
error: Cow<'a, ResponseError>VectorCompletionTaskError
A vector completion task failed. The optional agent_completion_index
is the discriminator:
None→ the task itself failed (the wrapper’s own.error).Some(N)→ agent completionNinside the task’s vector completion failed.
task_path locates the vector completion task.
ReasoningAgentCompletionError
The inner agent completion of a reasoning summary failed
(ReasoningSummaryChunk.inner.error).
task_path identifies whose reasoning — empty for the root
execution; non-empty for a nested execution at that path.
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