Interface PersonaLoaderConfig

Configuration for the PersonaLoader.

Interface

PersonaLoaderConfig

interface PersonaLoaderConfig {
    personaSource: string;
    loaderType?: string;
    options?: Record<string, any>;
}

Hierarchy (view full)

Properties

personaSource: string

The source from which to load persona definitions. This could be a file system path, a database connection string, an API endpoint, etc. The interpretation of this field is up to the implementing class.

Example

"./personas" (for file system loading)

Example

"mongodb://localhost:27017/personas" (for database loading)
loaderType?: string

Optional: Specifies the type of loader to use, if multiple strategies are supported by a factory or a more complex loader implementation.

Example

"file_system", "database", "http_endpoint"
options?: Record<string, any>

Optional: Additional configuration parameters specific to the loader type.