EvalEnvironment class abstract

Anthropic Step 4: each trial must run in an isolated, clean environment.

Applications implement this to set up workspaces, in-memory databases, time, and any other per-trial resources. The runner calls prepare before each trial and dispose after, regardless of outcome.

Constructors

EvalEnvironment()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose(EvalContext context) Future<void>
Tear down. Called after the trial completes (success or failure).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
prepare({required Trial trial, required EvalTask task}) Future<EvalContext>
Prepare a fresh context for one trial.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited