pub struct ClassificationRequest {
pub state: Value,
pub questions: Vec<(String, ClassificationQuestion)>,
pub metadata: HashMap<String, String>,
}Expand description
One evaluation: state plus the questions to ask about it.
Fields§
§state: ValueThe content being judged: text, or structured data.
questions: Vec<(String, ClassificationQuestion)>Questions keyed by caller-chosen ids, in insertion order. Ids are for the caller’s code and are never sent to the model.
metadata: HashMap<String, String>Free-form request metadata for host-side attribution.
Implementations§
Source§impl ClassificationRequest
impl ClassificationRequest
Trait Implementations§
Source§impl Clone for ClassificationRequest
impl Clone for ClassificationRequest
Source§fn clone(&self) -> ClassificationRequest
fn clone(&self) -> ClassificationRequest
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 ClassificationRequest
impl Debug for ClassificationRequest
Source§impl Default for ClassificationRequest
impl Default for ClassificationRequest
Source§fn default() -> ClassificationRequest
fn default() -> ClassificationRequest
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ClassificationRequest
impl RefUnwindSafe for ClassificationRequest
impl Send for ClassificationRequest
impl Sync for ClassificationRequest
impl Unpin for ClassificationRequest
impl UnsafeUnpin for ClassificationRequest
impl UnwindSafe for ClassificationRequest
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