ClaudeCode.Model.Info (ClaudeCode v0.36.3)

View Source

Information about an available model.

Returned as part of the initialization response from the CLI.

Fields

  • :value - Model identifier to use in API calls
  • :display_name - Human-readable display name
  • :description - Description of the model's capabilities
  • :supports_effort - Whether this model supports effort levels
  • :supported_effort_levels - Available effort levels (e.g., [:low, :medium, :high])
  • :supports_adaptive_thinking - Whether this model supports adaptive thinking
  • :supports_fast_mode - Whether this model supports fast mode
  • :supports_auto_mode - Whether this model supports auto mode (optional)

Summary

Functions

Creates a Model.Info from a JSON map.

Types

t()

@type t() :: %ClaudeCode.Model.Info{
  description: String.t(),
  display_name: String.t(),
  supported_effort_levels: [ClaudeCode.Model.Effort.t()],
  supports_adaptive_thinking: boolean(),
  supports_auto_mode: boolean(),
  supports_effort: boolean(),
  supports_fast_mode: boolean(),
  value: String.t()
}

Functions

new(data)

@spec new(map()) :: t()

Creates a Model.Info from a JSON map.

Examples

iex> ClaudeCode.Model.Info.new(%{"value" => "claude-sonnet-4-6", "displayName" => "Claude Sonnet 4.6", "description" => "Fast model"})
%ClaudeCode.Model.Info{value: "claude-sonnet-4-6", display_name: "Claude Sonnet 4.6", description: "Fast model", supports_effort: false, supported_effort_levels: [], supports_adaptive_thinking: false, supports_fast_mode: false}