FruxonDocs
ApiAgent memories

Clear the memory sandbox test sessions taught an agent.

Deletes every memory in the agent's `SANDBOX` realm — what sandbox sessions opened with `persistMemory` saved — so the next such session starts with none. Live memory is never touched, and live conversations never read sandbox memory in the first place. Each removed memory is recorded in the deletion trail first, with source `SANDBOX_RESET`. Requires the Editor collaborator role, as testing the agent does. Returns the number removed (0 when there were none).

POST
/v1/tenants/{tenant}/agents/{agent}/memories:resetSandbox
AuthorizationBearer <token>

JWT Authorization header using the Bearer scheme. Enter 'Bearer' [space] and then your token.

In: header

Path Parameters

agent*string

The unique identifier of the agent.

tenant*string

The tenant identifier

Response Body

curl -X POST "https://api.fruxon.com/v1/tenants/string/agents/string/memories:resetSandbox"
{
  "deletedCount": 0
}
Empty
Empty
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string",
  "property1": null,
  "property2": null
}