Memory
A Memory is a Worker’s own Collection of what it has learned and kept, read by its Functions.
Properties
Inherited from Collection: 1 property
| Property | Type | Required | Description |
|---|---|---|---|
query | json | The saved query that defines a dynamic Collection. |
Inherited from Thing: 4 properties
| Property | Type | Required | Description |
|---|---|---|---|
id | string | required | The stable identifier, which never changes. |
type | list of Noun | required | The Nouns this Thing is an instance of. |
state | string | The current state in its lifecycle. | |
outside | json | The ids this Thing has in outside tools, one per Integration, so a re-run matches instead of duplicating. |
Object
{
"$id": "https: //api.sb/ shiftnote.app/ memories/ memory_1",
"$type": "Memory",
"id": "Example id",
"type": [
"noun_1"
],
"state": "Example state",
"outside": {},
"query": {}
}Relationships
- A Memory is held by one Worker: a Worker’s own Memory of what it has learned, read by its Functions and kept within its Startup.
heldBy, inverseremembers.
Verbs
createCreates a Memory.POST /{namespace}/memoriesgetReturns one Memory by id.GET /{namespace}/memories/{id}listReturns Memories, newest first, one page at a time.GET /{namespace}/memoriesupdateChanges the given properties of a Memory.PATCH /{namespace}/memories/{id}deleteDeletes a Memory; its history is kept.DELETE /{namespace}/memories/{id}
Permissions
Which Access level may call each Verb. One-way Verbs wait their delay window.
| Operation | owner | admin | member | viewer |
|---|---|---|---|---|
Memory.create | Yes | Yes | Yes | No |
Memory.get | Yes | Yes | Yes | Yes |
Memory.list | Yes | Yes | Yes | Yes |
Memory.update | Yes | Yes | Yes | No |
Memory.delete | Yes | Yes | Yes | No |
Call it
Add a memory to RouteWise with a noun.Example
The Memory of Sienna, the Success Manager of a meal-planning App, holds that one household skips weekend dinners and dislikes cilantro. Her Functions read both before each suggestion.