ExLLM.Types.LLMResponse (ex_llm v0.1.0)

View Source

Standard response format from LLM adapters with integrated cost calculation.

Summary

Types

t()

@type t() :: %ExLLM.Types.LLMResponse{
  content: String.t(),
  cost: ExLLM.Types.cost_result() | nil,
  finish_reason: String.t() | nil,
  id: String.t() | nil,
  model: String.t() | nil,
  usage: ExLLM.Types.token_usage() | nil
}