pub enum SuggestedAction {
Retry,
FixConfig,
FixScript,
FixInput,
HandleAuthorFailure,
None,
Report,
}Expand description
What the client/user/runner should do in response. Derived from
ErrorKind (see ErrorKind::suggested_action) so consumers don’t
have to maintain their own switch statement.
Variants§
Retry
Retry the operation as-is (no input change required). Pair with
ErrorDetail::retry_after_ms when known.
FixConfig
The error is the operator’s responsibility — fix configuration (API keys, model setup, env vars).
FixScript
The error is the workflow author’s responsibility — the script, prompts, or types need editing.
FixInput
The input was too large or wrong-shape for the current run. The caller should reduce or correct it before retrying.
HandleAuthorFailure
The workflow’s on <variant> fail (or default failure handling)
fired — the caller should treat the failed result as authored
flow rather than bug.
None
User cancelled — no remediation needed.
Report
Looks like an Akribes bug. The caller should report (with the error code + execution id) rather than retry blindly.
Trait Implementations§
Source§impl Clone for SuggestedAction
impl Clone for SuggestedAction
Source§fn clone(&self) -> SuggestedAction
fn clone(&self) -> SuggestedAction
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for SuggestedAction
Source§impl Debug for SuggestedAction
impl Debug for SuggestedAction
Source§impl<'de> Deserialize<'de> for SuggestedAction
impl<'de> Deserialize<'de> for SuggestedAction
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>,
impl Eq for SuggestedAction
Source§impl PartialEq for SuggestedAction
impl PartialEq for SuggestedAction
Source§fn eq(&self, other: &SuggestedAction) -> bool
fn eq(&self, other: &SuggestedAction) -> bool
self and other values to be equal, and is used by ==.