pub struct ProgressTracker {
pub progress: GEPAProgress,
pub candidates: Vec<CandidateInfo>,
pub baseline: Option<BaselineInfo>,
pub frontier: Vec<String>,
pub frontier_history: Vec<FrontierUpdate>,
pub generation_history: Vec<GenerationInfo>,
pub last_seq: i64,
/* private fields */
}Expand description
Progress tracker that aggregates events into state.
Fields§
§progress: GEPAProgressOverall progress
candidates: Vec<CandidateInfo>All evaluated candidates
baseline: Option<BaselineInfo>Baseline information
frontier: Vec<String>Current Pareto frontier
frontier_history: Vec<FrontierUpdate>Frontier update history
generation_history: Vec<GenerationInfo>Generation history
last_seq: i64Last event sequence number
Implementations§
Source§impl ProgressTracker
impl ProgressTracker
Sourcepub fn best_reward(&self) -> f64
pub fn best_reward(&self) -> f64
Get the current best reward.
Sourcepub fn baseline_reward(&self) -> Option<f64>
pub fn baseline_reward(&self) -> Option<f64>
Get baseline reward.
Sourcepub fn current_frontier(&self) -> &[String]
pub fn current_frontier(&self) -> &[String]
Get current frontier candidates.
Sourcepub fn update(&mut self, event: &ParsedEvent)
pub fn update(&mut self, event: &ParsedEvent)
Update tracker with an event.
Sourcepub fn to_summary(&self) -> Value
pub fn to_summary(&self) -> Value
Get a summary dict for serialization.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ProgressTracker
impl RefUnwindSafe for ProgressTracker
impl Send for ProgressTracker
impl Sync for ProgressTracker
impl Unpin for ProgressTracker
impl UnwindSafe for ProgressTracker
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> 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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request