Inference.Trace (inference v0.1.0)

Copy Markdown View Source

Redactable provider execution summary.

Summary

Types

t()

@type t() :: %Inference.Trace{
  adapter: module() | nil,
  backend: atom() | nil,
  cost: map() | number() | nil,
  duration_ms: non_neg_integer() | nil,
  error: atom() | nil,
  finish_reason: atom() | String.t() | nil,
  metadata: map(),
  model: String.t() | nil,
  provider: atom() | nil,
  session: term(),
  usage: map() | nil
}

Functions

new(attrs \\ [])

@spec new(keyword() | map()) :: t()

redact(trace)

@spec redact(t() | map()) :: map()