ExLLM.Types.LLMResponse (ex_llm v0.5.0)
View SourceStandard response format from LLM adapters with integrated cost calculation.
Summary
Types
@type t() :: %ExLLM.Types.LLMResponse{ content: String.t() | nil, cost: ExLLM.Types.cost_result() | nil, finish_reason: String.t() | nil, function_call: map() | nil, id: String.t() | nil, logprobs: map() | nil, metadata: map() | nil, model: String.t() | nil, refusal: String.t() | nil, tool_calls: [map()] | nil, usage: ExLLM.Types.token_usage() | nil }