dashscope 2.1.0__tar.gz → 2.1.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (506) hide show
  1. {dashscope-2.1.0 → dashscope-2.1.1}/MANIFEST.in +0 -1
  2. {dashscope-2.1.0 → dashscope-2.1.1}/PKG-INFO +34 -8
  3. {dashscope-2.1.0 → dashscope-2.1.1}/README.md +11 -7
  4. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/__init__.py +6 -2
  5. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/__init__.pyi +6 -1
  6. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/applications/agentstudio/client.py +6 -0
  7. dashscope-2.1.1/dashscope/applications/agentstudio/resources/usage.py +66 -0
  8. dashscope-2.1.1/dashscope/applications/agentstudio/transport.py +289 -0
  9. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/cli/main.py +2 -2
  10. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/expert.py +3 -3
  11. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/aigc/conversation.py +3 -3
  12. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/aigc/image_generation.py +2 -2
  13. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/aigc/image_synthesis.py +2 -2
  14. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/aigc/video_synthesis.py +4 -4
  15. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/audio/asr/recognition.py +3 -3
  16. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/audio/asr/translation_recognizer.py +7 -9
  17. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/audio/http_tts/http_speech_synthesizer.py +1 -1
  18. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/audio/qwen_tts/speech_synthesizer.py +1 -1
  19. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/files.py +1 -1
  20. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/finetune/deployments.py +1 -1
  21. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/models.py +2 -1
  22. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/threads/messages/messages.py +5 -4
  23. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/threads/runs/runs.py +2 -1
  24. dashscope-2.1.1/dashscope/legacy_1x/tokenizers/tokenizer.py +115 -0
  25. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/resources/audio/live.py +70 -59
  26. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/resources/audio/realtime.py +70 -54
  27. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/version.py +1 -1
  28. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope.egg-info/PKG-INFO +34 -8
  29. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope.egg-info/SOURCES.txt +3 -1
  30. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope.egg-info/requires.txt +24 -0
  31. {dashscope-2.1.0 → dashscope-2.1.1}/examples/01_atomic_capabilities/audio/_common.py +1 -1
  32. {dashscope-2.1.0 → dashscope-2.1.1}/examples/01_atomic_capabilities/audio/asr_microphone.py +1 -1
  33. {dashscope-2.1.0 → dashscope-2.1.1}/examples/01_atomic_capabilities/audio/direct_call/_common.py +1 -1
  34. {dashscope-2.1.0 → dashscope-2.1.1}/examples/01_atomic_capabilities/audio/direct_call/asr_microphone.py +1 -1
  35. {dashscope-2.1.0 → dashscope-2.1.1}/examples/01_atomic_capabilities/audio/direct_call/realtime_omni.py +1 -1
  36. {dashscope-2.1.0 → dashscope-2.1.1}/examples/01_atomic_capabilities/audio/direct_call/realtime_qwen_audio.py +1 -1
  37. {dashscope-2.1.0 → dashscope-2.1.1}/examples/01_atomic_capabilities/audio/realtime_omni.py +1 -1
  38. {dashscope-2.1.0 → dashscope-2.1.1}/examples/01_atomic_capabilities/audio/realtime_qwen_audio.py +1 -1
  39. dashscope-2.1.1/pyproject.toml +12 -0
  40. {dashscope-2.1.0 → dashscope-2.1.1}/setup.py +22 -1
  41. dashscope-2.1.1/tests/test_agentstudio_usage.py +852 -0
  42. {dashscope-2.1.0 → dashscope-2.1.1}/tests/test_audio_live_session.py +95 -0
  43. {dashscope-2.1.0 → dashscope-2.1.1}/tests/test_audio_tts_realtime.py +107 -1
  44. dashscope-2.1.0/dashscope/applications/agentstudio/transport.py +0 -710
  45. dashscope-2.1.0/dashscope/legacy_1x/tokenizers/qwen.tiktoken +0 -151643
  46. dashscope-2.1.0/dashscope/legacy_1x/tokenizers/tokenizer.py +0 -44
  47. {dashscope-2.1.0 → dashscope-2.1.1}/LICENSE +0 -0
  48. {dashscope-2.1.0 → dashscope-2.1.1}/LICENSE.certifi +0 -0
  49. {dashscope-2.1.0 → dashscope-2.1.1}/NOTICE +0 -0
  50. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/_config.py +0 -0
  51. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/_error_registry.py +0 -0
  52. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/_logging.py +0 -0
  53. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/_quickstart.py +0 -0
  54. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/_shared/__init__.py +0 -0
  55. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/_shared/_errors.py +0 -0
  56. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/_shared/_sdk_ident.py +0 -0
  57. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/_shared/_sdk_session.py +0 -0
  58. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/_shared/_validation.py +0 -0
  59. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/applications/__init__.py +0 -0
  60. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/applications/agentstudio/__init__.py +0 -0
  61. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/applications/agentstudio/constants.py +0 -0
  62. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/applications/agentstudio/exceptions.py +0 -0
  63. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/applications/agentstudio/pagination.py +0 -0
  64. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/applications/agentstudio/resources/__init__.py +0 -0
  65. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/applications/agentstudio/resources/_helpers.py +0 -0
  66. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/applications/agentstudio/resources/agents.py +0 -0
  67. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/applications/agentstudio/resources/deployments.py +0 -0
  68. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/applications/agentstudio/resources/environments.py +0 -0
  69. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/applications/agentstudio/resources/files.py +0 -0
  70. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/applications/agentstudio/resources/memory_stores.py +0 -0
  71. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/applications/agentstudio/resources/security.py +0 -0
  72. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/applications/agentstudio/resources/session_events.py +0 -0
  73. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/applications/agentstudio/resources/session_resources.py +0 -0
  74. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/applications/agentstudio/resources/session_threads.py +0 -0
  75. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/applications/agentstudio/resources/sessions.py +0 -0
  76. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/applications/agentstudio/resources/skills.py +0 -0
  77. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/applications/agentstudio/resources/vaults.py +0 -0
  78. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/applications/agentstudio/resources/webhook_endpoints.py +0 -0
  79. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/applications/agentstudio/streaming.py +0 -0
  80. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/applications/agentstudio/types/__init__.py +0 -0
  81. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/applications/agentstudio/types/models.py +0 -0
  82. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/applications/agentstudio/types/params.py +0 -0
  83. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/applications/finetune/__init__.py +0 -0
  84. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/applications/finetune/_submit.py +0 -0
  85. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/applications/finetune/agentic_rl.py +0 -0
  86. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/applications/finetune/reinforcement/__init__.py +0 -0
  87. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/applications/finetune/reinforcement/common/__init__.py +0 -0
  88. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/applications/finetune/reinforcement/common/_legacy_errors.py +0 -0
  89. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/applications/finetune/reinforcement/common/constants.py +0 -0
  90. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/applications/finetune/reinforcement/common/errors.py +0 -0
  91. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/applications/finetune/reinforcement/common/log.py +0 -0
  92. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/applications/finetune/reinforcement/common/model.py +0 -0
  93. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/applications/finetune/reinforcement/common/model_types.py +0 -0
  94. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/applications/finetune/reinforcement/common/utils.py +0 -0
  95. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/applications/finetune/reinforcement/component/__init__.py +0 -0
  96. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/applications/finetune/reinforcement/component/data/__init__.py +0 -0
  97. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/applications/finetune/reinforcement/component/data/base_data_model.py +0 -0
  98. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/applications/finetune/reinforcement/component/data/group_reward_input.py +0 -0
  99. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/applications/finetune/reinforcement/component/data/group_reward_output.py +0 -0
  100. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/applications/finetune/reinforcement/component/data/reward_input.py +0 -0
  101. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/applications/finetune/reinforcement/component/data/reward_output.py +0 -0
  102. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/applications/finetune/reinforcement/component/data/rollout_input.py +0 -0
  103. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/applications/finetune/reinforcement/component/data/rollout_output.py +0 -0
  104. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/applications/finetune/reinforcement/component/demo/__init__.py +0 -0
  105. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/applications/finetune/reinforcement/component/demo/group_reward_processor_demo.py +0 -0
  106. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/applications/finetune/reinforcement/component/demo/reward_processor_demo.py +0 -0
  107. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/applications/finetune/reinforcement/component/demo/rollout_processor_demo.py +0 -0
  108. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/applications/finetune/reinforcement/component/func_decorator.py +0 -0
  109. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/applications/finetune/reinforcement/component/func_manager.py +0 -0
  110. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/applications/finetune/reinforcement/component/observability/__init__.py +0 -0
  111. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/applications/finetune/reinforcement/component/observability/genai/__init__.py +0 -0
  112. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/applications/finetune/reinforcement/component/observability/genai/_core.py +0 -0
  113. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/applications/finetune/reinforcement/component/observability/genai/llm_dashscope.py +0 -0
  114. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/applications/finetune/reinforcement/component/observability/genai/llm_openai.py +0 -0
  115. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/applications/finetune/reinforcement/component/observability/genai/llm_span.py +0 -0
  116. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/applications/finetune/reinforcement/component/observability/genai/messages.py +0 -0
  117. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/applications/finetune/reinforcement/component/observability/genai/tools.py +0 -0
  118. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/applications/finetune/reinforcement/component/observability/processor_span.py +0 -0
  119. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/applications/finetune/reinforcement/component/observability/tracing.py +0 -0
  120. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/applications/finetune/reinforcement/component/parser/__init__.py +0 -0
  121. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/applications/finetune/reinforcement/component/parser/base_parser.py +0 -0
  122. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/applications/finetune/reinforcement/component/parser/group_reward_parser.py +0 -0
  123. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/applications/finetune/reinforcement/component/parser/reward_parser.py +0 -0
  124. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/applications/finetune/reinforcement/component/parser/rollout_parser.py +0 -0
  125. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/applications/finetune/reinforcement/component/processor/__init__.py +0 -0
  126. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/applications/finetune/reinforcement/component/processor/abstract_group_reward_processor.py +0 -0
  127. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/applications/finetune/reinforcement/component/processor/abstract_processor.py +0 -0
  128. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/applications/finetune/reinforcement/component/processor/abstract_reward_processor.py +0 -0
  129. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/applications/finetune/reinforcement/component/processor/abstract_rollout_processor.py +0 -0
  130. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/applications/finetune/reinforcement/component/server/__init__.py +0 -0
  131. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/applications/finetune/reinforcement/component/server/server.py +0 -0
  132. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/cli/__init__.py +0 -0
  133. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/cli/__main__.py +0 -0
  134. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/cli/app.py +0 -0
  135. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/cli/commands/__init__.py +0 -0
  136. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/cli/commands/agentstudio.py +0 -0
  137. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/cli/commands/apps.py +0 -0
  138. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/cli/commands/audio.py +0 -0
  139. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/cli/commands/audio_customization.py +0 -0
  140. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/cli/commands/auth.py +0 -0
  141. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/cli/commands/chat.py +0 -0
  142. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/cli/commands/config.py +0 -0
  143. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/cli/commands/decision.py +0 -0
  144. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/cli/commands/deployments.py +0 -0
  145. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/cli/commands/embeddings.py +0 -0
  146. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/cli/commands/files.py +0 -0
  147. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/cli/commands/ft.py +0 -0
  148. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/cli/commands/images.py +0 -0
  149. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/cli/commands/models.py +0 -0
  150. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/cli/commands/multimodal.py +0 -0
  151. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/cli/commands/oss.py +0 -0
  152. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/cli/commands/rerank.py +0 -0
  153. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/cli/commands/rl.py +0 -0
  154. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/cli/commands/tingwu.py +0 -0
  155. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/cli/commands/tokenization.py +0 -0
  156. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/cli/commands/videos.py +0 -0
  157. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/cli/config_store.py +0 -0
  158. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/cli/confirm.py +0 -0
  159. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/cli/context.py +0 -0
  160. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/cli/errors.py +0 -0
  161. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/cli/input.py +0 -0
  162. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/cli/output.py +0 -0
  163. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/cli/progress.py +0 -0
  164. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/cli/sdk.py +0 -0
  165. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/client.py +0 -0
  166. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/devkit/__init__.py +0 -0
  167. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/devkit/diagnosis.py +0 -0
  168. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/devkit/mock.py +0 -0
  169. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/errors.py +0 -0
  170. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/__init__.py +0 -0
  171. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/_shim.py +0 -0
  172. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/agentstudio/__init__.py +0 -0
  173. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/agentstudio/client.py +0 -0
  174. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/agentstudio/exceptions.py +0 -0
  175. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/agentstudio/streaming.py +0 -0
  176. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/agentstudio/transport.py +0 -0
  177. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/aigc/__init__.py +0 -0
  178. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/aigc/chat_completion.py +0 -0
  179. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/aigc/code_generation.py +0 -0
  180. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/aigc/generation.py +0 -0
  181. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/aigc/multimodal_conversation.py +0 -0
  182. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/api_entities/__init__.py +0 -0
  183. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/api_entities/aio_session.py +0 -0
  184. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/api_entities/aiohttp_request.py +0 -0
  185. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/api_entities/api_request_data.py +0 -0
  186. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/api_entities/api_request_factory.py +0 -0
  187. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/api_entities/base_request.py +0 -0
  188. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/api_entities/chat_completion_types.py +0 -0
  189. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/api_entities/dashscope_response.py +0 -0
  190. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/api_entities/encryption.py +0 -0
  191. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/api_entities/http_request.py +0 -0
  192. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/api_entities/websocket_request.py +0 -0
  193. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/app/__init__.py +0 -0
  194. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/app/application.py +0 -0
  195. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/app/application_response.py +0 -0
  196. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/assistants/__init__.py +0 -0
  197. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/assistants/assistant_types.py +0 -0
  198. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/assistants/assistants.py +0 -0
  199. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/assistants/files.py +0 -0
  200. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/audio/__init__.py +0 -0
  201. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/audio/asr/__init__.py +0 -0
  202. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/audio/asr/asr_phrase_manager.py +0 -0
  203. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/audio/asr/transcription.py +0 -0
  204. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/audio/asr/vocabulary.py +0 -0
  205. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/audio/http_tts/__init__.py +0 -0
  206. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/audio/qwen_asr/__init__.py +0 -0
  207. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/audio/qwen_asr/qwen_transcription.py +0 -0
  208. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/audio/qwen_omni/__init__.py +0 -0
  209. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/audio/qwen_omni/omni_realtime.py +0 -0
  210. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/audio/qwen_tts/__init__.py +0 -0
  211. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/audio/qwen_tts_realtime/__init__.py +0 -0
  212. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/audio/qwen_tts_realtime/qwen_tts_realtime.py +0 -0
  213. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/audio/tts/__init__.py +0 -0
  214. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/audio/tts/speech_synthesizer.py +0 -0
  215. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/audio/tts_v2/__init__.py +0 -0
  216. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/audio/tts_v2/enrollment.py +0 -0
  217. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/audio/tts_v2/speech_synthesizer.py +0 -0
  218. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/cli/__init__.py +0 -0
  219. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/cli/__main__.py +0 -0
  220. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/cli/agentic_rl.py +0 -0
  221. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/cli/application.py +0 -0
  222. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/cli/auth.py +0 -0
  223. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/cli/code_generation.py +0 -0
  224. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/cli/common.py +0 -0
  225. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/cli/deployments.py +0 -0
  226. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/cli/embeddings.py +0 -0
  227. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/cli/files.py +0 -0
  228. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/cli/fine_tunes.py +0 -0
  229. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/cli/generation.py +0 -0
  230. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/cli/image_generation.py +0 -0
  231. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/cli/image_synthesis.py +0 -0
  232. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/cli/models.py +0 -0
  233. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/cli/multimodal_conversation.py +0 -0
  234. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/cli/multimodal_embedding.py +0 -0
  235. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/cli/oss.py +0 -0
  236. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/cli/rerank.py +0 -0
  237. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/cli/speech_synthesis.py +0 -0
  238. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/cli/tokenization.py +0 -0
  239. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/cli/transcription.py +0 -0
  240. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/cli/understanding.py +0 -0
  241. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/cli/video_synthesis.py +0 -0
  242. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/client/__init__.py +0 -0
  243. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/client/base_api.py +0 -0
  244. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/common/__init__.py +0 -0
  245. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/common/_sdk_session.py +0 -0
  246. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/common/api_key.py +0 -0
  247. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/common/base_type.py +0 -0
  248. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/common/constants.py +0 -0
  249. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/common/env.py +0 -0
  250. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/common/error.py +0 -0
  251. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/common/logging.py +0 -0
  252. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/common/message_manager.py +0 -0
  253. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/common/utils.py +0 -0
  254. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/embeddings/__init__.py +0 -0
  255. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/embeddings/batch_text_embedding.py +0 -0
  256. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/embeddings/batch_text_embedding_response.py +0 -0
  257. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/embeddings/multimodal_embedding.py +0 -0
  258. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/embeddings/text_embedding.py +0 -0
  259. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/finetune/__init__.py +0 -0
  260. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/finetune/agentic_rl.py +0 -0
  261. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/finetune/customize_types.py +0 -0
  262. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/finetune/finetunes.py +0 -0
  263. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/finetune/reinforcement/__init__.py +0 -0
  264. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/finetune/reinforcement/common/__init__.py +0 -0
  265. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/finetune/reinforcement/common/errors.py +0 -0
  266. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/io/__init__.py +0 -0
  267. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/io/input_output.py +0 -0
  268. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/model.py +0 -0
  269. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/multimodal/__init__.py +0 -0
  270. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/multimodal/dialog_state.py +0 -0
  271. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/multimodal/multimodal_constants.py +0 -0
  272. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/multimodal/multimodal_dialog.py +0 -0
  273. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/multimodal/multimodal_request_params.py +0 -0
  274. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/multimodal/tingwu/__init__.py +0 -0
  275. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/multimodal/tingwu/tingwu.py +0 -0
  276. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/multimodal/tingwu/tingwu_realtime.py +0 -0
  277. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/nlp/__init__.py +0 -0
  278. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/nlp/understanding.py +0 -0
  279. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/protocol/__init__.py +0 -0
  280. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/protocol/websocket.py +0 -0
  281. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/rerank/__init__.py +0 -0
  282. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/rerank/text_rerank.py +0 -0
  283. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/threads/__init__.py +0 -0
  284. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/threads/messages/__init__.py +0 -0
  285. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/threads/messages/files.py +0 -0
  286. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/threads/runs/__init__.py +0 -0
  287. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/threads/runs/steps.py +0 -0
  288. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/threads/thread_types.py +0 -0
  289. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/threads/threads.py +0 -0
  290. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/tokenizers/__init__.py +0 -0
  291. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/tokenizers/qwen_tokenizer.py +0 -0
  292. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/tokenizers/tokenization.py +0 -0
  293. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/tokenizers/tokenizer_base.py +0 -0
  294. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/utils/__init__.py +0 -0
  295. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/utils/message_utils.py +0 -0
  296. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/utils/oss_utils.py +0 -0
  297. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/legacy_1x/utils/param_utils.py +0 -0
  298. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/protocols/__init__.py +0 -0
  299. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/protocols/anthropic.py +0 -0
  300. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/protocols/base.py +0 -0
  301. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/protocols/native.py +0 -0
  302. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/protocols/openai.py +0 -0
  303. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/py.typed +0 -0
  304. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/resources/__init__.py +0 -0
  305. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/resources/_blocking.py +0 -0
  306. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/resources/_jobs.py +0 -0
  307. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/resources/_oss.py +0 -0
  308. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/resources/_oss_upload.py +0 -0
  309. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/resources/_sse.py +0 -0
  310. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/resources/apps.py +0 -0
  311. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/resources/audio/__init__.py +0 -0
  312. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/resources/audio/_callbacks.py +0 -0
  313. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/resources/audio/_ws_session.py +0 -0
  314. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/resources/audio/asr.py +0 -0
  315. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/resources/audio/customization.py +0 -0
  316. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/resources/audio/http_tts.py +0 -0
  317. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/resources/audio/phrases.py +0 -0
  318. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/resources/audio/tts.py +0 -0
  319. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/resources/chat/__init__.py +0 -0
  320. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/resources/chat/_params.py +0 -0
  321. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/resources/chat/completions.py +0 -0
  322. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/resources/decision.py +0 -0
  323. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/resources/deployments.py +0 -0
  324. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/resources/embeddings.py +0 -0
  325. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/resources/files.py +0 -0
  326. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/resources/fine_tunes.py +0 -0
  327. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/resources/images.py +0 -0
  328. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/resources/models.py +0 -0
  329. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/resources/multimodal/__init__.py +0 -0
  330. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/resources/multimodal/chat.py +0 -0
  331. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/resources/multimodal/embeddings.py +0 -0
  332. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/resources/reinforcement_learning.py +0 -0
  333. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/resources/rerank.py +0 -0
  334. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/resources/tingwu.py +0 -0
  335. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/resources/tokenization.py +0 -0
  336. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/resources/videos.py +0 -0
  337. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/transport/__init__.py +0 -0
  338. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/transport/_ident.py +0 -0
  339. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/transport/_options.py +0 -0
  340. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/transport/_response.py +0 -0
  341. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/transport/_retry.py +0 -0
  342. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/transport/http.py +0 -0
  343. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/transport/sse.py +0 -0
  344. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/transport/ws.py +0 -0
  345. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/transport/ws_connection.py +0 -0
  346. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/types/__init__.py +0 -0
  347. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/types/_parse.py +0 -0
  348. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/types/common.py +0 -0
  349. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/types/completions.py +0 -0
  350. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/types/messages.py +0 -0
  351. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope/types/pagination.py +0 -0
  352. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope.egg-info/dependency_links.txt +0 -0
  353. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope.egg-info/entry_points.txt +0 -0
  354. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope.egg-info/not-zip-safe +0 -0
  355. {dashscope-2.1.0 → dashscope-2.1.1}/dashscope.egg-info/top_level.txt +0 -0
  356. {dashscope-2.1.0 → dashscope-2.1.1}/examples/01_atomic_capabilities/applications/apps.py +0 -0
  357. {dashscope-2.1.0 → dashscope-2.1.1}/examples/01_atomic_capabilities/audio/README.md +0 -0
  358. {dashscope-2.1.0 → dashscope-2.1.1}/examples/01_atomic_capabilities/audio/asr_file.py +0 -0
  359. {dashscope-2.1.0 → dashscope-2.1.1}/examples/01_atomic_capabilities/audio/asr_http_stream.py +0 -0
  360. {dashscope-2.1.0 → dashscope-2.1.1}/examples/01_atomic_capabilities/audio/asr_websocket.py +0 -0
  361. {dashscope-2.1.0 → dashscope-2.1.1}/examples/01_atomic_capabilities/audio/connection_reuse.py +0 -0
  362. {dashscope-2.1.0 → dashscope-2.1.1}/examples/01_atomic_capabilities/audio/direct_call/asr_file.py +0 -0
  363. {dashscope-2.1.0 → dashscope-2.1.1}/examples/01_atomic_capabilities/audio/direct_call/asr_http_stream.py +0 -0
  364. {dashscope-2.1.0 → dashscope-2.1.1}/examples/01_atomic_capabilities/audio/direct_call/asr_websocket.py +0 -0
  365. {dashscope-2.1.0 → dashscope-2.1.1}/examples/01_atomic_capabilities/audio/direct_call/connection_reuse.py +0 -0
  366. {dashscope-2.1.0 → dashscope-2.1.1}/examples/01_atomic_capabilities/audio/direct_call/realtime_translation.py +0 -0
  367. {dashscope-2.1.0 → dashscope-2.1.1}/examples/01_atomic_capabilities/audio/direct_call/tts_http.py +0 -0
  368. {dashscope-2.1.0 → dashscope-2.1.1}/examples/01_atomic_capabilities/audio/direct_call/tts_http_stream.py +0 -0
  369. {dashscope-2.1.0 → dashscope-2.1.1}/examples/01_atomic_capabilities/audio/direct_call/tts_websocket.py +0 -0
  370. {dashscope-2.1.0 → dashscope-2.1.1}/examples/01_atomic_capabilities/audio/direct_call/voice_clone.py +0 -0
  371. {dashscope-2.1.0 → dashscope-2.1.1}/examples/01_atomic_capabilities/audio/realtime_live.py +0 -0
  372. {dashscope-2.1.0 → dashscope-2.1.1}/examples/01_atomic_capabilities/audio/realtime_translation.py +0 -0
  373. {dashscope-2.1.0 → dashscope-2.1.1}/examples/01_atomic_capabilities/audio/tingwu.py +0 -0
  374. {dashscope-2.1.0 → dashscope-2.1.1}/examples/01_atomic_capabilities/audio/tts_http.py +0 -0
  375. {dashscope-2.1.0 → dashscope-2.1.1}/examples/01_atomic_capabilities/audio/tts_http_stream.py +0 -0
  376. {dashscope-2.1.0 → dashscope-2.1.1}/examples/01_atomic_capabilities/audio/tts_websocket.py +0 -0
  377. {dashscope-2.1.0 → dashscope-2.1.1}/examples/01_atomic_capabilities/audio/voice_clone.py +0 -0
  378. {dashscope-2.1.0 → dashscope-2.1.1}/examples/01_atomic_capabilities/decision/decision.py +0 -0
  379. {dashscope-2.1.0 → dashscope-2.1.1}/examples/01_atomic_capabilities/embeddings/embeddings.py +0 -0
  380. {dashscope-2.1.0 → dashscope-2.1.1}/examples/01_atomic_capabilities/files/files.py +0 -0
  381. {dashscope-2.1.0 → dashscope-2.1.1}/examples/01_atomic_capabilities/fine_tuning/fine_tunes.py +0 -0
  382. {dashscope-2.1.0 → dashscope-2.1.1}/examples/01_atomic_capabilities/fine_tuning/reinforcement_learning.py +0 -0
  383. {dashscope-2.1.0 → dashscope-2.1.1}/examples/01_atomic_capabilities/image_video_synthesis/images.py +0 -0
  384. {dashscope-2.1.0 → dashscope-2.1.1}/examples/01_atomic_capabilities/image_video_synthesis/videos.py +0 -0
  385. {dashscope-2.1.0 → dashscope-2.1.1}/examples/01_atomic_capabilities/models/models.py +0 -0
  386. {dashscope-2.1.0 → dashscope-2.1.1}/examples/01_atomic_capabilities/multimodal_vision/multimodal_chat.py +0 -0
  387. {dashscope-2.1.0 → dashscope-2.1.1}/examples/01_atomic_capabilities/rerank/rerank.py +0 -0
  388. {dashscope-2.1.0 → dashscope-2.1.1}/examples/01_atomic_capabilities/text_generation/chat.py +0 -0
  389. {dashscope-2.1.0 → dashscope-2.1.1}/examples/01_atomic_capabilities/text_generation/tokenization.py +0 -0
  390. {dashscope-2.1.0 → dashscope-2.1.1}/examples/02_advanced_engineering/circuit_breaker_retry.py +0 -0
  391. {dashscope-2.1.0 → dashscope-2.1.1}/examples/02_advanced_engineering/client_side_cache.py +0 -0
  392. {dashscope-2.1.0 → dashscope-2.1.1}/examples/02_advanced_engineering/local_mock_debugging.py +0 -0
  393. {dashscope-2.1.0 → dashscope-2.1.1}/examples/03_agent_recipes/agentstudio.py +0 -0
  394. {dashscope-2.1.0 → dashscope-2.1.1}/examples/03_agent_recipes/agentstudio_deployments.py +0 -0
  395. {dashscope-2.1.0 → dashscope-2.1.1}/examples/03_agent_recipes/mcp_server_demo/README.md +0 -0
  396. {dashscope-2.1.0 → dashscope-2.1.1}/examples/03_agent_recipes/mcp_server_demo/client_demo.py +0 -0
  397. {dashscope-2.1.0 → dashscope-2.1.1}/examples/03_agent_recipes/mcp_server_demo/server.py +0 -0
  398. {dashscope-2.1.0 → dashscope-2.1.1}/examples/03_agent_recipes/rag_expert_system.py +0 -0
  399. {dashscope-2.1.0 → dashscope-2.1.1}/examples/03_agent_recipes/tool_call_loop.py +0 -0
  400. {dashscope-2.1.0 → dashscope-2.1.1}/examples/04_real_world_scenarios/README.md +0 -0
  401. {dashscope-2.1.0 → dashscope-2.1.1}/examples/04_real_world_scenarios/README_zh.md +0 -0
  402. {dashscope-2.1.0 → dashscope-2.1.1}/examples/04_real_world_scenarios/customer_service_assistant.py +0 -0
  403. {dashscope-2.1.0 → dashscope-2.1.1}/examples/04_real_world_scenarios/production_ready_rag_harness.py +0 -0
  404. {dashscope-2.1.0 → dashscope-2.1.1}/examples/04_real_world_scenarios/realtime_audio_meeting_harness.py +0 -0
  405. {dashscope-2.1.0 → dashscope-2.1.1}/examples/04_real_world_scenarios/ticket_triage_harness.py +0 -0
  406. {dashscope-2.1.0 → dashscope-2.1.1}/examples/05_cli/cli_ci_harness.py +0 -0
  407. {dashscope-2.1.0 → dashscope-2.1.1}/examples/05_cli/cli_output_and_errors.py +0 -0
  408. {dashscope-2.1.0 → dashscope-2.1.1}/examples/README.md +0 -0
  409. {dashscope-2.1.0 → dashscope-2.1.1}/examples/README_zh.md +0 -0
  410. {dashscope-2.1.0 → dashscope-2.1.1}/examples/legacy_1x/aio_generation/basic.py +0 -0
  411. {dashscope-2.1.0 → dashscope-2.1.1}/examples/legacy_1x/aio_generation/custom_session.py +0 -0
  412. {dashscope-2.1.0 → dashscope-2.1.1}/examples/legacy_1x/aio_generation/deep_research.py +0 -0
  413. {dashscope-2.1.0 → dashscope-2.1.1}/examples/legacy_1x/aio_generation/reasoning.py +0 -0
  414. {dashscope-2.1.0 → dashscope-2.1.1}/examples/legacy_1x/aio_generation/tool_calls.py +0 -0
  415. {dashscope-2.1.0 → dashscope-2.1.1}/examples/legacy_1x/aio_image_synthesis.py +0 -0
  416. {dashscope-2.1.0 → dashscope-2.1.1}/examples/legacy_1x/aio_multimodal_conversation/asr.py +0 -0
  417. {dashscope-2.1.0 → dashscope-2.1.1}/examples/legacy_1x/aio_multimodal_conversation/image.py +0 -0
  418. {dashscope-2.1.0 → dashscope-2.1.1}/examples/legacy_1x/aio_multimodal_conversation/ocr.py +0 -0
  419. {dashscope-2.1.0 → dashscope-2.1.1}/examples/legacy_1x/aio_multimodal_conversation/tool_calls.py +0 -0
  420. {dashscope-2.1.0 → dashscope-2.1.1}/examples/legacy_1x/aio_video_synthesis.py +0 -0
  421. {dashscope-2.1.0 → dashscope-2.1.1}/examples/legacy_1x/application.py +0 -0
  422. {dashscope-2.1.0 → dashscope-2.1.1}/examples/legacy_1x/assistant_api.py +0 -0
  423. {dashscope-2.1.0 → dashscope-2.1.1}/examples/legacy_1x/assistant_api_file.py +0 -0
  424. {dashscope-2.1.0 → dashscope-2.1.1}/examples/legacy_1x/assistant_api_simple.py +0 -0
  425. {dashscope-2.1.0 → dashscope-2.1.1}/examples/legacy_1x/cv_models.py +0 -0
  426. {dashscope-2.1.0 → dashscope-2.1.1}/examples/legacy_1x/generation/basic.py +0 -0
  427. {dashscope-2.1.0 → dashscope-2.1.1}/examples/legacy_1x/generation/custom_session.py +0 -0
  428. {dashscope-2.1.0 → dashscope-2.1.1}/examples/legacy_1x/generation/deep_research.py +0 -0
  429. {dashscope-2.1.0 → dashscope-2.1.1}/examples/legacy_1x/generation/reasoning.py +0 -0
  430. {dashscope-2.1.0 → dashscope-2.1.1}/examples/legacy_1x/generation/tool_calls.py +0 -0
  431. {dashscope-2.1.0 → dashscope-2.1.1}/examples/legacy_1x/image_generation.py +0 -0
  432. {dashscope-2.1.0 → dashscope-2.1.1}/examples/legacy_1x/image_synthesis.py +0 -0
  433. {dashscope-2.1.0 → dashscope-2.1.1}/examples/legacy_1x/multimodal_conversation/asr.py +0 -0
  434. {dashscope-2.1.0 → dashscope-2.1.1}/examples/legacy_1x/multimodal_conversation/image.py +0 -0
  435. {dashscope-2.1.0 → dashscope-2.1.1}/examples/legacy_1x/multimodal_conversation/ocr.py +0 -0
  436. {dashscope-2.1.0 → dashscope-2.1.1}/examples/legacy_1x/multimodal_conversation/reasoning.py +0 -0
  437. {dashscope-2.1.0 → dashscope-2.1.1}/examples/legacy_1x/multimodal_conversation/tool_calls.py +0 -0
  438. {dashscope-2.1.0 → dashscope-2.1.1}/examples/legacy_1x/multimodal_conversation/video.py +0 -0
  439. {dashscope-2.1.0 → dashscope-2.1.1}/examples/legacy_1x/multimodal_embedding.py +0 -0
  440. {dashscope-2.1.0 → dashscope-2.1.1}/examples/legacy_1x/qwen_asr.py +0 -0
  441. {dashscope-2.1.0 → dashscope-2.1.1}/examples/legacy_1x/qwen_tts.py +0 -0
  442. {dashscope-2.1.0 → dashscope-2.1.1}/examples/legacy_1x/set_region_example.py +0 -0
  443. {dashscope-2.1.0 → dashscope-2.1.1}/examples/legacy_1x/text_rerank.py +0 -0
  444. {dashscope-2.1.0 → dashscope-2.1.1}/examples/legacy_1x/tingwu_realtime.py +0 -0
  445. {dashscope-2.1.0 → dashscope-2.1.1}/examples/legacy_1x/tingwu_usages.py +0 -0
  446. {dashscope-2.1.0 → dashscope-2.1.1}/examples/legacy_1x/video_synthesis.py +0 -0
  447. {dashscope-2.1.0 → dashscope-2.1.1}/requirements.txt +0 -0
  448. {dashscope-2.1.0 → dashscope-2.1.1}/setup.cfg +0 -0
  449. {dashscope-2.1.0 → dashscope-2.1.1}/tests/test_agentic_rl_datasets_upload.py +0 -0
  450. {dashscope-2.1.0 → dashscope-2.1.1}/tests/test_agentic_rl_fc_errors.py +0 -0
  451. {dashscope-2.1.0 → dashscope-2.1.1}/tests/test_agentic_rl_review_regressions.py +0 -0
  452. {dashscope-2.1.0 → dashscope-2.1.1}/tests/test_agentic_rl_script.py +0 -0
  453. {dashscope-2.1.0 → dashscope-2.1.1}/tests/test_agentic_rl_server_hardening.py +0 -0
  454. {dashscope-2.1.0 → dashscope-2.1.1}/tests/test_agentstudio_errors.py +0 -0
  455. {dashscope-2.1.0 → dashscope-2.1.1}/tests/test_agentstudio_models.py +0 -0
  456. {dashscope-2.1.0 → dashscope-2.1.1}/tests/test_agentstudio_protocol.py +0 -0
  457. {dashscope-2.1.0 → dashscope-2.1.1}/tests/test_agentstudio_shim.py +0 -0
  458. {dashscope-2.1.0 → dashscope-2.1.1}/tests/test_apps.py +0 -0
  459. {dashscope-2.1.0 → dashscope-2.1.1}/tests/test_audio.py +0 -0
  460. {dashscope-2.1.0 → dashscope-2.1.1}/tests/test_audio_connection.py +0 -0
  461. {dashscope-2.1.0 → dashscope-2.1.1}/tests/test_audio_management.py +0 -0
  462. {dashscope-2.1.0 → dashscope-2.1.1}/tests/test_audio_omni_session.py +0 -0
  463. {dashscope-2.1.0 → dashscope-2.1.1}/tests/test_audio_samples.py +0 -0
  464. {dashscope-2.1.0 → dashscope-2.1.1}/tests/test_audio_samples_direct_call.py +0 -0
  465. {dashscope-2.1.0 → dashscope-2.1.1}/tests/test_audio_tts_http.py +0 -0
  466. {dashscope-2.1.0 → dashscope-2.1.1}/tests/test_audio_tts_session.py +0 -0
  467. {dashscope-2.1.0 → dashscope-2.1.1}/tests/test_audio_ws_integration.py +0 -0
  468. {dashscope-2.1.0 → dashscope-2.1.1}/tests/test_audio_ws_session.py +0 -0
  469. {dashscope-2.1.0 → dashscope-2.1.1}/tests/test_base_url_routing.py +0 -0
  470. {dashscope-2.1.0 → dashscope-2.1.1}/tests/test_chat.py +0 -0
  471. {dashscope-2.1.0 → dashscope-2.1.1}/tests/test_chat_params.py +0 -0
  472. {dashscope-2.1.0 → dashscope-2.1.1}/tests/test_config.py +0 -0
  473. {dashscope-2.1.0 → dashscope-2.1.1}/tests/test_decision.py +0 -0
  474. {dashscope-2.1.0 → dashscope-2.1.1}/tests/test_devkit_diagnosis.py +0 -0
  475. {dashscope-2.1.0 → dashscope-2.1.1}/tests/test_devkit_mock.py +0 -0
  476. {dashscope-2.1.0 → dashscope-2.1.1}/tests/test_error_registry.py +0 -0
  477. {dashscope-2.1.0 → dashscope-2.1.1}/tests/test_errors.py +0 -0
  478. {dashscope-2.1.0 → dashscope-2.1.1}/tests/test_files_models.py +0 -0
  479. {dashscope-2.1.0 → dashscope-2.1.1}/tests/test_finetune_deployments.py +0 -0
  480. {dashscope-2.1.0 → dashscope-2.1.1}/tests/test_finetune_rl_shim.py +0 -0
  481. {dashscope-2.1.0 → dashscope-2.1.1}/tests/test_http_pool.py +0 -0
  482. {dashscope-2.1.0 → dashscope-2.1.1}/tests/test_images_videos.py +0 -0
  483. {dashscope-2.1.0 → dashscope-2.1.1}/tests/test_jobs.py +0 -0
  484. {dashscope-2.1.0 → dashscope-2.1.1}/tests/test_layer_decoupling.py +0 -0
  485. {dashscope-2.1.0 → dashscope-2.1.1}/tests/test_legacy_import_aliases.py +0 -0
  486. {dashscope-2.1.0 → dashscope-2.1.1}/tests/test_logging.py +0 -0
  487. {dashscope-2.1.0 → dashscope-2.1.1}/tests/test_multimodal.py +0 -0
  488. {dashscope-2.1.0 → dashscope-2.1.1}/tests/test_oss_upload.py +0 -0
  489. {dashscope-2.1.0 → dashscope-2.1.1}/tests/test_package_root.py +0 -0
  490. {dashscope-2.1.0 → dashscope-2.1.1}/tests/test_pagination.py +0 -0
  491. {dashscope-2.1.0 → dashscope-2.1.1}/tests/test_parse_model.py +0 -0
  492. {dashscope-2.1.0 → dashscope-2.1.1}/tests/test_protocols.py +0 -0
  493. {dashscope-2.1.0 → dashscope-2.1.1}/tests/test_request_options.py +0 -0
  494. {dashscope-2.1.0 → dashscope-2.1.1}/tests/test_resource_request_options.py +0 -0
  495. {dashscope-2.1.0 → dashscope-2.1.1}/tests/test_response.py +0 -0
  496. {dashscope-2.1.0 → dashscope-2.1.1}/tests/test_response_drift.py +0 -0
  497. {dashscope-2.1.0 → dashscope-2.1.1}/tests/test_rl.py +0 -0
  498. {dashscope-2.1.0 → dashscope-2.1.1}/tests/test_settings.py +0 -0
  499. {dashscope-2.1.0 → dashscope-2.1.1}/tests/test_sse.py +0 -0
  500. {dashscope-2.1.0 → dashscope-2.1.1}/tests/test_sse_comprehensive_verify.py +0 -0
  501. {dashscope-2.1.0 → dashscope-2.1.1}/tests/test_tingwu.py +0 -0
  502. {dashscope-2.1.0 → dashscope-2.1.1}/tests/test_tools_resources.py +0 -0
  503. {dashscope-2.1.0 → dashscope-2.1.1}/tests/test_transport.py +0 -0
  504. {dashscope-2.1.0 → dashscope-2.1.1}/tests/test_types_messages.py +0 -0
  505. {dashscope-2.1.0 → dashscope-2.1.1}/tests/test_user_agent_suffix.py +0 -0
  506. {dashscope-2.1.0 → dashscope-2.1.1}/tests/test_ws_connection.py +0 -0
@@ -1,4 +1,3 @@
1
- include dashscope/legacy_1x/tokenizers/qwen.tiktoken
2
1
  include dashscope/py.typed
3
2
  include dashscope/__init__.pyi
4
3
  include NOTICE
@@ -1,11 +1,14 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dashscope
3
- Version: 2.1.0
3
+ Version: 2.1.1
4
4
  Summary: dashscope client sdk library
5
5
  Home-page: https://dashscope.aliyun.com/
6
6
  Author: Alibaba Cloud
7
7
  Author-email: dashscope@alibabacloud.com
8
8
  License: Apache 2.0
9
+ Project-URL: Documentation, https://dashscope.github.io/dashscope-sdk-python/
10
+ Project-URL: Source, https://github.com/dashscope/dashscope-sdk-python
11
+ Project-URL: Issues, https://github.com/dashscope/dashscope-sdk-python/issues
9
12
  Platform: Posix; MacOS X; Windows
10
13
  Classifier: Development Status :: 4 - Beta
11
14
  Classifier: Intended Audience :: Developers
@@ -41,6 +44,24 @@ Requires-Dist: PyYAML>=6.0
41
44
  Requires-Dist: fastapi>=0.100
42
45
  Requires-Dist: uvicorn>=0.20
43
46
  Requires-Dist: opentelemetry-sdk>=1.20
47
+ Provides-Extra: expert
48
+ Requires-Dist: dashscope-agenticx[tui]<2,>=1.0.0; extra == "expert"
49
+ Provides-Extra: expert-anthropic
50
+ Requires-Dist: anthropic<2,>=0.40; extra == "expert-anthropic"
51
+ Provides-Extra: expert-openai
52
+ Requires-Dist: openai<4,>=1.30; extra == "expert-openai"
53
+ Provides-Extra: expert-voice
54
+ Requires-Dist: sounddevice>=0.4; extra == "expert-voice"
55
+ Requires-Dist: numpy>=1.20; extra == "expert-voice"
56
+ Provides-Extra: expert-camera
57
+ Requires-Dist: opencv-python-headless>=4.5; extra == "expert-camera"
58
+ Provides-Extra: expert-all
59
+ Requires-Dist: dashscope-agenticx[tui]<2,>=1.0.0; extra == "expert-all"
60
+ Requires-Dist: anthropic<2,>=0.40; extra == "expert-all"
61
+ Requires-Dist: openai<4,>=1.30; extra == "expert-all"
62
+ Requires-Dist: sounddevice>=0.4; extra == "expert-all"
63
+ Requires-Dist: numpy>=1.20; extra == "expert-all"
64
+ Requires-Dist: opencv-python-headless>=4.5; extra == "expert-all"
44
65
  Provides-Extra: acli
45
66
  Requires-Dist: dashscope-agenticx[tui]<2,>=1.0.0; extra == "acli"
46
67
  Provides-Extra: acli-anthropic
@@ -68,6 +89,7 @@ Dynamic: home-page
68
89
  Dynamic: license
69
90
  Dynamic: license-file
70
91
  Dynamic: platform
92
+ Dynamic: project-url
71
93
  Dynamic: provides-extra
72
94
  Dynamic: requires-dist
73
95
  Dynamic: requires-python
@@ -77,6 +99,8 @@ Dynamic: summary
77
99
 
78
100
  > **English** | [中文](README_zh.md)
79
101
 
102
+ **Documentation**: [dashscope.github.io/dashscope-sdk-python](https://dashscope.github.io/dashscope-sdk-python/) — [中文文档](https://dashscope.github.io/dashscope-sdk-python/zh/)
103
+
80
104
  The DashScope Python SDK is the official client for [Alibaba Cloud Model Studio (Bailian)](https://www.alibabacloud.com/help/en/model-studio/), covering text generation, multi-modal understanding, embeddings, reranking, image/video generation, speech synthesis & recognition, fine-tuning, agentic RL, applications and more.
81
105
 
82
106
  **Version 2.0** introduces a resource-style client — `dashscope.Client()` — modeled on the ergonomics of the OpenAI SDK: one client holds a shared connection pool, every capability hangs off it as a typed resource (`client.chat`, `client.images`, `client.audio`, …), responses are typed objects instead of raw dicts, and failures raise exceptions by default. The complete 1.x public surface remains available at its historical import paths and is implemented by facades under `dashscope.legacy_1x`; AgentStudio and Agentic RL share their large business cores with 2.0 without sharing public return or error contracts.
@@ -105,12 +129,14 @@ The base install covers SDK API calls, the `dashscope` CLI command, Agentic RL f
105
129
 
106
130
  | Extra | Provides | Install |
107
131
  |-------|----------|---------|
108
- | `acli` | Interactive AI assistant (DashScope SDK Expert) | `pip install "dashscope[acli]"` |
109
- | `acli-openai` | Run the assistant on an OpenAI-compatible model provider | `pip install "dashscope[acli-openai]"` |
110
- | `acli-anthropic` | Run the assistant on an Anthropic model provider | `pip install "dashscope[acli-anthropic]"` |
111
- | `acli-voice` | Voice input and spoken replies in the assistant | `pip install "dashscope[acli-voice]"` |
112
- | `acli-camera` | Camera capture for image input in the assistant | `pip install "dashscope[acli-camera]"` |
113
- | `acli-all` | All of the above (includes `acli`) | `pip install "dashscope[acli-all]"` |
132
+ | `expert` | Interactive AI assistant (DashScope SDK Expert) | `pip install "dashscope[expert]"` |
133
+ | `expert-openai` | Run the assistant on an OpenAI-compatible model provider | `pip install "dashscope[expert-openai]"` |
134
+ | `expert-anthropic` | Run the assistant on an Anthropic model provider | `pip install "dashscope[expert-anthropic]"` |
135
+ | `expert-voice` | Voice input and spoken replies in the assistant | `pip install "dashscope[expert-voice]"` |
136
+ | `expert-camera` | Camera capture for image input in the assistant | `pip install "dashscope[expert-camera]"` |
137
+ | `expert-all` | All of the above (includes `expert`) | `pip install "dashscope[expert-all]"` |
138
+
139
+ The original `acli*` extra names remain as backward-compatible aliases with identical dependencies.
114
140
 
115
141
  To install from a source checkout:
116
142
 
@@ -590,7 +616,7 @@ The SDK integrates an interactive AI assistant, **DashScope SDK Expert**, powere
590
616
 
591
617
  - Run `dashscope` with no arguments to start the assistant. On first run it offers to download the Expert profile and per-domain skills into `./.agenticx/`; the same profile can be installed later with `agenticx expert download dashscope-sdk-expert`.
592
618
  - Ask it instead of reading docs — e.g. `dashscope expert "how do I stream chat output"` (asks once and exits). Type `/help` inside the assistant for available commands; `dashscope expert --help` shows all forms.
593
- - With Python 3.10+, install the `acli` extra: `pip install "dashscope[acli]"`. Add `acli-voice` / `acli-camera` for voice and camera input, or `acli-all` for everything — see the [extras table](#installation).
619
+ - With Python 3.10+, install the `expert` extra: `pip install "dashscope[expert]"`. Add `expert-voice` / `expert-camera` for voice and camera input, or `expert-all` for everything — see the [extras table](#installation).
594
620
  - Full walkthrough: [DashScope SDK Expert guide](https://help.aliyun.com/en/model-studio/dashscope-sdk-expert).
595
621
 
596
622
  ## Command line
@@ -2,6 +2,8 @@
2
2
 
3
3
  > **English** | [中文](README_zh.md)
4
4
 
5
+ **Documentation**: [dashscope.github.io/dashscope-sdk-python](https://dashscope.github.io/dashscope-sdk-python/) — [中文文档](https://dashscope.github.io/dashscope-sdk-python/zh/)
6
+
5
7
  The DashScope Python SDK is the official client for [Alibaba Cloud Model Studio (Bailian)](https://www.alibabacloud.com/help/en/model-studio/), covering text generation, multi-modal understanding, embeddings, reranking, image/video generation, speech synthesis & recognition, fine-tuning, agentic RL, applications and more.
6
8
 
7
9
  **Version 2.0** introduces a resource-style client — `dashscope.Client()` — modeled on the ergonomics of the OpenAI SDK: one client holds a shared connection pool, every capability hangs off it as a typed resource (`client.chat`, `client.images`, `client.audio`, …), responses are typed objects instead of raw dicts, and failures raise exceptions by default. The complete 1.x public surface remains available at its historical import paths and is implemented by facades under `dashscope.legacy_1x`; AgentStudio and Agentic RL share their large business cores with 2.0 without sharing public return or error contracts.
@@ -30,12 +32,14 @@ The base install covers SDK API calls, the `dashscope` CLI command, Agentic RL f
30
32
 
31
33
  | Extra | Provides | Install |
32
34
  |-------|----------|---------|
33
- | `acli` | Interactive AI assistant (DashScope SDK Expert) | `pip install "dashscope[acli]"` |
34
- | `acli-openai` | Run the assistant on an OpenAI-compatible model provider | `pip install "dashscope[acli-openai]"` |
35
- | `acli-anthropic` | Run the assistant on an Anthropic model provider | `pip install "dashscope[acli-anthropic]"` |
36
- | `acli-voice` | Voice input and spoken replies in the assistant | `pip install "dashscope[acli-voice]"` |
37
- | `acli-camera` | Camera capture for image input in the assistant | `pip install "dashscope[acli-camera]"` |
38
- | `acli-all` | All of the above (includes `acli`) | `pip install "dashscope[acli-all]"` |
35
+ | `expert` | Interactive AI assistant (DashScope SDK Expert) | `pip install "dashscope[expert]"` |
36
+ | `expert-openai` | Run the assistant on an OpenAI-compatible model provider | `pip install "dashscope[expert-openai]"` |
37
+ | `expert-anthropic` | Run the assistant on an Anthropic model provider | `pip install "dashscope[expert-anthropic]"` |
38
+ | `expert-voice` | Voice input and spoken replies in the assistant | `pip install "dashscope[expert-voice]"` |
39
+ | `expert-camera` | Camera capture for image input in the assistant | `pip install "dashscope[expert-camera]"` |
40
+ | `expert-all` | All of the above (includes `expert`) | `pip install "dashscope[expert-all]"` |
41
+
42
+ The original `acli*` extra names remain as backward-compatible aliases with identical dependencies.
39
43
 
40
44
  To install from a source checkout:
41
45
 
@@ -515,7 +519,7 @@ The SDK integrates an interactive AI assistant, **DashScope SDK Expert**, powere
515
519
 
516
520
  - Run `dashscope` with no arguments to start the assistant. On first run it offers to download the Expert profile and per-domain skills into `./.agenticx/`; the same profile can be installed later with `agenticx expert download dashscope-sdk-expert`.
517
521
  - Ask it instead of reading docs — e.g. `dashscope expert "how do I stream chat output"` (asks once and exits). Type `/help` inside the assistant for available commands; `dashscope expert --help` shows all forms.
518
- - With Python 3.10+, install the `acli` extra: `pip install "dashscope[acli]"`. Add `acli-voice` / `acli-camera` for voice and camera input, or `acli-all` for everything — see the [extras table](#installation).
522
+ - With Python 3.10+, install the `expert` extra: `pip install "dashscope[expert]"`. Add `expert-voice` / `expert-camera` for voice and camera input, or `expert-all` for everything — see the [extras table](#installation).
519
523
  - Full walkthrough: [DashScope SDK Expert guide](https://help.aliyun.com/en/model-studio/dashscope-sdk-expert).
520
524
 
521
525
  ## Command line
@@ -95,11 +95,15 @@ _MAAS_REGIONS = {*MAAS_REGIONS, "cn-beijing"}
95
95
 
96
96
 
97
97
  def set_region(region: str, workspace_id: str = None):
98
- """Switch to a specific MaaS region.
98
+ """Switch to a specific MaaS region (legacy 1.x helper).
99
99
 
100
100
  Updates base_http_api_url, base_compatible_api_url and
101
101
  base_websocket_api_url to point to the MaaS endpoint for the
102
- given region and workspace.
102
+ given region and workspace. These module-level variables are
103
+ only read by ``dashscope.legacy_1x``; this call does not affect
104
+ ``Client`` / ``AsyncClient`` configuration resolution. For the
105
+ current client use ``Client(region=..., workspace=...)`` or
106
+ ``dashscope.settings.region`` instead.
103
107
 
104
108
  Args:
105
109
  region (str): The MaaS region, e.g. "ap-southeast-1",
@@ -41,11 +41,16 @@ def close_shared_sync_session() -> None: ...
41
41
  def set_region(region: str, workspace_id: Optional[str] = ...) -> None: ...
42
42
 
43
43
  # Lazily resolved compatibility modules.
44
+ # ``applications`` is a real 2.0 subpackage: re-export it as a module so type
45
+ # checkers and griffe keep access to its submodules (e.g. applications.finetune
46
+ # and applications.agentstudio). Declaring it as ``applications: Any`` would
47
+ # let griffe's stub merge shadow the submodule with a plain attribute.
48
+ from dashscope import applications as applications
49
+
44
50
  aigc: Any
45
51
  agentstudio: Any
46
52
  api_entities: Any
47
53
  app: Any
48
- applications: Any
49
54
  assistants: Any
50
55
  audio: Any
51
56
  cli: Any
@@ -16,6 +16,10 @@ from dashscope._shared._validation import (
16
16
  validate_region,
17
17
  validate_workspace_id,
18
18
  )
19
+ from dashscope.applications.agentstudio.resources.usage import (
20
+ Usage,
21
+ AsyncUsage,
22
+ )
19
23
  from dashscope.applications.agentstudio.resources.agents import (
20
24
  Agents,
21
25
  AsyncAgents,
@@ -213,6 +217,7 @@ class Client:
213
217
  self.memory_stores = MemoryStores(self)
214
218
  self.webhook_endpoints = WebhookEndpoints(self)
215
219
  self.security = Security(self)
220
+ self.usage = Usage(self)
216
221
 
217
222
  def close(self) -> None:
218
223
  self.transport.close()
@@ -295,6 +300,7 @@ class AsyncClient:
295
300
  self.memory_stores = AsyncMemoryStores(self)
296
301
  self.webhook_endpoints = AsyncWebhookEndpoints(self)
297
302
  self.security = AsyncSecurity(self)
303
+ self.usage = AsyncUsage(self)
298
304
 
299
305
  async def aclose(self) -> None:
300
306
  await self.transport.aclose()
@@ -0,0 +1,66 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Copyright (c) Alibaba, Inc. and its affiliates.
3
+ """Usage summary and trend queries for Managed Agents."""
4
+
5
+ from __future__ import annotations
6
+
7
+ from typing import Any, Dict
8
+
9
+ _PATH_USAGE_SUMMARY = "/usage/summary"
10
+ _PATH_USAGE_TREND = "/usage/trend"
11
+
12
+
13
+ class Usage:
14
+ """Read workspace, agent, and session usage."""
15
+
16
+ def __init__(self, client) -> None:
17
+ self._client = client
18
+
19
+ def summary(self, **params: Any) -> Dict[str, Any]:
20
+ """Query usage totals and model/tool breakdowns (``POST /usage/summary``).
21
+
22
+ Pass the API's snake_case body fields as keyword arguments. The
23
+ service validates dimension-specific parameter combinations.
24
+ """
25
+ resp = self._client.transport.request(
26
+ "POST",
27
+ _PATH_USAGE_SUMMARY,
28
+ json=dict(params),
29
+ )
30
+ return resp.data
31
+
32
+ def trend(self, **params: Any) -> Dict[str, Any]:
33
+ """Query paginated usage buckets (``POST /usage/trend``).
34
+
35
+ Pass the API's snake_case body fields as keyword arguments. To fetch
36
+ another page, pass the returned ``next_page_token`` as ``page_token``.
37
+ """
38
+ resp = self._client.transport.request(
39
+ "POST",
40
+ _PATH_USAGE_TREND,
41
+ json=dict(params),
42
+ )
43
+ return resp.data
44
+
45
+
46
+ class AsyncUsage:
47
+ """Async usage summary and trend queries."""
48
+
49
+ def __init__(self, client) -> None:
50
+ self._client = client
51
+
52
+ async def summary(self, **params: Any) -> Dict[str, Any]:
53
+ resp = await self._client.transport.request(
54
+ "POST",
55
+ _PATH_USAGE_SUMMARY,
56
+ json=dict(params),
57
+ )
58
+ return resp.data
59
+
60
+ async def trend(self, **params: Any) -> Dict[str, Any]:
61
+ resp = await self._client.transport.request(
62
+ "POST",
63
+ _PATH_USAGE_TREND,
64
+ json=dict(params),
65
+ )
66
+ return resp.data
@@ -0,0 +1,289 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Copyright (c) Alibaba, Inc. and its affiliates.
3
+ """AgentStudio request/response adapters over the SDK 2.0 HTTP transport."""
4
+
5
+ from __future__ import annotations
6
+
7
+ from contextlib import contextmanager
8
+ from dataclasses import dataclass
9
+ from typing import Any, Dict, IO, Optional, Tuple, Union
10
+ from urllib.parse import urlsplit
11
+
12
+ import httpx
13
+
14
+ from dashscope.transport import SyncTransport as SDKSyncTransport
15
+ from dashscope.transport import AsyncTransport as SDKAsyncTransport
16
+ from dashscope._shared._sdk_ident import get_sdk_headers
17
+ from dashscope.applications.agentstudio import (
18
+ exceptions as _default_exceptions,
19
+ )
20
+ from dashscope.applications.agentstudio.constants import (
21
+ AGENTSTUDIO_DEFAULT_TIMEOUT,
22
+ AGENTSTUDIO_MAX_RETRIES,
23
+ )
24
+
25
+
26
+ @dataclass
27
+ class RequestOptions:
28
+ method: str
29
+ path: str
30
+ json: Optional[Dict[str, Any]] = None
31
+ params: Optional[Dict[str, Any]] = None
32
+ data: Optional[Union[bytes, IO]] = None
33
+ files: Optional[Dict[str, Any]] = None
34
+ headers: Optional[Dict[str, str]] = None
35
+ timeout: Optional[float] = None
36
+ max_retries: Optional[int] = None
37
+ stream: bool = False
38
+
39
+
40
+ @dataclass
41
+ class APIResponse:
42
+ data: Dict[str, Any]
43
+ request_id: Optional[str] = None
44
+ status_code: int = 200
45
+
46
+ @classmethod
47
+ def from_http_response(cls, response, exceptions_module):
48
+ content_type = response.headers.get("Content-Type", "")
49
+ if response.status_code < 400 and not content_type.startswith(
50
+ "application/json",
51
+ ):
52
+ payload = {
53
+ "_binary": response.content,
54
+ "_content_type": content_type,
55
+ }
56
+ else:
57
+ try:
58
+ payload = response.json()
59
+ except ValueError:
60
+ payload = {"raw": response.text}
61
+ if response.status_code >= 400 or is_error_payload(payload):
62
+ raise exceptions_module.from_response(
63
+ status_code=response.status_code,
64
+ body=payload,
65
+ headers=response.headers,
66
+ )
67
+ data, request_id = unwrap(payload)
68
+ return cls(
69
+ data,
70
+ request_id or response.headers.get("x-request-id"),
71
+ response.status_code,
72
+ )
73
+
74
+
75
+ def unwrap(payload: Any) -> Tuple[Dict[str, Any], Optional[str]]:
76
+ data = dict(payload) if isinstance(payload, dict) else {"value": payload}
77
+ request_id = data.pop("requestId", None)
78
+ if request_id is not None:
79
+ data.setdefault("request_id", request_id)
80
+ request_id = data.get("request_id")
81
+ return data, request_id if isinstance(request_id, str) else None
82
+
83
+
84
+ def is_error_payload(payload: Any) -> bool:
85
+ if not isinstance(payload, dict):
86
+ return False
87
+ error = payload.get("error")
88
+ return payload.get("type") == "error" or (
89
+ isinstance(error, dict)
90
+ and any(
91
+ key in error
92
+ for key in ("code", "message", "error_code", "error_message")
93
+ )
94
+ )
95
+
96
+
97
+ def _resolve_timeout(timeout):
98
+ if timeout is None:
99
+ return AGENTSTUDIO_DEFAULT_TIMEOUT
100
+ if isinstance(timeout, httpx.Timeout):
101
+ return timeout
102
+ if isinstance(timeout, tuple):
103
+ return httpx.Timeout(timeout[1], connect=timeout[0])
104
+ return httpx.Timeout(
105
+ float(timeout),
106
+ connect=AGENTSTUDIO_DEFAULT_TIMEOUT.connect,
107
+ )
108
+
109
+
110
+ def build_headers(
111
+ *,
112
+ api_key,
113
+ uid,
114
+ user_agent,
115
+ extra=None,
116
+ json_body=True,
117
+ _exceptions_module=_default_exceptions,
118
+ ):
119
+ if not api_key:
120
+ raise _exceptions_module.AuthenticationError(
121
+ "api_key is required. Pass it via Client(api_key=...) or "
122
+ "the DASHSCOPE_API_KEY environment variable.",
123
+ code="authentication_error",
124
+ )
125
+ headers = {"Authorization": f"Bearer {api_key}", "User-Agent": user_agent}
126
+ headers.update(get_sdk_headers(module="agentstudio"))
127
+ if json_body:
128
+ headers.update(
129
+ {"Content-Type": "application/json", "Accept": "application/json"},
130
+ )
131
+ if uid:
132
+ headers["x-dashscope-uid"] = uid
133
+ headers.update(
134
+ {
135
+ key: value
136
+ for key, value in (extra or {}).items()
137
+ if value is not None
138
+ },
139
+ )
140
+ return headers
141
+
142
+
143
+ class _Transport:
144
+ """Share AgentStudio protocol conversion; HTTP mechanics belong to SDK 2.0."""
145
+
146
+ def __init__(
147
+ self,
148
+ *,
149
+ base_url,
150
+ api_key,
151
+ workspace,
152
+ uid,
153
+ user_agent,
154
+ timeout,
155
+ max_retries=AGENTSTUDIO_MAX_RETRIES,
156
+ http_client=None,
157
+ exceptions_module=_default_exceptions,
158
+ ):
159
+ self.base_url = base_url.rstrip("/")
160
+ self.api_key, self.workspace, self.uid = api_key, workspace, uid
161
+ self.user_agent, self.timeout = user_agent, timeout
162
+ self.max_retries, self.exceptions = max_retries, exceptions_module
163
+ self._transport = self._transport_type(
164
+ base_url=self.base_url,
165
+ api_key=api_key,
166
+ workspace=workspace,
167
+ user_agent=user_agent,
168
+ timeout=_resolve_timeout(timeout),
169
+ max_retries=max_retries,
170
+ http_client=http_client,
171
+ )
172
+ self._client = self._transport.http_client
173
+
174
+ def _prepare(
175
+ self,
176
+ method,
177
+ path,
178
+ *,
179
+ params=None,
180
+ json=None,
181
+ data=None,
182
+ files=None,
183
+ extra_headers=None,
184
+ timeout=None,
185
+ stream=False,
186
+ ):
187
+ headers = build_headers(
188
+ api_key=self.api_key,
189
+ uid=self.uid,
190
+ user_agent=self.user_agent,
191
+ extra=extra_headers,
192
+ json_body=files is None
193
+ and method.upper() not in ("GET", "HEAD", "DELETE"),
194
+ _exceptions_module=self.exceptions,
195
+ )
196
+ if files is not None:
197
+ headers.pop("Content-Type", None)
198
+ kwargs = {
199
+ "params": params,
200
+ "json": json,
201
+ "headers": headers,
202
+ "sdk_module": "agentstudio",
203
+ "timeout": _resolve_timeout(
204
+ timeout if timeout is not None else self.timeout,
205
+ ),
206
+ }
207
+ if path.startswith(("http://", "https://")):
208
+ url = urlsplit(path)
209
+ kwargs["base_url"] = f"{url.scheme}://{url.netloc}"
210
+ path = (url.path or "/") + ("?" + url.query if url.query else "")
211
+ if not stream:
212
+ kwargs.update(content=data, files=files)
213
+ send = (
214
+ self._transport.open_stream if stream else self._transport.request
215
+ )
216
+ return send, path, kwargs
217
+
218
+ @contextmanager
219
+ def _errors(self):
220
+ try:
221
+ yield
222
+ except _default_exceptions.AgentStudioError as exc:
223
+ if exc.status_code is not None:
224
+ raise self.exceptions.from_response(
225
+ status_code=exc.status_code,
226
+ body=exc.body,
227
+ headers=exc.headers,
228
+ ) from exc
229
+ error_class = (
230
+ self.exceptions.APITimeoutError
231
+ if isinstance(exc, _default_exceptions.APITimeoutError)
232
+ else self.exceptions.APIConnectionError
233
+ )
234
+ raise error_class(str(exc), request_id=exc.request_id) from exc
235
+
236
+ @property
237
+ def is_closed(self):
238
+ return self._client.is_closed
239
+
240
+
241
+ class SyncTransport(_Transport):
242
+ _transport_type = SDKSyncTransport
243
+
244
+ def request(self, method, path, **kwargs):
245
+ send, path, options = self._prepare(method, path, **kwargs)
246
+ with self._errors():
247
+ response = send(method, path, **options)
248
+ if kwargs.get("stream"):
249
+ return response
250
+ try:
251
+ return APIResponse.from_http_response(response, self.exceptions)
252
+ finally:
253
+ response.close()
254
+
255
+ def close(self):
256
+ self._transport.close()
257
+
258
+ def __enter__(self):
259
+ return self
260
+
261
+ def __exit__(self, *args):
262
+ self.close()
263
+
264
+
265
+ class AsyncTransport(_Transport):
266
+ _transport_type = SDKAsyncTransport
267
+
268
+ async def request(self, method, path, **kwargs):
269
+ send, path, options = self._prepare(method, path, **kwargs)
270
+ with self._errors():
271
+ response = await send(method, path, **options)
272
+ if kwargs.get("stream"):
273
+ return response
274
+ try:
275
+ return APIResponse.from_http_response(response, self.exceptions)
276
+ finally:
277
+ await response.aclose()
278
+
279
+ def close(self):
280
+ """Async clients require cleanup through aclose()."""
281
+
282
+ async def aclose(self):
283
+ await self._transport.aclose()
284
+
285
+ async def __aenter__(self):
286
+ return self
287
+
288
+ async def __aexit__(self, *args):
289
+ await self.aclose()
@@ -123,7 +123,7 @@ _AGENT_MODE_FLAGS = ("--cli", "--tui")
123
123
  _AGENT_HELP = ("-h", "--help")
124
124
 
125
125
  # Rich markup, so it is printed through a Console rather than click.echo.
126
- # The extra name is written `\[acli]`: unescaped, rich parses it as a style
126
+ # The extra name is written `\[expert]`: unescaped, rich parses it as a style
127
127
  # tag and the help prints `pip install dashscope`, which installs no agent.
128
128
  _AGENT_USAGE = """[bold]DashScope SDK Expert[/bold] — the AgenticX AI assistant.
129
129
 
@@ -138,7 +138,7 @@ With no argument, piped stdin is read as a one-shot prompt. An unrecognized
138
138
  command is reported as an error rather than treated as a question, so ask
139
139
  one with [bold]dashscope expert "question"[/bold].
140
140
 
141
- Requires [bold]pip install dashscope\\[acli][/bold] with Python 3.10+.
141
+ Requires [bold]pip install dashscope\\[expert][/bold] with Python 3.10+.
142
142
  """
143
143
 
144
144
  # Root options that consume the token after them. Without this the
@@ -30,11 +30,11 @@ def _agenticx_import_tip(exception) -> str:
30
30
  # A module already in sys.modules may carry no spec metadata.
31
31
  installed = True
32
32
  if not installed:
33
- # `\[` keeps rich from eating the extra name: an unescaped [acli] is
33
+ # `\[` keeps rich from eating the extra name: an unescaped [expert] is
34
34
  # parsed as a style tag, which renders the copy-pasteable command as
35
35
  # `pip install dashscope` and installs the SDK without the agent.
36
36
  return (
37
- "[yellow]Tip:[/yellow] Install dashscope\\[acli] with Python "
37
+ "[yellow]Tip:[/yellow] Install dashscope\\[expert] with Python "
38
38
  f"3.10+ to enable the agent ({exception})."
39
39
  )
40
40
  try:
@@ -45,7 +45,7 @@ def _agenticx_import_tip(exception) -> str:
45
45
  f"[yellow]Tip:[/yellow] dashscope-agenticx {found} is installed "
46
46
  "but does not provide the interface this SDK expects "
47
47
  f"({exception}).\n"
48
- "[dim]Try: pip install -U 'dashscope\\[acli]'; if that does not "
48
+ "[dim]Try: pip install -U 'dashscope\\[expert]'; if that does not "
49
49
  "help, report the mismatch.[/dim]"
50
50
  )
51
51
 
@@ -35,7 +35,7 @@ class HistoryItem(dict):
35
35
  Args:
36
36
  role (str): The role name.
37
37
  text (str): The text history. Default ot None.
38
- kwargs: The key/value pair of history content.
38
+ **kwargs (Any): The key/value pair of history content.
39
39
 
40
40
  Raises:
41
41
  InvalidInput: The key and value must pair.
@@ -53,7 +53,7 @@ class HistoryItem(dict):
53
53
 
54
54
  Args:
55
55
  key (str): The key of the content.
56
- value (Any): The history content.
56
+ content (Any): The history content.
57
57
  """
58
58
  self[self.role].append({key: content})
59
59
 
@@ -131,7 +131,7 @@ class Conversation(BaseApi):
131
131
 
132
132
  Args:
133
133
  history (dict): The conversation initialization settings.
134
- will be recorded in the system history list.
134
+ will be recorded in the system history list.
135
135
  Defaults to None.
136
136
  """
137
137
  super().__init__()
@@ -56,7 +56,7 @@ class ImageGeneration(BaseApi, BaseAsyncApi):
56
56
  [{'role': 'user',
57
57
  'content': 'The weather is fine today.'},
58
58
  {'role': 'assistant', 'content': 'Suitable for outings'}]
59
- **kwargs:
59
+ **kwargs (Any):
60
60
  stream(bool, `optional`): Enable server-sent events
61
61
  (ref: https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events) # noqa E501 # pylint: disable=line-too-long
62
62
  the result will back partially[qwen-turbo,bailian-v1].
@@ -374,7 +374,7 @@ class AioImageGeneration(BaseAioApi, BaseAsyncAioApi):
374
374
  [{'role': 'user',
375
375
  'content': 'The weather is fine today.'},
376
376
  {'role': 'assistant', 'content': 'Suitable for outings'}]
377
- **kwargs:
377
+ **kwargs (Any):
378
378
  stream(bool, `optional`): Enable server-sent events
379
379
  (ref: https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events) # noqa E501 # pylint: disable=line-too-long
380
380
  the result will back partially[qwen-turbo,bailian-v1].
@@ -104,7 +104,7 @@ class ImageSynthesis(BaseAsyncApi):
104
104
  enable_sequential (bool, optional): Enable sequential generation mode.
105
105
  thinking_mode (str, optional): Thinking mode for generation. Supported values: fast, balanced, quality.
106
106
  color_palette (str, optional): Color palette specification for consistent styling.
107
- **kwargs:
107
+ **kwargs (Any):
108
108
  similarity(float, `optional`): The similarity between the
109
109
  output image and the input image
110
110
  sketch_weight(int, optional): How much the input sketch
@@ -688,7 +688,7 @@ class AioImageSynthesis(BaseAsyncAioApi):
688
688
  enable_sequential (bool, optional): Enable sequential generation mode.
689
689
  thinking_mode (str, optional): Thinking mode for generation. Supported values: fast, balanced, quality.
690
690
  color_palette (str, optional): Color palette specification for consistent styling.
691
- **kwargs:
691
+ **kwargs (Any):
692
692
  similarity(float, `optional`): The similarity between the
693
693
  output image and the input image
694
694
  sketch_weight(int, optional): How much the input sketch