pub struct AgentOutput {Show 13 fields
pub run_id: Uuid,
pub agent_id: String,
pub phase: String,
pub exit_code: i64,
pub stdout: String,
pub stderr: String,
pub artifacts: Vec<Artifact>,
pub metrics: ExecutionMetrics,
pub confidence: f32,
pub quality_score: f32,
pub created_at: DateTime<Utc>,
pub build_errors: Vec<BuildError>,
pub test_failures: Vec<TestFailure>,
}Expand description
Structured output emitted by an agent run.
Fields§
§run_id: UuidRun identifier associated with the output.
agent_id: StringAgent identifier that produced the output.
phase: StringPhase name for the run.
exit_code: i64Process exit code.
stdout: StringCaptured stdout text.
stderr: StringCaptured stderr text.
artifacts: Vec<Artifact>Structured artifacts parsed from the run.
metrics: ExecutionMetricsExecution metrics collected for the run.
confidence: f32Confidence score normalized to [0.0, 1.0].
quality_score: f32Quality score normalized to [0.0, 1.0].
created_at: DateTime<Utc>Timestamp when the structured output was created.
build_errors: Vec<BuildError>Structured build errors (populated for build/lint phases)
test_failures: Vec<TestFailure>Structured test failures (populated for test phases)
Implementations§
Source§impl AgentOutput
impl AgentOutput
Sourcepub fn new(
run_id: Uuid,
agent_id: String,
phase: String,
exit_code: i64,
stdout: String,
stderr: String,
) -> AgentOutput
pub fn new( run_id: Uuid, agent_id: String, phase: String, exit_code: i64, stdout: String, stderr: String, ) -> AgentOutput
Creates a new output record with default metrics and scores.
Sourcepub fn with_artifacts(self, artifacts: Vec<Artifact>) -> AgentOutput
pub fn with_artifacts(self, artifacts: Vec<Artifact>) -> AgentOutput
Replaces the artifact list on the output.
Sourcepub fn with_metrics(self, metrics: ExecutionMetrics) -> AgentOutput
pub fn with_metrics(self, metrics: ExecutionMetrics) -> AgentOutput
Replaces execution metrics on the output.
Sourcepub fn with_confidence(self, confidence: f32) -> AgentOutput
pub fn with_confidence(self, confidence: f32) -> AgentOutput
Sets the confidence score, clamping to [0.0, 1.0].
Sourcepub fn with_quality_score(self, score: f32) -> AgentOutput
pub fn with_quality_score(self, score: f32) -> AgentOutput
Sets the quality score, clamping to [0.0, 1.0].
Sourcepub fn is_success(&self) -> bool
pub fn is_success(&self) -> bool
Returns true when the run exited successfully.
Trait Implementations§
Source§impl Clone for AgentOutput
impl Clone for AgentOutput
Source§fn clone(&self) -> AgentOutput
fn clone(&self) -> AgentOutput
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AgentOutput
impl Debug for AgentOutput
Source§impl<'de> Deserialize<'de> for AgentOutput
impl<'de> Deserialize<'de> for AgentOutput
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<AgentOutput, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AgentOutput, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for AgentOutput
impl Serialize for AgentOutput
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Auto Trait Implementations§
impl Freeze for AgentOutput
impl RefUnwindSafe for AgentOutput
impl Send for AgentOutput
impl Sync for AgentOutput
impl Unpin for AgentOutput
impl UnsafeUnpin for AgentOutput
impl UnwindSafe for AgentOutput
Blanket Implementations§
Source§impl<T> AnyExt for T
impl<T> AnyExt for T
Source§fn downcast_ref<T>(this: &Self) -> Option<&T>where
T: Any,
fn downcast_ref<T>(this: &Self) -> Option<&T>where
T: Any,
T behind referenceSource§fn downcast_mut<T>(this: &mut Self) -> Option<&mut T>where
T: Any,
fn downcast_mut<T>(this: &mut Self) -> Option<&mut T>where
T: Any,
T behind mutable referenceSource§fn downcast_rc<T>(this: Rc<Self>) -> Result<Rc<T>, Rc<Self>>where
T: Any,
fn downcast_rc<T>(this: Rc<Self>) -> Result<Rc<T>, Rc<Self>>where
T: Any,
T behind Rc pointerSource§fn downcast_arc<T>(this: Arc<Self>) -> Result<Arc<T>, Arc<Self>>where
T: Any,
fn downcast_arc<T>(this: Arc<Self>) -> Result<Arc<T>, Arc<Self>>where
T: Any,
T behind Arc pointerSource§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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, X> CoerceTo<T> for Xwhere
T: CoerceFrom<X> + ?Sized,
impl<T, X> CoerceTo<T> for Xwhere
T: CoerceFrom<X> + ?Sized,
fn coerce_rc_to(self: Rc<X>) -> Rc<T>
fn coerce_box_to(self: Box<X>) -> Box<T>
fn coerce_ref_to(&self) -> &T
fn coerce_mut_to(&mut self) -> &mut T
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request