pub struct PromptLearningResults {
pub best_prompt: Option<Value>,
pub best_score: Option<f64>,
pub top_prompts: Vec<Value>,
pub optimized_candidates: Vec<Value>,
pub attempted_candidates: Vec<Value>,
pub validation_results: Vec<Value>,
}Fields§
§best_prompt: Option<Value>§best_score: Option<f64>§top_prompts: Vec<Value>§optimized_candidates: Vec<Value>§attempted_candidates: Vec<Value>§validation_results: Vec<Value>Implementations§
Source§impl PromptLearningResults
impl PromptLearningResults
pub fn from_events(events: &[Value]) -> Self
Trait Implementations§
Source§impl Clone for PromptLearningResults
impl Clone for PromptLearningResults
Source§fn clone(&self) -> PromptLearningResults
fn clone(&self) -> PromptLearningResults
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 PromptLearningResults
impl Debug for PromptLearningResults
Source§impl Default for PromptLearningResults
impl Default for PromptLearningResults
Source§fn default() -> PromptLearningResults
fn default() -> PromptLearningResults
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PromptLearningResults
impl<'de> Deserialize<'de> for PromptLearningResults
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 PromptLearningResults
impl RefUnwindSafe for PromptLearningResults
impl Send for PromptLearningResults
impl Sync for PromptLearningResults
impl Unpin for PromptLearningResults
impl UnwindSafe for PromptLearningResults
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