Handles the storage, search, and analysis of past conversations and personal notes.
Data Model
er Memory & Reflection data model erDiagram
note {
string id PK
string targetId
string targetType
string content
string visibility
datetime createdAt
}
insight {
string id PK
string sessionId
string type
string description
datetime generatedAt
}
targetId string [note: 'markerId or transcriptSegmentId']
targetType string [note: 'marker | transcript-segment']
visibility string [note: 'private | shared']
sessionId string [note: 'Links to conversation/session']
type string [note: 'recurring-theme | contradiction | unmet-need']
API
Propertiesquerystring
| Parameter | Type | Required | Description |
query | string | — | |
Propertiesmarker-idstringcontentstringvisibilitystring
| Parameter | Type | Required | Description |
marker-id | string | — | |
content | string | — | |
visibility | string | — | 'private' or 'shared' |
Propertiestarget-idstringvisibilitystring
| Parameter | Type | Required | Description |
target-id | string | — | |
visibility | string | — | |
Propertiesvoice-querystring
| Parameter | Type | Required | Description |
voice-query | string | — | |
Propertiessession-idstringtypestringdescriptionstring
| Parameter | Type | Required | Description |
session-id | string | — | |
type | string | — | |
description | string | — | |
Propertiestarget-idstringvisibilitystring
| Parameter | Type | Required | Description |
target-id | string | — | |
visibility | string | — | |
Input Parameterstranscriptobject
| Parameter | Type | Required | Description |
transcript | object | — | |
| Error ID | Code | Category | Description |
pattern-detection-failed | TODO | domain | Thrown when the local AI model fails to process a transcript. |
Reactive Topology
autoflow Memory & Reflection reactive topology flowchart LR;
classDef actionNode fill:#e3f2fd,stroke:#1e88e5,color:#0d47a1;
classDef eventNode fill:#e8f5e9,stroke:#4caf50,color:#1b5e20;
classDef errorNode fill:#ffebee,stroke:#ef5350,color:#b71c1c;
classDef externalNode fill:#f5f5f5,stroke:#9e9e9e,color:#616161,stroke-dasharray:4 4;
subgraph memory-reflection ["Memory & Reflection"]
n0(["search-memory"])
n1(["add-note"])
n2(["update-privacy"])
n3(["query-ai"])
n4{{"insight-generated"}}
n5{{"privacy-updated"}}
n6{{"pattern-detection-failed"}}
end
n1 -- success --> n5
class n0,n1,n2,n3 actionNode;
class n4,n5 eventNode;
class n6 errorNode;
click n0 href "/domains/memory-reflection#search-memory" _self;
click n1 href "/domains/memory-reflection#add-note" _self;
click n2 href "/domains/memory-reflection#update-privacy" _self;
click n3 href "/domains/memory-reflection#query-ai" _self;
click n4 href "/domains/memory-reflection#insight-generated" _self;
click n5 href "/domains/memory-reflection#privacy-updated" _self;
click n6 href "/domains/memory-reflection#pattern-detection-failed" _self;