Class: OllamaChat::ModelHandling::ModelMetadata
- Inherits:
-
Struct
- Object
- Struct
- OllamaChat::ModelHandling::ModelMetadata
- Defined in:
- lib/ollama_chat/model_handling.rb
Overview
A simple data structure representing metadata about a model.
Instance Attribute Summary collapse
-
#capabilities ⇒ Array<String>
readonly
the capabilities supported by the model.
-
#name ⇒ String
readonly
the name of the model.
-
#system ⇒ String
readonly
the system prompt associated with the model.
Instance Method Summary collapse
-
#can?(capability) ⇒ true, false
Checks if the given capability is included in the object’s capabilities.
Instance Attribute Details
#capabilities ⇒ Array<String> (readonly)
the capabilities supported by the model
25 26 27 |
# File 'lib/ollama_chat/model_handling.rb', line 25 def capabilities @capabilities end |
#name ⇒ String (readonly)
the name of the model
25 26 27 |
# File 'lib/ollama_chat/model_handling.rb', line 25 def name @name end |
#system ⇒ String (readonly)
the system prompt associated with the model
25 26 27 |
# File 'lib/ollama_chat/model_handling.rb', line 25 def system @system end |
Instance Method Details
#can?(capability) ⇒ true, false
Checks if the given capability is included in the object’s capabilities.
30 31 32 |
# File 'lib/ollama_chat/model_handling.rb', line 30 def can?(capability) Array(capabilities).member?(capability) end |