| 限定符和类型 | 方法和说明 |
|---|---|
static void |
AssistantSimple.assistantUsage() |
static void |
MultiModalConversationUsage.audioInTextAudioStreamOut() |
static void |
GenerationCallTranslation.baseCall() |
static void |
ImageSynthesisUsage.basicCall() |
static void |
VideoSynthesisUsage.basicCall()
Create a video compositing task and wait for the task to complete.
|
static void |
BatchTextEmbeddingUsage.basicCall() |
static void |
MultiModalEmbeddingUsage.basicCall() |
static void |
TextEmbeddingUsage.basicCall() |
static void |
MultiModelConversationQwenTts.call() |
static void |
MultiModelConversationQvq.call() |
static void |
GenerationFunctionCallSample.callFunctionAdd() |
static void |
ApplicationCalls.callWithAssistantServing() |
static void |
MultiModelConversationQwenTts.callWithCallback() |
static void |
TextEmbeddingUsage.callWithCallback() |
static void |
MultiModelConversationQvq.callWithCallback() |
static void |
ConversationManagerHistory.callWithHistoryStream()
已过时。
|
static void |
GenerationCallWithResponseFormat.callWithJsonObject() |
static void |
ApplicationCalls.callWithMemory()
Application call with long term memory sample
|
static void |
GenerationCallWithMessages.callWithMessage() |
static void |
GenerationCallWithMessageMultiRound.callWithMessage() |
static void |
ConversationManagerMessages.callWithMessagesStream() |
static void |
ApplicationCalls.callWithMoreParameters() |
static void |
ApplicationCalls.callWithSession()
Call with multiple rounds session sample
|
static void |
ApplicationCalls.callWithThinking() |
static void |
ApplicationCalls.callWithWorkspace()
Call with workspace sample
|
static void |
BatchTextEmbeddingUsage.cancelTask(BatchTextEmbeddingResult result) |
static Assistant |
AssistantFunctionCallStreamOpenai.createAssistant() |
static Assistant |
AssistantFunctionCallStream.createAssistant() |
static Assistant |
AssistantFunctionCallStreamQwen.createAssistant() |
static Assistant |
AssistantFunctionCall.createAssistant() |
static Assistant |
AssistantCallSearch.createAssistant() |
static Assistant |
AssistantCallSearchStream.createAssistant() |
static BatchTextEmbeddingResult |
BatchTextEmbeddingUsage.createTask() |
static void |
GenerationToolChoice.disableToolCall() |
static void |
DollyUsage.dollyQuickStart() |
void |
ImageSynthesisUsage.fetchTask() |
static void |
VideoSynthesisUsage.fetchTask(String taskId)
Fetch a task.
|
static void |
BatchTextEmbeddingUsage.fetchTaskStatus(BatchTextEmbeddingResult result) |
static void |
ApplicationCalls.flowCall()
Plugin and flow application call sample
|
static void |
ApplicationCalls.flowCallWithParam()
Plugin and flow application call with biz params sample
|
static void |
GenerationToolChoice.forceCallFunctionAdd() |
static EncryptionKey |
TestEncryption.getEncryptKey()
Get encrypt key from server.
|
static void |
MultiModalConversationVLO.imageEdit() |
static void |
MultiModalConversationVLO.imageGen() |
static void |
MultiModalConversationUsage.imageInTextAudioStreamOut() |
static void |
BatchTextEmbeddingUsage.list() |
static void |
ImageSynthesisUsage.listTask() |
static void |
VideoSynthesisUsage.listTask()
List all tasks.
|
static void |
MultiModalEmbeddingUsage.localFileCall() |
static void |
AssistantFunctionCallStreamOpenai.main(String[] args) |
static void |
AssistantFunctionCallStream.main(String[] args) |
static void |
AssistantSimple.main(String[] args) |
static void |
TestEncryption.main(String[] args) |
static void |
AssistantFunctionCallStreamQwen.main(String[] args) |
static void |
AssistantFunctionCall.main(String[] args) |
static void |
AssistantCallSearch.main(String[] args) |
static void |
AssistantCallSearchStream.main(String[] args) |
static void |
MultiModalConversationUsage.MultiRoundConversationCall() |
static void |
GenerationToolChoice.parallelToolCalls() |
static void |
GenerationQuickStart.quickStartWithMessage() |
static void |
ConversationQuickStart.quickStartWithMessage() |
static void |
GenerationQuickStart.qwenQuickStart() |
static void |
GenerationQuickStart.qwenQuickStartCallback() |
static void |
TestEncryption.qwenQuickStartGeneral() |
static void |
TestEncryption.qwenQuickStartStream() |
static void |
ApplicationCalls.ragCall()
Rag application call sample
|
static void |
ApplicationCalls.ragCallWithDocReference() |
static void |
ApplicationCalls.ragCallWithTags()
Rag application call with tags sample
|
void |
AudioRecognitionUsage.recognitionFile(String filePath) |
void |
AudioRecognitionUsage.recognitionRealtimeMicrophone() |
static void |
AssistantFunctionCall.run(String assistantId) |
static void |
AssistantCallSearch.run(String assistantId) |
static void |
AssistantCallSearchStream.run(String assistantId) |
static void |
MultiModalConversationUsage.simpleMultiModalConversationCall() |
static void |
GenerationCallEarlyStop.stopWithStrings() |
static void |
GenerationCallEarlyStop.stopWithTokens() |
static void |
MultiModelConversationQwenTts.streamCall() |
static void |
ApplicationCalls.streamCall()
Call with stream response(Http SSE) sample
|
static void |
GenerationStreamCall.streamCall() |
static void |
GenerationCallWithCacheControl.streamCall() |
static void |
MultiModelConversationQvq.streamCall() |
static void |
QwenASRUsage.streamCall() |
static void |
GenerationCallTranslation.streamCallDomains() |
static void |
GenerationCallTranslation.streamCallTerms() |
static void |
GenerationCallTranslation.streamCallTmList() |
static void |
GenerationStreamCall.streamCallWithCallback() |
static void |
GenerationCallWithMessages.streamCallWithMessage() |
static void |
GenerationCallWithThinking.streamCallWithPartial() |
static void |
GenerationStreamCall.streamCallWithSearchOptions() |
static void |
GenerationCallWithThinking.streamCallWithThinking() |
static void |
GenerationCallWithThinking.streamCallWithToolChoice() |
static void |
AssistantFunctionCallStreamOpenai.streamRun(String assistantId) |
static void |
AssistantFunctionCallStream.streamRun(String assistantId) |
static void |
AssistantFunctionCallStreamQwen.streamRun(String assistantId) |
static void |
ImageSynthesisUsage.synCall() |
static void |
CodeGenerationQuickStart.testCode2commentSample() |
static void |
CodeGenerationQuickStart.testCode2explainSample() |
static void |
CodeGenerationQuickStart.testCodeqaSample() |
static void |
CodeGenerationQuickStart.testCommit2msgSample() |
static void |
CodeGenerationQuickStart.testCustomSample() |
static void |
CodeGenerationQuickStart.testCustomSampleWithCallBack() |
static void |
CodeGenerationQuickStart.testCustomSampleWithStream() |
static void |
CodeGenerationQuickStart.testCustomSampleWithStreamCallBack() |
static void |
CodeGenerationQuickStart.testCustomSampleWithWebSocket() |
static void |
ChatCompletionTest.testGeneralRequest() |
static void |
ChatCompletionTest.testGeneralRequestFunction() |
static void |
ChatCompletionTest.testGeneralRequestFunctionParallel() |
static void |
ChatCompletionTest.testGeneralRequestStream() |
static void |
ChatCompletionTest.testMultiModalRequest() |
static void |
CodeGenerationQuickStart.testNl2codeSample() |
static void |
CodeGenerationQuickStart.testNl2sqlSample() |
static void |
ConversationStreamCall.testStreamCall() |
static void |
CodeGenerationQuickStart.testUnittestSample() |
static void |
MultiModalConversationUsage.textInAudioStreamOut() |
static void |
MultiModalConversationUsage.textInTextStreamOut() |
static void |
ChatGLMUsage.usage() |
static void |
Llama2Usage.usage() |
static void |
YuanyuUsage.usage() |
static void |
ZiyaUsage.usage() |
static void |
BelleUsage.usage() |
static void |
BiLLaUsage.usage() |
static void |
BaiChuanUsage.usage() |
static void |
MossUsage.usage() |
static void |
MultiModalConversationQwenVL.videoImageListSample() |
static void |
MultiModalConversationQwenVLOcr.videoImageListSample() |
static void |
MultiModalConversationOmni.videoImageListSample() |
static void |
MultiModalConversationUsage.videoInTextAudioStreamOut() |
static void |
BatchTextEmbeddingUsage.waitTask(BatchTextEmbeddingResult result) |
| 限定符和类型 | 方法和说明 |
|---|---|
CodeGenerationResult |
CodeGeneration.call(CodeGenerationParam param)
Call the server to get the whole result.
|
void |
CodeGeneration.call(CodeGenerationParam param,
ResultCallback<CodeGenerationResult> callback)
Call the server to get the result in the callback function.
|
io.reactivex.Flowable<CodeGenerationResult> |
CodeGeneration.streamCall(CodeGenerationParam param)
Call the server to get the result by stream.
|
void |
CodeGeneration.streamCall(CodeGenerationParam param,
ResultCallback<CodeGenerationResult> callback)
Call the server to get the result by stream.
|
| 限定符和类型 | 方法和说明 |
|---|---|
ChatCompletion |
ChatCompletions.call(ChatCompletionParam param) |
void |
ChatCompletions.call(ChatCompletionParam param,
ResultCallback<ChatCompletion> callback) |
io.reactivex.Flowable<ChatCompletionChunk> |
ChatCompletions.streamCall(ChatCompletionParam param) |
void |
ChatCompletions.streamCall(ChatCompletionParam param,
ResultCallback<ChatCompletionChunk> callback) |
| 限定符和类型 | 方法和说明 |
|---|---|
ConversationResult |
Conversation.call(ConversationParam param)
已过时。
Call the server to get the whole result.
|
void |
Conversation.call(ConversationParam param,
ResultCallback<ConversationResult> callback)
已过时。
Call the server to get the result in the callback function.
|
io.reactivex.Flowable<ConversationResult> |
Conversation.streamCall(ConversationParam param)
已过时。
Call the server to get the result by stream.
|
void |
Conversation.streamCall(ConversationParam param,
ResultCallback<ConversationResult> callback)
已过时。
Call the server to get the result by stream.
|
| 限定符和类型 | 方法和说明 |
|---|---|
GenerationResult |
Generation.call(HalfDuplexServiceParam param)
Call the server to get the whole result, only http protocol
|
void |
Generation.call(HalfDuplexServiceParam param,
ResultCallback<GenerationResult> callback)
Call the server to get the result in the callback function.
|
io.reactivex.Flowable<GenerationResult> |
Generation.streamCall(HalfDuplexServiceParam param)
Call the server to get the result by stream. http and websocket.
|
void |
Generation.streamCall(HalfDuplexServiceParam param,
ResultCallback<GenerationResult> callback) |
| 限定符和类型 | 方法和说明 |
|---|---|
MultiModalConversationResult |
MultiModalConversation.call(MultiModalConversationParam param)
Call the server to get the whole result.
|
void |
MultiModalConversation.call(MultiModalConversationParam param,
ResultCallback<MultiModalConversationResult> callback)
Call the server to get the result in the callback function.
|
io.reactivex.Flowable<MultiModalConversationResult> |
MultiModalConversation.streamCall(MultiModalConversationParam param)
Call the server to get the result by stream.
|
void |
MultiModalConversation.streamCall(MultiModalConversationParam param,
ResultCallback<MultiModalConversationResult> callback)
Call the server to get the result by stream.
|
| 限定符和类型 | 方法和说明 |
|---|---|
VideoSynthesisResult |
VideoSynthesis.asyncCall(VideoSynthesisParam param)
Async call
|
VideoSynthesisResult |
VideoSynthesis.call(VideoSynthesisParam param)
Call the server to get the result.
|
VideoSynthesisResult |
VideoSynthesis.cancel(String taskId,
String apiKey)
Cancel the task.
|
VideoSynthesisResult |
VideoSynthesis.cancel(VideoSynthesisResult taskInfo,
String apiKey)
Cancel the task.
|
void |
VideoSynthesisParam.checkAndUpload() |
VideoSynthesisResult |
VideoSynthesis.fetch(String taskId,
String apiKey)
Fetch the result.
|
VideoSynthesisResult |
VideoSynthesis.fetch(VideoSynthesisResult taskInfo,
String apiKey)
Fetch the result.
|
VideoSynthesisListResult |
VideoSynthesis.list(AsyncTaskListParam param)
List the tasks.
|
VideoSynthesisListResult |
VideoSynthesis.list(String startTime,
String endTime,
String modelName,
String apiKeyId,
String region,
String status,
Integer pageNo,
Integer pageSize) |
VideoSynthesisResult |
VideoSynthesis.wait(String taskId,
String apiKey)
Wait for the task to complete.
|
VideoSynthesisResult |
VideoSynthesis.wait(VideoSynthesisResult taskInfo,
String apiKey)
Wait for the task to complete.
|
| 限定符和类型 | 方法和说明 |
|---|---|
DashScopeResult |
AsynchronousApi.asyncCall(ParamT param,
ServiceOption serviceOption)
Call async interface and return async task info.
|
DashScopeResult |
SynchronizeHalfDuplexApi.call(ParamT param)
Call the server to get the whole result.
|
void |
SynchronizeHalfDuplexApi.call(ParamT param,
ResultCallback<DashScopeResult> callback)
Call the server to get the result in the callback function.
|
DashScopeResult |
AsynchronousApi.call(ParamT param,
ServiceOption serviceOption)
Call the server to get the whole result.
|
DashScopeResult |
GeneralApi.call(ParamT param,
ServiceOption serviceOptions)
Call the server to get the whole result.
|
void |
GeneralApi.call(ParamT param,
ServiceOption serviceOptions,
ResultCallback<DashScopeResult> callback)
Call the server to get the result in the callback function.
|
DashScopeResult |
AsynchronousApi.cancel(DashScopeResult taskInfo,
String apiKey,
String baseUrl) |
DashScopeResult |
AsynchronousApi.cancel(String taskId,
String apiKey,
String baseUrl) |
DashScopeResult |
GeneralApi.delete(HalfDuplexParamBase param,
ServiceOption serviceOption)
Make a Delete request.
|
io.reactivex.Flowable<DashScopeResult> |
SynchronizeFullDuplexApi.duplexCall(ParamT param)
Call the server to get the result by stream.
|
void |
SynchronizeFullDuplexApi.duplexCall(ParamT param,
ResultCallback<DashScopeResult> callback)
Call the server to get the result by stream.
|
DashScopeResult |
AsynchronousApi.fetch(DashScopeResult taskInfo,
String apiKey,
String baseUrl) |
DashScopeResult |
AsynchronousApi.fetch(String taskId,
String apiKey,
String baseUrl)
Get the async task information, if the is completed will return the result, otherwise return
task status.
|
DashScopeResult |
AsynchronousApi.fetch(String taskId,
String apiKey,
String baseUrl,
Map<String,String> customHeaders)
Get the async task information, if the is completed will return the result, otherwise return
task status.
|
DashScopeResult |
GeneralApi.get(HalfDuplexParamBase param,
ServiceOption serviceOption)
Make a get request.
|
DashScopeResult |
AsynchronousApi.list(AsyncTaskListParam param,
String baseUrl) |
DashScopeResult |
AsynchronousApi.list(String startTime,
String endTime,
String modelName,
String apiKeyId,
String region,
String status,
Integer pageNo,
Integer pageSize,
String baseUrl) |
io.reactivex.Flowable<DashScopeResult> |
SynchronizeHalfDuplexApi.streamCall(ParamT param)
Call the server to get the result by stream.
|
void |
SynchronizeHalfDuplexApi.streamCall(ParamT param,
ResultCallback<DashScopeResult> callback)
Call the server to get the result by stream.
|
io.reactivex.Flowable<DashScopeResult> |
GeneralApi.streamCall(ParamT param,
ServiceOption serviceOptions)
Call the server to get the result by stream.
|
void |
GeneralApi.streamCall(ParamT param,
ServiceOption serviceOptions,
ResultCallback<DashScopeResult> callback)
Call the server to get the result by stream.
|
DashScopeResult |
SynchronizeFullDuplexApi.streamIn(ParamT param)
Call the server to get the whole result.
|
void |
SynchronizeFullDuplexApi.streamIn(ParamT param,
ResultCallback<DashScopeResult> callback)
Call the server to get the result in the callback function.
|
DashScopeResult |
AsynchronousApi.wait(DashScopeResult taskInfo,
String apiKey,
String baseUrl) |
DashScopeResult |
AsynchronousApi.wait(String taskId,
String apiKey,
String baseUrl)
Wait for async task completed and return task result.
|
DashScopeResult |
AsynchronousApi.wait(String taskId,
String apiKey,
String baseUrl,
Map<String,String> customHeaders)
Wait for async task completed and return task result.
|
| 限定符和类型 | 方法和说明 |
|---|---|
ApplicationResult |
Application.call(ApplicationParam param)
app completion call for http request
|
io.reactivex.Flowable<ApplicationResult> |
Application.streamCall(ApplicationParam param)
app completion call for http request by sse stream
|
| 限定符和类型 | 方法和说明 |
|---|---|
static AsrPhraseStatusResult |
AsrPhraseManager.CreatePhrases(AsrPhraseParam param) |
static AsrPhraseStatusResult |
AsrPhraseManager.DeletePhrase(AsrPhraseParam param,
String phraseId) |
static AsrPhraseStatusResult |
AsrPhraseManager.ListPhrases(AsrPhraseParam param) |
static AsrPhraseStatusResult |
AsrPhraseManager.QueryPhrase(AsrPhraseParam param,
String phraseId) |
static AsrPhraseStatusResult |
AsrPhraseManager.UpdatePhrases(AsrPhraseParam param,
String phraseId) |
| 限定符和类型 | 方法和说明 |
|---|---|
io.reactivex.Flowable<RecognitionResult> |
Recognition.streamCall(RecognitionParam param,
io.reactivex.Flowable<ByteBuffer> audioFrame) |
| 限定符和类型 | 方法和说明 |
|---|---|
io.reactivex.Flowable<TranslationRecognizerResult> |
TranslationRecognizerRealtime.streamCall(TranslationRecognizerParam param,
io.reactivex.Flowable<ByteBuffer> audioFrame)
Speech Translation and Recognition real-time using Flowable features
|
| 限定符和类型 | 方法和说明 |
|---|---|
Vocabulary |
VocabularyService.createVocabulary(String targetModel,
String prefix,
com.google.gson.JsonArray vocabulary)
创建新热词
|
Vocabulary |
VocabularyService.createVocabulary(String targetModel,
String prefix,
com.google.gson.JsonArray vocabulary,
VocabularyParam customParam) |
void |
VocabularyService.deleteVocabulary(String vocabularyId)
删除热词表
|
void |
VocabularyService.deleteVocabulary(String vocabularyId,
VocabularyParam customParam) |
Vocabulary[] |
VocabularyService.listVocabulary(String prefix)
查询已创建的所有热词表。
|
Vocabulary[] |
VocabularyService.listVocabulary(String prefix,
int pageIndex,
int pageSize)
查询已创建的所有热词表
|
Vocabulary[] |
VocabularyService.listVocabulary(String prefix,
int pageIndex,
int pageSize,
VocabularyParam customParam) |
Vocabulary |
VocabularyService.queryVocabulary(String vocabularyId)
查询指定热词表
|
Vocabulary |
VocabularyService.queryVocabulary(String vocabularyId,
VocabularyParam customParam) |
void |
VocabularyService.updateVocabulary(String vocabularyId,
com.google.gson.JsonArray vocabulary)
更新热词表
|
void |
VocabularyService.updateVocabulary(String vocabularyId,
com.google.gson.JsonArray vocabulary,
VocabularyParam customParam) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
OmniRealtimeConversation.connect()
Connect to server, create session and return default session configuration
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
QwenTtsRealtime.connect()
Connect to server, create session and return default session configuration
|
| 限定符和类型 | 方法和说明 |
|---|---|
io.reactivex.Flowable<SpeechSynthesisResult> |
SpeechSynthesizer.callAsFlowable(String text)
Stream output speech synthesis using Flowable features (non-streaming input)
|
io.reactivex.Flowable<SpeechSynthesisResult> |
SpeechSynthesizer.streamingCallAsFlowable(io.reactivex.Flowable<String> textStream)
Stream input and output speech synthesis using Flowable features
|
| 限定符和类型 | 方法和说明 |
|---|---|
Voice |
VoiceEnrollmentService.createVoice(String targetModel,
String prefix,
String url)
创建新克隆音色
|
Voice |
VoiceEnrollmentService.createVoice(String targetModel,
String prefix,
String url,
VoiceEnrollmentParam customParam) |
void |
VoiceEnrollmentService.deleteVoice(String voiceId)
删除音色
|
void |
VoiceEnrollmentService.deleteVoice(String voiceId,
VoiceEnrollmentParam customParam) |
Voice[] |
VoiceEnrollmentService.listVoice(String prefix)
查询已创建的所有音色 默认的页索引为0,默认的页大小为10
|
Voice[] |
VoiceEnrollmentService.listVoice(String prefix,
int pageIndex,
int pageSize)
查询已创建的所有音色
|
Voice[] |
VoiceEnrollmentService.listVoice(String prefix,
int pageIndex,
int pageSize,
VoiceEnrollmentParam customParam) |
Voice |
VoiceEnrollmentService.queryVoice(String voiceId)
查询指定音色
|
Voice |
VoiceEnrollmentService.queryVoice(String voiceId,
VoiceEnrollmentParam customParam) |
void |
VoiceEnrollmentService.updateVoice(String voiceId,
String url)
更新音色
|
void |
VoiceEnrollmentService.updateVoice(String voiceId,
String url,
VoiceEnrollmentParam customParam) |
| 限定符和类型 | 方法和说明 |
|---|---|
BatchTextEmbeddingResult |
BatchTextEmbedding.asyncCall(BatchTextEmbeddingParam param) |
BatchTextEmbeddingResult |
BatchTextEmbedding.call(BatchTextEmbeddingParam param)
Call the server and wait for the task finished.
|
MultiModalEmbeddingResult |
MultiModalEmbedding.call(MultiModalEmbeddingParam param)
Call the server to get the whole result, only http protocol
|
void |
MultiModalEmbedding.call(MultiModalEmbeddingParam param,
ResultCallback<MultiModalEmbeddingResult> callback)
Call the server to get the result in the callback function.
|
TextEmbeddingResult |
TextEmbedding.call(TextEmbeddingParam param)
Call the server to get the whole result, only http protocol
|
void |
TextEmbedding.call(TextEmbeddingParam param,
ResultCallback<TextEmbeddingResult> callback)
Call the server to get the result in the callback function.
|
BatchTextEmbeddingResult |
BatchTextEmbedding.cancel(BatchTextEmbeddingResult taskInfo,
String apiKey) |
BatchTextEmbeddingResult |
BatchTextEmbedding.cancel(String taskId,
String apiKey) |
BatchTextEmbeddingResult |
BatchTextEmbedding.fetch(BatchTextEmbeddingResult taskInfo,
String apiKey) |
BatchTextEmbeddingResult |
BatchTextEmbedding.fetch(String taskId,
String apiKey) |
AsyncTaskListResult |
BatchTextEmbedding.list(AsyncTaskListParam param) |
AsyncTaskListResult |
BatchTextEmbedding.list(String startTime,
String endTime,
String modelName,
String apiKeyId,
String region,
String status,
Integer pageNo,
Integer pageSize) |
BatchTextEmbeddingResult |
BatchTextEmbedding.wait(BatchTextEmbeddingResult taskInfo,
String apiKey) |
BatchTextEmbeddingResult |
BatchTextEmbedding.wait(String taskId,
String apiKey) |
| 限定符和类型 | 方法和说明 |
|---|---|
DashScopeResult |
TingWu.call(HalfDuplexServiceParam param)
Call the server to get the whole result, only http protocol
|
| 限定符和类型 | 方法和说明 |
|---|---|
UnderstandingResult |
Understanding.call(UnderstandingParam param)
Call the server to get the whole result, only http protocol
|
void |
Understanding.call(UnderstandingParam param,
ResultCallback<UnderstandingResult> callback)
Call the server to get the result in the callback function.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static Map<String,String> |
DashScopeHeaders.buildHttpHeaders(String apiKey,
Boolean isSecurityCheck,
Protocol protocol,
Boolean isSSE,
Boolean isAsyncTask,
String workspace,
Map<String,String> customHeaders) |
static Map<String,String> |
DashScopeHeaders.buildWebSocketHeaders(String apiKey,
boolean isSecurityCheck,
String workspace,
Map<String,String> customHeaders) |
io.reactivex.Flowable<DashScopeResult> |
FullDuplexClient.duplex(FullDuplexRequest req) |
void |
FullDuplexClient.duplex(FullDuplexRequest req,
ResultCallback<DashScopeResult> callback) |
HttpRequest |
HalfDuplexRequest.getHttpRequest() |
DashScopeResult |
HalfDuplexClient.send(HalfDuplexRequest req)
Blocking send http request and get the response body.
|
void |
HalfDuplexClient.send(HalfDuplexRequest req,
ResultCallback<DashScopeResult> callback) |
DashScopeResult |
FullDuplexClient.streamIn(FullDuplexRequest req) |
void |
FullDuplexClient.streamIn(FullDuplexRequest req,
ResultCallback<DashScopeResult> callback) |
io.reactivex.Flowable<DashScopeResult> |
HalfDuplexClient.streamOut(HalfDuplexRequest req) |
void |
HalfDuplexClient.streamOut(HalfDuplexRequest req,
ResultCallback<DashScopeResult> callback) |
| 限定符和类型 | 方法和说明 |
|---|---|
io.reactivex.Flowable<DashScopeResult> |
OkHttpWebSocketClient.duplex(FullDuplexRequest req) |
void |
OkHttpWebSocketClient.duplex(FullDuplexRequest req,
ResultCallback<DashScopeResult> callback) |
DashScopeResult |
OkHttpHttpClient.send(HalfDuplexRequest req) |
void |
OkHttpHttpClient.send(HalfDuplexRequest req,
ResultCallback<DashScopeResult> callback) |
void |
OkHttpWebSocketClient.streamIn(FullDuplexRequest req,
ResultCallback<DashScopeResult> callback) |
io.reactivex.Flowable<DashScopeResult> |
OkHttpHttpClient.streamOut(HalfDuplexRequest req) |
void |
OkHttpHttpClient.streamOut(HalfDuplexRequest req,
ResultCallback<DashScopeResult> callback) |
| 限定符和类型 | 方法和说明 |
|---|---|
TextReRankResult |
TextReRank.call(TextReRankParam param)
Call the server to get the whole result.
|
| 限定符和类型 | 方法和说明 |
|---|---|
AssistantThread |
Threads.create(ThreadParam param) |
DeletionStatus |
Threads.delete(String threadId) |
DeletionStatus |
Threads.delete(String threadId,
String apiKey) |
AssistantThread |
Threads.retrieve(String threadId) |
AssistantThread |
Threads.retrieve(String threadId,
String apiKey) |
AssistantThread |
Threads.update(String threadId,
UpdateMetadataParam param) |
| 限定符和类型 | 方法和说明 |
|---|---|
ThreadMessage |
Messages.create(String threadId,
MessageParamBase param) |
ListResult<ThreadMessage> |
Messages.list(String threadId,
GeneralListParam listParam) |
ListResult<MessageFile> |
Messages.listFiles(String threadId,
String messageId,
GeneralListParam listParam) |
ThreadMessage |
Messages.retrieve(String threadId,
String messageId) |
ThreadMessage |
Messages.retrieve(String threadId,
String messageId,
String apiKey) |
ThreadMessage |
Messages.retrieve(String threadId,
String messageId,
String apiKey,
Map<String,String> headers) |
MessageFile |
Messages.retrieveFile(String threadId,
String messageId,
String fileId) |
MessageFile |
Messages.retrieveFile(String threadId,
String messageId,
String fileId,
String apiKey) |
MessageFile |
Messages.retrieveFile(String threadId,
String messageId,
String fileId,
String apiKey,
Map<String,String> headers) |
ThreadMessage |
Messages.update(String threadId,
String messageId,
UpdateMetadataParam param) |
| 限定符和类型 | 方法和说明 |
|---|---|
Run |
Runs.create(String threadId,
RunParam param)
Create a thread run.
|
io.reactivex.Flowable<AssistantStreamMessage> |
Runs.createStream(String threadId,
RunParam param)
Create stream run, return Flowable of StreamMessage.
|
void |
Runs.createStream(String threadId,
RunParam param,
AssistantEventHandler handler)
Create stream run, with event handler.
|
io.reactivex.Flowable<AssistantStreamMessage> |
Runs.createStreamThreadAndRun(ThreadAndRunParam param)
Create stream output and run.
|
void |
Runs.createStreamThreadAndRun(ThreadAndRunParam param,
AssistantEventHandler handler)
Create stream output and run.
|
Run |
Runs.createThreadAndRun(ThreadAndRunParam param)
Create thread and run.
|
ListResult<Run> |
Runs.list(String threadId,
GeneralListParam listParam)
List the run of thread id.
|
ListResult<RunStep> |
Runs.listSteps(String threadId,
String runId,
GeneralListParam listParam)
List the run step of the run id.
|
Run |
Runs.retrieve(String threadId,
String runId)
Retrieve the run.
|
Run |
Runs.retrieve(String threadId,
String runId,
String apiKey)
Retrieve the run.
|
Run |
Runs.retrieve(String threadId,
String runId,
String apiKey,
Map<String,String> headers) |
RunStep |
Runs.retrieveStep(String threadId,
String runId,
String stepId)
Retrieve the run step.
|
RunStep |
Runs.retrieveStep(String threadId,
String runId,
String stepId,
String apiKey)
Retrieve the run step.
|
RunStep |
Runs.retrieveStep(String threadId,
String runId,
String stepId,
String apiKey,
Map<String,String> headers) |
io.reactivex.Flowable<AssistantStreamMessage> |
Runs.submitStreamToolOutputs(String threadId,
String runId,
SubmitToolOutputsParam param)
Submit tool outputs, and return stream result.
|
void |
Runs.submitStreamToolOutputs(String threadId,
String runId,
SubmitToolOutputsParam param,
AssistantEventHandler handler)
Submit tool outputs, and return stream result.
|
Run |
Runs.submitToolOutputs(String threadId,
String runId,
SubmitToolOutputsParam param)
Submit tool outputs.
|
Run |
Runs.update(String threadId,
String runId,
UpdateMetadataParam param)
Update the run.
|
| 限定符和类型 | 方法和说明 |
|---|---|
TokenizationResult |
Tokenization.call(HalfDuplexServiceParam param)
Call the server to get the whole result, only http protocol
|
void |
Tokenization.call(HalfDuplexServiceParam param,
ResultCallback<TokenizationResult> callback)
Call the server to get the result in the callback function.
|
| 限定符和类型 | 方法和说明 |
|---|---|
DashScopeResult |
GeneralHalfDuplexApi.call(HalfDuplexServiceParam param)
Call the server to get the whole result, only http protocol
|
void |
GeneralHalfDuplexApi.call(HalfDuplexServiceParam param,
ResultCallback<DashScopeResult> callback)
Call the server to get the result in the callback function.
|
static boolean |
PreprocessMessageInput.checkAndUpload(String model,
MultiModalMessageItemBase message,
String apiKey) |
static boolean |
PreprocessInputImage.checkAndUploadImage(String model,
Map<String,String> values,
String apiKey) |
static String |
PreprocessInputImage.checkAndUploadImage(String model,
String apiKey,
String value) |
static boolean |
PreprocessMessageInput.checkAndUploadMultiModalMessage(String model,
Map.Entry<String,Object> entry,
String apiKey) |
static String |
PreprocessMessageInput.checkAndUploadOneMultiModalMessage(String model,
String apiKey,
String key,
String value) |
static EncryptionConfig |
EncryptionUtils.generateEncryptionConfig(String apiKey)
Generate a EncryptionConfig.
|
static DashScopeResult |
OSSUtils.get_upload_certificate(String model,
String apiKey) |
EncryptionKey |
EncryptionKeys.get() |
EncryptionKey |
EncryptionKeys.get(String apiKey) |
static String |
ApiKey.getApiKey(String apiKey) |
static <T extends MultiModalMessageItemBase> |
PreprocessMessageInput.preProcessMessageInputs(String model,
List<T> messages,
String apiKey) |
static boolean |
PreprocessMessageInput.preProcessMultiModalMessageInputs(String model,
MultiModalMessage messages,
String apiKey) |
io.reactivex.Flowable<DashScopeResult> |
GeneralHalfDuplexApi.streamCall(HalfDuplexServiceParam param)
Call the server to get the result by stream. http and websocket.
|
void |
GeneralHalfDuplexApi.streamCall(HalfDuplexServiceParam param,
ResultCallback<DashScopeResult> callback) |
static String |
OSSUtils.upload(String model,
String filePath,
String apiKey) |
Copyright © 2025. All rights reserved.