Class Conversation
java.lang.Object
com.alibaba.dashscope.legacy_2x.aigc.conversation.Conversation
Deprecated.
use `Generation` instead
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Conversation(String protocol) Deprecated.Conversation(String protocol, String baseUrl) Deprecated.Conversation(String protocol, String baseUrl, ConnectionOptions connectionOptions) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptioncall(ConversationParam param) Deprecated.Call the server to get the whole result.voidcall(ConversationParam param, ResultCallback<ConversationResult> callback) Deprecated.Call the server to get the result in the callback function.Deprecated.io.reactivex.Flowable<ConversationResult>streamCall(ConversationParam param) Deprecated.Call the server to get the result by stream.voidstreamCall(ConversationParam param, ResultCallback<ConversationResult> callback) Deprecated.Call the server to get the result by stream.
-
Constructor Details
-
Conversation
public Conversation()Deprecated. -
Conversation
Deprecated. -
Conversation
Deprecated. -
Conversation
Deprecated.
-
-
Method Details
-
defaultApiServiceOption
Deprecated. -
call
public ConversationResult call(ConversationParam param) throws ApiException, NoApiKeyException, InputRequiredException Deprecated.Call the server to get the whole result.- Parameters:
param- The input param of class `ConversationParam`.- Returns:
- The output structure of `QWenConversationResult`.
- Throws:
NoApiKeyException- Can not find api keyInputRequiredException- The input fields are missing.ApiException
-
call
public void call(ConversationParam param, ResultCallback<ConversationResult> callback) throws ApiException, NoApiKeyException, InputRequiredException Deprecated.Call the server to get the result in the callback function.- Parameters:
param- The input param of class `ConversationParam`.callback- The callback to receive response, the template class is `ConversationResult`.- Throws:
NoApiKeyException- Can not find api keyApiException- The request failed, possibly due to a network or data error.InputRequiredException- The input fields are missing.
-
streamCall
public io.reactivex.Flowable<ConversationResult> streamCall(ConversationParam param) throws ApiException, NoApiKeyException, InputRequiredException Deprecated.Call the server to get the result by stream.- 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- The input fields are missing.
-
streamCall
public void streamCall(ConversationParam param, ResultCallback<ConversationResult> callback) throws ApiException, NoApiKeyException, InputRequiredException Deprecated.Call the server to get the result by stream.- Parameters:
param- The input param of class `ConversationParam`.callback- The result callback.- Throws:
NoApiKeyException- Can not find api keyApiException- The request failed, possibly due to a network or data error.InputRequiredException- The input fields are missing.
-