pub struct ProgramCandidate {Show 29 fields
pub candidate_id: String,
pub generation: i64,
pub stages: HashMap<String, StageInfo>,
pub parent_id: Option<String>,
pub mutation_type: String,
pub mutation_params: Option<Value>,
pub reward: f64,
pub val_reward: Option<f64>,
pub minibatch_reward: Option<f64>,
pub seed_rewards: Option<Vec<Value>>,
pub seed_info: Option<Vec<SeedInfo>>,
pub instance_rewards: Option<Vec<Value>>,
pub objectives: Option<Value>,
pub instance_objectives: Option<Value>,
pub newly_solved_seeds: Option<Vec<i64>>,
pub artifact_refs: Option<Vec<Value>>,
pub success_statuses: Option<Vec<Value>>,
pub token_usage: Option<TokenUsage>,
pub cost_usd: Option<f64>,
pub timestamp_ms: Option<i64>,
pub evaluation_duration_ms: Option<i64>,
pub transformation: Option<Value>,
pub prompt_length: Option<i64>,
pub status: String,
pub context_override_bundle_id: Option<String>,
pub context_overrides: Option<Vec<Value>>,
pub override_application_status: Option<String>,
pub override_application_errors: Option<Vec<Value>>,
pub context_snapshot_ref: Option<String>,
}Fields§
§candidate_id: String§generation: i64§stages: HashMap<String, StageInfo>§parent_id: Option<String>§mutation_type: String§mutation_params: Option<Value>§reward: f64§val_reward: Option<f64>§minibatch_reward: Option<f64>§seed_rewards: Option<Vec<Value>>§seed_info: Option<Vec<SeedInfo>>§instance_rewards: Option<Vec<Value>>§objectives: Option<Value>§instance_objectives: Option<Value>§newly_solved_seeds: Option<Vec<i64>>§artifact_refs: Option<Vec<Value>>§success_statuses: Option<Vec<Value>>§token_usage: Option<TokenUsage>§cost_usd: Option<f64>§timestamp_ms: Option<i64>§evaluation_duration_ms: Option<i64>§transformation: Option<Value>§prompt_length: Option<i64>§status: String§context_override_bundle_id: Option<String>§context_overrides: Option<Vec<Value>>§override_application_status: Option<String>§override_application_errors: Option<Vec<Value>>§context_snapshot_ref: Option<String>Implementations§
Source§impl ProgramCandidate
impl ProgramCandidate
pub fn prompt_summary(&self, max_length: usize) -> String
Trait Implementations§
Source§impl Clone for ProgramCandidate
impl Clone for ProgramCandidate
Source§fn clone(&self) -> ProgramCandidate
fn clone(&self) -> ProgramCandidate
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 ProgramCandidate
impl Debug for ProgramCandidate
Source§impl<'de> Deserialize<'de> for ProgramCandidate
impl<'de> Deserialize<'de> for ProgramCandidate
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 ProgramCandidate
impl RefUnwindSafe for ProgramCandidate
impl Send for ProgramCandidate
impl Sync for ProgramCandidate
impl Unpin for ProgramCandidate
impl UnwindSafe for ProgramCandidate
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