pub struct Card {
pub instruction: String,
pub result: Option<Map<String, Value>>,
pub exit_code: Option<i32>,
pub error: Option<String>,
pub reused: bool,
pub took: Option<String>,
pub tokens: Option<u64>,
pub model: Option<String>,
}Expand description
An eval at a glance: what it checks, its result once it has one, and what running it cost.
For a reused result, took and tokens are what reuse saved. Everything else about the
request stays in its Detail’s fields.
Fields§
§instruction: String§result: Option<Map<String, Value>>The result’s own entries, without its verdict and saved output.
exit_code: Option<i32>§error: Option<String>§reused: bool§took: Option<String>The execution’s own span: from its start to its end, or to now while it runs.
tokens: Option<u64>Total tokens over every attempt.
model: Option<String>Trait Implementations§
impl StructuralPartialEq for Card
Auto Trait Implementations§
impl Freeze for Card
impl RefUnwindSafe for Card
impl Send for Card
impl Sync for Card
impl Unpin for Card
impl UnsafeUnpin for Card
impl UnwindSafe for Card
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