| Package | Description |
|---|---|
| com.alibaba.dashscope.aigc.conversation | |
| com.alibaba.dashscope.audio.tts | |
| com.alibaba.dashscope.common | |
| com.alibaba.dashscope.protocol |
| Modifier and Type | Method and Description |
|---|---|
void |
ConversationResult.fromResponse(Protocol protocol,
Response response)
Load data from the server output.
|
| Modifier and Type | Method and Description |
|---|---|
void |
SpeechSynthesisResult.fromResponse(Protocol protocol,
Response response) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
Result.fromResponse(Protocol protocol,
Response response)
Load data from the server output.
|
| Modifier and Type | Method and Description |
|---|---|
static Response |
ServiceFacility.streamingNone(Protocol protocol,
String url,
Map<String,String> headers,
Request request,
HttpMethod httpMethod,
long receiveTimeout)
Call rpc on single-in, single-out mode
|
| Modifier and Type | Method and Description |
|---|---|
static io.reactivex.Flowable<Response> |
ServiceFacility.streamingInAndDuplex(String url,
Map<String,String> headers,
io.reactivex.Flowable<Request> requests,
long receiveTimeout)
Call rpc on stream-in mode, only support websocket.
|
static io.reactivex.Flowable<Response> |
ServiceFacility.streamingOut(Protocol protocol,
String url,
Map<String,String> headers,
Request request,
HttpMethod httpMethod,
StreamingMode mode,
long receiveTimeout)
Call rpc on single-in, stream-out mode
|
| Modifier and Type | Method and Description |
|---|---|
void |
SubmitResult.fromResponse(Protocol protocol,
Response response) |
static Result |
ServiceFacility.prepareResult(Protocol protocol,
Param param,
Response res)
Prepare the Result by the response and the input param.
|
| Modifier and Type | Method and Description |
|---|---|
void |
WebsocketRpc.call(io.reactivex.Flowable<Request> requests,
ResultCallback<Response> responseCallback,
java.util.function.Function<String,Boolean> completeCallback)
Do call.
|
void |
WebsocketRpc.call(Request request,
ResultCallback<Response> responseCallback,
java.util.function.Function<String,Boolean> completeCallback)
Do call.
|
static void |
ServiceFacility.streamingInAndDuplexWithCallback(String url,
Map<String,String> headers,
io.reactivex.Flowable<Request> requests,
ResultCallback<Response> callback)
Call rpc with a callback on stream-in mode, only support websocket.
|
static void |
ServiceFacility.streamingOutWithCallback(Protocol protocol,
String url,
Map<String,String> headers,
Request request,
HttpMethod httpMethod,
StreamingMode mode,
ResultCallback<Response> callback)
Call rpc on single-in mode with a callback.
|
| Constructor and Description |
|---|
HttpRpc(String url,
ResultCallback<Response> responseCallback)
Construct the class.
|
Copyright © 2023. All rights reserved.