CascadeResult
Result of a cascade consensus execution.
Usage
CascadeResult(
winner,
winner_model,
confidence,
fanned_out,
rounds=list(),
consensus_strategy=None,
agreement_score=None,
initial_model="",
initial_confidence=0.0,
complexity=TaskComplexity.SIMPLE
)Parameters
winner: str-
The final selected response text.
winner_model: str-
The model that produced the winning response.
confidence: float-
Confidence in the final result.
fanned_out: bool-
Whether the cascade fanned out to additional models.
rounds: list[CascadeRound] = list()-
Details of each round in the cascade.
consensus_strategy: ConsensusStrategy | None = None-
The consensus strategy used if fan-out occurred, or
None. agreement_score: float | None = None-
Agreement score from consensus (if fan-out occurred), or
None. initial_model: str = ""-
The model used in the initial round.
initial_confidence: float = 0.0-
The confidence score from the initial round.
complexity: TaskComplexity = TaskComplexity.SIMPLE- The estimated task complexity.