Registry class

Constructors

Registry({Registry? parent})
Registry.childOf(Registry parent)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
parent Registry?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getDynamicAction(ParsedRegistryKey parsedKey) Future<Action?>
Resolves an action addressed through a dynamic action provider, given a parsedKey whose dynamicActionHost is set. Returns null when the host is not a registered provider, the name is a wildcard (which addresses many actions, not one), or the provider cannot resolve it.
listActions() Future<List<ActionMetadata>>
listResolvableActions() Future<Map<String, ActionMetadata>>
Returns every action that can be resolved, keyed by registry key, with dynamic action providers expanded into their individual actions. Used by the reflection API / Dev UI so DAP-provided tools, prompts, and resources are individually listable. Mirrors JS's listResolvableActions.
listValues<T>(String type) Map<String, T>
lookupAction(ActionType actionType, String name) Future<Action?>
lookupActionByKey(String key) Future<Action?>
Resolves an action from a full registry key string, handling both plain keys (/model/googleai/gemini-flash-latest) and dynamic-action-provider keys (/dynamic-action-provider/<host>:<actionType>/<name>). Mirrors JS's key-based lookupAction, which the Dev UI relies on to run DAP-expanded actions (their keys are the DAP keys returned by listResolvableActions).
lookupValue<T>(String type, String name) → T?
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
register(Action action) → void
registerPlugin(GenkitPlugin plugin) → void
registerValue(String type, String name, dynamic value) → void
resolveActionNames(String key) Future<List<String>>
Expands a possibly-wildcard key into the concrete keys it addresses.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited