Interface ResponseServiceAsync
- 
                    
                    - All Implemented Interfaces:
 
 public interface ResponseServiceAsync
- 
                
                    
                    - 
                                
                            
                                Nested Class SummaryNested Classes Modifier and Type Class Description public interfaceResponseServiceAsync.WithRawResponseA view of ResponseServiceAsync that provides access to raw HTTP responses for each method. 
 - 
                                
                            
                                Method Summary- 
                    
                    
                    - 
                                
                            
                                Method Detail- 
                                        withRawResponseabstract ResponseServiceAsync.WithRawResponse withRawResponse() Returns a view of this service that provides access to raw HTTP responses for each method. 
 - 
                                        withOptionsabstract ResponseServiceAsync withOptions(Consumer<ClientOptions.Builder> modifier) Returns a view of this service with the given option modifications applied. The original service is not modified. 
 - 
                                        inputItemsabstract InputItemServiceAsync inputItems() 
 - 
                                        inputTokensabstract InputTokenServiceAsync inputTokens() 
 - 
                                        createCompletableFuture<Response> create() 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. 
 - 
                                        createabstract CompletableFuture<Response> create(ResponseCreateParams params, RequestOptions requestOptions) 
 - 
                                        createCompletableFuture<Response> create(ResponseCreateParams params) 
 - 
                                        createCompletableFuture<Response> create(RequestOptions requestOptions) 
 - 
                                        create<T extends Any> CompletableFuture<StructuredResponse<T>> create(StructuredResponseCreateParams<T> params) Creates a model response. The model's structured output in JSON form will be deserialized automatically into an instance of the class T. See the SDK documentation for more details.
 - 
                                        create<T extends Any> CompletableFuture<StructuredResponse<T>> create(StructuredResponseCreateParams<T> params, RequestOptions requestOptions) Creates a model response. The model's structured output in JSON form will be deserialized automatically into an instance of the class T. See the SDK documentation for more details.
 - 
                                        createStreamingAsyncStreamResponse<ResponseStreamEvent> createStreaming() 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. 
 - 
                                        createStreamingabstract AsyncStreamResponse<ResponseStreamEvent> createStreaming(ResponseCreateParams params, RequestOptions requestOptions) 
 - 
                                        createStreamingAsyncStreamResponse<ResponseStreamEvent> createStreaming(ResponseCreateParams params) 
 - 
                                        createStreamingAsyncStreamResponse<ResponseStreamEvent> createStreaming(RequestOptions requestOptions) 
 - 
                                        createStreamingAsyncStreamResponse<ResponseStreamEvent> createStreaming(StructuredResponseCreateParams<?> params) Creates a streaming model response for the given response conversation. The input parameters can define a JSON schema derived automatically from an arbitrary class to request a structured output in JSON form. However, that structured output is split over multiple streamed events, so it will not be deserialized automatically into an instance of that class. To deserialize the output, first use a helper class to accumulate the stream of events into a single output value. See the SDK documentation for full details. 
 - 
                                        createStreamingAsyncStreamResponse<ResponseStreamEvent> createStreaming(StructuredResponseCreateParams<?> params, RequestOptions requestOptions) 
 - 
                                        retrieveCompletableFuture<Response> retrieve(String responseId) Retrieves a model response with the given ID. 
 - 
                                        retrieveCompletableFuture<Response> retrieve(String responseId, ResponseRetrieveParams params, RequestOptions requestOptions) 
 - 
                                        retrieveCompletableFuture<Response> retrieve(String responseId, ResponseRetrieveParams params) 
 - 
                                        retrieveabstract CompletableFuture<Response> retrieve(ResponseRetrieveParams params, RequestOptions requestOptions) 
 - 
                                        retrieveCompletableFuture<Response> retrieve(ResponseRetrieveParams params) 
 - 
                                        retrieveCompletableFuture<Response> retrieve(String responseId, RequestOptions requestOptions) 
 - 
                                        retrieveStreamingAsyncStreamResponse<ResponseStreamEvent> retrieveStreaming(String responseId) Retrieves a model response with the given ID. 
 - 
                                        retrieveStreamingAsyncStreamResponse<ResponseStreamEvent> retrieveStreaming(String responseId, ResponseRetrieveParams params, RequestOptions requestOptions) 
 - 
                                        retrieveStreamingAsyncStreamResponse<ResponseStreamEvent> retrieveStreaming(String responseId, ResponseRetrieveParams params) 
 - 
                                        retrieveStreamingabstract AsyncStreamResponse<ResponseStreamEvent> retrieveStreaming(ResponseRetrieveParams params, RequestOptions requestOptions) 
 - 
                                        retrieveStreamingAsyncStreamResponse<ResponseStreamEvent> retrieveStreaming(ResponseRetrieveParams params) 
 - 
                                        retrieveStreamingAsyncStreamResponse<ResponseStreamEvent> retrieveStreaming(String responseId, RequestOptions requestOptions) 
 - 
                                        deleteCompletableFuture<Void> delete(String responseId) Deletes a model response with the given ID. 
 - 
                                        deleteCompletableFuture<Void> delete(String responseId, ResponseDeleteParams params, RequestOptions requestOptions) 
 - 
                                        deleteCompletableFuture<Void> delete(String responseId, ResponseDeleteParams params) 
 - 
                                        deleteabstract CompletableFuture<Void> delete(ResponseDeleteParams params, RequestOptions requestOptions) 
 - 
                                        deleteCompletableFuture<Void> delete(ResponseDeleteParams params) 
 - 
                                        deleteCompletableFuture<Void> delete(String responseId, RequestOptions requestOptions) 
 - 
                                        cancelCompletableFuture<Response> cancel(String responseId) Cancels a model response with the given ID. Only responses created with the backgroundparameter set totruecan be cancelled. Learn more.
 - 
                                        cancelCompletableFuture<Response> cancel(String responseId, ResponseCancelParams params, RequestOptions requestOptions) 
 - 
                                        cancelCompletableFuture<Response> cancel(String responseId, ResponseCancelParams params) 
 - 
                                        cancelabstract CompletableFuture<Response> cancel(ResponseCancelParams params, RequestOptions requestOptions) 
 - 
                                        cancelCompletableFuture<Response> cancel(ResponseCancelParams params) 
 - 
                                        cancelCompletableFuture<Response> cancel(String responseId, RequestOptions requestOptions) 
 
- 
                                        
 
- 
                                
                            
                                
 
- 
                    
                    
                    
 
-