Claude Platform Docs

Memory-Versionen

Memory-Versionen auflisten
client.Beta.MemoryStores.MemoryVersions.List(ctx, memoryStoreID, params) (*PageCursor[BetaManagedAgentsMemoryVersion], error)
GET/v1/memory_stores/{memory_store_id}/memory_versions
Memory-Version abrufen
client.Beta.MemoryStores.MemoryVersions.Get(ctx, memoryVersionID, params) (*BetaManagedAgentsMemoryVersion, error)
GET/v1/memory_stores/{memory_store_id}/memory_versions/{memory_version_id}
Memory-Version schwärzen
client.Beta.MemoryStores.MemoryVersions.Redact(ctx, memoryVersionID, params) (*BetaManagedAgentsMemoryVersion, error)
POST/v1/memory_stores/{memory_store_id}/memory_versions/{memory_version_id}/redact
Models
type BetaManagedAgentsActorUnion interface{…}

Identifies who performed an operation. Recorded when the operation happens and not updated afterwards, so the ID may refer to a user, service account, API key, or session that has since been deleted.

One of the following:
type BetaManagedAgentsAPIActor struct { Type: "api_actor"; APIKeyID }

A direct caller of the public API, identified by the API key that authenticated the request.

Type BetaManagedAgentsAPIActorType
APIKeyID string

ID of the API key (an apikey_... value). This identifies the key, not the secret.

minLength1
type BetaManagedAgentsMemoryVersion struct { Type: "memory_version"; ID; CreatedAt; /* 10 more */ }

A memory_version object: one immutable, attributed row in a memory's append-only history. Every non-no-op mutation to a memory produces a new version. Versions belong to the store (not the individual memory) and are not deleted with the memory; each version is retained for at least the version retention period after it was written, unless the store itself is deleted. Retrieving a redacted version returns 200 with content, path, content_size_bytes, and content_sha256 set to null; branch on redacted_at, not HTTP status.

type BetaManagedAgentsMemoryVersionOperation 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.

One of the following:
const BetaManagedAgentsMemoryVersionOperationCreated BetaManagedAgentsMemoryVersionOperation = "created"

The memory was created. The first version in any memory's lineage.

const BetaManagedAgentsMemoryVersionOperationModified BetaManagedAgentsMemoryVersionOperation = "modified"

The memory's content, path, or both were changed via update. Writes the agent makes through the filesystem mount also appear as modified.

const BetaManagedAgentsMemoryVersionOperationDeleted BetaManagedAgentsMemoryVersionOperation = "deleted"

The memory was deleted. The content, content_size_bytes, and content_sha256 fields are null on this version. The preceding version, while it is retained, records the deleted content's size and hash.

type BetaManagedAgentsServiceAccountActor struct { Type: "service_account_actor"; ServiceAccountID }

A workload authenticated as a service account, for example via Workload Identity Federation.

Type ServiceAccountActor
ServiceAccountID string

ID of the service account (a svac_... value).

minLength1
type BetaManagedAgentsSessionActor struct { Type: "session_actor"; SessionID }

An agent acting during a session, for example through the session's mounted filesystem. It names the session itself, not the user or API key that started the session.

Type BetaManagedAgentsSessionActorType
SessionID string

ID of the session (a sesn_... value). Look up the session via Retrieve a session for further provenance.

minLength1
type BetaManagedAgentsUserActor struct { Type: "user_actor"; UserID }

A human user, for example acting through the Anthropic Console.

Type BetaManagedAgentsUserActorType
UserID string

ID of the user (a user_... value).

minLength1