Skip to content

记忆

查询元任务记忆

GET /external/v1/projects/{project_id}/task-types/{task_type}/memories

task_type 可以是元任务的 identifier 字符串或 UUID。

参数类型默认值说明
limitinteger20分页条数(最大 100)
offsetinteger0分页偏移
bash
curl "http://localhost:8000/external/v1/projects/PROJECT_ID/task-types/summariser/memories?limit=5" \
  -H "Authorization: Bearer API_KEY"

响应(200):

json
{
  "task_type": "summariser",
  "memories": [
    { "id": "mem-uuid", "memory": "用户偏好简洁的摘要风格", "created_at": "..." }
  ],
  "count": 1,
  "offset": 0,
  "limit": 5
}

提示:如需语义相似度检索,请使用 Workflow 脚本中的 list_task_type_memories(query=...) 函数或内部 API。


查询任务记忆

GET /external/v1/projects/{project_id}/tasks/{task_id}/memories
参数类型默认值说明
limitinteger20分页条数
offsetinteger0分页偏移
bash
curl "http://localhost:8000/external/v1/projects/PROJECT_ID/tasks/TASK_ID/memories" \
  -H "Authorization: Bearer API_KEY"

响应(200):

json
{
  "task_type": "summariser",
  "memories": [
    { "id": "mem-uuid", "memory": "用户偏好简洁的摘要风格", "created_at": "..." }
  ],
  "count": 1,
  "offset": 0,
  "limit": 5
}

查询任务记忆

GET /external/v1/projects/{project_id}/tasks/{task_id}/memories
参数类型默认值说明
limitinteger20分页条数
offsetinteger0分页偏移
bash
curl "http://localhost:8000/external/v1/projects/PROJECT_ID/tasks/TASK_ID/memories" \
  -H "Authorization: Bearer API_KEY"

Built with VitePress