One model request reconstructed from a Nous.Eval.Trace by
Nous.Eval.Trace.model_calls/1.
Built by pairing [:nous, :agent, :model, :start] with the next :stop or
:exception of the same agent_run_id (a run makes one model request at a
time).
:outcome-:ok(stop),:error(exception) or:incomplete(a start without a stop: the run was killed or the trace truncated):iteration,:model_provider,:model_name- as requested:active_model_provider,:active_model_name,:fallback_used- the model that actually answered (differs on fallback):messages- the request messages (start),:response- the responseNous.Message(stop):usage- aNous.Usagewith this request's tokens (requests: 1):finish_reason,:requested_tool_calls- from the stop event:error-{kind, reason}from the exception event:duration- native time units, from the stop/exception measurements:seq- theseqof the first event of the pair
Summary
Types
@type t() :: %Nous.Eval.Trace.ModelCall{ active_model_name: String.t() | nil, active_model_provider: atom() | nil, agent_run_id: String.t() | nil, duration: integer() | nil, error: {term(), term()} | nil, fallback_used: boolean() | nil, finish_reason: term(), iteration: non_neg_integer() | nil, messages: [Nous.Message.t()] | nil, model_name: String.t() | nil, model_provider: atom() | nil, outcome: :ok | :error | :incomplete, parent_agent_run_id: String.t() | nil, requested_tool_calls: [map()] | nil, response: Nous.Message.t() | nil, seq: non_neg_integer(), stream: boolean() | nil, tool_names: [String.t()] | nil, usage: Nous.Usage.t() }