Interaction Service Async
Types
Link copied to clipboard
A view of InteractionServiceAsync that provides access to raw HTTP responses for each method.
Functions
Link copied to clipboard
public abstract CompletableFuture<Interaction> cancel(InteractionCancelParams params, RequestOptions requestOptions)
public CompletableFuture<Interaction> cancel(String id, 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 abstract CompletableFuture<Interaction> create(InteractionCreateParams params, RequestOptions requestOptions)
public CompletableFuture<Interaction> create(InteractionCreateParams.Body body, 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 abstract AsyncStreamResponse<InteractionSseEvent> createStreaming(InteractionCreateParams params, RequestOptions requestOptions)
public AsyncStreamResponse<InteractionSseEvent> createStreaming(InteractionCreateParams.Body body, RequestOptions requestOptions)
Creates a new interaction.
Link copied to clipboard
public abstract CompletableFuture<InteractionDeleteResponse> delete(InteractionDeleteParams params, RequestOptions requestOptions)
public CompletableFuture<InteractionDeleteResponse> delete(String id, RequestOptions requestOptions)
public CompletableFuture<InteractionDeleteResponse> delete(String id, InteractionDeleteParams params)
public CompletableFuture<InteractionDeleteResponse> delete(String id, InteractionDeleteParams params, RequestOptions requestOptions)
Deletes the interaction by id.
Link copied to clipboard
public abstract CompletableFuture<Interaction> get(InteractionGetParams params, RequestOptions requestOptions)
public CompletableFuture<Interaction> get(String id, InteractionGetParams params, RequestOptions requestOptions)
Retrieves the full details of a single interaction based on its Interaction.id.
Link copied to clipboard
public abstract AsyncStreamResponse<InteractionSseEvent> getStreaming(InteractionGetParams params, RequestOptions requestOptions)
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)
Retrieves the full details of a single interaction based on its Interaction.id.
Link copied to clipboard
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.