跳转到内容
EN

列出记忆

GET/anthropic/v1/memory_stores/{memory_store_id}/memories○ 未支持

请求参数

  • memory_store_idstring必填

    path: 记忆库 ID(路径或查询参数)。

  • depthnumber可选

    query: 子节点回溯深度:0(默认)递归返回全部后代,1 只返回直接子节点。

  • path_prefixstring可选

    query: 按路径前缀过滤(需以 / 结尾并对齐分段)。

  • viewstring可选

    query: 返回投影:basic 省略内容,full 附带完整内容。

  • limitnumber可选

    query: 每页返回的条数上限。

  • pagestring可选

    query: 分页游标,取自上一页响应的 next_page。

返回

501 平台还没有实现这个端点;调用会得到下面这个响应:

平台还没有提供智能体可读写的持久记忆库。调用会返回 501(not_implemented_error),不产生副作用,官方 SDK 不会重试。

错误按 Claude Managed Agents 格式返回,参见 错误码

请求示例

curl
curl https://api.deepraxis.com/anthropic/v1/memory_stores/memory_store_123/memories \
  -H "x-api-key: $PRAXIS_API_KEY" \
  -H "anthropic-version: 2023-06-01" \
  -H "anthropic-beta: managed-agents-2026-04-01"
Python
from anthropic import Anthropic

client = Anthropic(
    base_url="https://api.deepraxis.com/anthropic",
    api_key="$PRAXIS_API_KEY",
)

# 官方有、平台未支持:调用得到 501(not_implemented_error),无副作用。
result = client.beta.memory_stores.memories.list("memory_store_123")
print(result)
TypeScript
import Anthropic from "@anthropic-ai/sdk";

const client = new Anthropic({
  baseURL: "https://api.deepraxis.com/anthropic",
  apiKey: "$PRAXIS_API_KEY",
});

// 官方有、平台未支持:调用得到 501(not_implemented_error),无副作用。
const result = await client.beta.memoryStores.memories.list("memory_store_123");
console.log(result);

响应示例 501

{
  "type": "error",
  "error": {
    "type": "not_implemented_error",
    "message": "Not implemented: this Managed Agents operation is not implemented on this platform yet (GET /v1/memory_stores/{memory_store_id}/memories); see the docs for the supported subset."
  },
  "request_id": "4ed47a88-29e8-4df3-85bd-9bb00e08ce3c"
}

响应

HTTP 200

Successful response

application/json

名称 类型 说明
data array<object>
data[].id string Unique identifier for this memory (a mem_... value). Stable across renames; use this ID, not the path, to read, update, or delete the memory.
data[].content_sha256 string Lowercase hex SHA-256 digest of the UTF-8 content bytes (64 characters). The server applies no normalization, so clients can compute the same hash locally for staleness checks and as the value for a content_sha256 precondition on update. Always populated, regardless of view.
data[].content_size_bytes number Size of content in bytes (the UTF-8 plaintext length). Always populated, regardless of view.
data[].created_at string A timestamp in RFC 3339 format
data[].memory_store_id string ID of the memory store this memory belongs to (a memstore_... value).
data[].memory_version_id string ID of the memory_version representing this memory's current content (a memver_... value). This is the authoritative head pointer; memory_version objects do not carry an is_latest flag, so compare against this field instead. Enumerate the history via List memory versions.
data[].path string Hierarchical path of the memory within the store, e.g. /projects/foo/notes.md. Always starts with /. Paths are case-sensitive and unique within a store. Maximum 1,024 bytes. / The rolled-up path prefix, including a trailing / (e.g. /projects/foo/). Pass this value as path_prefix on a subsequent list call to drill into the directory.
data[].type string
data[].updated_at string A timestamp in RFC 3339 format
data[].content null | string The memory's UTF-8 text content. Populated when view=full; null when view=basic. Maximum 100 kB (102,400 bytes).
next_page string | null