agents.memory-save ​
Save new memory entries for an agent config
Persist new memory entries for an agent session, skipping low-signal entries.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Linear |
| Library | App-agents |
| Version | 1.0 |
Triggers ​
| Source | Endpoint / Event | Description |
|---|---|---|
| INTERNAL | internal.invocation | Internal — called by the agents platform during session execution |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
session_uuid | string | Yes | — | — |
agent_config_uuid | string | Yes | — | — |
principal_ref | string | No | — | Whose memory this is. Defaults to the session's own caller_ref, so callers normally omit it. |
organization_uuid | string | Yes | — | — |
entries | list | Yes | — | List of memory entries. Each entry must be a dict with REQUIRED text (str) and optional importance (float, default 0.5). Entries with importance < 0.1 are skipped. |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
error | string | No | — | — |
error_type | string | No | — | — |
failed_at | string | No | — | — |
failed_at_state | string | No | — | — |
failed_layer | json | No | — | — |
failed_step | string | No | — | — |
failure_reason | string | No | — | — |
saved | json | No | — | — |
skipped | json | No | — | — |
reinforced | json | No | — | — |
skipped_reason | string | No | — | Why nothing was written (the session may not hold memory) |
session_uuid | json | No | — | — |
agent_config_uuid | json | No | — | — |
principal_ref | json | No | — | — |
organization_uuid | json | No | — | — |
entries | json | No | — | — |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
initiated | Yes | No | — | run | — |
run | No | No | — | complete | — |
completed | No | Yes | Yes | — | — |
failed | No | Yes | No | — | — |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
initiated | run | run | — |
run | complete | completed | — |
* (any state) | fail | failed | — |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "agents.memory-save",
"initial_data": {
"session_uuid": "value",
"agent_config_uuid": "value",
"organization_uuid": "value",
"entries": "value"
}
}