GEPA.LLM.Response (GEPA v0.3.0)

Copy Markdown View Source

Normalized LLM adapter response.

Summary

Types

t()

@type t() :: %GEPA.LLM.Response{
  adapter: module() | nil,
  cost: map() | number() | nil,
  messages: [term()] | nil,
  metadata: map(),
  model: String.t() | nil,
  object: map() | nil,
  provider: atom() | nil,
  raw: term(),
  session_ref: term(),
  stop_reason: atom() | String.t() | nil,
  text: String.t() | nil,
  tool_calls: [term()],
  tool_results: [term()],
  usage: map() | nil
}

Functions

text(response)

@spec text(t()) :: String.t()