pub struct CandidateInfo {Show 26 fields
pub candidate_id: String,
pub reward: Option<f64>,
pub objectives: Option<HashMap<String, f64>>,
pub val_reward: Option<f64>,
pub train_reward: Option<f64>,
pub generation: Option<i32>,
pub parent_id: Option<String>,
pub is_pareto: bool,
pub accepted: bool,
pub mutation_type: Option<String>,
pub token_usage: Option<TokenUsage>,
pub cost_usd: Option<f64>,
pub timestamp: f64,
pub timestamp_ms: Option<i64>,
pub stages: HashMap<String, StageInfo>,
pub prompt_summary: Option<String>,
pub mutation_params: Option<HashMap<String, Value>>,
pub transformation: Option<HashMap<String, Value>>,
pub seed_rewards: Vec<Value>,
pub seeds_evaluated: Vec<i64>,
pub seed_info: Vec<SeedInfo>,
pub rollout_sample: Vec<RolloutSample>,
pub evaluation_duration_ms: Option<i64>,
pub minibatch_rewards: Vec<f64>,
pub skip_reason: Option<String>,
pub raw_data: HashMap<String, Value>,
}Expand description
Information about a single candidate.
Fields§
§candidate_id: StringUnique candidate ID
reward: Option<f64>Reward on training set
objectives: Option<HashMap<String, f64>>Multi-objective scores
val_reward: Option<f64>Validation reward (if validation phase completed)
train_reward: Option<f64>Training reward
generation: Option<i32>Generation number
parent_id: Option<String>Parent candidate ID (for mutations)
is_pareto: boolWhether on Pareto frontier
accepted: boolWhether accepted into population
mutation_type: Option<String>Type of mutation used
token_usage: Option<TokenUsage>Token usage for this candidate
cost_usd: Option<f64>Cost in USD
timestamp: f64Unix timestamp when evaluated
timestamp_ms: Option<i64>Timestamp in milliseconds
stages: HashMap<String, StageInfo>First-class program stages
prompt_summary: Option<String>Prompt summary for compatibility
mutation_params: Option<HashMap<String, Value>>Mutation params
transformation: Option<HashMap<String, Value>>Transformation details
seed_rewards: Vec<Value>Seed rewards
seeds_evaluated: Vec<i64>Seeds evaluated
seed_info: Vec<SeedInfo>Seed metadata
rollout_sample: Vec<RolloutSample>Rollout samples
evaluation_duration_ms: Option<i64>Evaluation duration in ms
minibatch_rewards: Vec<f64>Minibatch rewards
skip_reason: Option<String>Skip reason
raw_data: HashMap<String, Value>Raw event data for debugging
Trait Implementations§
Source§impl Clone for CandidateInfo
impl Clone for CandidateInfo
Source§fn clone(&self) -> CandidateInfo
fn clone(&self) -> CandidateInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CandidateInfo
impl Debug for CandidateInfo
Source§impl Default for CandidateInfo
impl Default for CandidateInfo
Source§fn default() -> CandidateInfo
fn default() -> CandidateInfo
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CandidateInfo
impl<'de> Deserialize<'de> for CandidateInfo
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CandidateInfo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CandidateInfo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for CandidateInfo
impl Serialize for CandidateInfo
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for CandidateInfo
impl RefUnwindSafe for CandidateInfo
impl Send for CandidateInfo
impl Sync for CandidateInfo
impl Unpin for CandidateInfo
impl UnwindSafe for CandidateInfo
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,
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