The observable result of running an eval's prompt through an agent.
Captures the final assistant response, the names of tools the agent called
(in call order), and the terminal :status of the run:
:ok— the agent produced an assistant message:error— the agent emitted an error event (:reasonis set):timeout— no terminal event arrived before the deadline:pending— initial state, before any events were collected
Summary
Types
@type status() :: :pending | :ok | :error | :timeout
@type usage() :: %{ input_tokens: non_neg_integer(), output_tokens: non_neg_integer(), cache_creation_input_tokens: non_neg_integer(), cache_read_input_tokens: non_neg_integer() }