Package com.openai.services.async
Interface ResponseServiceAsync
-
- All Implemented Interfaces:
public interface ResponseServiceAsync
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interface
ResponseServiceAsync.WithRawResponse
A view of ResponseServiceAsync that provides access to raw HTTP responses for each method.
-
Method Summary
-
-
Method Detail
-
withRawResponse
abstract ResponseServiceAsync.WithRawResponse withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method.
-
inputItems
abstract InputItemServiceAsync inputItems()
-
create
CompletableFuture<Response> create(ResponseCreateParams params)
Creates a model response. Provide text or image inputs to generate text or JSON outputs. Have the model call your own custom code or use built-in tools like web search or file search to use your own data as input for the model's response.
-
create
abstract CompletableFuture<Response> create(ResponseCreateParams params, RequestOptions requestOptions)
-
createStreaming
AsyncStreamResponse<ResponseStreamEvent> createStreaming(ResponseCreateParams params)
Creates a model response. Provide text or image inputs to generate text or JSON outputs. Have the model call your own custom code or use built-in tools like web search or file search to use your own data as input for the model's response.
-
createStreaming
abstract AsyncStreamResponse<ResponseStreamEvent> createStreaming(ResponseCreateParams params, RequestOptions requestOptions)
-
retrieve
CompletableFuture<Response> retrieve(ResponseRetrieveParams params)
Retrieves a model response with the given ID.
-
retrieve
abstract CompletableFuture<Response> retrieve(ResponseRetrieveParams params, RequestOptions requestOptions)
-
delete
CompletableFuture<Void> delete(ResponseDeleteParams params)
Deletes a model response with the given ID.
-
delete
abstract CompletableFuture<Void> delete(ResponseDeleteParams params, RequestOptions requestOptions)
-
-
-
-