Class: HermesAgent::Client::Entities::Model
- Inherits:
-
HermesAgent::Client::Entity
- Object
- HermesAgent::Client::Entity
- HermesAgent::Client::Entities::Model
- Defined in:
- lib/hermes_agent/client/entities/model.rb
Overview
A model advertised by the server (one entry of the GET /v1/models
list). Field readers are best-effort; HermesAgent::Client::Entity#to_h remains the source of
truth.
The permission field is intentionally not exposed as a reader: it was
observed empty, its element type is unknown (and likely a nested
object), so callers should reach it via HermesAgent::Client::Entity#[] / HermesAgent::Client::Entity#to_h for now.
Instance Method Summary collapse
-
#created ⇒ Integer?
When the model was created, as a Unix timestamp (seconds).
-
#id ⇒ String?
The model identifier, e.g.
-
#object ⇒ String?
The object type,
"model". -
#owned_by ⇒ String?
The organization that owns the model, e.g.
-
#parent ⇒ String?
The parent model id, or
nilwhen there is no parent. -
#root ⇒ String?
The root model id this model derives from.
Methods inherited from HermesAgent::Client::Entity
Instance Method Details
#created ⇒ Integer?
When the model was created, as a Unix timestamp (seconds).
38 39 40 |
# File 'lib/hermes_agent/client/entities/model.rb', line 38 def created self["created"] end |
#id ⇒ String?
The model identifier, e.g. "hermes-test".
22 23 24 |
# File 'lib/hermes_agent/client/entities/model.rb', line 22 def id self["id"] end |
#object ⇒ String?
The object type, "model".
30 31 32 |
# File 'lib/hermes_agent/client/entities/model.rb', line 30 def object self["object"] end |
#owned_by ⇒ String?
The organization that owns the model, e.g. "hermes".
46 47 48 |
# File 'lib/hermes_agent/client/entities/model.rb', line 46 def owned_by self["owned_by"] end |
#parent ⇒ String?
The parent model id, or nil when there is no parent.
62 63 64 |
# File 'lib/hermes_agent/client/entities/model.rb', line 62 def parent self["parent"] end |
#root ⇒ String?
The root model id this model derives from.
54 55 56 |
# File 'lib/hermes_agent/client/entities/model.rb', line 54 def root self["root"] end |