Toolnexus.Translate.Result (toolnexus v0.12.0)

Copy Markdown View Source

An OpenAI-shaped single-turn result (§11).

  • :text — assistant text ("" when the model only called tools)
  • :tool_calls — the calls the model emitted, in provider order; none is ever dropped
  • :finish_reason"stop" | "tool_calls" | "length" | "content_filter"

  • :usage — this single call's token usage
  • :model — the model that answered
  • :raw — the provider's decoded response, for fields this struct does not model

Summary

Types

t()

@type t() :: %Toolnexus.Translate.Result{
  finish_reason: term(),
  model: term(),
  raw: term(),
  text: term(),
  tool_calls: term(),
  usage: term()
}