Interface: FileSystemPersonaLoaderConfig
Defined in: packages/agentos/src/cognition/substrate/personas/PersonaLoader.ts:26
Configuration specific to the FileSystemPersonaLoader.
Interface
FileSystemPersonaLoaderConfig
Extends
Properties
fileExtension?
optionalfileExtension:string
Defined in: packages/agentos/src/cognition/substrate/personas/PersonaLoader.ts:49
Optional
File extension to look for (e.g., ".persona.json", ".json"). Must include the leading dot.
Default
".json"
loaderType?
optionalloaderType:string
Defined in: packages/agentos/src/cognition/substrate/personas/IPersonaLoader.ts:33
Optional
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"
Inherited from
PersonaLoaderConfig.loaderType
options?
optionaloptions:Record<string,any>
Defined in: packages/agentos/src/cognition/substrate/personas/IPersonaLoader.ts:40
Optional
Optional: Additional configuration parameters specific to the loader type.
Inherited from
personaDefinitionPath
personaDefinitionPath:
string
Defined in: packages/agentos/src/cognition/substrate/personas/PersonaLoader.ts:32
The file system path to the directory containing persona definition JSON files.
This overrides the generic personaSource from PersonaLoaderConfig.
personaSource
personaSource:
string
Defined in: packages/agentos/src/cognition/substrate/personas/IPersonaLoader.ts:24
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.
Examples
"./personas" (for file system loading)
"mongodb://localhost:27017/personas" (for database loading)
Inherited from
PersonaLoaderConfig.personaSource
recursiveSearch?
optionalrecursiveSearch:boolean
Defined in: packages/agentos/src/cognition/substrate/personas/PersonaLoader.ts:40
Optional
If true, recursively search for .json files in subdirectories.
Default
false