Class GeneralHalfDuplexApi
java.lang.Object
com.alibaba.dashscope.legacy_2x.utils.GeneralHalfDuplexApi
Deprecated.
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.GeneralHalfDuplexApi(ApiServiceOption serviceOption, ConnectionOptions connectionOptions) Deprecated.GeneralHalfDuplexApi(String protocol) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptioncall(HalfDuplexServiceParam param) Deprecated.Call the server to get the whole result, only http protocolvoidcall(HalfDuplexServiceParam param, ResultCallback<DashScopeResult> callback) Deprecated.Call the server to get the result in the callback function.io.reactivex.Flowable<DashScopeResult>streamCall(HalfDuplexServiceParam param) Deprecated.Call the server to get the result by stream. http and websocket.voidstreamCall(HalfDuplexServiceParam param, ResultCallback<DashScopeResult> callback) Deprecated.
-
Constructor Details
-
GeneralHalfDuplexApi
public GeneralHalfDuplexApi()Deprecated. -
GeneralHalfDuplexApi
Deprecated. -
GeneralHalfDuplexApi
Deprecated.
-
-
Method Details
-
call
public DashScopeResult call(HalfDuplexServiceParam param) throws ApiException, NoApiKeyException, InputRequiredException Deprecated.Call the server to get the whole result, only http protocol- Parameters:
param- The input param of class `ConversationParam`.- Returns:
- The output structure of `QWenConversationResult`.
- Throws:
NoApiKeyException- Can not find api keyInputRequiredException- Missing inputs.ApiException
-
call
public void call(HalfDuplexServiceParam param, ResultCallback<DashScopeResult> callback) throws ApiException, NoApiKeyException, InputRequiredException Deprecated.Call the server to get the result in the callback function.- Parameters:
param- The input param of class `GenerationParam`.callback- The callback to receive response, the template class is `GenerationResult`.- Throws:
NoApiKeyException- Can not find api keyApiException- The request failed, possibly due to a network or data error.InputRequiredException- Missing inputs.
-
streamCall
public io.reactivex.Flowable<DashScopeResult> streamCall(HalfDuplexServiceParam param) throws ApiException, NoApiKeyException, InputRequiredException Deprecated.Call the server to get the result by stream. http and websocket.- Parameters:
param- The input param of class `ConversationParam`.- Returns:
- A `Flowable` of the output structure.
- Throws:
NoApiKeyException- Can not find api keyApiException- The request failed, possibly due to a network or data error.InputRequiredException- Missing inputs.
-
streamCall
public void streamCall(HalfDuplexServiceParam param, ResultCallback<DashScopeResult> callback) throws ApiException, NoApiKeyException, InputRequiredException Deprecated.
-