Claude Platform Docs

Risorse

Aggiungi risorsa di sessione
client.Beta.Sessions.Resources.Add(ctx, sessionID, params) (*BetaManagedAgentsFileResource, error)
POST/v1/sessions/{session_id}/resources
Elenca le risorse di sessione
client.Beta.Sessions.Resources.List(ctx, sessionID, params) (*PageCursor[BetaManagedAgentsSessionResourceUnion], error)
GET/v1/sessions/{session_id}/resources
Ottieni risorsa di sessione
client.Beta.Sessions.Resources.Get(ctx, resourceID, params) (*BetaSessionResourceGetResponseUnion, error)
GET/v1/sessions/{session_id}/resources/{resource_id}
Aggiorna risorsa di sessione
client.Beta.Sessions.Resources.Update(ctx, resourceID, params) (*BetaSessionResourceUpdateResponseUnion, error)
POST/v1/sessions/{session_id}/resources/{resource_id}
Elimina risorsa di sessione
client.Beta.Sessions.Resources.Delete(ctx, resourceID, params) (*BetaManagedAgentsDeleteSessionResource, error)
DELETE/v1/sessions/{session_id}/resources/{resource_id}
Models
type BetaManagedAgentsDeleteSessionResource struct { Type: "session_resource_deleted"; ID }

Confirmation of resource deletion.

Type BetaManagedAgentsDeleteSessionResourceType
ID string
type BetaManagedAgentsFileResource struct { Type: "file"; ID; CreatedAt; /* 3 more */ }
Type BetaManagedAgentsFileResourceType
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 BetaManagedAgentsMemoryStoreResourceType
MemoryStoreID string

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

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: