createKnowledgeStore()
createKnowledgeStore(
config?):KnowledgeStore
Defined in: knowledge-store.ts:152
Create a filesystem-based knowledge store for accumulating execution intelligence.
Parameters
| Parameter | Type | Description |
|---|---|---|
config? | KnowledgeStoreConfig | Optional configuration with base directory path. |
Returns
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');