Interface RunService
-
- All Implemented Interfaces:
public interface RunService
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceRunService.WithRawResponseA view of RunService that provides access to raw HTTP responses for each method.
-
Method Summary
-
-
Method Detail
-
withRawResponse
abstract RunService.WithRawResponse withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method.
-
withOptions
abstract RunService withOptions(Consumer<ClientOptions.Builder> modifier)
Returns a view of this service with the given option modifications applied.
The original service is not modified.
-
create
RunCreateResponse create(RunCreateParams params)
Creates a run in queued state. Call POST /agent/v1/run/:id/exec to start execution.
-
create
abstract RunCreateResponse create(RunCreateParams params, RequestOptions requestOptions)
-
cancel
RunCancelResponse cancel(String id)
Cancels a running or queued run. Idempotent — cancelling a finished run returns its current status.
-
cancel
RunCancelResponse cancel(String id, RunCancelParams params, RequestOptions requestOptions)
-
cancel
RunCancelResponse cancel(String id, RunCancelParams params)
-
cancel
abstract RunCancelResponse cancel(RunCancelParams params, RequestOptions requestOptions)
-
cancel
RunCancelResponse cancel(RunCancelParams params)
-
cancel
RunCancelResponse cancel(String id, RequestOptions requestOptions)
-
exec
RunExecResponse exec(String id)
Starts execution of a queued run. The agent runs in a durable workflow — poll /run/:id/status for progress.
-
exec
RunExecResponse exec(String id, RunExecParams params, RequestOptions requestOptions)
-
exec
RunExecResponse exec(String id, RunExecParams params)
-
exec
abstract RunExecResponse exec(RunExecParams params, RequestOptions requestOptions)
-
exec
RunExecResponse exec(RunExecParams params)
-
exec
RunExecResponse exec(String id, RequestOptions requestOptions)
-
getDetails
RunGetDetailsResponse getDetails(String id)
Full audit trail for a run including output, steps (tool calls, text), and token usage.
-
getDetails
RunGetDetailsResponse getDetails(String id, RunGetDetailsParams params, RequestOptions requestOptions)
-
getDetails
RunGetDetailsResponse getDetails(String id, RunGetDetailsParams params)
-
getDetails
abstract RunGetDetailsResponse getDetails(RunGetDetailsParams params, RequestOptions requestOptions)
-
getDetails
RunGetDetailsResponse getDetails(RunGetDetailsParams params)
-
getDetails
RunGetDetailsResponse getDetails(String id, RequestOptions requestOptions)
-
getStatus
RunGetStatusResponse getStatus(String id)
Lightweight status poll for a run. Use /run/:id/details for the full audit trail.
-
getStatus
RunGetStatusResponse getStatus(String id, RunGetStatusParams params, RequestOptions requestOptions)
-
getStatus
RunGetStatusResponse getStatus(String id, RunGetStatusParams params)
-
getStatus
abstract RunGetStatusResponse getStatus(RunGetStatusParams params, RequestOptions requestOptions)
-
getStatus
RunGetStatusResponse getStatus(RunGetStatusParams params)
-
getStatus
RunGetStatusResponse getStatus(String id, RequestOptions requestOptions)
-
watch
RunWatchResponse watch(String id, RunWatchParams params)
Register a callback URL to receive notifications when the run completes. URL must use https and must not point to a private network.
-
watch
RunWatchResponse watch(String id, RunWatchParams params, RequestOptions requestOptions)
-
watch
RunWatchResponse watch(RunWatchParams params)
-
watch
abstract RunWatchResponse watch(RunWatchParams params, RequestOptions requestOptions)
-
-
-
-