#[non_exhaustive]pub enum GraphError {
Show 23 variants
InvalidGraph(String),
NodeNotFound(String),
EdgeTargetNotFound(String),
NoEntryPoint,
RecursionLimitExceeded(usize),
Interrupted(Box<InterruptedExecution>),
NodeExecutionFailed {
node: String,
message: String,
},
AgentFailed {
node: String,
source: Box<AdkError>,
},
NodeTimedOut {
node: String,
elapsed: Duration,
},
FanInTimedOut {
node: String,
received: usize,
expected: usize,
},
FanInIncomplete {
node: String,
received: usize,
required: usize,
},
SerializationError(String),
CheckpointError(String),
CheckpointConflict {
thread_id: String,
version: u64,
head: u64,
},
UndeclaredChannel {
node: String,
channel: String,
},
SubgraphChannelMismatch {
subgraph: String,
channel: String,
side: String,
},
UnknownRouteTarget(String),
IoError(Error),
JsonError(Error),
Suspended {
continuation_key: String,
message: String,
},
ResumeRejected {
key: String,
reason: String,
},
Cancelled,
Other(String),
}graph only.Expand description
Errors that can occur during graph operations
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
InvalidGraph(String)
Graph structure is invalid
NodeNotFound(String)
Node not found
EdgeTargetNotFound(String)
Edge target not found
NoEntryPoint
No entry point defined
RecursionLimitExceeded(usize)
Recursion limit exceeded
Interrupted(Box<InterruptedExecution>)
Execution was interrupted
NodeExecutionFailed
Node execution failed
AgentFailed
The agent an AgentNode runs failed.
Carries the agent’s own error, so its category, code, retry hint, and
upstream status reach the caller: a rate-limited model is still
RateLimited once the graph reports it.
Fields
NodeTimedOut
Node timed out
FanInTimedOut
Fan-in node timed out waiting for upstream paths
FanInIncomplete
A fan-in node’s remaining predecessors can no longer run, and fewer than
its min_predecessors arrived.
Fields
SerializationError(String)
State serialization error
CheckpointError(String)
Checkpoint error, including a failure of the checkpointer’s database.
CheckpointConflict
A checkpoint was refused because its thread already holds a checkpoint with an equal or higher version.
Raised when two writers continue one thread: the writer that falls behind is refused instead of interleaving its checkpoints with the other’s.
Fields
UndeclaredChannel
A node wrote a channel the state schema does not declare.
Only raised when channel enforcement is on. An undeclared channel otherwise takes the overwrite reducer, which silently discards the appends a list channel was meant to collect.
Fields
SubgraphChannelMismatch
A subgraph mapping names a channel the relevant side does not declare.
Fields
UnknownRouteTarget(String)
Router returned unknown target
IoError(Error)
IO error
JsonError(Error)
JSON error
Suspended
A functional-API workflow suspended at an interrupt and needs an answer.
Supply the answer under continuation_key with
ExecutionConfig::with_resume_value
and invoke the entrypoint again. A #[task] retry policy does not retry it.
Fields
ResumeRejected
A resume answer was refused before any node ran: it does not satisfy the
pause’s response_schema, or, under
ExecutionConfig::strict_resume,
its key is not the id of a pause pending in the thread. The checkpoint is
unchanged, so the run can be resumed again with a valid answer.
Fields
Cancelled
The caller cancelled a functional-API run.
Raised when the run’s
ExecutionConfig::cancellation_token is
cancelled. A #[task] retry policy does not retry it.
Other(String)
Other error (used by extensions like the functional API)
Trait Implementations§
Source§impl Debug for GraphError
impl Debug for GraphError
Source§impl Display for GraphError
impl Display for GraphError
Source§impl Error for GraphError
impl Error for GraphError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<ActionError> for GraphError
impl From<ActionError> for GraphError
Source§fn from(err: ActionError) -> GraphError
fn from(err: ActionError) -> GraphError
Source§impl From<Error> for GraphError
impl From<Error> for GraphError
Source§fn from(source: Error) -> GraphError
fn from(source: Error) -> GraphError
Source§impl From<Error> for GraphError
impl From<Error> for GraphError
Source§fn from(source: Error) -> GraphError
fn from(source: Error) -> GraphError
Source§impl From<ForkError> for GraphError
impl From<ForkError> for GraphError
Source§fn from(error: ForkError) -> GraphError
fn from(error: ForkError) -> GraphError
Source§impl From<FunctionalError> for GraphError
A suspension and a cancellation keep their meaning as
GraphError::Suspended and GraphError::Cancelled, so a #[task] retry
policy can tell them from failures; every other error becomes
GraphError::Other.
impl From<FunctionalError> for GraphError
A suspension and a cancellation keep their meaning as
GraphError::Suspended and GraphError::Cancelled, so a #[task] retry
policy can tell them from failures; every other error becomes
GraphError::Other.
Source§fn from(e: FunctionalError) -> GraphError
fn from(e: FunctionalError) -> GraphError
Source§impl From<GovernedError> for GraphError
impl From<GovernedError> for GraphError
Source§fn from(error: GovernedError) -> GraphError
fn from(error: GovernedError) -> GraphError
Source§impl From<GraphError> for AdkError
Converts a graph error into the structured ADK error.
impl From<GraphError> for AdkError
Converts a graph error into the structured ADK error.
A GraphError::AgentFailed becomes the agent’s own error, with the node
named in its message, so its category, code, and retry hint are unchanged.
Every other variant maps to an ErrorComponent::Graph error that carries the
graph error as its source.
Source§fn from(err: GraphError) -> AdkError
fn from(err: GraphError) -> AdkError
Source§impl From<GraphError> for ForkError
impl From<GraphError> for ForkError
Source§fn from(source: GraphError) -> ForkError
fn from(source: GraphError) -> ForkError
Source§impl From<WorkflowError> for GraphError
impl From<WorkflowError> for GraphError
Source§fn from(error: WorkflowError) -> GraphError
fn from(error: WorkflowError) -> GraphError
Auto Trait Implementations§
impl !RefUnwindSafe for GraphError
impl !UnwindSafe for GraphError
impl Forget for GraphError
impl Freeze for GraphErrorwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const InterruptedExecution is !null: Freeze,
PhantomData<InterruptedExecution>: Freeze,
*const AdkError is !null: Freeze,
PhantomData<AdkError>: Freeze,
*const () is !null: Freeze,
PhantomData<ErrorData<CustomOwner>>: Freeze,
*const ErrorImpl is !null: Freeze,
PhantomData<ErrorImpl>: Freeze,
impl Move for GraphError
impl Send for GraphError
impl Sync for GraphError
impl Unpin for GraphError
impl UnsafeUnpin for GraphErrorwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const InterruptedExecution is !null: UnsafeUnpin,
PhantomData<InterruptedExecution>: UnsafeUnpin,
*const AdkError is !null: UnsafeUnpin,
PhantomData<AdkError>: UnsafeUnpin,
*const () is !null: UnsafeUnpin,
PhantomData<ErrorData<CustomOwner>>: UnsafeUnpin,
*const ErrorImpl is !null: UnsafeUnpin,
PhantomData<ErrorImpl>: UnsafeUnpin,
Blanket Implementations§
Source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
Source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> FmtForward for T
impl<T> FmtForward for T
Source§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
self to use its Binary implementation when Debug-formatted.Source§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
self to use its Display implementation when
Debug-formatted.Source§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
self to use its LowerExp implementation when
Debug-formatted.Source§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
self to use its LowerHex implementation when
Debug-formatted.Source§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
self to use its Octal implementation when Debug-formatted.Source§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
self to use its Pointer implementation when
Debug-formatted.Source§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
self to use its UpperExp implementation when
Debug-formatted.Source§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
self to use its UpperHex implementation when
Debug-formatted.Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<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> ⓘ
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 moreimpl<T> MaybeSend for Twhere
T: Send,
Source§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
Source§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
Source§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read moreSource§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read moreSource§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
Source§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
Source§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
self, then passes self.as_ref() into the pipe function.Source§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
self, then passes self.as_mut() into the pipe
function.Source§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
self, then passes self.deref() into the pipe function.Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.Source§impl<T> Tap for T
impl<T> Tap for T
Source§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Borrow<B> of a value. Read moreSource§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
BorrowMut<B> of a value. Read moreSource§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
AsRef<R> view of a value. Read moreSource§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
AsMut<R> view of a value. Read moreSource§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Deref::Target of a value. Read moreSource§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Deref::Target of a value. Read moreSource§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
.tap() only in debug builds, and is erased in release builds.Source§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
.tap_mut() only in debug builds, and is erased in release
builds.Source§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
.tap_borrow() only in debug builds, and is erased in release
builds.Source§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
.tap_borrow_mut() only in debug builds, and is erased in release
builds.Source§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
.tap_ref() only in debug builds, and is erased in release
builds.Source§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
.tap_ref_mut() only in debug builds, and is erased in release
builds.Source§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
.tap_deref() only in debug builds, and is erased in release
builds.Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
CompactString. Read more