跳转到内容
EN

列出记忆版本

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

请求参数

  • memory_store_idstring必填

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

  • api_key_idstring可选

    query: 只返回用该 API Key 写入的版本。

  • created_at[gte]string可选

    query: 只返回不早于该时间创建的记录。

  • created_at[lte]string可选

    query: 只返回不晚于该时间创建的记录。

  • memory_idstring可选

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

  • operationstring可选

    query: 只返回记录该类变更的版本。

  • service_account_idstring可选

    query: 只返回该服务账号写入的版本。

  • session_idstring可选

    query: 会话 ID(路径或查询参数)。

  • viewstring可选

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

  • limitnumber可选

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

  • 更多参数 (1)
    • 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/memory_versions \
  -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.memory_versions.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.memoryVersions.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}/memory_versions); see the docs for the supported subset."
  },
  "request_id": "7a72d93a-1d03-4cea-a4a0-7ebf718296ed"
}

响应

HTTP 200

Successful response

application/json

名称 类型 说明
data array<object>
data[].id string Unique identifier for this version (a memver_... value).
data[].created_at string A timestamp in RFC 3339 format
data[].memory_id string ID of the memory this version snapshots (a mem_... value). Remains valid after the memory is deleted; pass it as memory_id to List memory versions to retrieve the memory's retained versions, including the deleted row while the lineage is retained.
data[].memory_store_id string ID of the memory store this version belongs to (a memstore_... value).
data[].operation string The kind of mutation a memory_version records. Every non-no-op mutation to a memory appends exactly one version row with one of these values.
data[].type string
data[].content null | string The memory's UTF-8 text content as of this version. null when view=basic, when operation is deleted, or when redacted_at is set.
data[].content_sha256 null | string Lowercase hex SHA-256 digest of content as of this version (64 characters). null when redacted_at is set or operation is deleted. Populated regardless of view otherwise.
data[].content_size_bytes null | number Size of content in bytes as of this version. null when redacted_at is set or operation is deleted. Populated regardless of view otherwise.
data[].created_by object Identifies who performed a write or redact operation. Captured at write time on the memory_version row. The API key that created a session is not recorded on agent writes; attribution answers who made the write, not who is ultimately responsible. Look up session provenance separately via the Sessions API.
data[].path null | string The memory's path at the time of this write. null if and only if redacted_at is set.
data[].redacted_at null | string A timestamp in RFC 3339 format
data[].redacted_by object Identifies who performed a write or redact operation. Captured at write time on the memory_version row. The API key that created a session is not recorded on agent writes; attribution answers who made the write, not who is ultimately responsible. Look up session provenance separately via the Sessions API.
next_page string | null