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
-
-
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)
-
create
<T extends Any> 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> 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.
-
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(String responseId, ResponseRetrieveParams params, RequestOptions requestOptions)
-
retrieve
Response retrieve(String responseId, ResponseRetrieveParams params)
-
retrieve
abstract Response retrieve(ResponseRetrieveParams params, RequestOptions requestOptions)
-
retrieve
Response retrieve(ResponseRetrieveParams params)
-
retrieve
Response retrieve(String responseId, RequestOptions requestOptions)
-
delete
Unit delete(String responseId, ResponseDeleteParams params, RequestOptions requestOptions)
-
delete
Unit delete(String responseId, ResponseDeleteParams params)
-
delete
abstract Unit delete(ResponseDeleteParams params, RequestOptions requestOptions)
-
delete
Unit delete(ResponseDeleteParams params)
-
delete
Unit delete(String responseId, RequestOptions requestOptions)
-
-
-
-