Claude Platform Docs

Sumber Daya

Tambah Sumber Daya Sesi
client.Beta.Sessions.Resources.Add(ctx, sessionID, params) (*BetaManagedAgentsFileResource, error)
POST/v1/sessions/{session_id}/resources
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.

Tambah Resource Sesi

Daftar Sumber Daya Sesi
client.Beta.Sessions.Resources.List(ctx, sessionID, params) (*PageCursor[BetaManagedAgentsSessionResourceUnion], error)
GET/v1/sessions/{session_id}/resources
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.

Daftar Resource Sesi

Dapatkan Sumber Daya Sesi
client.Beta.Sessions.Resources.Get(ctx, resourceID, params) (*BetaSessionResourceGetResponseUnion, error)
GET/v1/sessions/{session_id}/resources/{resource_id}
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.

Dapatkan Resource Sesi

Perbarui Sumber Daya Sesi
client.Beta.Sessions.Resources.Update(ctx, resourceID, params) (*BetaSessionResourceUpdateResponseUnion, error)
POST/v1/sessions/{session_id}/resources/{resource_id}
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.

Perbarui Resource Sesi

Hapus Sumber Daya Sesi
client.Beta.Sessions.Resources.Delete(ctx, resourceID, params) (*BetaManagedAgentsDeleteSessionResource, error)
DELETE/v1/sessions/{session_id}/resources/{resource_id}
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.

Hapus Resource Sesi

Models
type BetaManagedAgentsDeleteSessionResource struct { Type: "session_resource_deleted"; ID }

Confirmation of resource deletion.

Type SessionResourceDeleted
ID string
type BetaManagedAgentsFileResource struct { Type: "file"; ID; CreatedAt; /* 3 more */ }
Type File
ID string
CreatedAt Time

A timestamp in RFC 3339 format

formatdate-time
FileID string
MountPath string
UpdatedAt Time

A timestamp in RFC 3339 format

formatdate-time
type BetaManagedAgentsGitHubRepositoryResource struct { Type: "github_repository"; ID; CreatedAt; /* 4 more */ }
type BetaManagedAgentsMemoryStoreResource struct { Type: "memory_store"; MemoryStoreID; Access; /* 4 more */ }

A memory store attached to an agent session.

Type MemoryStore
MemoryStoreID string

The memory store ID (memstore_...). Must belong to the caller's organization and workspace.

pattern^memstore_[a-zA-Z0-9_]+$
Access BetaManagedAgentsMemoryStoreResourceAccess Optional

Access mode for the mounted store. Defaults to read_write. read_only mounts the store as a read-only filesystem.

One of the following:
const BetaManagedAgentsMemoryStoreResourceAccessReadWrite BetaManagedAgentsMemoryStoreResourceAccess = "read_write"
const BetaManagedAgentsMemoryStoreResourceAccessReadOnly BetaManagedAgentsMemoryStoreResourceAccess = "read_only"
Description string Optional

Description of the memory store, snapshotted at attach time. Rendered into the agent's system prompt. Empty string when the store has no description.

Instructions string Optional

Per-attachment guidance for the agent on how to use this store. Rendered into the memory section of the system prompt. Max 4096 chars.

maxLength4096
MountPath string Optional

Filesystem path where the store is mounted in the session container, e.g. /mnt/memory/user-preferences. Derived from the store's name. Output-only.

Name string Optional

Display name of the memory store, snapshotted at attach time. Later edits to the store's name do not propagate to this resource.

type BetaManagedAgentsSessionResourceUnion interface{…}
One of the following: