Skip to content
Proud to collaborate with Microsoft for Startups

agents.memory-prune ​

Prune excess memory entries for an agent config, removing lowest-importance oldest first

Remove the lowest-importance, oldest memory entries that exceed the configured cap.

Overview ​

PropertyValue
Workflow typeLinear
LibraryApp-agents
Version1.0

Triggers ​

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

Input Schema ​

FieldTypeRequiredDefaultDescription
agent_config_uuidstringYes——
organization_uuidstringYes——
max_entriesintegerNo——
min_importancefloatNo——

Output Schema ​

FieldTypeRequiredDefaultDescription
deletedjsonNo——
errorstringNo——
error_typestringNo——
failed_atstringNo——
failed_at_statestringNo——
failed_layerjsonNo——
failed_stepstringNo——
failure_reasonstringNo——
remainingjsonNo——
agent_config_uuidjsonNo——
organization_uuidjsonNo——
max_entriesjsonNo——
min_importancejsonNo——

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-prune",
  "initial_data": {
    "agent_config_uuid": "value",
    "organization_uuid": "value"
  }
}