InteractionService

public interface InteractionService

Inheritors

Types

Link copied to clipboard
public interface WithRawResponse

A view of InteractionService that provides access to raw HTTP responses for each method.

Functions

Link copied to clipboard
public abstract Interaction cancel(InteractionCancelParams params, RequestOptions requestOptions)
public Interaction cancel(String id, RequestOptions requestOptions)
public 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 Interaction create(CreateAgentInteractionParams createAgentInteractionParams)
public Interaction create(CreateModelInteractionParams createModelInteractionParams)
public Interaction create(CreateAgentInteractionParams createAgentInteractionParams, RequestOptions requestOptions)
public Interaction create(CreateModelInteractionParams createModelInteractionParams, RequestOptions requestOptions)
public abstract Interaction create(InteractionCreateParams params, RequestOptions requestOptions)
public Interaction create(InteractionCreateParams.Body body, RequestOptions requestOptions)

Creates a new interaction.

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

@MustBeClosed()
public StreamResponse<InteractionSseEvent> createStreaming(InteractionCreateParams params)

Creates a new interaction.

Link copied to clipboard
public abstract InteractionDeleteResponse delete(InteractionDeleteParams params, RequestOptions requestOptions)
public InteractionDeleteResponse delete(String id, RequestOptions requestOptions)
public InteractionDeleteResponse delete(String id, InteractionDeleteParams params, RequestOptions requestOptions)

Deletes the interaction by id.

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

public Interaction get(String id)

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

Link copied to clipboard
@MustBeClosed()
public StreamResponse<InteractionSseEvent> getStreaming(InteractionGetParams params)
@MustBeClosed()
public abstract StreamResponse<InteractionSseEvent> getStreaming(InteractionGetParams params, RequestOptions requestOptions)
@MustBeClosed()
public StreamResponse<InteractionSseEvent> getStreaming(String id, RequestOptions requestOptions)
@MustBeClosed()
public StreamResponse<InteractionSseEvent> getStreaming(String id, InteractionGetParams params)
@MustBeClosed()
public StreamResponse<InteractionSseEvent> getStreaming(String id, InteractionGetParams params, RequestOptions requestOptions)

@MustBeClosed()
public StreamResponse<InteractionSseEvent> getStreaming(String id)

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

Link copied to clipboard
public abstract InteractionService 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.