pub struct RunRequest {
pub dataset: String,
pub judge: Option<Box<JudgeSpec>>,
pub limit: Option<i32>,
pub model: String,
pub run_name: Option<String>,
}Fields§
§dataset: StringDataset is the set to score, which must belong to the caller’s org and hold at least one ACTIVE example.
judge: Option<Box<JudgeSpec>>Judge is the judge to grade with. Omitted, the model under test grades itself against a default correctness criterion under the score name "llm-judge".
limit: Option<i32>Limit caps how many examples this run scores. It defaults to 20, and anything above 100 falls back to that default.
model: StringModel is the model under test.
run_name: Option<String>RunName labels the run and is generated from the clock when omitted. It must match ^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$.
Implementations§
Source§impl RunRequest
impl RunRequest
pub fn new(dataset: String, model: String) -> RunRequest
Trait Implementations§
Source§impl Clone for RunRequest
impl Clone for RunRequest
Source§fn clone(&self) -> RunRequest
fn clone(&self) -> RunRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RunRequest
impl Debug for RunRequest
Source§impl Default for RunRequest
impl Default for RunRequest
Source§fn default() -> RunRequest
fn default() -> RunRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RunRequest
impl<'de> Deserialize<'de> for RunRequest
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 RunRequest
impl PartialEq for RunRequest
Source§impl Serialize for RunRequest
impl Serialize for RunRequest
impl StructuralPartialEq for RunRequest
Auto Trait Implementations§
impl Freeze for RunRequest
impl RefUnwindSafe for RunRequest
impl Send for RunRequest
impl Sync for RunRequest
impl Unpin for RunRequest
impl UnsafeUnpin for RunRequest
impl UnwindSafe for RunRequest
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