AgentCapability class final
One announced capability in the discovery surface (issue #27 phase 2):
a namespaced string (yoclip.render) plus an optional short
description and payload hint. Discovery metadata only — invocation
stays a plain DM; nothing here routes or invokes anything.
Constructors
- AgentCapability({required String name, String? description, String? payload})
-
Creates a capability;
nameis the namespaced id peers see inagent_directory,descriptionandpayloadare optional human/model-readable hints.const
Properties
- description → String?
-
One-line description of what invoking the peer for this is good for.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- name → String
-
The namespaced capability id (e.g.
yoclip.render).final - payload → String?
-
Free-form payload hint (what to include in the DM), when any.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → List< Map< String, String> > -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
listFromJson(
Object? node) → List< AgentCapability> -
Tolerant decode of the
.capabilitiesmarker payload: a JSON list of{name, description?, payload?}maps; malformed entries are skipped.