pub struct TournamentResult {
pub task: String,
pub candidates: Vec<AgentOutput>,
pub matches: Vec<MatchResult>,
pub winner_name: String,
pub winner_answer: String,
pub ranking: Vec<String>,
}Expand description
Result of a tournament.
Fields§
§task: String§candidates: Vec<AgentOutput>The competitors’ initial candidate answers.
matches: Vec<MatchResult>Every pairwise judgment, in bracket order.
winner_name: StringThe winning competitor’s name (empty if no competitor produced an answer).
winner_answer: StringThe winning competitor’s answer.
ranking: Vec<String>Competitor names from best to worst, by elimination round (the winner first, then those eliminated in later rounds before earlier ones).
Trait Implementations§
Source§impl Clone for TournamentResult
impl Clone for TournamentResult
Source§impl Debug for TournamentResult
impl Debug for TournamentResult
Source§impl<'de> Deserialize<'de> for TournamentResult
impl<'de> Deserialize<'de> for TournamentResult
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 TournamentResult
impl RefUnwindSafe for TournamentResult
impl Send for TournamentResult
impl Sync for TournamentResult
impl Unpin for TournamentResult
impl UnsafeUnpin for TournamentResult
impl UnwindSafe for TournamentResult
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
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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