Container for per-example evaluation results returned by an adapter.
GEPA treats outputs and trajectories as opaque user data, but it relies on a
strict one-to-one alignment between outputs, scores, optional
trajectories, and optional objective_scores. This mirrors the Python
reference contract and keeps bugs in adapters from leaking into optimizer
state.
Summary
Functions
Return a copy whose scores are floats.
Validate that a batch satisfies the official GEPA adapter invariants.
Return :ok for a valid batch or a precise error tuple otherwise.
Raise unless a batch is valid; otherwise return the batch unchanged.
Types
Functions
Return a copy whose scores are floats.
Validate that a batch satisfies the official GEPA adapter invariants.
Return :ok for a valid batch or a precise error tuple otherwise.
Raise unless a batch is valid; otherwise return the batch unchanged.