| Modifier and Type | Class and Description |
|---|---|
class |
ConversationResult |
| Modifier and Type | Method and Description |
|---|---|
Class<? extends Result> |
ConversationParam.resultType() |
| Modifier and Type | Class and Description |
|---|---|
class |
QWenConversationResult |
| Modifier and Type | Method and Description |
|---|---|
Class<? extends Result> |
QWenConversationParam.resultType() |
| Modifier and Type | Class and Description |
|---|---|
class |
SpeechSynthesisResult |
| Modifier and Type | Method and Description |
|---|---|
Class<? extends Result> |
SpeechSynthesisParam.resultType() |
| Modifier and Type | Method and Description |
|---|---|
abstract Class<? extends Result> |
Param.resultType()
Get the related output class, which should be a subclass of `Result`.
|
| Modifier and Type | Class and Description |
|---|---|
class |
SubmitResult |
| Modifier and Type | Method and Description |
|---|---|
static Result |
ServiceFacility.call(Protocol protocol,
Map<String,String> extraHeaders,
Param param,
HttpMethod method,
long receiveTimeout)
Call the network to do a single-in, single-out request.
|
static Result |
ServiceFacility.callAndWait(Map<String,String> extraHeaders,
Param param,
HttpMethod method,
long receiveTimeout)
Call the network to do async task submitting and queries.
|
static Result |
ServiceFacility.prepareResult(Protocol protocol,
Param param,
Response res)
Prepare the Result by the response and the input param.
|
static Result |
ServiceFacility.wait(SubmitParam submitParam,
Class<? extends Result> clazz,
long receiveTimeout)
Wait for an async task to finish, check every 5 seconds.
|
| Modifier and Type | Method and Description |
|---|---|
Class<? extends Result> |
SubmitParam.resultType() |
static io.reactivex.Flowable<Result> |
ServiceFacility.streamCall(Map<String,String> extraHeaders,
io.reactivex.Flowable<Param> params,
long receiveTimeout)
Call the network to do a stream-in, stream-out request.
|
static io.reactivex.Flowable<Result> |
ServiceFacility.streamCall(Protocol protocol,
Map<String,String> extraHeaders,
Param param,
long receiveTimeout)
Call the network to do a single-in, stream-out request.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
ServiceFacility.streamCall(Map<String,String> extraHeaders,
io.reactivex.Flowable<Param> params,
ResultCallback<Result> resultCallback)
Call the network to do a single-in, stream-out request via a callback.
|
static Result |
ServiceFacility.wait(SubmitParam submitParam,
Class<? extends Result> clazz,
long receiveTimeout)
Wait for an async task to finish, check every 5 seconds.
|
Copyright © 2023. All rights reserved.