WithRawResponse

public interface WithRawResponse

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

Inheritors

Functions

Link copied to clipboard
@MustBeClosed()
public HttpResponseFor<Interaction> cancel(InteractionCancelParams params)
@MustBeClosed()
public abstract HttpResponseFor<Interaction> cancel(InteractionCancelParams params, RequestOptions requestOptions)
@MustBeClosed()
public HttpResponseFor<Interaction> cancel(String id, RequestOptions requestOptions)
@MustBeClosed()
public HttpResponseFor<Interaction> cancel(String id, InteractionCancelParams params)
@MustBeClosed()
public HttpResponseFor<Interaction> cancel(String id, InteractionCancelParams params, RequestOptions requestOptions)

@MustBeClosed()
public HttpResponseFor<Interaction> cancel(String id)

Returns a raw HTTP response for post /{api_version}/interactions/{id}/cancel, but is otherwise the same as InteractionService.cancel.

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

@MustBeClosed()
public HttpResponseFor<Interaction> create(InteractionCreateParams params)

Returns a raw HTTP response for post /{api_version}/interactions, but is otherwise the same as InteractionService.create.

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

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

Returns a raw HTTP response for post /{api_version}/interactions, but is otherwise the same as InteractionService.createStreaming.

Link copied to clipboard
@MustBeClosed()
public HttpResponseFor<InteractionDeleteResponse> delete(InteractionDeleteParams params)
@MustBeClosed()
public abstract HttpResponseFor<InteractionDeleteResponse> delete(InteractionDeleteParams params, RequestOptions requestOptions)
@MustBeClosed()
public HttpResponseFor<InteractionDeleteResponse> delete(String id, RequestOptions requestOptions)
@MustBeClosed()
public HttpResponseFor<InteractionDeleteResponse> delete(String id, InteractionDeleteParams params)
@MustBeClosed()
public HttpResponseFor<InteractionDeleteResponse> delete(String id, InteractionDeleteParams params, RequestOptions requestOptions)

@MustBeClosed()
public HttpResponseFor<InteractionDeleteResponse> delete(String id)

Returns a raw HTTP response for delete /{api_version}/interactions/{id}, but is otherwise the same as InteractionService.delete.

Link copied to clipboard
@MustBeClosed()
public HttpResponseFor<Interaction> get(InteractionGetParams params)
@MustBeClosed()
public abstract HttpResponseFor<Interaction> get(InteractionGetParams params, RequestOptions requestOptions)
@MustBeClosed()
public HttpResponseFor<Interaction> get(String id, RequestOptions requestOptions)
@MustBeClosed()
public HttpResponseFor<Interaction> get(String id, InteractionGetParams params)
@MustBeClosed()
public HttpResponseFor<Interaction> get(String id, InteractionGetParams params, RequestOptions requestOptions)

@MustBeClosed()
public HttpResponseFor<Interaction> get(String id)

Returns a raw HTTP response for get /{api_version}/interactions/{id}, but is otherwise the same as InteractionService.get.

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

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

Returns a raw HTTP response for get /{api_version}/interactions/{id}, but is otherwise the same as InteractionService.getStreaming.

Link copied to clipboard
public abstract InteractionService.WithRawResponse withOptions(Consumer<ClientOptions.Builder> modifier)

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