module LittleGhost::ModelInterface
Interface for executable model implementations accepted by agents.
Public Instance Methods
Source
# File lib/little_ghost/model.rb, line 15 def capabilities = ModelCapabilities.permissive
Normalized feature support used for request strategy selection.
Source
# File lib/little_ghost/model.rb, line 13 def details = Models::Details.new(target:)
Immutable capabilities, limits, modalities, and pricing facts.
Source
# File lib/little_ghost/model.rb, line 9 def model_id = target.model_id
Provider-owned model identifier without the connection name.
Source
# File lib/little_ghost/model.rb, line 11 def role = nil
Logical application role that selected this model, when available.
Source
# File lib/little_ghost/model.rb, line 7 def target = Models::Target.parse("custom:#{self.class.name || "anonymous"}")
Canonical physical provider and model identifier.