#[non_exhaustive]pub enum AgentRunTerminalOutcome {
Succeeded {
result: AgentResult,
},
Failed {
failure: Failure,
completed_at: Timestamp,
usage: BudgetUsage,
},
Cancelled {
failure: Failure,
completed_at: Timestamp,
usage: BudgetUsage,
},
}Expand description
A closed terminal outcome returned by the durable Agent run facade.
Successful output is the compact, schema-bound AgentResult. Failure and
cancellation expose only the framework’s public-safe Failure plus exact
terminal accounting; private diagnostics remain outside this value.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Succeeded
The Agent committed a verified final output.
Fields
result: AgentResultSchema-bound output, artifacts, provenance, and cumulative usage.
Failed
The Agent committed a non-cancellation terminal failure.
Fields
usage: BudgetUsageComplete cumulative run accounting.
Cancelled
A previously committed cancellation request reached acknowledgement.
Implementations§
Source§impl AgentRunTerminalOutcome
impl AgentRunTerminalOutcome
Sourcepub const fn status(&self) -> RunStatus
pub const fn status(&self) -> RunStatus
Returns the lifecycle status represented by this terminal value.
Sourcepub const fn completed_at(&self) -> Timestamp
pub const fn completed_at(&self) -> Timestamp
Returns the authoritative durable completion observation.
Sourcepub const fn usage(&self) -> &BudgetUsage
pub const fn usage(&self) -> &BudgetUsage
Returns complete cumulative run accounting.
Sourcepub const fn result(&self) -> Option<&AgentResult>
pub const fn result(&self) -> Option<&AgentResult>
Returns the successful result, when this is a successful outcome.
Trait Implementations§
Source§impl Clone for AgentRunTerminalOutcome
impl Clone for AgentRunTerminalOutcome
Source§impl Debug for AgentRunTerminalOutcome
impl Debug for AgentRunTerminalOutcome
Source§impl<'de> Deserialize<'de> for AgentRunTerminalOutcome
impl<'de> Deserialize<'de> for AgentRunTerminalOutcome
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 JsonSchema for AgentRunTerminalOutcome
impl JsonSchema for AgentRunTerminalOutcome
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for AgentRunTerminalOutcome
impl !UnwindSafe for AgentRunTerminalOutcome
impl Forget for AgentRunTerminalOutcome
impl Freeze for AgentRunTerminalOutcome
impl Move for AgentRunTerminalOutcome
impl Send for AgentRunTerminalOutcome
impl Sync for AgentRunTerminalOutcome
impl Unpin for AgentRunTerminalOutcome
impl UnsafeUnpin for AgentRunTerminalOutcome
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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