pub struct EvalContext {Show 13 fields
pub session_id: String,
pub run_id: Option<String>,
pub iteration: Option<u32>,
pub input_tokens: Option<u64>,
pub output_tokens: Option<u64>,
pub tokens_remaining: Option<u64>,
pub total_tokens_used: Option<u64>,
pub tool_call_count: Option<u32>,
pub tool_error_count: Option<u32>,
pub tool_name: Option<String>,
pub tool_errored: Option<bool>,
pub max_iterations: Option<u32>,
pub metadata: HashMap<String, String>,
}Expand description
Context provided to evaluators for scoring.
Carries the information an evaluator needs without requiring it to depend on Arcan types directly.
Fields§
§session_id: StringSession ID.
run_id: Option<String>Run ID within the session.
iteration: Option<u32>Current iteration within the run.
input_tokens: Option<u64>Input token count for the current model call.
output_tokens: Option<u64>Output token count for the current model call.
tokens_remaining: Option<u64>Remaining token budget.
total_tokens_used: Option<u64>Total tokens used so far in the session.
tool_call_count: Option<u32>Number of tool calls in this run.
tool_error_count: Option<u32>Number of tool errors in this run.
tool_name: Option<String>Tool name (for tool-specific evaluators).
tool_errored: Option<bool>Whether the tool call resulted in an error.
max_iterations: Option<u32>Maximum iterations configured.
metadata: HashMap<String, String>Arbitrary key-value metadata.
Implementations§
Trait Implementations§
Source§impl Clone for EvalContext
impl Clone for EvalContext
Source§fn clone(&self) -> EvalContext
fn clone(&self) -> EvalContext
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 moreAuto Trait Implementations§
impl Freeze for EvalContext
impl RefUnwindSafe for EvalContext
impl Send for EvalContext
impl Sync for EvalContext
impl Unpin for EvalContext
impl UnsafeUnpin for EvalContext
impl UnwindSafe for EvalContext
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