Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dashscope/dashscope-sdk-java
/ functions
Functions
2,266 in github.com/dashscope/dashscope-sdk-java
⨍
Functions
2,266
◇
Types & classes
731
↓ 471 callers
Method
build
Return one or more Object-MediaType pairs to write via {@link #send(Object, MediaType)}. @since 4.2.3
src/test/java/com/alibaba/dashscope/ServerSentEvent.java:58
↓ 461 callers
Method
builder
()
src/main/java/com/alibaba/dashscope/agentstudio/AgentStudioClient.java:51
↓ 282 callers
Method
get
Make a get request. @param param The param @param serviceOption The service options @return The task result. @throws NoApiKeyException Can not find a
src/main/java/com/alibaba/dashscope/api/GeneralApi.java:109
↓ 240 callers
Method
format
Locale-independent String.format using Locale.ROOT to guarantee ASCII output for numeric format specifiers (%d, %f, etc.), preventing non-ASCII charac
src/main/java/com/alibaba/dashscope/utils/StringUtils.java:14
↓ 182 callers
Method
toJson
(Object obj)
src/main/java/com/alibaba/dashscope/utils/JsonUtils.java:59
↓ 147 callers
Method
enqueue
(String fixtureKey)
src/test/java/com/alibaba/dashscope/TestAgentStudio.java:87
↓ 130 callers
Method
getMessage
()
src/main/java/com/alibaba/dashscope/exception/ApiException.java:47
↓ 100 callers
Method
getValue
()
src/main/java/com/alibaba/dashscope/common/Role.java:22
↓ 91 callers
Method
parse
(String jsonString)
src/main/java/com/alibaba/dashscope/utils/JsonUtils.java:91
↓ 86 callers
Method
close
(int code, String reason)
src/main/java/com/alibaba/dashscope/protocol/FullDuplexClient.java:28
↓ 72 callers
Method
apiKey
(String apiKey)
src/main/java/com/alibaba/dashscope/agentstudio/AgentStudioClient.java:62
↓ 71 callers
Method
fromDashScopeResult
( DashScopeResult dashScopeResult, Type type)
src/main/java/com/alibaba/dashscope/common/FlattenResultBase.java:26
↓ 70 callers
Method
getId
()
src/main/java/com/alibaba/dashscope/tools/ToolCallBase.java:31
↓ 65 callers
Method
toString
()
src/test/java/com/alibaba/dashscope/WebSocketRecorder.java:303
↓ 59 callers
Method
equals
(Object other)
src/main/java/com/alibaba/dashscope/tokenizers/EncodeBytesEntity.java:22
↓ 52 callers
Method
fromJson
(String obj, Class<T> clazz)
src/main/java/com/alibaba/dashscope/utils/JsonUtils.java:63
↓ 50 callers
Method
toString
()
src/main/java/com/alibaba/dashscope/threads/runs/Run.java:181
↓ 47 callers
Method
name
Add an SSE "event" line.
src/test/java/com/alibaba/dashscope/ServerSentEvent.java:39
↓ 45 callers
Method
failedFuture
(Throwable ex)
src/main/java/com/alibaba/dashscope/agentstudio/resource/AsyncHelper.java:44
↓ 44 callers
Method
getType
()
src/main/java/com/alibaba/dashscope/tools/ToolInterface.java:4
↓ 44 callers
Method
joinAndUnwrap
(CompletableFuture<T> future)
src/main/java/com/alibaba/dashscope/agentstudio/resource/AsyncHelper.java:50
↓ 43 callers
Method
callAsync
( GeneralApi<HalfDuplexParamBase> api, HalfDuplexParamBase param, ServiceOption opt)
src/main/java/com/alibaba/dashscope/agentstudio/resource/AsyncHelper.java:17
↓ 43 callers
Method
newServiceOption
Build a {@link GeneralServiceOption} for an agentstudio endpoint. When {@code baseUrl} is non-null it overrides the global default; otherwise the requ
src/main/java/com/alibaba/dashscope/agentstudio/AgentStudioConstants.java:99
↓ 37 callers
Method
getModel
()
src/main/java/com/alibaba/dashscope/app/ApplicationParam.java:137
↓ 37 callers
Method
send
Blocking send http request and get the response body. @param req the user input data and parameters. @return The the `DashScopeResult`. @throws NoApi
src/main/java/com/alibaba/dashscope/protocol/HalfDuplexClient.java:20
↓ 33 callers
Method
getApiKey
(String apiKey)
src/main/java/com/alibaba/dashscope/utils/ApiKey.java:15
↓ 32 callers
Method
createMockResponse
(String responseBody, int statusCode)
src/test/java/com/alibaba/dashscope/TestUtils.java:73
↓ 32 callers
Method
fromJsonObject
(JsonElement jsonElement, Class<T> clazz)
src/main/java/com/alibaba/dashscope/utils/JsonUtils.java:75
↓ 31 callers
Method
equals
(Object other)
src/test/java/com/alibaba/dashscope/WebSocketRecorder.java:385
↓ 29 callers
Method
getData
()
src/test/java/com/alibaba/dashscope/ServerSentEvent.java:23
↓ 28 callers
Method
create
Create a thread run. @param threadId The thread id. @param param The `RunParam` @return The `Run` object. @throws ApiException The request exception,
src/main/java/com/alibaba/dashscope/threads/runs/Runs.java:62
↓ 28 callers
Method
getName
()
src/main/java/com/alibaba/dashscope/audio/omni/OmniRealtimeModality.java:20
↓ 28 callers
Method
onError
(String errorMsg)
src/main/java/com/alibaba/dashscope/threads/runs/AssistantEventHandler.java:51
↓ 28 callers
Method
start
Starts the dialog session.
src/main/java/com/alibaba/dashscope/multimodal/MultiModalDialog.java:190
↓ 27 callers
Method
getValue
()
src/main/java/com/alibaba/dashscope/app/FlowStreamMode.java:24
↓ 27 callers
Method
of
(String value)
src/main/java/com/alibaba/dashscope/protocol/Protocol.java:20
↓ 26 callers
Method
call
Call the server to get the whole result, only http protocol @param param The input param of class `ConversationParam`. @return The output structure o
src/main/java/com/alibaba/dashscope/aigc/generation/Generation.java:117
↓ 26 callers
Method
getContent
()
src/main/java/com/alibaba/dashscope/aigc/multimodalconversation/MultiModalMessageItemBase.java:6
↓ 25 callers
Method
parametersToJsonObject
(Map<String, Object> parameters)
src/main/java/com/alibaba/dashscope/utils/JsonUtils.java:165
↓ 24 callers
Method
getTaskId
(DashScopeResult task)
src/main/java/com/alibaba/dashscope/api/AsynchronousApi.java:325
↓ 24 callers
Method
streamCall
Call the server to get the result by stream. http and websocket. @param param The input param of class `ConversationParam`. @return A `Flowable` of t
src/main/java/com/alibaba/dashscope/aigc/generation/Generation.java:168
↓ 23 callers
Method
getModel
()
src/main/java/com/alibaba/dashscope/task/AsyncTaskParam.java:21
↓ 23 callers
Method
onError
(WebSocket webSocket, Throwable t)
src/main/java/com/alibaba/dashscope/audio/protocol/AudioWebsocketCallback.java:15
↓ 22 callers
Method
toJsonElement
(Object obj)
src/main/java/com/alibaba/dashscope/utils/JsonUtils.java:87
↓ 22 callers
Method
toString
()
src/main/java/com/alibaba/dashscope/audio/ttsv2/enrollment/Voice.java:82
↓ 20 callers
Method
addExtraBody
(JsonObject requestObject)
src/main/java/com/alibaba/dashscope/base/FlattenHalfDuplexParamBase.java:77
↓ 20 callers
Method
append
(String text)
src/test/java/com/alibaba/dashscope/ServerSentEvent.java:150
↓ 20 callers
Method
duplexCall
Call the server to get the result by stream. @param param The input param, should be the subclass of `Param`. @return A `Flowable` of the output stru
src/main/java/com/alibaba/dashscope/api/SynchronizeFullDuplexApi.java:96
↓ 20 callers
Method
getValue
()
src/main/java/com/alibaba/dashscope/audio/ttsv2/SpeechSynthesisState.java:13
↓ 20 callers
Method
parseString
Parses the specified JSON string into a parse tree @param json JSON text @return a parse tree of {@link JsonElement}s corresponding to the specified
src/main/java/com/alibaba/dashscope/utils/JsonUtils.java:103
↓ 19 callers
Method
call
Call the server to get the whole result. @param param The input param of class `CodeGenerationParam`. @return The output structure of `CodeGeneration
src/main/java/com/alibaba/dashscope/aigc/codegeneration/CodeGeneration.java:85
↓ 19 callers
Method
toJsonArray
(Object obj)
src/main/java/com/alibaba/dashscope/utils/JsonUtils.java:79
↓ 18 callers
Method
usage
()
samples/ZiyaUsage.java:13
↓ 18 callers
Method
withApiKey
Stamp the client's instance apiKey onto a param if the caller didn't set one. The global fallback chain in {@link com.alibaba.dashscope.utils.ApiKey#g
src/main/java/com/alibaba/dashscope/agentstudio/AgentStudioConstants.java:119
↓ 17 callers
Method
create
(AssistantParam param)
src/main/java/com/alibaba/dashscope/assistants/Assistants.java:57
↓ 17 callers
Method
getFunction
()
src/main/java/com/alibaba/dashscope/protocol/ServiceOption.java:18
↓ 17 callers
Method
getHeaders
()
src/main/java/com/alibaba/dashscope/audio/omni/OmniRealtimeParam.java:38
↓ 17 callers
Method
retrieve
Retrieve the run. @param threadId The thread id. @param runId The run id. @return The `Run` object. @throws ApiException The request exception, if ne
src/main/java/com/alibaba/dashscope/threads/runs/Runs.java:257
↓ 16 callers
Method
getWorkspace
()
src/main/java/com/alibaba/dashscope/protocol/FullDuplexRequest.java:187
↓ 16 callers
Method
stream
(String sessionId)
src/main/java/com/alibaba/dashscope/agentstudio/resource/SessionEvents.java:133
↓ 16 callers
Method
toQueryString
()
src/main/java/com/alibaba/dashscope/agentstudio/param/FileListParam.java:25
↓ 15 callers
Method
assertOpen
()
src/test/java/com/alibaba/dashscope/WebSocketRecorder.java:132
↓ 15 callers
Method
await
()
src/main/java/com/alibaba/dashscope/threads/runs/DefaultAssistantEventHandler.java:49
↓ 15 callers
Method
getTaskStartMessage
()
src/test/java/com/alibaba/dashscope/WebSocketServerMessage.java:13
↓ 15 callers
Method
getToolCalls
()
src/main/java/com/alibaba/dashscope/threads/runs/RequiredAction.java:19
↓ 15 callers
Method
length
()
src/main/java/com/alibaba/dashscope/tokenizers/EncodeBytesEntity.java:18
↓ 15 callers
Method
toJsonObject
(Object obj)
src/main/java/com/alibaba/dashscope/utils/JsonUtils.java:83
↓ 15 callers
Method
verifyRequest
( RecordedRequest requestServer, Object requestObject, Class<?> classOfRequest, String
src/test/java/com/alibaba/dashscope/TestUtils.java:93
↓ 15 callers
Method
workspace
(String workspace)
src/main/java/com/alibaba/dashscope/agentstudio/AgentStudioClient.java:72
↓ 14 callers
Method
call
app completion call for http request @param param app completion params @return app completion result @throws ApiException failed to request api @thr
src/main/java/com/alibaba/dashscope/app/Application.java:53
↓ 13 callers
Method
checkStatus
Omni APIs
src/main/java/com/alibaba/dashscope/audio/omni/OmniRealtimeConversation.java:56
↓ 13 callers
Method
streamCall
Call the server to get the result by stream. @param param The input param of class `MultiModalConversationParam`. @return A `Flowable` of the output
src/main/java/com/alibaba/dashscope/aigc/multimodalconversation/MultiModalConversation.java:155
↓ 12 callers
Method
get
(String type)
src/main/java/com/alibaba/dashscope/common/TypeRegistry.java:17
↓ 12 callers
Method
value
()
src/main/java/com/alibaba/dashscope/threads/runs/Run.java:186
↓ 11 callers
Method
cancel
()
src/main/java/com/alibaba/dashscope/protocol/FullDuplexClient.java:30
↓ 11 callers
Method
checkResult
( CodeGenerationResult result, RecordedRequest request, String expectBody, TestResponse rsp)
src/test/java/com/alibaba/dashscope/TestCodeGeneration.java:76
↓ 11 callers
Method
decode
Decode token ids to String @param ids The input token ids, eg: [2610, 525, 264, 10950, 17847, 13], will be Decoded to "You are a helpful assistan
src/main/java/com/alibaba/dashscope/tokenizers/Tokenizer.java:44
↓ 10 callers
Method
call
Call the server to get the whole result. @param param The input param, should be the subclass of `Param`. @param serviceOptions The service option. @
src/main/java/com/alibaba/dashscope/api/GeneralApi.java:47
↓ 10 callers
Method
call
Call the server to get the whole result. @param param The input param of class `MultiModalConversationParam`. @return The output structure of `MultiM
src/main/java/com/alibaba/dashscope/aigc/multimodalconversation/MultiModalConversation.java:102
↓ 10 callers
Method
checkStatus
()
src/main/java/com/alibaba/dashscope/audio/qwen_tts_realtime/QwenTtsRealtime.java:51
↓ 10 callers
Method
getValue
()
src/main/java/com/alibaba/dashscope/protocol/Protocol.java:16
↓ 10 callers
Method
sendMessage
(String message, boolean enableLog)
src/main/java/com/alibaba/dashscope/audio/omni/OmniRealtimeConversation.java:338
↓ 9 callers
Method
call
Call the server to get the whole result, only http protocol @param param The input param of class `HalfDuplexServiceParam`. @return The output struct
src/main/java/com/alibaba/dashscope/tokenizers/Tokenization.java:73
↓ 9 callers
Method
generateEventId
()
src/main/java/com/alibaba/dashscope/audio/omni/OmniRealtimeConversation.java:330
↓ 9 callers
Method
getIsFlatten
Is flatten request and response @return if the result is flatten
src/main/java/com/alibaba/dashscope/protocol/ServiceOption.java:55
↓ 9 callers
Method
getTaskGeneratedMessage
(JsonElement output, JsonElement usage)
src/test/java/com/alibaba/dashscope/WebSocketServerMessage.java:24
↓ 9 callers
Method
interrupt
Interrupts current operation.
src/main/java/com/alibaba/dashscope/multimodal/MultiModalDialog.java:368
↓ 9 callers
Method
write
(JsonWriter out, Message value)
src/main/java/com/alibaba/dashscope/common/MessageAdapter.java:20
↓ 8 callers
Method
appendParam
Append {@code key=value} (URL-encoded) to {@code sb} if value is non-null. Joins with {@literal &}.
src/main/java/com/alibaba/dashscope/agentstudio/AgentStudioConstants.java:130
↓ 8 callers
Method
create
(String threadId, MessageParamBase param)
src/main/java/com/alibaba/dashscope/threads/messages/Messages.java:49
↓ 8 callers
Method
credentials
()
src/main/java/com/alibaba/dashscope/agentstudio/resource/Vaults.java:43
↓ 8 callers
Method
delete
(String threadId)
src/main/java/com/alibaba/dashscope/threads/Threads.java:75
↓ 8 callers
Method
get
()
src/main/java/com/alibaba/dashscope/utils/EncryptionKeys.java:45
↓ 8 callers
Method
getOkHttpClient
()
src/main/java/com/alibaba/dashscope/protocol/okhttp/OkHttpClientFactory.java:72
↓ 8 callers
Method
getParameters
()
src/main/java/com/alibaba/dashscope/task/AsyncTaskParam.java:26
↓ 8 callers
Method
getTaskFinishedMessage
(JsonElement output, JsonElement usage)
src/test/java/com/alibaba/dashscope/WebSocketServerMessage.java:37
↓ 8 callers
Method
getValue
()
src/main/java/com/alibaba/dashscope/audio/asr/translation/TranslationRecognizerState.java:15
↓ 8 callers
Method
list
List the run of thread id. @param threadId the thread id. @param listParam The list parameter. @return The list of `Run`. @throws ApiException The re
src/main/java/com/alibaba/dashscope/threads/runs/Runs.java:220
↓ 8 callers
Method
list
(String threadId, GeneralListParam listParam)
src/main/java/com/alibaba/dashscope/threads/messages/Messages.java:72
↓ 8 callers
Method
onComplete
()
src/main/java/com/alibaba/dashscope/tokenizers/Tokenization.java:99
next →
1–100 of 2,266, ranked by callers