Class: HermesAgent::Client::Entities::Capabilities
- Inherits:
-
HermesAgent::Client::Entity
- Object
- HermesAgent::Client::Entity
- HermesAgent::Client::Entities::Capabilities
- Defined in:
- lib/hermes_agent/client/entities/capabilities.rb
Overview
The server's advertised capabilities (GET /v1/capabilities).
Field readers are best-effort; HermesAgent::Client::Entity#to_h remains the source of truth.
Instance Method Summary collapse
-
#auth ⇒ Auth?
The authentication scheme, wrapped in an Auth entity.
-
#endpoints ⇒ Hash{String => Endpoint}?
The advertised routes, keyed by logical name (e.g.
"models"), each value wrapped in an Endpoint. -
#features ⇒ Features?
The feature matrix, wrapped in a Features entity.
-
#model ⇒ String?
The configured server-side model id, e.g.
-
#object ⇒ String?
The object type,
"hermes.api_server.capabilities". -
#platform ⇒ String?
The platform identifier, e.g.
-
#runtime ⇒ Runtime?
The execution model, wrapped in a Runtime entity.
Methods inherited from HermesAgent::Client::Entity
Instance Method Details
#auth ⇒ Auth?
The authentication scheme, wrapped in an Auth entity. Returns
nil when the field is absent.
249 250 251 252 |
# File 'lib/hermes_agent/client/entities/capabilities.rb', line 249 def auth raw = self["auth"] raw.is_a?(::Hash) ? Auth.new(raw) : nil end |
#endpoints ⇒ Hash{String => Endpoint}?
The advertised routes, keyed by logical name (e.g. "models"), each
value wrapped in an Endpoint. Returns nil when the field is
absent.
280 281 282 283 284 285 |
# File 'lib/hermes_agent/client/entities/capabilities.rb', line 280 def endpoints raw = self["endpoints"] return nil unless raw.is_a?(::Hash) raw.transform_values { |value| Endpoint.new(value) } end |
#features ⇒ Features?
The feature matrix, wrapped in a Features entity. Returns nil
when the field is absent.
269 270 271 272 |
# File 'lib/hermes_agent/client/entities/capabilities.rb', line 269 def features raw = self["features"] raw.is_a?(::Hash) ? Features.new(raw) : nil end |
#model ⇒ String?
The configured server-side model id, e.g. "hermes-test".
240 241 242 |
# File 'lib/hermes_agent/client/entities/capabilities.rb', line 240 def model self["model"] end |
#object ⇒ String?
The object type, "hermes.api_server.capabilities".
224 225 226 |
# File 'lib/hermes_agent/client/entities/capabilities.rb', line 224 def object self["object"] end |
#platform ⇒ String?
The platform identifier, e.g. "hermes-agent".
232 233 234 |
# File 'lib/hermes_agent/client/entities/capabilities.rb', line 232 def platform self["platform"] end |