AnthropicClaude 托管智能体

读取记忆版本

读取一条记忆的某个历史版本内容。

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

请求参数

  • memory_store_idstring必填

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

  • memory_version_idstring必填

    path: 路径参数:记忆版本 ID。

  • memory_store_idstring必填

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

  • viewstring可选

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

返回

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

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

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

响应

HTTP 200

Successful response

application/json

名称类型说明
idstringUnique identifier for this version (a `memver_...` value).
created_atstringA timestamp in RFC 3339 format
memory_idstringID 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.
memory_store_idstringID of the memory store this version belongs to (a `memstore_...` value).
operationstringThe 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.
typestring
contentnull | stringThe memory's UTF-8 text content as of this version. `null` when `view=basic`, when `operation` is `deleted`, or when `redacted_at` is set.
content_sha256null | stringLowercase 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.
content_size_bytesnull | numberSize of `content` in bytes as of this version. `null` when `redacted_at` is set or `operation` is `deleted`. Populated regardless of `view` otherwise.
created_byobjectIdentifies 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.
created_by.session_idstringID of the session that performed the write (a `sesn_...` value). Look up the session via Retrieve a session for further provenance.
created_by.typestring
created_by.api_key_idstringID of the API key that performed the write. This identifies the key, not the secret.
created_by.user_idstringID of the user who performed the write (a `user_...` value).
created_by.service_account_idstringID of the service account that performed the write (a `svac_...` value).
pathnull | stringThe memory's path at the time of this write. `null` if and only if `redacted_at` is set.
redacted_atnull | stringA timestamp in RFC 3339 format
redacted_byobjectIdentifies 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.
redacted_by.session_idstringID of the session that performed the write (a `sesn_...` value). Look up the session via Retrieve a session for further provenance.
redacted_by.typestring
redacted_by.api_key_idstringID of the API key that performed the write. This identifies the key, not the secret.
redacted_by.user_idstringID of the user who performed the write (a `user_...` value).
redacted_by.service_account_idstringID of the service account that performed the write (a `svac_...` value).