BlueprintRegistry¶
This docs was updated at: 2026-03-21
com.paragon.agents.BlueprintRegistry ยท Class
Thread-safe global registry for named InteractableBlueprint instances.
Allows blueprints to be registered by a string ID and resolved at deserialization time using
the source: registry discriminator in YAML/JSON.
Usage Example¶
// At startup, register blueprints
BlueprintRegistry.register("clinico-geral", clinicoGeralBlueprint);
// In YAML, reference by ID:
target:
source: registry
id: clinico-geral
Follows the same pattern as GuardrailRegistry and PromptProviderRegistry.
Since: 1.0
Methods¶
register¶
Registers a blueprint with the given ID.
Parameters
| Name | Description |
|---|---|
id |
the unique identifier |
blueprint |
the blueprint to register |
get¶
Retrieves a registered blueprint by ID.
Parameters
| Name | Description |
|---|---|
id |
the blueprint ID |
Returns
the blueprint, or null if not registered
contains¶
Returns whether a blueprint with the given ID is registered.
Parameters
| Name | Description |
|---|---|
id |
the blueprint ID |
Returns
true if registered, false otherwise
unregister¶
Removes a registered blueprint by ID.
Parameters
| Name | Description |
|---|---|
id |
the blueprint ID to remove |
clear¶
Removes all registered blueprints. Useful for testing.
registeredIds¶
Returns a snapshot of all registered IDs.
Returns
an unmodifiable set of registered IDs