接口
认证
Authorization: Bearer <jwt> 或 X-API-Key <sk_...>。最小角色:viewer。
路径参数
string
required
工作空间 id。
请求体
string
检索文本,省略时回退到查询参数
query。integer
返回的最大记忆条数。
integer
返回内容的最大字符数预算。
响应
array
命中记忆数组,每项含
content 等字段。object
预算统计。
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
curl -X POST https://memo.ariacompute.cn/v1/workspaces/ws_01a2b3c4d5e6/chat-memories/search \
-H "Authorization: Bearer <jwt>" \
-H "Content-Type: application/json" \
-d '{"query":"用户的身份与偏好","max_items":10,"max_chars":2000}'
{
"hits": [
{
"id": "cm_01a2b3c4d5e6",
"content": "用户是开发者,关注定价与集成。",
"layer": 3,
"kind": "persona"
}
],
"budget": { "items": 1, "chars": 18 }
}
通过 POST /v1/workspaces/:workspace_id/chat-memories/search 分层检索对话记忆,带预算控制。最小角色 viewer。
curl -X POST https://memo.ariacompute.cn/v1/workspaces/ws_01a2b3c4d5e6/chat-memories/search \
-H "Authorization: Bearer <jwt>" \
-H "Content-Type: application/json" \
-d '{"query":"用户的身份与偏好","max_items":10,"max_chars":2000}'
{
"hits": [
{
"id": "cm_01a2b3c4d5e6",
"content": "用户是开发者,关注定价与集成。",
"layer": 3,
"kind": "persona"
}
],
"budget": { "items": 1, "chars": 18 }
}
POST /v1/workspaces/:workspace_id/chat-memories/search
Authorization: Bearer <jwt> 或 X-API-Key <sk_...>。最小角色:viewer。
query。content 等字段。curl -X POST https://memo.ariacompute.cn/v1/workspaces/ws_01a2b3c4d5e6/chat-memories/search \
-H "Authorization: Bearer <jwt>" \
-H "Content-Type: application/json" \
-d '{"query":"用户的身份与偏好","max_items":10,"max_chars":2000}'
{
"hits": [
{
"id": "cm_01a2b3c4d5e6",
"content": "用户是开发者,关注定价与集成。",
"layer": 3,
"kind": "persona"
}
],
"budget": { "items": 1, "chars": 18 }
}
Was this page helpful?