Claude Platform Docs

リソース

セッションリソースを追加
beta.sessions.resources.add(session_id, **kwargs) -> BetaManagedAgentsFileResource
POST/v1/sessions/{session_id}/resources
セッションリソースの一覧
beta.sessions.resources.list(session_id, **kwargs) -> SyncPageCursor[BetaManagedAgentsSessionResource]
GET/v1/sessions/{session_id}/resources
セッションリソースを取得
beta.sessions.resources.retrieve(resource_id, **kwargs) -> ResourceRetrieveResponse
GET/v1/sessions/{session_id}/resources/{resource_id}
セッションリソースを更新
beta.sessions.resources.update(resource_id, **kwargs) -> ResourceUpdateResponse
POST/v1/sessions/{session_id}/resources/{resource_id}
セッションリソースを削除
beta.sessions.resources.delete(resource_id, **kwargs) -> BetaManagedAgentsDeleteSessionResource
DELETE/v1/sessions/{session_id}/resources/{resource_id}
Models
class BetaManagedAgentsDeleteSessionResource: type: "session_resource_deleted"; id

Confirmation of resource deletion.

type: Literal["session_resource_deleted"]
id: str
class BetaManagedAgentsFileResource: type: "file"; id; created_at; ... # 3 more
type: Literal["file"]
id: str
created_at: datetime

A timestamp in RFC 3339 format

formatdate-time
file_id: str
mount_path: str
updated_at: datetime

A timestamp in RFC 3339 format

formatdate-time
class BetaManagedAgentsGitHubRepositoryResource: type: "github_repository"; id; created_at; ... # 4 more
class BetaManagedAgentsMemoryStoreResource: type: "memory_store"; memory_store_id; access; ... # 4 more

A memory store attached to an agent session.

type BetaManagedAgentsSessionResource = ...
One of the following:
class BetaManagedAgentsGitHubRepositoryResource: type: "github_repository"; id; created_at; ... # 4 more
class BetaManagedAgentsFileResource: type: "file"; id; created_at; ... # 3 more
type: Literal["file"]
id: str
created_at: datetime

A timestamp in RFC 3339 format

formatdate-time
file_id: str
mount_path: str
updated_at: datetime

A timestamp in RFC 3339 format

formatdate-time
class BetaManagedAgentsMemoryStoreResource: type: "memory_store"; memory_store_id; access; ... # 4 more

A memory store attached to an agent session.

type ResourceRetrieveResponse = ...

The requested session resource.

One of the following:
class BetaManagedAgentsGitHubRepositoryResource: type: "github_repository"; id; created_at; ... # 4 more
class BetaManagedAgentsFileResource: type: "file"; id; created_at; ... # 3 more
type: Literal["file"]
id: str
created_at: datetime

A timestamp in RFC 3339 format

formatdate-time
file_id: str
mount_path: str
updated_at: datetime

A timestamp in RFC 3339 format

formatdate-time
class BetaManagedAgentsMemoryStoreResource: type: "memory_store"; memory_store_id; access; ... # 4 more

A memory store attached to an agent session.

type ResourceUpdateResponse = ...

The updated session resource.

One of the following:
class BetaManagedAgentsGitHubRepositoryResource: type: "github_repository"; id; created_at; ... # 4 more
class BetaManagedAgentsFileResource: type: "file"; id; created_at; ... # 3 more
type: Literal["file"]
id: str
created_at: datetime

A timestamp in RFC 3339 format

formatdate-time
file_id: str
mount_path: str
updated_at: datetime

A timestamp in RFC 3339 format

formatdate-time
class BetaManagedAgentsMemoryStoreResource: type: "memory_store"; memory_store_id; access; ... # 4 more

A memory store attached to an agent session.