class LittleGhost::ModelCapabilities
Describes the optional features a model can use. Providers expose this value so structured results and tool selection do not rely on provider guesswork. A nil supported-parameter list means the list itself is unrestricted. Check known? before treating that as known provider support.
Attributes
Whether this value represents known capability metadata.
Whether the model accepts a provider-native structured-output schema.
A frozen Array of provider parameter-name Strings, or nil when support is unrestricted. Caller-supplied Strings may be retained rather than copied.
Whether the model accepts an explicit tool-selection policy.
Whether the model accepts tool definitions.
Public Class Methods
Source
# File lib/little_ghost/model_capabilities.rb, line 67
Normalizes flags to booleans and stores unique parameter-name Strings in a frozen Array.
Source
# File lib/little_ghost/model_capabilities.rb, line 122
Supplies a permissive capability set for providers that accept every optional model feature.
Source
# File lib/little_ghost/model_capabilities.rb, line 127
Marks capability support as unknown so callers avoid assuming support.
Public Instance Methods
Source
# File lib/little_ghost/model_capabilities.rb, line 109
Indicates whether capability metadata is known.
Source
# File lib/little_ghost/model_capabilities.rb, line 97
Indicates whether provider-native structured output is available.
# File lib/little_ghost/model_capabilities.rb, line 113
Checks only the parameter-list restriction. It returns true for every name when the list is nil, including on an unknown capability value. Check known? when the caller needs evidence of provider support.
Source
# File lib/little_ghost/model_capabilities.rb, line 105
Indicates whether the model accepts an explicit tool choice.
Source
# File lib/little_ghost/model_capabilities.rb, line 101
Indicates whether the model accepts tools.