pub struct Card {
pub instruction: String,
pub issues: Option<Vec<Issue>>,
pub raw: Option<String>,
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§issues: Option<Vec<Issue>>What the result says must change, numbered as shown; none before a result.
raw: Option<String>The whole result as saved, pretty-printed JSON.
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 Forget for Card
impl Freeze for Card
impl Move for Card
impl RefUnwindSafe for Card
impl Send for Cardwhere
RawVecInner: Send,
impl Sync for Cardwhere
RawVecInner: Sync,
impl Unpin for Card
impl UnsafeUnpin for Cardwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Issue>: UnsafeUnpin,
impl UnwindSafe for Cardwhere
RawVecInner: UnwindSafe,
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