pub struct Outcome {
pub status: TerminalStatus,
pub partial: bool,
pub result: Value,
pub scheduled: Vec<ScheduleRequest>,
pub subscriptions: Vec<SubscriptionRequest>,
}Expand description
A finished run: its terminal status, whether the result body is partial, the distilled result value, and any self-requested future wake-ups / resource (un)subscriptions. RFC 0007 / RFC 0009 §result.
Fields§
§status: TerminalStatus§partial: boolTrue when the agent produced some usable output but did not fully satisfy the objective (drives exit code 3 in one-shot mode).
result: Value§scheduled: Vec<ScheduleRequest>Future wake-ups the agent scheduled for itself (RFC 0008). Empty unless
the model called schedule; acted on only by a daemon supervisor.
subscriptions: Vec<SubscriptionRequest>Resource (un)subscriptions the agent requested for itself (RFC 0008).
Empty unless the model called subscribe/unsubscribe; daemon-applied.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Outcome
impl<'de> Deserialize<'de> for Outcome
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Outcome
impl RefUnwindSafe for Outcome
impl Send for Outcome
impl Sync for Outcome
impl Unpin for Outcome
impl UnsafeUnpin for Outcome
impl UnwindSafe for Outcome
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
Mutably borrows from an owned value. Read more