AI Components / Memory Panel
Memory Panel
Agent memory display with short-term (conversation) and long-term (persisted) sections. Search, pin, delete.
ai-workflow v0.4.0
Playground
Examples
Agent memory
<ai-memory-panel style="max-width: 450px;"></ai-memory-panel> Import
import { AiMemoryPanel } from '@cognivo/components'; // Or tree-shake: import '@cognivo/components/ai-memory-panel'; Per-component imports ship only that component (~8 kB gzip).
API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
shortTerm | Memory[] | — | Short-term memories |
longTerm | Memory[] | — | Long-term memories |
searchable | boolean | true | Enable search |
Events
| Event | Detail | Description |
|---|---|---|
ai-memory-delete | {id, type} | Memory deleted |
ai-memory-pin | {id, pinned} | Memory pinned/unpinned |
ai-memory-search | {query} | Search query changed |