Skip to main content

StateCapture

Type Alias StateCapture 

Source
pub type StateCapture = Arc<dyn Fn(&Invocation) -> Vec<EnvironmentState> + Send + Sync>;
Expand description

Callback that captures the environment state after an agent run completes.

Registered programmatically on an EvalCase (or supplied by the AgentFactory). The callback is invoked once after the agent finishes; its output populates the “actual” side for the EnvironmentStateEvaluator.

Panics are caught by the evaluator and surfaced as Score::fail() with the panic message (FR-014).

Aliased Type§

pub struct StateCapture { /* private fields */ }