@elizaos/core v1.0.0-beta.51 / DirectoryItem
Interface: DirectoryItem
Represents an item within a directory listing, specifically for knowledge loading.
When an agent's Character.knowledge
configuration includes a directory, this type
is used to specify the path to that directory and whether its contents should be treated as shared.
directory
: The path to the directory containing knowledge files.shared
: An optional boolean (defaults to false) indicating if the knowledge from this directory is considered shared or private.
Properties​
directory​
directory:
string
The path to the directory containing knowledge files.
Defined in​
packages/core/src/types.ts:1303
shared?​
optional
shared:boolean
If true, knowledge from this directory is considered shared; otherwise, it's private. Defaults to false.