Skip to main content

createKnowledgeStore()

createKnowledgeStore(config?): KnowledgeStore

Defined in: knowledge-store.ts:152

Create a filesystem-based knowledge store for accumulating execution intelligence.

Parameters

ParameterTypeDescription
config?KnowledgeStoreConfigOptional configuration with base directory path.

Returns

KnowledgeStore

A KnowledgeStore that persists events and maintains agent profiles.

Example

const store = createKnowledgeStore({ baseDir: '.agentflow/knowledge' });
store.append(createExecutionEvent(graph));
const profile = store.getAgentProfile('my-agent');