EngineAdvertisement class

Constructors

EngineAdvertisement({List<String> apis = const [], List<String> models = const [], String? status, String? url})
Returns a new EngineAdvertisement instance.

Properties

apis ↔ List<String>
APIs are the wire formats the engine serves on that one port: "openai", "anthropic", or both.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
models ↔ List<String>
Models are the model ids the node's own GET /v1/models answered with — what this GPU can actually be asked for.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
status ↔ String?
Status is "ready" when the node's engine answered, "unreachable" when it did not. Advertised is not the same as serving, and this is the difference.
getter/setter pair
url ↔ String?
URL is the base address the node advertised its engine on — where a model call to this GPU is sent. The node chose it, so reaching it is a question about the node's network, not about this surface.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override

Static Methods

fromJson(dynamic value) → EngineAdvertisement?
Returns a new EngineAdvertisement instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<EngineAdvertisement>
mapFromJson(dynamic json) → Map<String, EngineAdvertisement>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<EngineAdvertisement>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.