Nowledge Mem APIMemories
Create Memory
Create a new memory with automatic entity extraction.
Request Body
application/json
content*string
Memory content
Length
length <= 1792title?Title|Title
Optional descriptive title for the memory
source_thread_id?Source Thread Id|Source Thread Id
Source thread ID
source_message_range?|Source Message Range
Source message range {start_index, end_index}
source?Source|Source
Source application (cursor, chatwise, manual, etc.)
importance?number
Importance score
Default
0.5Range
0 <= value <= 1confidence?number
Confidence score
Default
0.5Range
0 <= value <= 1labels?|Labels
Label names to assign
metadata?
Additional metadata
event_start?Event Start|Event Start
When the event occurred. Format: YYYY, YYYY-MM, or YYYY-MM-DD
event_end?Event End|Event End
When event ended (for ranges). Format: YYYY, YYYY-MM, or YYYY-MM-DD
temporal_context?Temporal Context|Temporal Context
Temporal context: 'past', 'present', 'future', or 'timeless'
Response Body
application/json
application/json
curl -X POST "http://127.0.0.1:14242/memories" \ -H "Content-Type: application/json" \ -d '{ "content": "string" }'{
"memory": {
"id": "string",
"node_type": "Thread",
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"metadata": {},
"content": "string",
"title": "string",
"importance": 0.5,
"confidence": 0.5,
"embedding": [
0
],
"source_range": {
"property1": 0,
"property2": 0
},
"source": "string",
"semantic_field": "string",
"reindex_needed": false,
"last_reindexed_at": "2019-08-24T14:15:22Z",
"last_accessed_at": "2019-08-24T14:15:22Z",
"access_count": 0,
"appearances": 0,
"clicks": 0,
"total_dwell_time_ms": 0,
"last_clicked_at": "2019-08-24T14:15:22Z",
"decay_score_cached": 1,
"temporal_context": "timeless",
"temporal_type": "string",
"event_start": "string",
"event_end": "string",
"temporal_precision": "string",
"temporal_confidence": 1
},
"extracted_entities": [
{
"id": "string",
"node_type": "Thread",
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"metadata": {},
"name": "string",
"entity_type": "string",
"description": "string",
"aliases": [
"string"
],
"confidence": 0.5,
"entity_created": "string",
"entity_ended": "string",
"temporal_precision": "string",
"temporal_confidence": 1,
"temporal_context": "string"
}
],
"assigned_labels": [
"string"
],
"created_relationships": 0
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}