InteractionServiceAsyncImpl

Constructors

Link copied to clipboard
public InteractionServiceAsyncImpl InteractionServiceAsyncImpl(ClientOptions clientOptions)

Types

Link copied to clipboard

Functions

Link copied to clipboard
public CompletableFuture<Interaction> cancel(String id, RequestOptions requestOptions)
public CompletableFuture<Interaction> cancel(String id, InteractionCancelParams params, RequestOptions requestOptions)
public CompletableFuture<Interaction> cancel(InteractionCancelParams params, RequestOptions requestOptions)

Cancels an interaction by id. This only applies to background interactions that are still running.

Link copied to clipboard
public CompletableFuture<Interaction> create(CreateAgentInteractionParams createAgentInteractionParams)
public CompletableFuture<Interaction> create(CreateModelInteractionParams createModelInteractionParams)
public CompletableFuture<Interaction> create(CreateAgentInteractionParams createAgentInteractionParams, RequestOptions requestOptions)
public CompletableFuture<Interaction> create(CreateModelInteractionParams createModelInteractionParams, RequestOptions requestOptions)
public CompletableFuture<Interaction> create(InteractionCreateParams.Body body, RequestOptions requestOptions)
public CompletableFuture<Interaction> create(InteractionCreateParams params, RequestOptions requestOptions)

Creates a new interaction.

Link copied to clipboard
public AsyncStreamResponse<InteractionSseEvent> createStreaming(CreateAgentInteractionParams createAgentInteractionParams)
public AsyncStreamResponse<InteractionSseEvent> createStreaming(CreateModelInteractionParams createModelInteractionParams)
public AsyncStreamResponse<InteractionSseEvent> createStreaming(CreateAgentInteractionParams createAgentInteractionParams, RequestOptions requestOptions)
public AsyncStreamResponse<InteractionSseEvent> createStreaming(CreateModelInteractionParams createModelInteractionParams, RequestOptions requestOptions)
public AsyncStreamResponse<InteractionSseEvent> createStreaming(InteractionCreateParams.Body body, RequestOptions requestOptions)
public AsyncStreamResponse<InteractionSseEvent> createStreaming(InteractionCreateParams params, RequestOptions requestOptions)

public AsyncStreamResponse<InteractionSseEvent> createStreaming(InteractionCreateParams params)

Creates a new interaction.

Link copied to clipboard
Link copied to clipboard
public CompletableFuture<Interaction> get(String id, RequestOptions requestOptions)
public CompletableFuture<Interaction> get(String id, InteractionGetParams params, RequestOptions requestOptions)
public CompletableFuture<Interaction> get(InteractionGetParams params, RequestOptions requestOptions)

Retrieves the full details of a single interaction based on its Interaction.id.

Link copied to clipboard
public AsyncStreamResponse<InteractionSseEvent> getStreaming(InteractionGetParams params)
public AsyncStreamResponse<InteractionSseEvent> getStreaming(String id, RequestOptions requestOptions)
public AsyncStreamResponse<InteractionSseEvent> getStreaming(String id, InteractionGetParams params)
public AsyncStreamResponse<InteractionSseEvent> getStreaming(String id, InteractionGetParams params, RequestOptions requestOptions)
public AsyncStreamResponse<InteractionSseEvent> getStreaming(InteractionGetParams params, RequestOptions requestOptions)

public AsyncStreamResponse<InteractionSseEvent> getStreaming(String id)

Retrieves the full details of a single interaction based on its Interaction.id.

Link copied to clipboard
public InteractionServiceAsync withOptions(Consumer<ClientOptions.Builder> modifier)

Returns a view of this service with the given option modifications applied.

Link copied to clipboard

Returns a view of this service that provides access to raw HTTP responses for each method.