pub struct AgentResult {
pub task_id: String,
pub status: AgentTaskStatus,
pub summary: String,
pub artifacts: Vec<Artifact>,
pub stdout: String,
pub stderr: String,
pub exit_code: Option<i32>,
pub started_at: DateTime<Utc>,
pub completed_at: DateTime<Utc>,
}Expand description
What the delegate came back with.
Fields§
§task_id: String§status: AgentTaskStatus§summary: StringAgent’s own summary of what happened (first-person, human-readable).
artifacts: Vec<Artifact>Structured artifacts (files changed, test runs, links).
stdout: StringRaw stdout, truncated by the delegate to avoid blowing context.
stderr: StringRaw stderr, likewise truncated.
exit_code: Option<i32>Exit code for subprocess-backed delegates; None for HTTP agents.
started_at: DateTime<Utc>§completed_at: DateTime<Utc>Implementations§
Source§impl AgentResult
impl AgentResult
pub fn duration_ms(&self) -> i64
Trait Implementations§
Source§impl Clone for AgentResult
impl Clone for AgentResult
Source§impl Debug for AgentResult
impl Debug for AgentResult
Source§impl<'de> Deserialize<'de> for AgentResult
impl<'de> Deserialize<'de> for AgentResult
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 AgentResult
impl RefUnwindSafe for AgentResult
impl Send for AgentResult
impl Sync for AgentResult
impl Unpin for AgentResult
impl UnsafeUnpin for AgentResult
impl UnwindSafe for AgentResult
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