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 support is unrestricted.
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 118
Supplies the permissive capability set for providers that predate explicit capability reporting.
Source
# File lib/little_ghost/model_capabilities.rb, line 64
Normalizes flags to booleans and stores unique parameter-name Strings in a frozen Array.
Source
# File lib/little_ghost/model_capabilities.rb, line 123
Marks capability support as unknown so callers avoid assuming support.
Public Instance Methods
Source
# File lib/little_ghost/model_capabilities.rb, line 106
Indicates whether capability metadata is known.
Source
# File lib/little_ghost/model_capabilities.rb, line 94
Indicates whether provider-native structured output is available.
# File lib/little_ghost/model_capabilities.rb, line 110
Checks whether any supplied parameter name is supported. An unrestricted capability set supports every name.
Source
# File lib/little_ghost/model_capabilities.rb, line 102
Indicates whether the model accepts an explicit tool choice.
Source
# File lib/little_ghost/model_capabilities.rb, line 98
Indicates whether the model accepts tools.