Package com.openai.services.async
Class ResponseServiceAsyncImpl
-
- All Implemented Interfaces:
-
com.openai.services.async.ResponseServiceAsync
public final class ResponseServiceAsyncImpl implements ResponseServiceAsync
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
ResponseServiceAsyncImpl.WithRawResponseImpl
-
Method Summary
Modifier and Type Method Description ResponseServiceAsync.WithRawResponse
withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method. ResponseServiceAsync
withOptions(Consumer<ClientOptions.Builder> modifier)
Returns a view of this service with the given option modifications applied. InputItemServiceAsync
inputItems()
CompletableFuture<Response>
create(ResponseCreateParams params, RequestOptions requestOptions)
AsyncStreamResponse<ResponseStreamEvent>
createStreaming(ResponseCreateParams params, RequestOptions requestOptions)
CompletableFuture<Response>
retrieve(ResponseRetrieveParams params, RequestOptions requestOptions)
AsyncStreamResponse<ResponseStreamEvent>
retrieveStreaming(ResponseRetrieveParams params, RequestOptions requestOptions)
CompletableFuture<Void>
delete(ResponseDeleteParams params, RequestOptions requestOptions)
CompletableFuture<Response>
cancel(ResponseCancelParams params, RequestOptions requestOptions)
-
Methods inherited from class com.openai.services.async.ResponseServiceAsync
cancel, cancel, cancel, cancel, cancel, create, create, create, createStreaming, createStreaming, createStreaming, delete, delete, delete, delete, delete, retrieve, retrieve, retrieve, retrieve, retrieve, retrieveStreaming, retrieveStreaming, retrieveStreaming, retrieveStreaming, retrieveStreaming
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
withRawResponse
ResponseServiceAsync.WithRawResponse withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method.
-
withOptions
ResponseServiceAsync withOptions(Consumer<ClientOptions.Builder> modifier)
Returns a view of this service with the given option modifications applied.
The original service is not modified.
-
inputItems
InputItemServiceAsync inputItems()
-
create
CompletableFuture<Response> create(ResponseCreateParams params, RequestOptions requestOptions)
-
createStreaming
AsyncStreamResponse<ResponseStreamEvent> createStreaming(ResponseCreateParams params, RequestOptions requestOptions)
-
retrieve
CompletableFuture<Response> retrieve(ResponseRetrieveParams params, RequestOptions requestOptions)
-
retrieveStreaming
AsyncStreamResponse<ResponseStreamEvent> retrieveStreaming(ResponseRetrieveParams params, RequestOptions requestOptions)
-
delete
CompletableFuture<Void> delete(ResponseDeleteParams params, RequestOptions requestOptions)
-
cancel
CompletableFuture<Response> cancel(ResponseCancelParams params, RequestOptions requestOptions)
-
-
-
-