Skip to content
Developer Preview

SessionCompactParams

session/compact params: manually compact the session’s conversation context — the /compact gesture. Compaction runs asynchronously; the ack is admission only.

  • commandId
  • sessionId
  • turnId
Source

schema/msp/experimental/msp.schema.json#/types/SessionCompactParams

{
"description": "`session/compact` params: manually compact the session's\nconversation context — the `/compact` gesture. Compaction runs\nasynchronously; the ack is admission only.",
"properties": {
"commandId": {
"description": "The idempotency handle (UUIDv7).",
"type": "string"
},
"sessionId": {
"description": "The target session.",
"type": "string"
},
"turnId": {
"description": "The run whose context to compact. Omit and the server resolves the\nsession's current/latest run; a session with no resolvable run rejects\nwith `commandRejected` reason `missing_run`.",
"type": "string"
}
},
"required": [
"commandId",
"sessionId"
],
"type": "object"
}