Interface AddMemoryOptions
These options allow you to categorize and add rich context to a memory entry. This metadata is crucial for later filtering and semantic retrieval.
| Property | Type | Description |
|---|---|---|
producer | string | Optional. The Entity ID of who created the memory. |
produced_for | string | Optional. The Target Entity ID the memory is intended for. |
role | MemoryProducerRole | Optional. The role of the creator (user, assistant, or system). |
episode_type | string | Optional. A custom category for the entry (e.g., 'conversation', 'note'). |
metadata | Record<string, unknown> | Optional. A key-value map for any additional custom data. |
types | MemoryType[] | Optional. Specify if this should be stored as episodic, semantic, or both. |
Interface AddMemoryResult
This is the confirmation object returned by the server after successfully adding a memory.
| Property | Type | Description |
|---|---|---|
results | object[] | An array of objects, each containing a uid (string) for the newly created entry. |

