pub struct ScoredProposal {Show 15 fields
pub index: usize,
pub score: f64,
pub validity: f64,
pub cost_efficiency: f64,
pub error_count: usize,
pub warning_count: usize,
pub action_count: usize,
pub tool_call_count: usize,
pub parallelism_levels: usize,
pub valid: bool,
pub state_keys_written: usize,
pub has_write_conflicts: bool,
pub historical_confidence: f64,
pub token_estimate: usize,
pub quality_per_token: f64,
}Expand description
A proposal with its computed score and verification result.
Fields§
§index: usizeIndex into the original candidate list.
score: f64Overall score (0.0–1.0). Higher is better.
validity: f64Validity score component (0.0–1.0).
cost_efficiency: f64Cost efficiency score component (0.0–1.0).
error_count: usizeNumber of verification errors.
warning_count: usizeNumber of verification warnings.
action_count: usizeNumber of actions in the proposal.
tool_call_count: usizeNumber of tool calls in the proposal.
parallelism_levels: usizeNumber of DAG execution levels (parallelism depth).
valid: boolWhether the proposal passed static verification.
state_keys_written: usizeNumber of state keys written by the simulated execution.
has_write_conflicts: boolWhether the proposal has write conflicts (multiple actions writing the same key).
historical_confidence: f64Historical tool confidence (0.0–1.0) based on trajectory feedback. 1.0 = all tools have perfect history, 0.5 = no data, <0.5 = tools frequently fail.
token_estimate: usizeEstimated prompt tokens required to describe this proposal (from serialized JSON length ÷ 4). Surfaces context cost so callers can trade quality for token budget.
quality_per_token: f64score / max(token_estimate, 1) — quality per token.
Lets callers rank by efficiency rather than raw quality when budget matters.
Trait Implementations§
Source§impl Clone for ScoredProposal
impl Clone for ScoredProposal
Source§fn clone(&self) -> ScoredProposal
fn clone(&self) -> ScoredProposal
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ScoredProposal
impl Debug for ScoredProposal
Auto Trait Implementations§
impl Freeze for ScoredProposal
impl RefUnwindSafe for ScoredProposal
impl Send for ScoredProposal
impl Sync for ScoredProposal
impl Unpin for ScoredProposal
impl UnsafeUnpin for ScoredProposal
impl UnwindSafe for ScoredProposal
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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>
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