bodhi-realtime-agent / KnowledgeBaseProcessContext
Interface: KnowledgeBaseProcessContext
Defined in: src/types/knowledge-base.ts:136
Optional hooks for loading file-source KB documents without tying the framework to a specific filesystem layout or storage backend.
When readFileText is omitted, the processor reads UTF-8 via synchronous readFileSync (absolute paths or paths resolved from process.cwd()).
Properties
readFileText?
optionalreadFileText?: (absolutePath) =>string|null
Defined in: src/types/knowledge-base.ts:140
Return UTF-8 text for a resolved absolute file path, or null to skip the document.
Parameters
absolutePath
string
Returns
string | null