Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dashscope/dashscope-sdk-java
/ functions
Functions
6,627 in github.com/dashscope/dashscope-sdk-java
⨍
Functions
6,627
◇
Types & classes
1,417
↓ 1 callers
Method
sendToolCallResult
Send tool call result back to server using createItem
examples/legacy_2x/Qwen3OmniToolCallUsage.java:353
↓ 1 callers
Method
serializeHttpBody
(JsonObject body)
src/main/java/com/alibaba/dashscope/legacy_2x/protocol/HalfDuplexRequest.java:153
↓ 1 callers
Method
serializeHttpBody
(JsonObject body)
src/main/java/com/alibaba/dashscope/applications/agentstudio/protocol/HalfDuplexRequest.java:136
↓ 1 callers
Method
serverError
(JsonObject event)
src/main/java/com/alibaba/dashscope/legacy_2x/audio/live/QwenLiveConversation.java:398
↓ 1 callers
Method
session
(String sessionId)
src/main/java/com/alibaba/dashscope/applications/agentstudio/sandbox/agent/AgentsClient.java:53
↓ 1 callers
Method
sessionUpdateMustBeConfirmed
()
src/test/legacy_2x/com/alibaba/dashscope/legacy_2x/audio/live/QwenLiveQuickStartChecks.java:254
↓ 1 callers
Method
setCorpusText
Set text in corpus to improve model recognition accuracy.
src/main/java/com/alibaba/dashscope/legacy_2x/audio/omni/OmniRealtimeTranscriptionParam.java:29
↓ 1 callers
Method
setDirective
(String directive)
src/main/java/com/alibaba/dashscope/legacy_2x/multimodal/tingwu/TingWuRealtimeParam.java:65
↓ 1 callers
Method
setInternalError
()
src/main/java/com/alibaba/dashscope/applications/agentstudio/common/DashScopeResult.java:186
↓ 1 callers
Method
setModel
Alias for calling {@code setModelConfig(ModelConfig)} with {@code ModelConfig.of(modelId)}.
src/main/java/com/alibaba/dashscope/applications/agentstudio/param/AgentCreateParam.java:44
↓ 1 callers
Method
setModel
Alias for calling {@code setModelConfig(ModelConfig)} with {@code ModelConfig.of(modelId)}, which clears the parameters stored on the agent.
src/main/java/com/alibaba/dashscope/applications/agentstudio/param/AgentUpdateParam.java:87
↓ 1 callers
Method
setSampleRate
(int sampleRate)
src/main/java/com/alibaba/dashscope/legacy_2x/audio/omni/OmniRealtimeAudioFormatConfig.java:71
↓ 1 callers
Method
severityAnswer
(MockSpec spec)
examples/04_real_world_scenarios/com/alibaba/dashscope/examples/scenarios/triage/TicketTriageHarness.java:434
↓ 1 callers
Method
shouldEmitStreamChunk
2.x parity: successful usage/search/metadata frames carry no model output and are skipped; error frames are still surfaced.
src/main/java/com/alibaba/dashscope/resources/multimodal/MultimodalChatSupport.java:112
↓ 1 callers
Method
shouldEmitStreamResult
The new gateway may emit usage/search/metadata SSE frames without a model output. They are successful auxiliary frames, not failed model results. Keep
src/main/java/com/alibaba/dashscope/legacy_2x/aigc/multimodalconversation/MultiModalConversation.java:253
↓ 1 callers
Method
shouldModifyIncrementalOutput
2.x ParamUtils parity: models containing tts/omni/qwen-deep-research manage their own output mode; for everything else a {@code incremental_output=fal
src/main/java/com/alibaba/dashscope/resources/multimodal/MultimodalChatSupport.java:38
↓ 1 callers
Method
shouldSerializeExplicitNulls
Whether explicitly added JSON null values should be preserved when serializing the HTTP body. @return {@code true} to preserve explicit JSON null val
src/main/java/com/alibaba/dashscope/legacy_2x/base/HalfDuplexParamBase.java:66
↓ 1 callers
Method
shouldSerializeExplicitNulls
()
src/main/java/com/alibaba/dashscope/applications/agentstudio/param/SessionUpdateParam.java:28
↓ 1 callers
Method
signalLocalClose
()
src/main/java/com/alibaba/dashscope/transport/ws/WsConnection.java:507
↓ 1 callers
Method
silenceWithoutAudioTimesOut
()
src/test/legacy_2x/com/alibaba/dashscope/legacy_2x/audio/live/QwenLiveQuickStartChecks.java:135
↓ 1 callers
Method
simpleMultiModalConversationCall
()
examples/legacy_2x/MultiModalConversationUsage.java:24
↓ 1 callers
Method
sizeBytes
()
src/main/java/com/alibaba/dashscope/applications/agentstudio/sandbox/template/TemplateFilesClient.java:291
↓ 1 callers
Method
sizeBytes
()
src/main/java/com/alibaba/dashscope/applications/agentstudio/sandbox/agent/UploadedFile.java:62
↓ 1 callers
Method
skills
()
src/main/java/com/alibaba/dashscope/applications/agentstudio/AgentStudioClient.java:136
↓ 1 callers
Method
sleepBeforeRetry
Waits before the next handshake attempt, using an exponential backoff with jitter so that a burst of sessions failing at the same time does not retry
src/main/java/com/alibaba/dashscope/legacy_2x/protocol/okhttp/OkHttpWebSocketClient.java:326
↓ 1 callers
Method
splitByString
(String src, String spliter)
src/main/java/com/alibaba/dashscope/tokenization/QwenTokenizer.java:394
↓ 1 callers
Method
splitByStrings
(String text, Collection<String> spliters)
src/main/java/com/alibaba/dashscope/tokenization/QwenTokenizer.java:421
↓ 1 callers
Method
splitWithSpecial
(String text)
src/main/java/com/alibaba/dashscope/tokenization/QwenTokenizer.java:315
↓ 1 callers
Method
splitWithSpecial
(String text)
src/main/java/com/alibaba/dashscope/legacy_2x/tokenizers/QwenTokenizer.java:320
↓ 1 callers
Method
spread
Probabilities for a choice answer: winner + equal remainder.
examples/04_real_world_scenarios/com/alibaba/dashscope/examples/scenarios/triage/TicketTriageHarness.java:394
↓ 1 callers
Method
sseErrorBody
Port of Python v2 _sse_error_body: prefer frames carrying a code, else a message-only one.
src/main/java/com/alibaba/dashscope/transport/JsonSupport.java:76
↓ 1 callers
Method
sseErrorEvent
()
src/test/legacy_2x/com/alibaba/dashscope/legacy_2x/TestSseErrorHandling.java:83
↓ 1 callers
Method
standaloneCliExitsAfterSuccessAndFailure
()
src/test/legacy_2x/com/alibaba/dashscope/legacy_2x/audio/live/QwenLiveQuickStartChecks.java:440
↓ 1 callers
Function
start
()
src/main/resources/sandbox/web-preview/preview.mjs:254
↓ 1 callers
Method
start
Connect (unless a shared connection was supplied), send run-task, block until task-started.
src/main/java/com/alibaba/dashscope/resources/tingwu/TingWuRealtimeSession.java:71
↓ 1 callers
Method
start
( PreviewSandboxBootstrap bootstrap, String origin, boolean fresh, String modelUrl,
src/main/java/com/alibaba/dashscope/applications/agentstudio/sandbox/OpenClawWebUiBootstrap.java:102
↓ 1 callers
Method
startDsh
( String host, boolean fresh, String modelUrl, String modelId, String modelKey)
src/main/java/com/alibaba/dashscope/applications/agentstudio/sandbox/PreviewSandboxBootstrap.java:168
↓ 1 callers
Method
startGateway
Offline gateway: the primary region 503s, every other 200s. The handler closes over {@code region} instead of sniffing the request host, so it stays c
examples/02_advanced_engineering/com/alibaba/dashscope/examples/engineering/resilience/CircuitBreakerRetry.java:228
↓ 1 callers
Method
startMockGateway
Route by request body so one server serves many scenarios: send a message containing {@code trigger-error} to exercise the error path; anything else r
examples/02_advanced_engineering/com/alibaba/dashscope/examples/engineering/testing/LocalMockDebugging.java:49
↓ 1 callers
Method
startProxy
(PreviewSandboxBootstrap.Route route, boolean autoPair)
src/main/java/com/alibaba/dashscope/applications/agentstudio/sandbox/SandboxWebUi.java:417
↓ 1 callers
Method
startRegion
Start one mock server for a region; returns its base URL for the SDK client.
examples/04_real_world_scenarios/com/alibaba/dashscope/examples/scenarios/rag/ProductionRagHarness.java:699
↓ 1 callers
Method
startSynthesizer
(boolean enableSsml)
src/main/java/com/alibaba/dashscope/legacy_2x/audio/ttsv2/SpeechSynthesizerV2.java:236
↓ 1 callers
Method
state
()
src/main/java/com/alibaba/dashscope/applications/agentstudio/sandbox/SandboxesClient.java:59
↓ 1 callers
Method
state
()
examples/02_advanced_engineering/com/alibaba/dashscope/examples/engineering/resilience/CircuitBreakerRetry.java:92
↓ 1 callers
Method
staticCall
(String name, Class<?>[] types, Object... args)
src/test/legacy_2x/com/alibaba/dashscope/legacy_2x/audio/live/QwenLiveQuickStartChecks.java:292
↓ 1 callers
Method
stdout
(byte[] response)
src/main/java/com/alibaba/dashscope/applications/agentstudio/sandbox/PreviewSandboxBootstrap.java:279
↓ 1 callers
Method
stop
Stop Speech Translation and Recognition real-time via call and sendAudioFrame API. The correct order of calls is: first call, then repeatedly sendAudi
src/main/java/com/alibaba/dashscope/legacy_2x/audio/asr/translation/TranslationRecognizerRealtime.java:479
↓ 1 callers
Method
stop
Stop Speech Translation and Recognition real-time via call and sendAudioFrame API. The correct order of calls is: first call, then repeatedly sendAudi
src/main/java/com/alibaba/dashscope/legacy_2x/audio/asr/translation/TranslationRecognizerChat.java:316
↓ 1 callers
Method
stop
Stop Speech Translation and Recognition real-time via call and sendAudioFrame API. The correct order of calls is: first call, then repeatedly sendAudi
src/main/java/com/alibaba/dashscope/legacy_2x/multimodal/tingwu/TingWuRealtime.java:292
↓ 1 callers
Method
stopAll
()
examples/04_real_world_scenarios/com/alibaba/dashscope/examples/scenarios/rag/ProductionRagHarness.java:707
↓ 1 callers
Method
stopWithStrings
()
examples/legacy_2x/GenerationCallEarlyStop.java:49
↓ 1 callers
Method
stopWithTokens
()
examples/legacy_2x/GenerationCallEarlyStop.java:18
↓ 1 callers
Method
stream
Streaming synthesis; frames carrying no audio (usage-only tails) are skipped.
src/main/java/com/alibaba/dashscope/resources/audio/TtsHttpService.java:52
↓ 1 callers
Method
stream
(String sessionId)
src/main/java/com/alibaba/dashscope/applications/agentstudio/resource/SessionEvents.java:132
↓ 1 callers
Method
streamAudio
Streams the TTS payload on a separate thread with backpressure: okhttp closes the socket when its outgoing queue exceeds 16 MB, so production pauses w
src/test/java/com/alibaba/dashscope/PerfBenchmarkTest.java:142
↓ 1 callers
Method
streamAudio
(Path pcm)
examples/legacy_2x/QwenLiveUsage.java:169
↓ 1 callers
Method
streamAudio
(QwenLiveConversation conversation, Path input, AtomicReference<Throwable> failure)
examples/legacy_2x/QwenLiveQuickStart.java:130
↓ 1 callers
Method
streamCall
(SpeechSynthesisParam param)
src/main/java/com/alibaba/dashscope/legacy_2x/audio/tts/SpeechSynthesizer.java:174
↓ 1 callers
Method
streamCall
(ChatCompletionParam param)
src/main/java/com/alibaba/dashscope/legacy_2x/aigc/completion/ChatCompletions.java:79
↓ 1 callers
Method
streamCall
Call the server to get the result by stream. @param param The input param of class `ImageGenerationParam`. @return A `Flowable` of the output structu
src/main/java/com/alibaba/dashscope/legacy_2x/aigc/imagegeneration/ImageGeneration.java:240
↓ 1 callers
Method
streamCall
()
examples/legacy_2x/GenerationCallWithCacheControl.java:22
↓ 1 callers
Method
streamCall
()
examples/legacy_2x/QwenASRUsage.java:16
↓ 1 callers
Method
streamCall
()
examples/legacy_2x/MultiModelConversationQwenTts.java:55
↓ 1 callers
Method
streamCall
()
examples/legacy_2x/GenerationStreamCall.java:33
↓ 1 callers
Method
streamCallDomains
()
examples/legacy_2x/GenerationCallTranslation.java:141
↓ 1 callers
Method
streamCallWithCIP
Stream call with CIP (Content Integrity Protection) parameters sample @throws NoApiKeyException Can not find api key @throws InputRequiredException M
examples/legacy_2x/ApplicationCalls.java:357
↓ 1 callers
Method
streamCallWithCallback
Demonstrates streaming call with callback - receives audio chunks as they arrive.
examples/legacy_2x/HttpSpeechSynthesizerUsage.java:111
↓ 1 callers
Method
streamCallWithMessage
()
examples/legacy_2x/GenerationCallWithMessages.java:50
↓ 1 callers
Method
streamCallWithThinking
()
examples/legacy_2x/GenerationCallWithThinking.java:24
↓ 1 callers
Method
streamIn
(FullDuplexRequest req)
src/main/java/com/alibaba/dashscope/legacy_2x/protocol/FullDuplexClient.java:16
↓ 1 callers
Method
streamPrompt
Stream an LLM answer and feed every delta text into the synthesizer (Python --prompt flow).
examples/01_atomic_capabilities/com/alibaba/dashscope/examples/atomic/audio/TtsWebsocketConnect.java:176
↓ 1 callers
Method
streamRun
(String assistantId)
examples/legacy_2x/AssistantFunctionCallStream.java:135
↓ 1 callers
Method
streamRun
(String assistantId)
examples/legacy_2x/AssistantFunctionCallStreamQwen.java:92
↓ 1 callers
Method
streamRun
(String assistantId)
examples/legacy_2x/AssistantFunctionCallStreamOpenai.java:95
↓ 1 callers
Method
streamingBody
(MediaType mediaType, InputStream inputStream)
src/main/java/com/alibaba/dashscope/applications/agentstudio/resource/Files.java:350
↓ 1 callers
Method
streamingCall
Streaming input mode: You can call the stream_call function multiple times to send text. A session will be created on the first call. The session ends
src/main/java/com/alibaba/dashscope/legacy_2x/audio/ttsv2/SpeechSynthesizer.java:719
↓ 1 callers
Method
streamingFlush
Forces the server to synthesize the text submitted so far. The session stays open, so streamingCall() can keep sending text afterwards.
src/main/java/com/alibaba/dashscope/legacy_2x/audio/ttsv2/SpeechSynthesizerV2.java:587
↓ 1 callers
Method
stringHeaders
(Map<String, ?> headers)
src/main/java/com/alibaba/dashscope/transport/JsonSupport.java:228
↓ 1 callers
Method
stripTrailingSlash
(String url)
src/main/java/com/alibaba/dashscope/config/ConfigResolver.java:218
↓ 1 callers
Method
style
(String style)
src/main/java/com/alibaba/dashscope/types/images/ImageGenerateParams.java:191
↓ 1 callers
Method
submitWithFiles
(String text, List<UploadedFile> files)
src/main/java/com/alibaba/dashscope/applications/agentstudio/sandbox/agent/SessionHandle.java:47
↓ 1 callers
Method
suffix
(String suffix)
src/main/java/com/alibaba/dashscope/types/deployments/DeploymentCreateParams.java:96
↓ 1 callers
Method
synCall
()
examples/legacy_2x/ImageSynthesisUsage.java:31
↓ 1 callers
Method
syncCall
Synchronously generate images on the legacy image-synthesis endpoint. Model availability is governed by the server; multimodal-generation-only models
src/main/java/com/alibaba/dashscope/legacy_2x/aigc/imagesynthesis/ImageSynthesis.java:134
↓ 1 callers
Method
syncCall
Demonstrates synchronous call with SSE - blocks until synthesis is complete and returns audio data.
examples/legacy_2x/HttpSpeechSynthesizerUsage.java:30
↓ 1 callers
Method
syncCallWithUrl
Demonstrates synchronous call without SSE - returns audio URL instead of audio data. This is a simpler and faster way to get the synthesized audio.
examples/legacy_2x/HttpSpeechSynthesizerUsage.java:71
↓ 1 callers
Method
syncJob
Wrap a one-shot multimodal answer as a finished Job (no task fields on the wire).
src/main/java/com/alibaba/dashscope/resources/images/ImagesService.java:76
↓ 1 callers
Method
synthesizeOne
( DashScopeClient client, WsConnection connection, String model, String voice, S
examples/01_atomic_capabilities/com/alibaba/dashscope/examples/atomic/audio/AudioConnectionReuse.java:179
↓ 1 callers
Method
syntheticVocab
Minimal stand-in for the real ~151k-entry qwen.tiktoken: ranks 0-255 are the single bytes (so any UTF-8 text encodes byte-wise), the rest are unique 3
examples/src/test/java/com/alibaba/dashscope/examples/ExamplesDryRunTest.java:87
↓ 1 callers
Method
taskEvent
(String taskId, String event, String payloadJson)
examples/src/test/java/com/alibaba/dashscope/examples/MockWs.java:103
↓ 1 callers
Method
taskJson
(String taskId)
examples/src/test/java/com/alibaba/dashscope/examples/DryRunDispatcher.java:556
↓ 1 callers
Method
taskPath
(String model)
src/main/java/com/alibaba/dashscope/resources/images/ImagesSupport.java:28
↓ 1 callers
Method
templateFiles
()
src/main/java/com/alibaba/dashscope/applications/agentstudio/sandbox/BailianSandboxClient.java:43
↓ 1 callers
Method
templateId
()
src/main/java/com/alibaba/dashscope/applications/agentstudio/sandbox/SandboxWebUi.java:211
↓ 1 callers
Method
templateId
()
src/main/java/com/alibaba/dashscope/applications/agentstudio/sandbox/SandboxesClient.java:51
↓ 1 callers
Method
templateId
()
src/main/java/com/alibaba/dashscope/applications/agentstudio/sandbox/template/BuildStatus.java:36
↓ 1 callers
Method
testAsync
(String webhookId)
src/main/java/com/alibaba/dashscope/applications/agentstudio/resource/WebhookEndpoints.java:156
↓ 1 callers
Method
testAsyncTask
(String taskId)
examples/legacy_2x/ImageGenerationUsage.java:84
↓ 1 callers
Method
testCode2commentSample
()
examples/legacy_2x/CodeGenerationQuickStart.java:54
↓ 1 callers
Method
testCode2explainSample
()
examples/legacy_2x/CodeGenerationQuickStart.java:78
← previous
next →
2,701–2,800 of 6,627, ranked by callers