Interface WorkService
-
- All Implemented Interfaces:
public interface WorkService
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceWorkService.WithRawResponseA view of WorkService that provides access to raw HTTP responses for each method.
-
Method Summary
Modifier and Type Method Description abstract WorkService.WithRawResponsewithRawResponse()Returns a view of this service that provides access to raw HTTP responses for each method. abstract WorkServicewithOptions(Consumer<ClientOptions.Builder> modifier)Returns a view of this service with the given option modifications applied. BetaSelfHostedWorkretrieve(String workId, WorkRetrieveParams params)Retrieve detailed information about a specific work item. BetaSelfHostedWorkretrieve(String workId, WorkRetrieveParams params, RequestOptions requestOptions)BetaSelfHostedWorkretrieve(WorkRetrieveParams params)abstract BetaSelfHostedWorkretrieve(WorkRetrieveParams params, RequestOptions requestOptions)BetaSelfHostedWorkupdate(String workId, WorkUpdateParams params)Update work item metadata with merge semantics. BetaSelfHostedWorkupdate(String workId, WorkUpdateParams params, RequestOptions requestOptions)BetaSelfHostedWorkupdate(WorkUpdateParams params)abstract BetaSelfHostedWorkupdate(WorkUpdateParams params, RequestOptions requestOptions)WorkListPagelist(String environmentId)List work items in an environment. WorkListPagelist(String environmentId, WorkListParams params, RequestOptions requestOptions)WorkListPagelist(String environmentId, WorkListParams params)abstract WorkListPagelist(WorkListParams params, RequestOptions requestOptions)WorkListPagelist(WorkListParams params)WorkListPagelist(String environmentId, RequestOptions requestOptions)BetaSelfHostedWorkack(String workId, WorkAckParams params)Note: these endpoints are called automatically by the pre-built environment worker provided in the SDKs and CLI, for orchestrating sessions with self-hosted sandbox environments. BetaSelfHostedWorkack(String workId, WorkAckParams params, RequestOptions requestOptions)BetaSelfHostedWorkack(WorkAckParams params)abstract BetaSelfHostedWorkack(WorkAckParams params, RequestOptions requestOptions)BetaSelfHostedWorkHeartbeatResponseheartbeat(String workId, WorkHeartbeatParams params)Note: these endpoints are called automatically by the pre-built environment worker provided in the SDKs and CLI, for orchestrating sessions with self-hosted sandbox environments. BetaSelfHostedWorkHeartbeatResponseheartbeat(String workId, WorkHeartbeatParams params, RequestOptions requestOptions)BetaSelfHostedWorkHeartbeatResponseheartbeat(WorkHeartbeatParams params)abstract BetaSelfHostedWorkHeartbeatResponseheartbeat(WorkHeartbeatParams params, RequestOptions requestOptions)Optional<BetaSelfHostedWork>poll(String environmentId)Note: these endpoints are called automatically by the pre-built environment worker provided in the SDKs and CLI, for orchestrating sessions with self-hosted sandbox environments. Optional<BetaSelfHostedWork>poll(String environmentId, WorkPollParams params, RequestOptions requestOptions)Optional<BetaSelfHostedWork>poll(String environmentId, WorkPollParams params)abstract Optional<BetaSelfHostedWork>poll(WorkPollParams params, RequestOptions requestOptions)Optional<BetaSelfHostedWork>poll(WorkPollParams params)Optional<BetaSelfHostedWork>poll(String environmentId, RequestOptions requestOptions)BetaSelfHostedWorkQueueStatsstats(String environmentId)Get statistics about the work queue for an environment. BetaSelfHostedWorkQueueStatsstats(String environmentId, WorkStatsParams params, RequestOptions requestOptions)BetaSelfHostedWorkQueueStatsstats(String environmentId, WorkStatsParams params)abstract BetaSelfHostedWorkQueueStatsstats(WorkStatsParams params, RequestOptions requestOptions)BetaSelfHostedWorkQueueStatsstats(WorkStatsParams params)BetaSelfHostedWorkQueueStatsstats(String environmentId, RequestOptions requestOptions)BetaSelfHostedWorkstop(String workId, WorkStopParams params)Stop a work item, initiating graceful or forced shutdown. BetaSelfHostedWorkstop(String workId, WorkStopParams params, RequestOptions requestOptions)BetaSelfHostedWorkstop(WorkStopParams params)abstract BetaSelfHostedWorkstop(WorkStopParams params, RequestOptions requestOptions)-
-
Method Detail
-
withRawResponse
abstract WorkService.WithRawResponse withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method.
-
withOptions
abstract WorkService withOptions(Consumer<ClientOptions.Builder> modifier)
Returns a view of this service with the given option modifications applied.
The original service is not modified.
-
retrieve
BetaSelfHostedWork retrieve(String workId, WorkRetrieveParams params)
Retrieve detailed information about a specific work item.
This endpoint accepts a Claude API key. It rejects the environment key and the work item's
secret. On Claude Platform on AWS or Claude Models on Google Cloud (Anthropic managed), use that platform's credentials instead.
-
retrieve
BetaSelfHostedWork retrieve(String workId, WorkRetrieveParams params, RequestOptions requestOptions)
-
retrieve
BetaSelfHostedWork retrieve(WorkRetrieveParams params)
-
retrieve
abstract BetaSelfHostedWork retrieve(WorkRetrieveParams params, RequestOptions requestOptions)
-
update
BetaSelfHostedWork update(String workId, WorkUpdateParams params)
Update work item metadata with merge semantics.
This endpoint accepts a Claude API key. It rejects the environment key and the work item's
secret. On Claude Platform on AWS or Claude Models on Google Cloud (Anthropic managed), use that platform's credentials instead.
-
update
BetaSelfHostedWork update(String workId, WorkUpdateParams params, RequestOptions requestOptions)
-
update
BetaSelfHostedWork update(WorkUpdateParams params)
-
update
abstract BetaSelfHostedWork update(WorkUpdateParams params, RequestOptions requestOptions)
-
list
WorkListPage list(String environmentId)
List work items in an environment.
This endpoint accepts the environment key as a bearer token. It rejects a Claude API key. On Claude Platform on AWS or Claude Models on Google Cloud (Anthropic managed), use that platform's credentials instead.
-
list
WorkListPage list(String environmentId, WorkListParams params, RequestOptions requestOptions)
-
list
WorkListPage list(String environmentId, WorkListParams params)
-
list
abstract WorkListPage list(WorkListParams params, RequestOptions requestOptions)
-
list
WorkListPage list(WorkListParams params)
-
list
WorkListPage list(String environmentId, RequestOptions requestOptions)
-
ack
BetaSelfHostedWork ack(String workId, WorkAckParams params)
Note: these endpoints are called automatically by the pre-built environment worker provided in the SDKs and CLI, for orchestrating sessions with self-hosted sandbox environments. They are included here as a reference; you do not need to invoke them directly.
Acknowledge receipt of a work item, transitioning it from 'queued' to 'starting' and removing it from the queue.
-
ack
BetaSelfHostedWork ack(String workId, WorkAckParams params, RequestOptions requestOptions)
-
ack
BetaSelfHostedWork ack(WorkAckParams params)
-
ack
abstract BetaSelfHostedWork ack(WorkAckParams params, RequestOptions requestOptions)
-
heartbeat
BetaSelfHostedWorkHeartbeatResponse heartbeat(String workId, WorkHeartbeatParams params)
Note: these endpoints are called automatically by the pre-built environment worker provided in the SDKs and CLI, for orchestrating sessions with self-hosted sandbox environments. They are included here as a reference; you do not need to invoke them directly.
Record a heartbeat for a work item to maintain the lease.
-
heartbeat
BetaSelfHostedWorkHeartbeatResponse heartbeat(String workId, WorkHeartbeatParams params, RequestOptions requestOptions)
-
heartbeat
BetaSelfHostedWorkHeartbeatResponse heartbeat(WorkHeartbeatParams params)
-
heartbeat
abstract BetaSelfHostedWorkHeartbeatResponse heartbeat(WorkHeartbeatParams params, RequestOptions requestOptions)
-
poll
Optional<BetaSelfHostedWork> poll(String environmentId)
Note: these endpoints are called automatically by the pre-built environment worker provided in the SDKs and CLI, for orchestrating sessions with self-hosted sandbox environments. They are included here as a reference; you do not need to invoke them directly.
Long poll for work items in the queue.
-
poll
Optional<BetaSelfHostedWork> poll(String environmentId, WorkPollParams params, RequestOptions requestOptions)
-
poll
Optional<BetaSelfHostedWork> poll(String environmentId, WorkPollParams params)
-
poll
abstract Optional<BetaSelfHostedWork> poll(WorkPollParams params, RequestOptions requestOptions)
-
poll
Optional<BetaSelfHostedWork> poll(WorkPollParams params)
-
poll
Optional<BetaSelfHostedWork> poll(String environmentId, RequestOptions requestOptions)
-
stats
BetaSelfHostedWorkQueueStats stats(String environmentId)
Get statistics about the work queue for an environment.
-
stats
BetaSelfHostedWorkQueueStats stats(String environmentId, WorkStatsParams params, RequestOptions requestOptions)
-
stats
BetaSelfHostedWorkQueueStats stats(String environmentId, WorkStatsParams params)
-
stats
abstract BetaSelfHostedWorkQueueStats stats(WorkStatsParams params, RequestOptions requestOptions)
-
stats
BetaSelfHostedWorkQueueStats stats(WorkStatsParams params)
-
stats
BetaSelfHostedWorkQueueStats stats(String environmentId, RequestOptions requestOptions)
-
stop
BetaSelfHostedWork stop(String workId, WorkStopParams params)
Stop a work item, initiating graceful or forced shutdown.
-
stop
BetaSelfHostedWork stop(String workId, WorkStopParams params, RequestOptions requestOptions)
-
stop
BetaSelfHostedWork stop(WorkStopParams params)
-
stop
abstract BetaSelfHostedWork stop(WorkStopParams params, RequestOptions requestOptions)
-
-
-
-