MCPcopy Create free account

hub / github.com/dashscope/dashscope-sdk-java / functions

Functions6,627 in github.com/dashscope/dashscope-sdk-java

↓ 1 callersMethodsendToolCallResult
Send tool call result back to server using createItem
examples/legacy_2x/Qwen3OmniToolCallUsage.java:353
↓ 1 callersMethodserializeHttpBody
(JsonObject body)
src/main/java/com/alibaba/dashscope/legacy_2x/protocol/HalfDuplexRequest.java:153
↓ 1 callersMethodserializeHttpBody
(JsonObject body)
src/main/java/com/alibaba/dashscope/applications/agentstudio/protocol/HalfDuplexRequest.java:136
↓ 1 callersMethodserverError
(JsonObject event)
src/main/java/com/alibaba/dashscope/legacy_2x/audio/live/QwenLiveConversation.java:398
↓ 1 callersMethodsession
(String sessionId)
src/main/java/com/alibaba/dashscope/applications/agentstudio/sandbox/agent/AgentsClient.java:53
↓ 1 callersMethodsessionUpdateMustBeConfirmed
()
src/test/legacy_2x/com/alibaba/dashscope/legacy_2x/audio/live/QwenLiveQuickStartChecks.java:254
↓ 1 callersMethodsetCorpusText
Set text in corpus to improve model recognition accuracy.
src/main/java/com/alibaba/dashscope/legacy_2x/audio/omni/OmniRealtimeTranscriptionParam.java:29
↓ 1 callersMethodsetDirective
(String directive)
src/main/java/com/alibaba/dashscope/legacy_2x/multimodal/tingwu/TingWuRealtimeParam.java:65
↓ 1 callersMethodsetInternalError
()
src/main/java/com/alibaba/dashscope/applications/agentstudio/common/DashScopeResult.java:186
↓ 1 callersMethodsetModel
Alias for calling {@code setModelConfig(ModelConfig)} with {@code ModelConfig.of(modelId)}.
src/main/java/com/alibaba/dashscope/applications/agentstudio/param/AgentCreateParam.java:44
↓ 1 callersMethodsetModel
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 callersMethodsetSampleRate
(int sampleRate)
src/main/java/com/alibaba/dashscope/legacy_2x/audio/omni/OmniRealtimeAudioFormatConfig.java:71
↓ 1 callersMethodseverityAnswer
(MockSpec spec)
examples/04_real_world_scenarios/com/alibaba/dashscope/examples/scenarios/triage/TicketTriageHarness.java:434
↓ 1 callersMethodshouldEmitStreamChunk
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 callersMethodshouldEmitStreamResult
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 callersMethodshouldModifyIncrementalOutput
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 callersMethodshouldSerializeExplicitNulls
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 callersMethodshouldSerializeExplicitNulls
()
src/main/java/com/alibaba/dashscope/applications/agentstudio/param/SessionUpdateParam.java:28
↓ 1 callersMethodsignalLocalClose
()
src/main/java/com/alibaba/dashscope/transport/ws/WsConnection.java:507
↓ 1 callersMethodsilenceWithoutAudioTimesOut
()
src/test/legacy_2x/com/alibaba/dashscope/legacy_2x/audio/live/QwenLiveQuickStartChecks.java:135
↓ 1 callersMethodsimpleMultiModalConversationCall
()
examples/legacy_2x/MultiModalConversationUsage.java:24
↓ 1 callersMethodsizeBytes
()
src/main/java/com/alibaba/dashscope/applications/agentstudio/sandbox/template/TemplateFilesClient.java:291
↓ 1 callersMethodsizeBytes
()
src/main/java/com/alibaba/dashscope/applications/agentstudio/sandbox/agent/UploadedFile.java:62
↓ 1 callersMethodskills
()
src/main/java/com/alibaba/dashscope/applications/agentstudio/AgentStudioClient.java:136
↓ 1 callersMethodsleepBeforeRetry
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 callersMethodsplitByString
(String src, String spliter)
src/main/java/com/alibaba/dashscope/tokenization/QwenTokenizer.java:394
↓ 1 callersMethodsplitByStrings
(String text, Collection<String> spliters)
src/main/java/com/alibaba/dashscope/tokenization/QwenTokenizer.java:421
↓ 1 callersMethodsplitWithSpecial
(String text)
src/main/java/com/alibaba/dashscope/tokenization/QwenTokenizer.java:315
↓ 1 callersMethodsplitWithSpecial
(String text)
src/main/java/com/alibaba/dashscope/legacy_2x/tokenizers/QwenTokenizer.java:320
↓ 1 callersMethodspread
Probabilities for a choice answer: winner + equal remainder.
examples/04_real_world_scenarios/com/alibaba/dashscope/examples/scenarios/triage/TicketTriageHarness.java:394
↓ 1 callersMethodsseErrorBody
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 callersMethodsseErrorEvent
()
src/test/legacy_2x/com/alibaba/dashscope/legacy_2x/TestSseErrorHandling.java:83
↓ 1 callersMethodstandaloneCliExitsAfterSuccessAndFailure
()
src/test/legacy_2x/com/alibaba/dashscope/legacy_2x/audio/live/QwenLiveQuickStartChecks.java:440
↓ 1 callersFunctionstart
()
src/main/resources/sandbox/web-preview/preview.mjs:254
↓ 1 callersMethodstart
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 callersMethodstart
( PreviewSandboxBootstrap bootstrap, String origin, boolean fresh, String modelUrl,
src/main/java/com/alibaba/dashscope/applications/agentstudio/sandbox/OpenClawWebUiBootstrap.java:102
↓ 1 callersMethodstartDsh
( String host, boolean fresh, String modelUrl, String modelId, String modelKey)
src/main/java/com/alibaba/dashscope/applications/agentstudio/sandbox/PreviewSandboxBootstrap.java:168
↓ 1 callersMethodstartGateway
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 callersMethodstartMockGateway
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 callersMethodstartProxy
(PreviewSandboxBootstrap.Route route, boolean autoPair)
src/main/java/com/alibaba/dashscope/applications/agentstudio/sandbox/SandboxWebUi.java:417
↓ 1 callersMethodstartRegion
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 callersMethodstartSynthesizer
(boolean enableSsml)
src/main/java/com/alibaba/dashscope/legacy_2x/audio/ttsv2/SpeechSynthesizerV2.java:236
↓ 1 callersMethodstate
()
src/main/java/com/alibaba/dashscope/applications/agentstudio/sandbox/SandboxesClient.java:59
↓ 1 callersMethodstate
()
examples/02_advanced_engineering/com/alibaba/dashscope/examples/engineering/resilience/CircuitBreakerRetry.java:92
↓ 1 callersMethodstaticCall
(String name, Class<?>[] types, Object... args)
src/test/legacy_2x/com/alibaba/dashscope/legacy_2x/audio/live/QwenLiveQuickStartChecks.java:292
↓ 1 callersMethodstdout
(byte[] response)
src/main/java/com/alibaba/dashscope/applications/agentstudio/sandbox/PreviewSandboxBootstrap.java:279
↓ 1 callersMethodstop
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 callersMethodstop
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 callersMethodstop
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 callersMethodstopAll
()
examples/04_real_world_scenarios/com/alibaba/dashscope/examples/scenarios/rag/ProductionRagHarness.java:707
↓ 1 callersMethodstopWithStrings
()
examples/legacy_2x/GenerationCallEarlyStop.java:49
↓ 1 callersMethodstopWithTokens
()
examples/legacy_2x/GenerationCallEarlyStop.java:18
↓ 1 callersMethodstream
Streaming synthesis; frames carrying no audio (usage-only tails) are skipped.
src/main/java/com/alibaba/dashscope/resources/audio/TtsHttpService.java:52
↓ 1 callersMethodstream
(String sessionId)
src/main/java/com/alibaba/dashscope/applications/agentstudio/resource/SessionEvents.java:132
↓ 1 callersMethodstreamAudio
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 callersMethodstreamAudio
(Path pcm)
examples/legacy_2x/QwenLiveUsage.java:169
↓ 1 callersMethodstreamAudio
(QwenLiveConversation conversation, Path input, AtomicReference<Throwable> failure)
examples/legacy_2x/QwenLiveQuickStart.java:130
↓ 1 callersMethodstreamCall
(SpeechSynthesisParam param)
src/main/java/com/alibaba/dashscope/legacy_2x/audio/tts/SpeechSynthesizer.java:174
↓ 1 callersMethodstreamCall
(ChatCompletionParam param)
src/main/java/com/alibaba/dashscope/legacy_2x/aigc/completion/ChatCompletions.java:79
↓ 1 callersMethodstreamCall
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 callersMethodstreamCall
()
examples/legacy_2x/GenerationCallWithCacheControl.java:22
↓ 1 callersMethodstreamCall
()
examples/legacy_2x/QwenASRUsage.java:16
↓ 1 callersMethodstreamCall
()
examples/legacy_2x/MultiModelConversationQwenTts.java:55
↓ 1 callersMethodstreamCall
()
examples/legacy_2x/GenerationStreamCall.java:33
↓ 1 callersMethodstreamCallDomains
()
examples/legacy_2x/GenerationCallTranslation.java:141
↓ 1 callersMethodstreamCallWithCIP
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 callersMethodstreamCallWithCallback
Demonstrates streaming call with callback - receives audio chunks as they arrive.
examples/legacy_2x/HttpSpeechSynthesizerUsage.java:111
↓ 1 callersMethodstreamCallWithMessage
()
examples/legacy_2x/GenerationCallWithMessages.java:50
↓ 1 callersMethodstreamCallWithThinking
()
examples/legacy_2x/GenerationCallWithThinking.java:24
↓ 1 callersMethodstreamIn
(FullDuplexRequest req)
src/main/java/com/alibaba/dashscope/legacy_2x/protocol/FullDuplexClient.java:16
↓ 1 callersMethodstreamPrompt
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 callersMethodstreamRun
(String assistantId)
examples/legacy_2x/AssistantFunctionCallStream.java:135
↓ 1 callersMethodstreamRun
(String assistantId)
examples/legacy_2x/AssistantFunctionCallStreamQwen.java:92
↓ 1 callersMethodstreamRun
(String assistantId)
examples/legacy_2x/AssistantFunctionCallStreamOpenai.java:95
↓ 1 callersMethodstreamingBody
(MediaType mediaType, InputStream inputStream)
src/main/java/com/alibaba/dashscope/applications/agentstudio/resource/Files.java:350
↓ 1 callersMethodstreamingCall
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 callersMethodstreamingFlush
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 callersMethodstringHeaders
(Map<String, ?> headers)
src/main/java/com/alibaba/dashscope/transport/JsonSupport.java:228
↓ 1 callersMethodstripTrailingSlash
(String url)
src/main/java/com/alibaba/dashscope/config/ConfigResolver.java:218
↓ 1 callersMethodstyle
(String style)
src/main/java/com/alibaba/dashscope/types/images/ImageGenerateParams.java:191
↓ 1 callersMethodsubmitWithFiles
(String text, List<UploadedFile> files)
src/main/java/com/alibaba/dashscope/applications/agentstudio/sandbox/agent/SessionHandle.java:47
↓ 1 callersMethodsuffix
(String suffix)
src/main/java/com/alibaba/dashscope/types/deployments/DeploymentCreateParams.java:96
↓ 1 callersMethodsynCall
()
examples/legacy_2x/ImageSynthesisUsage.java:31
↓ 1 callersMethodsyncCall
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 callersMethodsyncCall
Demonstrates synchronous call with SSE - blocks until synthesis is complete and returns audio data.
examples/legacy_2x/HttpSpeechSynthesizerUsage.java:30
↓ 1 callersMethodsyncCallWithUrl
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 callersMethodsyncJob
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 callersMethodsynthesizeOne
( DashScopeClient client, WsConnection connection, String model, String voice, S
examples/01_atomic_capabilities/com/alibaba/dashscope/examples/atomic/audio/AudioConnectionReuse.java:179
↓ 1 callersMethodsyntheticVocab
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 callersMethodtaskEvent
(String taskId, String event, String payloadJson)
examples/src/test/java/com/alibaba/dashscope/examples/MockWs.java:103
↓ 1 callersMethodtaskJson
(String taskId)
examples/src/test/java/com/alibaba/dashscope/examples/DryRunDispatcher.java:556
↓ 1 callersMethodtaskPath
(String model)
src/main/java/com/alibaba/dashscope/resources/images/ImagesSupport.java:28
↓ 1 callersMethodtemplateFiles
()
src/main/java/com/alibaba/dashscope/applications/agentstudio/sandbox/BailianSandboxClient.java:43
↓ 1 callersMethodtemplateId
()
src/main/java/com/alibaba/dashscope/applications/agentstudio/sandbox/SandboxWebUi.java:211
↓ 1 callersMethodtemplateId
()
src/main/java/com/alibaba/dashscope/applications/agentstudio/sandbox/SandboxesClient.java:51
↓ 1 callersMethodtemplateId
()
src/main/java/com/alibaba/dashscope/applications/agentstudio/sandbox/template/BuildStatus.java:36
↓ 1 callersMethodtestAsync
(String webhookId)
src/main/java/com/alibaba/dashscope/applications/agentstudio/resource/WebhookEndpoints.java:156
↓ 1 callersMethodtestAsyncTask
(String taskId)
examples/legacy_2x/ImageGenerationUsage.java:84
↓ 1 callersMethodtestCode2commentSample
()
examples/legacy_2x/CodeGenerationQuickStart.java:54
↓ 1 callersMethodtestCode2explainSample
()
examples/legacy_2x/CodeGenerationQuickStart.java:78
← previousnext →2,701–2,800 of 6,627, ranked by callers