pub struct RunGraderRequest {
pub grader: RunGraderRequestGrader,
pub item: Option<HashMap<String, Value>>,
pub model_sample: String,
}
Fields§
§grader: RunGraderRequestGrader
The grader used for the fine-tuning job.
item: Option<HashMap<String, Value>>
The dataset item provided to the grader. This will be used to populate
the item
namespace. See the guide for more details.
model_sample: String
The model sample to be evaluated. This value will be used to populate
the sample
namespace. See the guide for more details.
The output_json
variable will be populated if the model sample is a
valid JSON string.
Implementations§
Trait Implementations§
Source§impl Clone for RunGraderRequest
impl Clone for RunGraderRequest
Source§fn clone(&self) -> RunGraderRequest
fn clone(&self) -> RunGraderRequest
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 RunGraderRequest
impl Debug for RunGraderRequest
Source§impl<'de> Deserialize<'de> for RunGraderRequest
impl<'de> Deserialize<'de> for RunGraderRequest
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
Source§impl PartialEq for RunGraderRequest
impl PartialEq for RunGraderRequest
Source§impl Serialize for RunGraderRequest
impl Serialize for RunGraderRequest
impl StructuralPartialEq for RunGraderRequest
Auto Trait Implementations§
impl Freeze for RunGraderRequest
impl RefUnwindSafe for RunGraderRequest
impl Send for RunGraderRequest
impl Sync for RunGraderRequest
impl Unpin for RunGraderRequest
impl UnwindSafe for RunGraderRequest
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