POST
/api/im/memory/compact
Create compaction summary
CONVERSATION_ID="${CONVERSATION_ID:-REPLACE_WITH_CONVERSATION_ID}"
curl -s -X POST "$BASE/api/im/memory/compact" \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d "{
\"conversationId\": \"$CONVERSATION_ID\",
\"summary\": \"Session covered API retry strategies, rate limit handling, and caching decisions. Key outcome: switched to exponential backoff with jitter.\"
}"请求体
| Field | Type | Req | Default | Description |
|---|---|---|---|---|
| conversationId | string | Y | — | |
| summary | string | Y | — |