# `LangChain.ChatModels.ReasoningOptions`
[🔗](https://github.com/brainlid/langchain/blob/v0.13.0/lib/chat_models/reasoning_options.ex#L1)

Embedded schema for OpenAI reasoning configuration options.

Used with gpt-5 and o-series models only.

## Fields

- `effort` - Constrains effort on reasoning. Supported values: :none, :minimal, :low, :medium,
  :high, :xhigh
- `generate_summary` - (Deprecated) A summary of the reasoning performed. Use `summary` instead.
- `summary` - A summary of the reasoning performed. Supported values: :auto, :concise, :detailed

# `t`
[🔗](https://github.com/brainlid/langchain/blob/v0.13.0/lib/chat_models/reasoning_options.ex#L32)

```elixir
@type t() :: %LangChain.ChatModels.ReasoningOptions{
  effort: term(),
  generate_summary: term(),
  summary: term()
}
```

# `changeset`
[🔗](https://github.com/brainlid/langchain/blob/v0.13.0/lib/chat_models/reasoning_options.ex#L38)

```elixir
@spec changeset(t(), map()) :: Ecto.Changeset.t()
```

Creates a changeset for ReasoningOptions.

# `new`
[🔗](https://github.com/brainlid/langchain/blob/v0.13.0/lib/chat_models/reasoning_options.ex#L47)

```elixir
@spec new(map()) :: {:ok, t()} | {:error, Ecto.Changeset.t()}
```

Creates a new ReasoningOptions struct.

# `new!`
[🔗](https://github.com/brainlid/langchain/blob/v0.13.0/lib/chat_models/reasoning_options.ex#L57)

```elixir
@spec new!(map()) :: t() | no_return()
```

Creates a new ReasoningOptions struct, raising on error.

# `to_api_map`
[🔗](https://github.com/brainlid/langchain/blob/v0.13.0/lib/chat_models/reasoning_options.ex#L72)

```elixir
@spec to_api_map(t() | nil) :: map() | nil
```

Converts the ReasoningOptions to a map suitable for API requests.
Returns nil if no options are set.

# `valid_efforts`
[🔗](https://github.com/brainlid/langchain/blob/v0.13.0/lib/chat_models/reasoning_options.ex#L96)

Returns the list of valid effort values.

Different models allow different reasoning effort values. Consult the OpenAI docs.

# `valid_summaries`
[🔗](https://github.com/brainlid/langchain/blob/v0.13.0/lib/chat_models/reasoning_options.ex#L101)

Returns the list of valid summary values.

---

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