pub struct Debate {
pub id: Uuid,
pub blue_agent_id: Uuid,
pub red_agent_id: Uuid,
pub initial_claim: String,
pub rounds: Vec<DebateRound>,
pub verdict: Option<bool>,
pub confidence: f64,
}Expand description
A complete debate between Blue and Red agents
Fields§
§id: UuidUnique ID
blue_agent_id: UuidBlue agent ID
red_agent_id: UuidRed agent ID
initial_claim: StringThe initial claim being debated
rounds: Vec<DebateRound>Rounds of debate
verdict: Option<bool>Final verdict (true = claim upheld, false = claim rejected)
confidence: f64Confidence in the verdict (0.0 - 1.0)
Implementations§
Source§impl Debate
impl Debate
Sourcepub fn add_round(&mut self, round: DebateRound)
pub fn add_round(&mut self, round: DebateRound)
Add a round to the debate
Sourcepub fn is_concluded(&self) -> bool
pub fn is_concluded(&self) -> bool
Check if debate is concluded
Sourcepub fn round_count(&self) -> usize
pub fn round_count(&self) -> usize
Get number of rounds
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Debate
impl<'de> Deserialize<'de> for Debate
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 Debate
impl RefUnwindSafe for Debate
impl Send for Debate
impl Sync for Debate
impl Unpin for Debate
impl UnwindSafe for Debate
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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