# `ElixirLLM.Response`
[🔗](https://github.com/khasinski/elixir_llm/blob/v0.3.0/lib/elixir_llm/response.ex#L1)

Represents a complete response from an LLM provider.

Contains the assistant's message along with usage statistics and metadata.

# `t`
[🔗](https://github.com/khasinski/elixir_llm/blob/v0.3.0/lib/elixir_llm/response.ex#L8)

```elixir
@type t() :: %ElixirLLM.Response{
  content: String.t() | nil,
  finish_reason: atom() | nil,
  input_tokens: non_neg_integer() | nil,
  model: String.t(),
  output_tokens: non_neg_integer() | nil,
  tool_calls: [ElixirLLM.ToolCall.t()] | nil,
  total_tokens: non_neg_integer() | nil
}
```

# `has_tool_calls?`
[🔗](https://github.com/khasinski/elixir_llm/blob/v0.3.0/lib/elixir_llm/response.ex#L40)

```elixir
@spec has_tool_calls?(t()) :: boolean()
```

Returns true if the response contains tool calls.

# `new`
[🔗](https://github.com/khasinski/elixir_llm/blob/v0.3.0/lib/elixir_llm/response.ex#L32)

```elixir
@spec new(keyword()) :: t()
```

Creates a new response from provider data.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
