MimirAnalytics.Row.Turn (mimir_analytics v0.8.1)

Copy Markdown View Source

One per-turn row. The session mapper currently writes a run-level turn count, not rows in this table. Callers with per-turn data can construct rows with new/1.

Summary

Functions

Build a t() from a source map; string keys, PK fields + source_file required.

Types

t()

@type t() :: %MimirAnalytics.Row.Turn{
  input_tokens: integer() | nil,
  output_tokens: integer() | nil,
  run_id: String.t(),
  source_file: String.t(),
  terminal: String.t() | nil,
  turn: integer()
}

Functions

new(m)

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

Build a t() from a source map; string keys, PK fields + source_file required.