mirror of
https://github.com/simstudioai/sim.git
synced 2026-01-09 15:07:55 -05:00
fix(memories): simplified memories, added memories subblock for agent (#432)
* fix(memories): simplified memories, added memories subblock for agent * removed raw data from memory block, simplified memory config * fix(persistence): persist collapsed state for responseFormat code subblock (#429) * fix(persistence): persist collapsed state for responseFormat code subblock * add additional type safety * acknowledged PR comments
This commit is contained in:
@@ -43,17 +43,15 @@ Create persistent storage for data that needs to be accessed across multiple wor
|
||||
|
||||
### `memory_add`
|
||||
|
||||
Add a new memory to the database or append to existing memory with the same ID. When appending to existing memory, the memory types must match.
|
||||
Add a new memory to the database or append to existing memory with the same ID.
|
||||
|
||||
#### Input
|
||||
|
||||
| Parameter | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `id` | string | Yes | Identifier for the memory. If a memory with this ID already exists, the new data will be appended to it. |
|
||||
| `type` | string | Yes | Type of memory \(agent or raw\) |
|
||||
| `role` | string | No | Role for agent memory \(user, assistant, or system\) |
|
||||
| `content` | string | No | Content for agent memory |
|
||||
| `rawData` | json | No | Raw data to store \(JSON format\) |
|
||||
| `role` | string | Yes | Role for agent memory \(user, assistant, or system\) |
|
||||
| `content` | string | Yes | Content for agent memory |
|
||||
|
||||
#### Output
|
||||
|
||||
|
||||
Reference in New Issue
Block a user