Package com.google.genkit.core
Interface DynamicPlugin
- All Superinterfaces:
Plugin
DynamicPlugin is a Plugin that can dynamically resolve actions. This is
useful for plugins that provide a large number of actions or actions that are
determined at runtime.
-
Method Summary
Modifier and TypeMethodDescriptionReturns a list of action descriptors that the plugin is capable of resolving.Action<?, ?, ?> resolveAction(ActionType type, String name) Resolves an action by type and name.
-
Method Details
-
listActions
List<ActionDesc> listActions()Returns a list of action descriptors that the plugin is capable of resolving.- Returns:
- list of action descriptors
-
resolveAction
Resolves an action by type and name.- Parameters:
type- the action typename- the action name- Returns:
- the resolved action, or null if not resolvable
-