SmartMemory
POST
/memory/context

Return a contract-shaped surfacing response for the current turn.

Errors: 400 budget_too_smallmax_tokens too small to fit the smallest mandatory item.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Request body for POST /memory/context — mirrors contract request section.

Response Body

application/json

application/json

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