InteractionServiceImpl

public final class InteractionServiceImpl implements InteractionService

Constructors

Link copied to clipboard
public InteractionServiceImpl InteractionServiceImpl(ClientOptions clientOptions)

Types

Link copied to clipboard

Functions

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

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

Creates a new interaction.

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

Deletes the interaction by id.

Link copied to clipboard
public Interaction get(String id, RequestOptions requestOptions)
public Interaction get(String id, InteractionGetParams params, RequestOptions requestOptions)
public Interaction get(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 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)
public StreamResponse<InteractionSseEvent> getStreaming(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 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.