Interface ExecuteService
-
- All Implemented Interfaces:
public interface ExecuteServiceCreate, manage, and execute AI agents with tool access, sandbox environments, and async run workflows
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceExecuteService.WithRawResponseA view of ExecuteService that provides access to raw HTTP responses for each method.
-
Method Summary
Modifier and Type Method Description abstract ExecuteService.WithRawResponsewithRawResponse()Returns a view of this service that provides access to raw HTTP responses for each method. abstract ExecuteServicewithOptions(Consumer<ClientOptions.Builder> modifier)Returns a view of this service with the given option modifications applied. ExecuteCreateResponsecreate(ExecuteCreateParams params)Creates an ephemeral agent and immediately executes a run. abstract ExecuteCreateResponsecreate(ExecuteCreateParams params, RequestOptions requestOptions)-
-
Method Detail
-
withRawResponse
abstract ExecuteService.WithRawResponse withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method.
-
withOptions
abstract ExecuteService withOptions(Consumer<ClientOptions.Builder> modifier)
Returns a view of this service with the given option modifications applied.
The original service is not modified.
-
create
ExecuteCreateResponse create(ExecuteCreateParams params)
Creates an ephemeral agent and immediately executes a run. Returns the run ID for polling status and results. This is the fastest way to run an agent without managing agent lifecycle.
Ephemeral agent lifecycle: The agent created by this endpoint is automatically soft-deleted and its scoped API key revoked when the run completes (whether it succeeds, fails, or times out). Ephemeral agents do not appear in GET /agent/v1/agents listings. The returned agentId is valid only for the duration of the run — do not store it for reuse. For persistent, reusable agents, use POST /agent/v1/agents instead.
-
create
abstract ExecuteCreateResponse create(ExecuteCreateParams params, RequestOptions requestOptions)
-
-
-
-