67 lines
1.0 KiB
Markdown
67 lines
1.0 KiB
Markdown
|
|
# Memories Protocol
|
||
|
|
|
||
|
|
> **NOTE**: This document is the single source of truth. All implementations must follow this specification.
|
||
|
|
|
||
|
|
## Overview
|
||
|
|
|
||
|
|
User memories stored in the system with flexible content structure.
|
||
|
|
|
||
|
|
## Version
|
||
|
|
|
||
|
|
- **Current**: `1.0`
|
||
|
|
- **Status**: Active
|
||
|
|
|
||
|
|
---
|
||
|
|
|
||
|
|
## Memory Content
|
||
|
|
|
||
|
|
```typescript
|
||
|
|
interface MemoryContent {
|
||
|
|
// Reserved for future use
|
||
|
|
// Currently unused, allowing custom extensions
|
||
|
|
[key: string]: any;
|
||
|
|
}
|
||
|
|
```
|
||
|
|
|
||
|
|
---
|
||
|
|
|
||
|
|
## Database Field
|
||
|
|
|
||
|
|
| Field | Type | Description |
|
||
|
|
|-------|------|-------------|
|
||
|
|
| content | jsonb | Memory content with flexible structure |
|
||
|
|
|
||
|
|
---
|
||
|
|
|
||
|
|
## JSON Examples
|
||
|
|
|
||
|
|
### Empty Content
|
||
|
|
|
||
|
|
```json
|
||
|
|
{}
|
||
|
|
```
|
||
|
|
|
||
|
|
### Future Usage Example
|
||
|
|
|
||
|
|
```json
|
||
|
|
{
|
||
|
|
"text": "Remember that user prefers morning meetings",
|
||
|
|
"category": "preference",
|
||
|
|
"importance": "high",
|
||
|
|
"tags": ["meetings", "morning", "preference"]
|
||
|
|
}
|
||
|
|
```
|
||
|
|
|
||
|
|
### Agent Memory Example
|
||
|
|
|
||
|
|
```json
|
||
|
|
{
|
||
|
|
"summary": "User discussed vacation plans for March",
|
||
|
|
"entities": {
|
||
|
|
"dates": ["2026-03-15", "2026-03-20"],
|
||
|
|
"locations": ["Tokyo", "Osaka"]
|
||
|
|
},
|
||
|
|
"sentiment": "positive"
|
||
|
|
}
|
||
|
|
```
|