pub struct AgentOutcome {
pub status: OutputStatus,
pub error: Option<String>,
pub last_result: Option<String>,
pub new_session_id: Option<String>,
pub usage: Option<SessionUsage>,
pub launched: bool,
}Expand description
What the orchestrator learned from one agent run.
Fields§
§status: OutputStatusOverall status (success or error).
error: Option<String>Error message when status == Error.
last_result: Option<String>Last non-null result streamed by the agent.
new_session_id: Option<String>Session id reported by the agent.
usage: Option<SessionUsage>Usage reported with the last frame.
launched: boolWhether a container was actually started.
Implementations§
Source§impl AgentOutcome
impl AgentOutcome
Sourcepub fn not_started(error: impl Into<String>) -> Self
pub fn not_started(error: impl Into<String>) -> Self
A run that failed before any container started.
Sourcepub fn is_success(&self) -> bool
pub fn is_success(&self) -> bool
status == Success.
Trait Implementations§
Source§impl Clone for AgentOutcome
impl Clone for AgentOutcome
Source§impl Debug for AgentOutcome
impl Debug for AgentOutcome
impl Eq for AgentOutcome
Source§impl PartialEq for AgentOutcome
impl PartialEq for AgentOutcome
impl StructuralPartialEq for AgentOutcome
Auto Trait Implementations§
impl Forget for AgentOutcome
impl Freeze for AgentOutcome
impl Move for AgentOutcome
impl RefUnwindSafe for AgentOutcome
impl Send for AgentOutcome
impl Sync for AgentOutcome
impl Unpin for AgentOutcome
impl UnsafeUnpin for AgentOutcome
impl UnwindSafe for AgentOutcome
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
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.