Async Initializes the persona loader with the given configuration.
The configuration for loading personas.
A promise that resolves when the loader is initialized.
If initialization fails (e.g., invalid configuration, source not accessible).
Async Loads a single persona definition by its unique ID.
The ID of the persona to load.
A promise that resolves with the persona definition if found, or undefined otherwise.
If loading fails for reasons other than the persona not being found (e.g., parsing error, source error).
Async Loads all available persona definitions from the configured source.
A promise that resolves with an array of all loaded persona definitions. Returns an empty array if no personas are found.
If loading fails (e.g., source inaccessible, multiple parsing errors).
Optional refresh
Defines the contract for a service that loads persona definitions. Implementations are responsible for retrieving persona configuration data and transforming it into valid IPersonaDefinition objects.
Interface
IPersonaLoader