pub struct AgentCoordinator { /* private fields */ }Expand description
Agent coordinator for aggregating and prioritizing results
Implementations§
Source§impl AgentCoordinator
impl AgentCoordinator
Sourcepub fn aggregate(&self, outputs: Vec<AgentOutput>) -> Result<AgentOutput>
pub fn aggregate(&self, outputs: Vec<AgentOutput>) -> Result<AgentOutput>
Aggregate results from multiple agents
Sourcepub fn resolve_conflicts(&self, findings: &[Finding]) -> Vec<Finding>
pub fn resolve_conflicts(&self, findings: &[Finding]) -> Vec<Finding>
Resolve conflicts between findings
Conflicts occur when multiple agents report different findings for the same code location. This method applies severity-based prioritization to resolve conflicts:
- Critical findings take precedence over Warning and Info
- Warning findings take precedence over Info
- When findings have the same severity, all are kept
Sourcepub fn prioritize(&self, findings: &mut [Finding])
pub fn prioritize(&self, findings: &mut [Finding])
Prioritize findings by severity
Sourcepub fn findings_by_source(&self) -> &HashMap<String, Vec<Finding>>
pub fn findings_by_source(&self) -> &HashMap<String, Vec<Finding>>
Get findings grouped by source agent
Sourcepub fn suggestions_by_source(&self) -> &HashMap<String, Vec<Suggestion>>
pub fn suggestions_by_source(&self) -> &HashMap<String, Vec<Suggestion>>
Get suggestions grouped by source agent
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AgentCoordinator
impl RefUnwindSafe for AgentCoordinator
impl Send for AgentCoordinator
impl Sync for AgentCoordinator
impl Unpin for AgentCoordinator
impl UnwindSafe for AgentCoordinator
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