LlmCall.Reasoning (llm_call v0.1.0)

Copy Markdown View Source

Canonical reasoning controls.

Providers expose different axes, so effort is a hint, budget_tokens is for explicit thinking budgets, and summary is for a separate reasoning-summary control. A codec that cannot express a non-nil field returns a validation error instead of dropping it.

Summary

Types

effort()

@type effort() :: level() | nil

level()

@type level() :: :none | :minimal | :low | :medium | :high | :xhigh | :max

summary()

@type summary() :: :auto | :concise | :detailed | nil

t()

@type t() :: %LlmCall.Reasoning{
  budget_tokens: pos_integer() | nil,
  effort: effort(),
  provider_options: map(),
  summary: summary()
}