SmartMemory
POST
/memory/recall/pack

Assemble the most useful context that fits in budget_tokens.

Returns {block, manifest}. 400 on an out-of-range budget, an unknown section name or preset, or both preset and sections — a typo'd section must surface rather than silently shrink the pack, and an ambiguous request must not be silently resolved.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://example.com/memory/recall/pack" \  -H "Content-Type: application/json" \  -d '{}'
null
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}