Skip to content
Proud to collaborate with Microsoft for Startups

agents.memory-save ​

Save new memory entries for an agent config

Persist new memory entries for an agent session, skipping low-signal entries.

Overview ​

PropertyValue
Workflow typeLinear
LibraryApp-agents
Version1.0

Triggers ​

SourceEndpoint / EventDescription
INTERNALinternal.invocationInternal — called by the agents platform during session execution

Input Schema ​

FieldTypeRequiredDefaultDescription
session_uuidstringYes——
agent_config_uuidstringYes——
principal_refstringNo—Whose memory this is. Defaults to the session's own caller_ref, so callers normally omit it.
organization_uuidstringYes——
entrieslistYes—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 ​

FieldTypeRequiredDefaultDescription
errorstringNo——
error_typestringNo——
failed_atstringNo——
failed_at_statestringNo——
failed_layerjsonNo——
failed_stepstringNo——
failure_reasonstringNo——
savedjsonNo——
skippedjsonNo——
reinforcedjsonNo——
skipped_reasonstringNo—Why nothing was written (the session may not hold memory)
session_uuidjsonNo——
agent_config_uuidjsonNo——
principal_refjsonNo——
organization_uuidjsonNo——
entriesjsonNo——

States ​

StateInitialTerminalSuccessAuto-advanceDescription
initiatedYesNo—run—
runNoNo—complete—
completedNoYesYes——
failedNoYesNo——

State Diagram ​

Transitions ​

FromActionToDescription
initiatedrunrun—
runcompletecompleted—
* (any state)failfailed—

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"
  }
}