Package com.openai.services.blocking
Interface ResponseService
-
- All Implemented Interfaces:
public interface ResponseService
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interface
ResponseService.WithRawResponse
A view of ResponseService that provides access to raw HTTP responses for each method.
-
Method Summary
Modifier and Type Method Description abstract ResponseService.WithRawResponse
withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method. abstract InputItemService
inputItems()
Response
create(ResponseCreateParams params)
Creates a model response. abstract Response
create(ResponseCreateParams params, RequestOptions requestOptions)
StreamResponse<ResponseStreamEvent>
createStreaming(ResponseCreateParams params)
Creates a model response. abstract StreamResponse<ResponseStreamEvent>
createStreaming(ResponseCreateParams params, RequestOptions requestOptions)
Response
retrieve(ResponseRetrieveParams params)
Retrieves a model response with the given ID. abstract Response
retrieve(ResponseRetrieveParams params, RequestOptions requestOptions)
Unit
delete(ResponseDeleteParams params)
Deletes a model response with the given ID. abstract Unit
delete(ResponseDeleteParams params, RequestOptions requestOptions)
-
-
Method Detail
-
withRawResponse
abstract ResponseService.WithRawResponse withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method.
-
inputItems
abstract InputItemService inputItems()
-
create
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 Response create(ResponseCreateParams params, RequestOptions requestOptions)
-
createStreaming
@MustBeClosed() StreamResponse<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
@MustBeClosed() abstract StreamResponse<ResponseStreamEvent> createStreaming(ResponseCreateParams params, RequestOptions requestOptions)
-
retrieve
Response retrieve(ResponseRetrieveParams params)
Retrieves a model response with the given ID.
-
retrieve
abstract Response retrieve(ResponseRetrieveParams params, RequestOptions requestOptions)
-
delete
Unit delete(ResponseDeleteParams params)
Deletes a model response with the given ID.
-
delete
abstract Unit delete(ResponseDeleteParams params, RequestOptions requestOptions)
-
-
-
-