Package com.alibaba.dashscope
Class DashScopeAsyncClient
java.lang.Object
com.alibaba.dashscope.DashScopeAsyncClient
- All Implemented Interfaces:
AutoCloseable
DashScope 3.0 asynchronous client (design §2.3): same resource tree as
DashScopeClient,
returning CompletableFuture; streaming surfaces as RxJava Flowable (2.x parity). Work runs on a daemon executor owned by the client (close() shuts it down); derived clients share the parent's executor and pool.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionAgentStudio management plane underapplications.agentstudio: the same client type as onDashScopeClient.agentStudio(), with native async variants and 3.0 unchecked errors.apps()audio()Audio: asr batch transcription only (ws duplex surfaces stay on the sync client).static DashScopeAsyncClient.Builderbuilder()chat()voidclose()decision()Model deployments: create/get/list/scale/delete/streamEvents.files()File management: upload/list/get/delete.Fine-tuning jobs: create/get/list/cancel/delete/logs/streamEvents/wait.images()models()Model catalog: list/get.rerank()tingwu()TingWu offline jobs only (realtime sessions stay sync-only, Python v2 parity).Server-side token counting.videos()withOptions(ClientOptions overrides) Derive a client with extra overrides, sharing this client's pool and executor.
-
Method Details
-
builder
-
chat
-
embeddings
-
rerank
-
multimodal
-
apps
-
decision
-
images
-
videos
-
files
File management: upload/list/get/delete. -
models
Model catalog: list/get. -
fineTunes
Fine-tuning jobs: create/get/list/cancel/delete/logs/streamEvents/wait. -
deployments
Model deployments: create/get/list/scale/delete/streamEvents. -
tingwu
TingWu offline jobs only (realtime sessions stay sync-only, Python v2 parity). -
tokenization
Server-side token counting. -
agentStudio
AgentStudio management plane underapplications.agentstudio: the same client type as onDashScopeClient.agentStudio(), with native async variants and 3.0 unchecked errors. Created lazily; the 3.0baseUrldoes not apply here. -
audio
Audio: asr batch transcription only (ws duplex surfaces stay on the sync client). -
withOptions
Derive a client with extra overrides, sharing this client's pool and executor. An override that injects a differenthttpClientis honored: the transport derives from it, sharing its pool and ensuring the auth/UA/retry interceptors apply. -
close
public void close()- Specified by:
closein interfaceAutoCloseable
-