pub struct AgentOutput {
pub agent: AgentName,
pub verdict: Verdict,
pub confidence: f64,
pub summary: String,
pub reasoning: String,
pub findings: Vec<Finding>,
pub recommendation: String,
}Expand description
Deserialized output from a single LLM agent.
Contains the agent’s verdict, confidence, reasoning, and findings. Unknown JSON fields are silently ignored during deserialization.
Fields§
§agent: AgentNameWhich agent produced this output.
verdict: VerdictThe agent’s judgment verdict.
confidence: f64Confidence level between 0.0 and 1.0 (validated externally).
summary: StringBrief summary of the agent’s analysis.
reasoning: StringDetailed reasoning behind the verdict.
findings: Vec<Finding>Specific findings discovered during analysis.
recommendation: StringThe agent’s actionable recommendation.
Implementations§
Source§impl AgentOutput
impl AgentOutput
Sourcepub fn is_approving(&self) -> bool
pub fn is_approving(&self) -> bool
Returns true if the verdict is Approve or Conditional.
Sourcepub fn is_dissenting(&self, majority: Verdict) -> bool
pub fn is_dissenting(&self, majority: Verdict) -> bool
Returns true if this agent’s effective verdict differs from the majority.
Sourcepub fn effective_verdict(&self) -> Verdict
pub fn effective_verdict(&self) -> Verdict
Returns the effective binary verdict (delegates to Verdict::effective).
Trait Implementations§
Source§impl Clone for AgentOutput
impl Clone for AgentOutput
Source§fn clone(&self) -> AgentOutput
fn clone(&self) -> AgentOutput
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
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<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
Source§impl PartialEq for AgentOutput
impl PartialEq for AgentOutput
Source§impl Serialize for AgentOutput
impl Serialize for AgentOutput
impl StructuralPartialEq for AgentOutput
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> 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