Package com.openai.services.blocking
Interface ResponseService
-
- All Implemented Interfaces:
public interface ResponseService
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceResponseService.WithRawResponseA view of ResponseService that provides access to raw HTTP responses for each method.
-
Method Summary
Modifier and Type Method Description abstract ResponseService.WithRawResponsewithRawResponse()Returns a view of this service that provides access to raw HTTP responses for each method. abstract InputItemServiceinputItems()Responsecreate(ResponseCreateParams params)Creates a model response. abstract Responsecreate(ResponseCreateParams params, RequestOptions requestOptions)StreamResponse<ResponseStreamEvent>createStreaming(ResponseCreateParams params)Creates a model response. abstract StreamResponse<ResponseStreamEvent>createStreaming(ResponseCreateParams params, RequestOptions requestOptions)Responseretrieve(ResponseRetrieveParams params)Retrieves a model response with the given ID. abstract Responseretrieve(ResponseRetrieveParams params, RequestOptions requestOptions)Unitdelete(ResponseDeleteParams params)Deletes a model response with the given ID. abstract Unitdelete(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)
-
-
-
-