Claude Platform Docs

Resource

Tambah Resource Sesi
client.beta.sessions.resources.add(sessionID, params, options?): BetaManagedAgentsFileResource
POST/v1/sessions/{session_id}/resources
Daftar Resource Sesi
client.beta.sessions.resources.list(sessionID, params?, options?): PageCursor<BetaManagedAgentsSessionResource>
GET/v1/sessions/{session_id}/resources
Dapatkan Resource Sesi
client.beta.sessions.resources.retrieve(resourceID, params, options?): ResourceRetrieveResponse
GET/v1/sessions/{session_id}/resources/{resource_id}
Perbarui Resource Sesi
client.beta.sessions.resources.update(resourceID, params, options?): ResourceUpdateResponse
POST/v1/sessions/{session_id}/resources/{resource_id}
Hapus Resource Sesi
client.beta.sessions.resources.delete(resourceID, params, options?): BetaManagedAgentsDeleteSessionResource
DELETE/v1/sessions/{session_id}/resources/{resource_id}
Models
interface BetaManagedAgentsDeleteSessionResource { type: "session_resource_deleted"; id }

Confirmation of resource deletion.

type: "session_resource_deleted"
id: string
interface BetaManagedAgentsFileResource { type: "file"; id; created_at; /* 3 more */ }
type: "file"
id: string
created_at: string

A timestamp in RFC 3339 format

formatdate-time
file_id: string
mount_path: string
updated_at: string

A timestamp in RFC 3339 format

formatdate-time
interface BetaManagedAgentsGitHubRepositoryResource { type: "github_repository"; id; created_at; /* 4 more */ }
interface BetaManagedAgentsMemoryStoreResource { type: "memory_store"; memory_store_id; access; /* 4 more */ }

A memory store attached to an agent session.

One of the following:

The requested session resource.

One of the following:
One of the following: