pub enum UtilityAggregation {
Final,
Consensus,
}Expand description
How to reduce a multi-agent run’s outcomes to one utility.
There is no universal rule, so this is the caller’s to state rather than something to infer from the outputs.
Variants§
Final
The last output carrying an outcome is the run’s answer.
Right for the shapes where one agent’s output is the result —
CoordinationShape::Pipeline (the last stage is what the caller sees)
and CoordinationShape::Supervisor (the reviewer has the last word).
Consensus
The fraction of outcome-carrying outputs that succeeded.
Right for the shapes where agents answer independently and the answer is
a vote or a pick — CoordinationShape::Swarm and
CoordinationShape::Debate. Yields the graded utility in [0, 1] that
ExecutionRecord already supports, rather than forcing a binary.
Trait Implementations§
Source§impl Clone for UtilityAggregation
impl Clone for UtilityAggregation
impl Copy for UtilityAggregation
Source§impl Debug for UtilityAggregation
impl Debug for UtilityAggregation
impl Eq for UtilityAggregation
Source§impl PartialEq for UtilityAggregation
impl PartialEq for UtilityAggregation
impl StructuralPartialEq for UtilityAggregation
Auto Trait Implementations§
impl Freeze for UtilityAggregation
impl RefUnwindSafe for UtilityAggregation
impl Send for UtilityAggregation
impl Sync for UtilityAggregation
impl Unpin for UtilityAggregation
impl UnsafeUnpin for UtilityAggregation
impl UnwindSafe for UtilityAggregation
Blanket Implementations§
impl<T> Boilerplate for T
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.impl<T> ErasedDestructor for Twhere
T: 'static,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more