dashscope 2.1.1__tar.gz → 2.1.3__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.
- {dashscope-2.1.1 → dashscope-2.1.3}/PKG-INFO +7 -5
- {dashscope-2.1.1 → dashscope-2.1.3}/README.md +2 -1
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/applications/agentstudio/__init__.py +24 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/applications/agentstudio/client.py +6 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/applications/agentstudio/constants.py +23 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/applications/agentstudio/resources/__init__.py +6 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/applications/agentstudio/resources/_helpers.py +5 -0
- dashscope-2.1.3/dashscope/applications/agentstudio/resources/dynamic_workflows.py +295 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/applications/agentstudio/resources/usage.py +2 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/applications/agentstudio/types/__init__.py +5 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/applications/agentstudio/types/models.py +79 -1
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/applications/agentstudio/types/params.py +100 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/applications/finetune/reinforcement/component/server/server.py +10 -3
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/cli/errors.py +9 -3
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/cli/output.py +7 -7
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/api_entities/api_request_factory.py +18 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/api_entities/dashscope_response.py +1 -1
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/audio/tts/speech_synthesizer.py +8 -3
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/common/utils.py +17 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/transport/sse.py +4 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/version.py +1 -1
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope.egg-info/PKG-INFO +7 -5
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope.egg-info/SOURCES.txt +5 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope.egg-info/requires.txt +5 -3
- dashscope-2.1.3/examples/03_agent_recipes/agentstudio_dynamic_workflows.py +80 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/examples/README.md +1 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/examples/README_zh.md +1 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/requirements.txt +0 -3
- {dashscope-2.1.1 → dashscope-2.1.3}/setup.py +14 -18
- dashscope-2.1.3/tests/test_agentstudio_dynamic_workflows.py +385 -0
- dashscope-2.1.3/tests/test_docs_reference.py +199 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/tests/test_finetune_rl_shim.py +48 -15
- dashscope-2.1.3/tests/test_release_notes_script.py +162 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/tests/test_sse.py +57 -15
- {dashscope-2.1.1 → dashscope-2.1.3}/LICENSE +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/LICENSE.certifi +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/MANIFEST.in +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/NOTICE +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/__init__.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/__init__.pyi +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/_config.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/_error_registry.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/_logging.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/_quickstart.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/_shared/__init__.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/_shared/_errors.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/_shared/_sdk_ident.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/_shared/_sdk_session.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/_shared/_validation.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/applications/__init__.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/applications/agentstudio/exceptions.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/applications/agentstudio/pagination.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/applications/agentstudio/resources/agents.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/applications/agentstudio/resources/deployments.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/applications/agentstudio/resources/environments.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/applications/agentstudio/resources/files.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/applications/agentstudio/resources/memory_stores.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/applications/agentstudio/resources/security.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/applications/agentstudio/resources/session_events.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/applications/agentstudio/resources/session_resources.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/applications/agentstudio/resources/session_threads.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/applications/agentstudio/resources/sessions.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/applications/agentstudio/resources/skills.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/applications/agentstudio/resources/vaults.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/applications/agentstudio/resources/webhook_endpoints.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/applications/agentstudio/streaming.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/applications/agentstudio/transport.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/applications/finetune/__init__.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/applications/finetune/_submit.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/applications/finetune/agentic_rl.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/applications/finetune/reinforcement/__init__.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/applications/finetune/reinforcement/common/__init__.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/applications/finetune/reinforcement/common/_legacy_errors.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/applications/finetune/reinforcement/common/constants.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/applications/finetune/reinforcement/common/errors.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/applications/finetune/reinforcement/common/log.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/applications/finetune/reinforcement/common/model.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/applications/finetune/reinforcement/common/model_types.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/applications/finetune/reinforcement/common/utils.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/applications/finetune/reinforcement/component/__init__.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/applications/finetune/reinforcement/component/data/__init__.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/applications/finetune/reinforcement/component/data/base_data_model.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/applications/finetune/reinforcement/component/data/group_reward_input.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/applications/finetune/reinforcement/component/data/group_reward_output.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/applications/finetune/reinforcement/component/data/reward_input.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/applications/finetune/reinforcement/component/data/reward_output.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/applications/finetune/reinforcement/component/data/rollout_input.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/applications/finetune/reinforcement/component/data/rollout_output.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/applications/finetune/reinforcement/component/demo/__init__.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/applications/finetune/reinforcement/component/demo/group_reward_processor_demo.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/applications/finetune/reinforcement/component/demo/reward_processor_demo.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/applications/finetune/reinforcement/component/demo/rollout_processor_demo.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/applications/finetune/reinforcement/component/func_decorator.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/applications/finetune/reinforcement/component/func_manager.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/applications/finetune/reinforcement/component/observability/__init__.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/applications/finetune/reinforcement/component/observability/genai/__init__.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/applications/finetune/reinforcement/component/observability/genai/_core.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/applications/finetune/reinforcement/component/observability/genai/llm_dashscope.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/applications/finetune/reinforcement/component/observability/genai/llm_openai.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/applications/finetune/reinforcement/component/observability/genai/llm_span.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/applications/finetune/reinforcement/component/observability/genai/messages.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/applications/finetune/reinforcement/component/observability/genai/tools.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/applications/finetune/reinforcement/component/observability/processor_span.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/applications/finetune/reinforcement/component/observability/tracing.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/applications/finetune/reinforcement/component/parser/__init__.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/applications/finetune/reinforcement/component/parser/base_parser.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/applications/finetune/reinforcement/component/parser/group_reward_parser.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/applications/finetune/reinforcement/component/parser/reward_parser.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/applications/finetune/reinforcement/component/parser/rollout_parser.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/applications/finetune/reinforcement/component/processor/__init__.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/applications/finetune/reinforcement/component/processor/abstract_group_reward_processor.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/applications/finetune/reinforcement/component/processor/abstract_processor.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/applications/finetune/reinforcement/component/processor/abstract_reward_processor.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/applications/finetune/reinforcement/component/processor/abstract_rollout_processor.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/applications/finetune/reinforcement/component/server/__init__.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/cli/__init__.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/cli/__main__.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/cli/app.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/cli/commands/__init__.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/cli/commands/agentstudio.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/cli/commands/apps.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/cli/commands/audio.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/cli/commands/audio_customization.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/cli/commands/auth.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/cli/commands/chat.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/cli/commands/config.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/cli/commands/decision.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/cli/commands/deployments.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/cli/commands/embeddings.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/cli/commands/files.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/cli/commands/ft.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/cli/commands/images.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/cli/commands/models.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/cli/commands/multimodal.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/cli/commands/oss.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/cli/commands/rerank.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/cli/commands/rl.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/cli/commands/tingwu.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/cli/commands/tokenization.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/cli/commands/videos.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/cli/config_store.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/cli/confirm.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/cli/context.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/cli/input.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/cli/main.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/cli/progress.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/cli/sdk.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/client.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/devkit/__init__.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/devkit/diagnosis.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/devkit/mock.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/errors.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/expert.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/__init__.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/_shim.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/agentstudio/__init__.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/agentstudio/client.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/agentstudio/exceptions.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/agentstudio/streaming.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/agentstudio/transport.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/aigc/__init__.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/aigc/chat_completion.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/aigc/code_generation.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/aigc/conversation.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/aigc/generation.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/aigc/image_generation.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/aigc/image_synthesis.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/aigc/multimodal_conversation.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/aigc/video_synthesis.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/api_entities/__init__.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/api_entities/aio_session.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/api_entities/aiohttp_request.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/api_entities/api_request_data.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/api_entities/base_request.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/api_entities/chat_completion_types.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/api_entities/encryption.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/api_entities/http_request.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/api_entities/websocket_request.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/app/__init__.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/app/application.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/app/application_response.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/assistants/__init__.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/assistants/assistant_types.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/assistants/assistants.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/assistants/files.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/audio/__init__.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/audio/asr/__init__.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/audio/asr/asr_phrase_manager.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/audio/asr/recognition.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/audio/asr/transcription.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/audio/asr/translation_recognizer.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/audio/asr/vocabulary.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/audio/http_tts/__init__.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/audio/http_tts/http_speech_synthesizer.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/audio/qwen_asr/__init__.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/audio/qwen_asr/qwen_transcription.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/audio/qwen_omni/__init__.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/audio/qwen_omni/omni_realtime.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/audio/qwen_tts/__init__.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/audio/qwen_tts/speech_synthesizer.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/audio/qwen_tts_realtime/__init__.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/audio/qwen_tts_realtime/qwen_tts_realtime.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/audio/tts/__init__.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/audio/tts_v2/__init__.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/audio/tts_v2/enrollment.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/audio/tts_v2/speech_synthesizer.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/cli/__init__.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/cli/__main__.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/cli/agentic_rl.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/cli/application.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/cli/auth.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/cli/code_generation.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/cli/common.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/cli/deployments.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/cli/embeddings.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/cli/files.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/cli/fine_tunes.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/cli/generation.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/cli/image_generation.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/cli/image_synthesis.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/cli/models.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/cli/multimodal_conversation.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/cli/multimodal_embedding.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/cli/oss.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/cli/rerank.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/cli/speech_synthesis.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/cli/tokenization.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/cli/transcription.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/cli/understanding.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/cli/video_synthesis.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/client/__init__.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/client/base_api.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/common/__init__.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/common/_sdk_session.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/common/api_key.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/common/base_type.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/common/constants.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/common/env.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/common/error.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/common/logging.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/common/message_manager.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/embeddings/__init__.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/embeddings/batch_text_embedding.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/embeddings/batch_text_embedding_response.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/embeddings/multimodal_embedding.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/embeddings/text_embedding.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/files.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/finetune/__init__.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/finetune/agentic_rl.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/finetune/customize_types.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/finetune/deployments.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/finetune/finetunes.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/finetune/reinforcement/__init__.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/finetune/reinforcement/common/__init__.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/finetune/reinforcement/common/errors.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/io/__init__.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/io/input_output.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/model.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/models.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/multimodal/__init__.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/multimodal/dialog_state.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/multimodal/multimodal_constants.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/multimodal/multimodal_dialog.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/multimodal/multimodal_request_params.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/multimodal/tingwu/__init__.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/multimodal/tingwu/tingwu.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/multimodal/tingwu/tingwu_realtime.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/nlp/__init__.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/nlp/understanding.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/protocol/__init__.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/protocol/websocket.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/rerank/__init__.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/rerank/text_rerank.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/threads/__init__.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/threads/messages/__init__.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/threads/messages/files.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/threads/messages/messages.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/threads/runs/__init__.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/threads/runs/runs.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/threads/runs/steps.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/threads/thread_types.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/threads/threads.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/tokenizers/__init__.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/tokenizers/qwen_tokenizer.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/tokenizers/tokenization.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/tokenizers/tokenizer.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/tokenizers/tokenizer_base.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/utils/__init__.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/utils/message_utils.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/utils/oss_utils.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/legacy_1x/utils/param_utils.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/protocols/__init__.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/protocols/anthropic.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/protocols/base.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/protocols/native.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/protocols/openai.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/py.typed +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/resources/__init__.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/resources/_blocking.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/resources/_jobs.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/resources/_oss.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/resources/_oss_upload.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/resources/_sse.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/resources/apps.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/resources/audio/__init__.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/resources/audio/_callbacks.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/resources/audio/_ws_session.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/resources/audio/asr.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/resources/audio/customization.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/resources/audio/http_tts.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/resources/audio/live.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/resources/audio/phrases.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/resources/audio/realtime.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/resources/audio/tts.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/resources/chat/__init__.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/resources/chat/_params.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/resources/chat/completions.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/resources/decision.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/resources/deployments.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/resources/embeddings.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/resources/files.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/resources/fine_tunes.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/resources/images.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/resources/models.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/resources/multimodal/__init__.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/resources/multimodal/chat.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/resources/multimodal/embeddings.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/resources/reinforcement_learning.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/resources/rerank.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/resources/tingwu.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/resources/tokenization.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/resources/videos.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/transport/__init__.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/transport/_ident.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/transport/_options.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/transport/_response.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/transport/_retry.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/transport/http.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/transport/ws.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/transport/ws_connection.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/types/__init__.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/types/_parse.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/types/common.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/types/completions.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/types/messages.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope/types/pagination.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope.egg-info/dependency_links.txt +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope.egg-info/entry_points.txt +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope.egg-info/not-zip-safe +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/dashscope.egg-info/top_level.txt +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/examples/01_atomic_capabilities/applications/apps.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/examples/01_atomic_capabilities/audio/README.md +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/examples/01_atomic_capabilities/audio/_common.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/examples/01_atomic_capabilities/audio/asr_file.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/examples/01_atomic_capabilities/audio/asr_http_stream.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/examples/01_atomic_capabilities/audio/asr_microphone.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/examples/01_atomic_capabilities/audio/asr_websocket.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/examples/01_atomic_capabilities/audio/connection_reuse.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/examples/01_atomic_capabilities/audio/direct_call/_common.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/examples/01_atomic_capabilities/audio/direct_call/asr_file.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/examples/01_atomic_capabilities/audio/direct_call/asr_http_stream.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/examples/01_atomic_capabilities/audio/direct_call/asr_microphone.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/examples/01_atomic_capabilities/audio/direct_call/asr_websocket.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/examples/01_atomic_capabilities/audio/direct_call/connection_reuse.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/examples/01_atomic_capabilities/audio/direct_call/realtime_omni.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/examples/01_atomic_capabilities/audio/direct_call/realtime_qwen_audio.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/examples/01_atomic_capabilities/audio/direct_call/realtime_translation.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/examples/01_atomic_capabilities/audio/direct_call/tts_http.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/examples/01_atomic_capabilities/audio/direct_call/tts_http_stream.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/examples/01_atomic_capabilities/audio/direct_call/tts_websocket.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/examples/01_atomic_capabilities/audio/direct_call/voice_clone.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/examples/01_atomic_capabilities/audio/realtime_live.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/examples/01_atomic_capabilities/audio/realtime_omni.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/examples/01_atomic_capabilities/audio/realtime_qwen_audio.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/examples/01_atomic_capabilities/audio/realtime_translation.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/examples/01_atomic_capabilities/audio/tingwu.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/examples/01_atomic_capabilities/audio/tts_http.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/examples/01_atomic_capabilities/audio/tts_http_stream.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/examples/01_atomic_capabilities/audio/tts_websocket.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/examples/01_atomic_capabilities/audio/voice_clone.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/examples/01_atomic_capabilities/decision/decision.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/examples/01_atomic_capabilities/embeddings/embeddings.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/examples/01_atomic_capabilities/files/files.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/examples/01_atomic_capabilities/fine_tuning/fine_tunes.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/examples/01_atomic_capabilities/fine_tuning/reinforcement_learning.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/examples/01_atomic_capabilities/image_video_synthesis/images.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/examples/01_atomic_capabilities/image_video_synthesis/videos.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/examples/01_atomic_capabilities/models/models.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/examples/01_atomic_capabilities/multimodal_vision/multimodal_chat.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/examples/01_atomic_capabilities/rerank/rerank.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/examples/01_atomic_capabilities/text_generation/chat.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/examples/01_atomic_capabilities/text_generation/tokenization.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/examples/02_advanced_engineering/circuit_breaker_retry.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/examples/02_advanced_engineering/client_side_cache.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/examples/02_advanced_engineering/local_mock_debugging.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/examples/03_agent_recipes/agentstudio.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/examples/03_agent_recipes/agentstudio_deployments.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/examples/03_agent_recipes/mcp_server_demo/README.md +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/examples/03_agent_recipes/mcp_server_demo/client_demo.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/examples/03_agent_recipes/mcp_server_demo/server.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/examples/03_agent_recipes/rag_expert_system.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/examples/03_agent_recipes/tool_call_loop.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/examples/04_real_world_scenarios/README.md +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/examples/04_real_world_scenarios/README_zh.md +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/examples/04_real_world_scenarios/customer_service_assistant.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/examples/04_real_world_scenarios/production_ready_rag_harness.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/examples/04_real_world_scenarios/realtime_audio_meeting_harness.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/examples/04_real_world_scenarios/ticket_triage_harness.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/examples/05_cli/cli_ci_harness.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/examples/05_cli/cli_output_and_errors.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/examples/legacy_1x/aio_generation/basic.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/examples/legacy_1x/aio_generation/custom_session.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/examples/legacy_1x/aio_generation/deep_research.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/examples/legacy_1x/aio_generation/reasoning.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/examples/legacy_1x/aio_generation/tool_calls.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/examples/legacy_1x/aio_image_synthesis.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/examples/legacy_1x/aio_multimodal_conversation/asr.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/examples/legacy_1x/aio_multimodal_conversation/image.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/examples/legacy_1x/aio_multimodal_conversation/ocr.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/examples/legacy_1x/aio_multimodal_conversation/tool_calls.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/examples/legacy_1x/aio_video_synthesis.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/examples/legacy_1x/application.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/examples/legacy_1x/assistant_api.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/examples/legacy_1x/assistant_api_file.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/examples/legacy_1x/assistant_api_simple.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/examples/legacy_1x/cv_models.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/examples/legacy_1x/generation/basic.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/examples/legacy_1x/generation/custom_session.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/examples/legacy_1x/generation/deep_research.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/examples/legacy_1x/generation/reasoning.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/examples/legacy_1x/generation/tool_calls.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/examples/legacy_1x/image_generation.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/examples/legacy_1x/image_synthesis.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/examples/legacy_1x/multimodal_conversation/asr.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/examples/legacy_1x/multimodal_conversation/image.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/examples/legacy_1x/multimodal_conversation/ocr.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/examples/legacy_1x/multimodal_conversation/reasoning.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/examples/legacy_1x/multimodal_conversation/tool_calls.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/examples/legacy_1x/multimodal_conversation/video.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/examples/legacy_1x/multimodal_embedding.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/examples/legacy_1x/qwen_asr.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/examples/legacy_1x/qwen_tts.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/examples/legacy_1x/set_region_example.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/examples/legacy_1x/text_rerank.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/examples/legacy_1x/tingwu_realtime.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/examples/legacy_1x/tingwu_usages.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/examples/legacy_1x/video_synthesis.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/pyproject.toml +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/setup.cfg +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/tests/test_agentic_rl_datasets_upload.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/tests/test_agentic_rl_fc_errors.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/tests/test_agentic_rl_review_regressions.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/tests/test_agentic_rl_script.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/tests/test_agentic_rl_server_hardening.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/tests/test_agentstudio_errors.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/tests/test_agentstudio_models.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/tests/test_agentstudio_protocol.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/tests/test_agentstudio_shim.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/tests/test_agentstudio_usage.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/tests/test_apps.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/tests/test_audio.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/tests/test_audio_connection.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/tests/test_audio_live_session.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/tests/test_audio_management.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/tests/test_audio_omni_session.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/tests/test_audio_samples.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/tests/test_audio_samples_direct_call.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/tests/test_audio_tts_http.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/tests/test_audio_tts_realtime.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/tests/test_audio_tts_session.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/tests/test_audio_ws_integration.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/tests/test_audio_ws_session.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/tests/test_base_url_routing.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/tests/test_chat.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/tests/test_chat_params.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/tests/test_config.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/tests/test_decision.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/tests/test_devkit_diagnosis.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/tests/test_devkit_mock.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/tests/test_error_registry.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/tests/test_errors.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/tests/test_files_models.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/tests/test_finetune_deployments.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/tests/test_http_pool.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/tests/test_images_videos.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/tests/test_jobs.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/tests/test_layer_decoupling.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/tests/test_legacy_import_aliases.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/tests/test_logging.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/tests/test_multimodal.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/tests/test_oss_upload.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/tests/test_package_root.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/tests/test_pagination.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/tests/test_parse_model.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/tests/test_protocols.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/tests/test_request_options.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/tests/test_resource_request_options.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/tests/test_response.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/tests/test_response_drift.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/tests/test_rl.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/tests/test_settings.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/tests/test_sse_comprehensive_verify.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/tests/test_tingwu.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/tests/test_tools_resources.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/tests/test_transport.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/tests/test_types_messages.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/tests/test_user_agent_suffix.py +0 -0
- {dashscope-2.1.1 → dashscope-2.1.3}/tests/test_ws_connection.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: dashscope
|
|
3
|
-
Version: 2.1.
|
|
3
|
+
Version: 2.1.3
|
|
4
4
|
Summary: dashscope client sdk library
|
|
5
5
|
Home-page: https://dashscope.aliyun.com/
|
|
6
6
|
Author: Alibaba Cloud
|
|
@@ -41,9 +41,6 @@ Requires-Dist: tiktoken
|
|
|
41
41
|
Requires-Dist: pydantic>=2.0
|
|
42
42
|
Requires-Dist: tenacity
|
|
43
43
|
Requires-Dist: PyYAML>=6.0
|
|
44
|
-
Requires-Dist: fastapi>=0.100
|
|
45
|
-
Requires-Dist: uvicorn>=0.20
|
|
46
|
-
Requires-Dist: opentelemetry-sdk>=1.20
|
|
47
44
|
Provides-Extra: expert
|
|
48
45
|
Requires-Dist: dashscope-agenticx[tui]<2,>=1.0.0; extra == "expert"
|
|
49
46
|
Provides-Extra: expert-anthropic
|
|
@@ -80,6 +77,10 @@ Requires-Dist: openai<4,>=1.30; extra == "acli-all"
|
|
|
80
77
|
Requires-Dist: sounddevice>=0.4; extra == "acli-all"
|
|
81
78
|
Requires-Dist: numpy>=1.20; extra == "acli-all"
|
|
82
79
|
Requires-Dist: opencv-python-headless>=4.5; extra == "acli-all"
|
|
80
|
+
Provides-Extra: agentic-rl
|
|
81
|
+
Requires-Dist: fastapi>=0.100; extra == "agentic-rl"
|
|
82
|
+
Requires-Dist: uvicorn>=0.20; extra == "agentic-rl"
|
|
83
|
+
Requires-Dist: opentelemetry-sdk>=1.20; extra == "agentic-rl"
|
|
83
84
|
Dynamic: author
|
|
84
85
|
Dynamic: author-email
|
|
85
86
|
Dynamic: classifier
|
|
@@ -125,10 +126,11 @@ The DashScope Python SDK is the official client for [Alibaba Cloud Model Studio
|
|
|
125
126
|
pip install -U dashscope
|
|
126
127
|
```
|
|
127
128
|
|
|
128
|
-
The base install covers SDK API calls, the `dashscope` CLI command, Agentic RL
|
|
129
|
+
The base install covers SDK API calls, the `dashscope` CLI command, Agentic RL job submission and reward/rollout authoring, and the local tokenizer. Python 3.9+ is required. Optional feature groups configure the AI assistant provided by `dashscope-agenticx`; the assistant requires Python 3.10+:
|
|
129
130
|
|
|
130
131
|
| Extra | Provides | Install |
|
|
131
132
|
|-------|----------|---------|
|
|
133
|
+
| `agentic-rl` | Agentic RL reward/rollout function server and OpenTelemetry tracing | `pip install "dashscope[agentic-rl]"` |
|
|
132
134
|
| `expert` | Interactive AI assistant (DashScope SDK Expert) | `pip install "dashscope[expert]"` |
|
|
133
135
|
| `expert-openai` | Run the assistant on an OpenAI-compatible model provider | `pip install "dashscope[expert-openai]"` |
|
|
134
136
|
| `expert-anthropic` | Run the assistant on an Anthropic model provider | `pip install "dashscope[expert-anthropic]"` |
|
|
@@ -28,10 +28,11 @@ The DashScope Python SDK is the official client for [Alibaba Cloud Model Studio
|
|
|
28
28
|
pip install -U dashscope
|
|
29
29
|
```
|
|
30
30
|
|
|
31
|
-
The base install covers SDK API calls, the `dashscope` CLI command, Agentic RL
|
|
31
|
+
The base install covers SDK API calls, the `dashscope` CLI command, Agentic RL job submission and reward/rollout authoring, and the local tokenizer. Python 3.9+ is required. Optional feature groups configure the AI assistant provided by `dashscope-agenticx`; the assistant requires Python 3.10+:
|
|
32
32
|
|
|
33
33
|
| Extra | Provides | Install |
|
|
34
34
|
|-------|----------|---------|
|
|
35
|
+
| `agentic-rl` | Agentic RL reward/rollout function server and OpenTelemetry tracing | `pip install "dashscope[agentic-rl]"` |
|
|
35
36
|
| `expert` | Interactive AI assistant (DashScope SDK Expert) | `pip install "dashscope[expert]"` |
|
|
36
37
|
| `expert-openai` | Run the assistant on an OpenAI-compatible model provider | `pip install "dashscope[expert-openai]"` |
|
|
37
38
|
| `expert-anthropic` | Run the assistant on an Anthropic model provider | `pip install "dashscope[expert-anthropic]"` |
|
|
@@ -51,6 +51,11 @@ from .pagination import (
|
|
|
51
51
|
CursorPage,
|
|
52
52
|
)
|
|
53
53
|
from .types import (
|
|
54
|
+
DynamicWorkflow,
|
|
55
|
+
WorkflowResourceReference,
|
|
56
|
+
WorkflowInlineAgentsConfig,
|
|
57
|
+
WorkflowConfig,
|
|
58
|
+
ReuseWorkflowsConfig,
|
|
54
59
|
Memory,
|
|
55
60
|
MemoryStore,
|
|
56
61
|
MemoryVersion,
|
|
@@ -70,6 +75,10 @@ from .types import (
|
|
|
70
75
|
user_tool_result,
|
|
71
76
|
)
|
|
72
77
|
from .types.params import (
|
|
78
|
+
DynamicWorkflowCreateParams,
|
|
79
|
+
DynamicWorkflowUpdateParams,
|
|
80
|
+
DynamicWorkflowListParams,
|
|
81
|
+
DynamicWorkflowVersionListParams,
|
|
73
82
|
AgentCreateParams,
|
|
74
83
|
AgentUpdateParams,
|
|
75
84
|
SessionCreateParams,
|
|
@@ -84,6 +93,9 @@ from .types.params import (
|
|
|
84
93
|
WebhookEventListParams,
|
|
85
94
|
)
|
|
86
95
|
from .constants import (
|
|
96
|
+
DynamicWorkflowType,
|
|
97
|
+
DynamicWorkflowStatus,
|
|
98
|
+
WorkflowPermissionType,
|
|
87
99
|
PermissionPolicyType,
|
|
88
100
|
SSEEventType,
|
|
89
101
|
SessionStatus,
|
|
@@ -95,6 +107,18 @@ from .constants import (
|
|
|
95
107
|
)
|
|
96
108
|
|
|
97
109
|
__all__ = [
|
|
110
|
+
"DynamicWorkflow",
|
|
111
|
+
"WorkflowResourceReference",
|
|
112
|
+
"WorkflowInlineAgentsConfig",
|
|
113
|
+
"WorkflowConfig",
|
|
114
|
+
"ReuseWorkflowsConfig",
|
|
115
|
+
"DynamicWorkflowCreateParams",
|
|
116
|
+
"DynamicWorkflowUpdateParams",
|
|
117
|
+
"DynamicWorkflowListParams",
|
|
118
|
+
"DynamicWorkflowVersionListParams",
|
|
119
|
+
"DynamicWorkflowType",
|
|
120
|
+
"DynamicWorkflowStatus",
|
|
121
|
+
"WorkflowPermissionType",
|
|
98
122
|
# client
|
|
99
123
|
"Client",
|
|
100
124
|
"AsyncClient",
|
|
@@ -30,6 +30,10 @@ from dashscope.applications.agentstudio.resources.deployments import (
|
|
|
30
30
|
DeploymentRuns,
|
|
31
31
|
Deployments,
|
|
32
32
|
)
|
|
33
|
+
from dashscope.applications.agentstudio.resources.dynamic_workflows import (
|
|
34
|
+
AsyncDynamicWorkflows,
|
|
35
|
+
DynamicWorkflows,
|
|
36
|
+
)
|
|
33
37
|
from dashscope.applications.agentstudio.resources.environments import (
|
|
34
38
|
Environments,
|
|
35
39
|
AsyncEnvironments,
|
|
@@ -207,6 +211,7 @@ class Client:
|
|
|
207
211
|
exceptions_module=_exceptions_module,
|
|
208
212
|
)
|
|
209
213
|
self.agents = Agents(self)
|
|
214
|
+
self.dynamic_workflows = DynamicWorkflows(self)
|
|
210
215
|
self.deployments = Deployments(self)
|
|
211
216
|
self.deployment_runs = DeploymentRuns(self)
|
|
212
217
|
self.sessions = Sessions(self)
|
|
@@ -290,6 +295,7 @@ class AsyncClient:
|
|
|
290
295
|
exceptions_module=_exceptions_module,
|
|
291
296
|
)
|
|
292
297
|
self.agents = AsyncAgents(self)
|
|
298
|
+
self.dynamic_workflows = AsyncDynamicWorkflows(self)
|
|
293
299
|
self.deployments = AsyncDeployments(self)
|
|
294
300
|
self.deployment_runs = AsyncDeploymentRuns(self)
|
|
295
301
|
self.sessions = AsyncSessions(self)
|
|
@@ -31,6 +31,29 @@ AGENTSTUDIO_MAX_RETRIES = 2
|
|
|
31
31
|
# ---------------------------------------------------------------------------
|
|
32
32
|
|
|
33
33
|
|
|
34
|
+
class WorkflowPermissionType(StrEnum):
|
|
35
|
+
"""Permission switches for Dynamic Workflow capabilities."""
|
|
36
|
+
|
|
37
|
+
# Allow the configured capability.
|
|
38
|
+
ENABLED = "enabled"
|
|
39
|
+
# Disable the configured capability.
|
|
40
|
+
DISABLED = "disabled"
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
class DynamicWorkflowType(StrEnum):
|
|
44
|
+
"""Resource type returned by the Dynamic Workflow management API."""
|
|
45
|
+
|
|
46
|
+
# A reusable JavaScript Workflow definition.
|
|
47
|
+
DYNAMIC_WORKFLOW = "dynamic_workflow"
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
class DynamicWorkflowStatus(StrEnum):
|
|
51
|
+
"""Publication status, independent of the archived flag."""
|
|
52
|
+
|
|
53
|
+
# The version is published and immutable.
|
|
54
|
+
PUBLISHED = "published"
|
|
55
|
+
|
|
56
|
+
|
|
34
57
|
class SSEEventType(StrEnum):
|
|
35
58
|
"""Server-sent event types (the value of ``event.type`` in SSE payloads).
|
|
36
59
|
|
{dashscope-2.1.1 → dashscope-2.1.3}/dashscope/applications/agentstudio/resources/__init__.py
RENAMED
|
@@ -19,6 +19,10 @@ from dashscope.applications.agentstudio.resources.agents import (
|
|
|
19
19
|
Agents,
|
|
20
20
|
AsyncAgents,
|
|
21
21
|
)
|
|
22
|
+
from dashscope.applications.agentstudio.resources.dynamic_workflows import (
|
|
23
|
+
AsyncDynamicWorkflows,
|
|
24
|
+
DynamicWorkflows,
|
|
25
|
+
)
|
|
22
26
|
from dashscope.applications.agentstudio.resources.deployments import (
|
|
23
27
|
AsyncDeploymentRuns,
|
|
24
28
|
AsyncDeployments,
|
|
@@ -71,6 +75,8 @@ from dashscope.applications.agentstudio.resources.webhook_endpoints import (
|
|
|
71
75
|
__all__ = [
|
|
72
76
|
"Agents",
|
|
73
77
|
"AsyncAgents",
|
|
78
|
+
"DynamicWorkflows",
|
|
79
|
+
"AsyncDynamicWorkflows",
|
|
74
80
|
"Deployments",
|
|
75
81
|
"AsyncDeployments",
|
|
76
82
|
"DeploymentRuns",
|
{dashscope-2.1.1 → dashscope-2.1.3}/dashscope/applications/agentstudio/resources/_helpers.py
RENAMED
|
@@ -12,6 +12,7 @@ from dashscope.applications.agentstudio.types import (
|
|
|
12
12
|
Credential,
|
|
13
13
|
Deployment,
|
|
14
14
|
DeploymentRun,
|
|
15
|
+
DynamicWorkflow,
|
|
15
16
|
Environment,
|
|
16
17
|
File,
|
|
17
18
|
Memory,
|
|
@@ -40,6 +41,10 @@ def _coerce_agent(payload: Mapping[str, Any]) -> Agent:
|
|
|
40
41
|
return Agent(**dict(payload))
|
|
41
42
|
|
|
42
43
|
|
|
44
|
+
def _coerce_dynamic_workflow(payload: Mapping[str, Any]) -> DynamicWorkflow:
|
|
45
|
+
return DynamicWorkflow(**dict(payload))
|
|
46
|
+
|
|
47
|
+
|
|
43
48
|
def _coerce_agent_version(payload: Mapping[str, Any]) -> AgentVersion:
|
|
44
49
|
return AgentVersion(**dict(payload))
|
|
45
50
|
|
|
@@ -0,0 +1,295 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Copyright (c) Alibaba, Inc. and its affiliates.
|
|
3
|
+
"""Published Dynamic Workflow definitions and fixed versions."""
|
|
4
|
+
|
|
5
|
+
from __future__ import annotations
|
|
6
|
+
|
|
7
|
+
from typing import Any, Mapping, Optional
|
|
8
|
+
|
|
9
|
+
from dashscope.applications.agentstudio.pagination import (
|
|
10
|
+
AsyncCursorPage,
|
|
11
|
+
CursorPage,
|
|
12
|
+
build_page,
|
|
13
|
+
)
|
|
14
|
+
from dashscope.applications.agentstudio.resources._helpers import (
|
|
15
|
+
_coerce_dynamic_workflow,
|
|
16
|
+
)
|
|
17
|
+
from dashscope.applications.agentstudio.types import DynamicWorkflow
|
|
18
|
+
from dashscope.applications.agentstudio.types.params import (
|
|
19
|
+
DynamicWorkflowCreateParams,
|
|
20
|
+
DynamicWorkflowListParams,
|
|
21
|
+
DynamicWorkflowUpdateParams,
|
|
22
|
+
DynamicWorkflowVersionListParams,
|
|
23
|
+
_NOT_GIVEN,
|
|
24
|
+
)
|
|
25
|
+
|
|
26
|
+
# Collection path relative to the shared AgentStudio transport base URL.
|
|
27
|
+
_PATH_DYNAMIC_WORKFLOWS = "/dynamic_workflows"
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
class DynamicWorkflows:
|
|
31
|
+
"""Manage published definitions; execution is initiated by Agent tools."""
|
|
32
|
+
|
|
33
|
+
def __init__(self, client) -> None:
|
|
34
|
+
self._client = client
|
|
35
|
+
|
|
36
|
+
def create(
|
|
37
|
+
self,
|
|
38
|
+
*,
|
|
39
|
+
name: str,
|
|
40
|
+
script: str,
|
|
41
|
+
description: Optional[str] = None,
|
|
42
|
+
input_schema: Optional[Mapping[str, Any]] = None,
|
|
43
|
+
) -> DynamicWorkflow:
|
|
44
|
+
body = DynamicWorkflowCreateParams(
|
|
45
|
+
name=name,
|
|
46
|
+
script=script,
|
|
47
|
+
description=description,
|
|
48
|
+
input_schema=input_schema,
|
|
49
|
+
).to_dict()
|
|
50
|
+
resp = self._client.transport.request(
|
|
51
|
+
"POST",
|
|
52
|
+
_PATH_DYNAMIC_WORKFLOWS,
|
|
53
|
+
json=body,
|
|
54
|
+
)
|
|
55
|
+
return _coerce_dynamic_workflow(resp.data)
|
|
56
|
+
|
|
57
|
+
def retrieve(self, workflow_id: str) -> DynamicWorkflow:
|
|
58
|
+
resp = self._client.transport.request(
|
|
59
|
+
"GET",
|
|
60
|
+
f"{_PATH_DYNAMIC_WORKFLOWS}/{workflow_id}",
|
|
61
|
+
)
|
|
62
|
+
return _coerce_dynamic_workflow(resp.data)
|
|
63
|
+
|
|
64
|
+
def update(
|
|
65
|
+
self,
|
|
66
|
+
workflow_id: str,
|
|
67
|
+
*,
|
|
68
|
+
name: Optional[str] = None,
|
|
69
|
+
script: Optional[str] = None,
|
|
70
|
+
description: Any = _NOT_GIVEN,
|
|
71
|
+
input_schema: Any = _NOT_GIVEN,
|
|
72
|
+
) -> DynamicWorkflow:
|
|
73
|
+
"""Omitted fields stay unchanged; None clears description or schema."""
|
|
74
|
+
body = DynamicWorkflowUpdateParams(
|
|
75
|
+
name=name,
|
|
76
|
+
script=script,
|
|
77
|
+
description=description,
|
|
78
|
+
input_schema=input_schema,
|
|
79
|
+
).to_dict()
|
|
80
|
+
resp = self._client.transport.request(
|
|
81
|
+
"POST",
|
|
82
|
+
f"{_PATH_DYNAMIC_WORKFLOWS}/{workflow_id}",
|
|
83
|
+
json=body,
|
|
84
|
+
)
|
|
85
|
+
return _coerce_dynamic_workflow(resp.data)
|
|
86
|
+
|
|
87
|
+
def archive(self, workflow_id: str) -> DynamicWorkflow:
|
|
88
|
+
resp = self._client.transport.request(
|
|
89
|
+
"POST",
|
|
90
|
+
f"{_PATH_DYNAMIC_WORKFLOWS}/{workflow_id}/archive",
|
|
91
|
+
)
|
|
92
|
+
return _coerce_dynamic_workflow(resp.data)
|
|
93
|
+
|
|
94
|
+
def list(
|
|
95
|
+
self,
|
|
96
|
+
*,
|
|
97
|
+
limit: Optional[int] = None,
|
|
98
|
+
page: Optional[str] = None,
|
|
99
|
+
include_archived: Optional[bool] = None,
|
|
100
|
+
) -> CursorPage[DynamicWorkflow]:
|
|
101
|
+
params = DynamicWorkflowListParams(
|
|
102
|
+
limit=limit,
|
|
103
|
+
page=page,
|
|
104
|
+
include_archived=include_archived,
|
|
105
|
+
).to_dict()
|
|
106
|
+
resp = self._client.transport.request(
|
|
107
|
+
"GET",
|
|
108
|
+
_PATH_DYNAMIC_WORKFLOWS,
|
|
109
|
+
params=params,
|
|
110
|
+
)
|
|
111
|
+
return build_page(
|
|
112
|
+
payload=resp.data,
|
|
113
|
+
item_factory=_coerce_dynamic_workflow,
|
|
114
|
+
request_id=resp.request_id,
|
|
115
|
+
fetch_next=lambda nxt: self.list(
|
|
116
|
+
limit=limit,
|
|
117
|
+
page=nxt,
|
|
118
|
+
include_archived=include_archived,
|
|
119
|
+
),
|
|
120
|
+
)
|
|
121
|
+
|
|
122
|
+
def list_versions(
|
|
123
|
+
self,
|
|
124
|
+
workflow_id: str,
|
|
125
|
+
*,
|
|
126
|
+
limit: Optional[int] = None,
|
|
127
|
+
page: Optional[str] = None,
|
|
128
|
+
) -> CursorPage[DynamicWorkflow]:
|
|
129
|
+
params = DynamicWorkflowVersionListParams(
|
|
130
|
+
limit=limit,
|
|
131
|
+
page=page,
|
|
132
|
+
).to_dict()
|
|
133
|
+
resp = self._client.transport.request(
|
|
134
|
+
"GET",
|
|
135
|
+
f"{_PATH_DYNAMIC_WORKFLOWS}/{workflow_id}/versions",
|
|
136
|
+
params=params,
|
|
137
|
+
)
|
|
138
|
+
return build_page(
|
|
139
|
+
payload=resp.data,
|
|
140
|
+
item_factory=_coerce_dynamic_workflow,
|
|
141
|
+
request_id=resp.request_id,
|
|
142
|
+
fetch_next=lambda nxt: self.list_versions(
|
|
143
|
+
workflow_id,
|
|
144
|
+
limit=limit,
|
|
145
|
+
page=nxt,
|
|
146
|
+
),
|
|
147
|
+
)
|
|
148
|
+
|
|
149
|
+
def retrieve_version(
|
|
150
|
+
self,
|
|
151
|
+
workflow_id: str,
|
|
152
|
+
version: int,
|
|
153
|
+
) -> DynamicWorkflow:
|
|
154
|
+
resp = self._client.transport.request(
|
|
155
|
+
"GET",
|
|
156
|
+
f"{_PATH_DYNAMIC_WORKFLOWS}/{workflow_id}/versions/{version}",
|
|
157
|
+
)
|
|
158
|
+
return _coerce_dynamic_workflow(resp.data)
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
class AsyncDynamicWorkflows:
|
|
162
|
+
"""Async management of published definitions and fixed versions."""
|
|
163
|
+
|
|
164
|
+
def __init__(self, client) -> None:
|
|
165
|
+
self._client = client
|
|
166
|
+
|
|
167
|
+
async def create(
|
|
168
|
+
self,
|
|
169
|
+
*,
|
|
170
|
+
name: str,
|
|
171
|
+
script: str,
|
|
172
|
+
description: Optional[str] = None,
|
|
173
|
+
input_schema: Optional[Mapping[str, Any]] = None,
|
|
174
|
+
) -> DynamicWorkflow:
|
|
175
|
+
body = DynamicWorkflowCreateParams(
|
|
176
|
+
name=name,
|
|
177
|
+
script=script,
|
|
178
|
+
description=description,
|
|
179
|
+
input_schema=input_schema,
|
|
180
|
+
).to_dict()
|
|
181
|
+
resp = await self._client.transport.request(
|
|
182
|
+
"POST",
|
|
183
|
+
_PATH_DYNAMIC_WORKFLOWS,
|
|
184
|
+
json=body,
|
|
185
|
+
)
|
|
186
|
+
return _coerce_dynamic_workflow(resp.data)
|
|
187
|
+
|
|
188
|
+
async def retrieve(self, workflow_id: str) -> DynamicWorkflow:
|
|
189
|
+
resp = await self._client.transport.request(
|
|
190
|
+
"GET",
|
|
191
|
+
f"{_PATH_DYNAMIC_WORKFLOWS}/{workflow_id}",
|
|
192
|
+
)
|
|
193
|
+
return _coerce_dynamic_workflow(resp.data)
|
|
194
|
+
|
|
195
|
+
async def update(
|
|
196
|
+
self,
|
|
197
|
+
workflow_id: str,
|
|
198
|
+
*,
|
|
199
|
+
name: Optional[str] = None,
|
|
200
|
+
script: Optional[str] = None,
|
|
201
|
+
description: Any = _NOT_GIVEN,
|
|
202
|
+
input_schema: Any = _NOT_GIVEN,
|
|
203
|
+
) -> DynamicWorkflow:
|
|
204
|
+
"""Omitted fields stay unchanged; None clears description or schema."""
|
|
205
|
+
body = DynamicWorkflowUpdateParams(
|
|
206
|
+
name=name,
|
|
207
|
+
script=script,
|
|
208
|
+
description=description,
|
|
209
|
+
input_schema=input_schema,
|
|
210
|
+
).to_dict()
|
|
211
|
+
resp = await self._client.transport.request(
|
|
212
|
+
"POST",
|
|
213
|
+
f"{_PATH_DYNAMIC_WORKFLOWS}/{workflow_id}",
|
|
214
|
+
json=body,
|
|
215
|
+
)
|
|
216
|
+
return _coerce_dynamic_workflow(resp.data)
|
|
217
|
+
|
|
218
|
+
async def archive(self, workflow_id: str) -> DynamicWorkflow:
|
|
219
|
+
resp = await self._client.transport.request(
|
|
220
|
+
"POST",
|
|
221
|
+
f"{_PATH_DYNAMIC_WORKFLOWS}/{workflow_id}/archive",
|
|
222
|
+
)
|
|
223
|
+
return _coerce_dynamic_workflow(resp.data)
|
|
224
|
+
|
|
225
|
+
async def list(
|
|
226
|
+
self,
|
|
227
|
+
*,
|
|
228
|
+
limit: Optional[int] = None,
|
|
229
|
+
page: Optional[str] = None,
|
|
230
|
+
include_archived: Optional[bool] = None,
|
|
231
|
+
) -> AsyncCursorPage[DynamicWorkflow]:
|
|
232
|
+
params = DynamicWorkflowListParams(
|
|
233
|
+
limit=limit,
|
|
234
|
+
page=page,
|
|
235
|
+
include_archived=include_archived,
|
|
236
|
+
).to_dict()
|
|
237
|
+
resp = await self._client.transport.request(
|
|
238
|
+
"GET",
|
|
239
|
+
_PATH_DYNAMIC_WORKFLOWS,
|
|
240
|
+
params=params,
|
|
241
|
+
)
|
|
242
|
+
|
|
243
|
+
async def fetch_next(nxt: str) -> AsyncCursorPage[DynamicWorkflow]:
|
|
244
|
+
return await self.list(
|
|
245
|
+
limit=limit,
|
|
246
|
+
page=nxt,
|
|
247
|
+
include_archived=include_archived,
|
|
248
|
+
)
|
|
249
|
+
|
|
250
|
+
return build_page(
|
|
251
|
+
payload=resp.data,
|
|
252
|
+
item_factory=_coerce_dynamic_workflow,
|
|
253
|
+
request_id=resp.request_id,
|
|
254
|
+
page_cls=AsyncCursorPage,
|
|
255
|
+
fetch_next=fetch_next,
|
|
256
|
+
)
|
|
257
|
+
|
|
258
|
+
async def list_versions(
|
|
259
|
+
self,
|
|
260
|
+
workflow_id: str,
|
|
261
|
+
*,
|
|
262
|
+
limit: Optional[int] = None,
|
|
263
|
+
page: Optional[str] = None,
|
|
264
|
+
) -> AsyncCursorPage[DynamicWorkflow]:
|
|
265
|
+
params = DynamicWorkflowVersionListParams(
|
|
266
|
+
limit=limit,
|
|
267
|
+
page=page,
|
|
268
|
+
).to_dict()
|
|
269
|
+
resp = await self._client.transport.request(
|
|
270
|
+
"GET",
|
|
271
|
+
f"{_PATH_DYNAMIC_WORKFLOWS}/{workflow_id}/versions",
|
|
272
|
+
params=params,
|
|
273
|
+
)
|
|
274
|
+
|
|
275
|
+
async def fetch_next(nxt: str) -> AsyncCursorPage[DynamicWorkflow]:
|
|
276
|
+
return await self.list_versions(workflow_id, limit=limit, page=nxt)
|
|
277
|
+
|
|
278
|
+
return build_page(
|
|
279
|
+
payload=resp.data,
|
|
280
|
+
item_factory=_coerce_dynamic_workflow,
|
|
281
|
+
request_id=resp.request_id,
|
|
282
|
+
page_cls=AsyncCursorPage,
|
|
283
|
+
fetch_next=fetch_next,
|
|
284
|
+
)
|
|
285
|
+
|
|
286
|
+
async def retrieve_version(
|
|
287
|
+
self,
|
|
288
|
+
workflow_id: str,
|
|
289
|
+
version: int,
|
|
290
|
+
) -> DynamicWorkflow:
|
|
291
|
+
resp = await self._client.transport.request(
|
|
292
|
+
"GET",
|
|
293
|
+
f"{_PATH_DYNAMIC_WORKFLOWS}/{workflow_id}/versions/{version}",
|
|
294
|
+
)
|
|
295
|
+
return _coerce_dynamic_workflow(resp.data)
|
|
@@ -29,6 +29,11 @@ from dashscope.applications.agentstudio.types.models import ( # noqa: F401
|
|
|
29
29
|
parse_content_blocks,
|
|
30
30
|
Agent,
|
|
31
31
|
AgentVersion,
|
|
32
|
+
DynamicWorkflow,
|
|
33
|
+
WorkflowResourceReference,
|
|
34
|
+
WorkflowInlineAgentsConfig,
|
|
35
|
+
WorkflowConfig,
|
|
36
|
+
ReuseWorkflowsConfig,
|
|
32
37
|
MultiAgentConfig,
|
|
33
38
|
MultiAgentRosterEntry,
|
|
34
39
|
ModelConfig,
|
|
@@ -447,6 +447,76 @@ class MultiAgentRosterEntry(BaseModel):
|
|
|
447
447
|
super().__init__(**kwargs)
|
|
448
448
|
|
|
449
449
|
|
|
450
|
+
class WorkflowResourceReference(BaseModel):
|
|
451
|
+
"""An Agent or Workflow reference pinned to a positive integer version."""
|
|
452
|
+
|
|
453
|
+
_fields = ("id", "version")
|
|
454
|
+
|
|
455
|
+
|
|
456
|
+
class WorkflowInlineAgentsConfig(BaseModel):
|
|
457
|
+
"""Permission to use the Session's default Agent in an inline script."""
|
|
458
|
+
|
|
459
|
+
_fields = ("type",)
|
|
460
|
+
|
|
461
|
+
|
|
462
|
+
class WorkflowConfig(BaseModel):
|
|
463
|
+
"""Inline Workflow permissions; omitted settings use server defaults."""
|
|
464
|
+
|
|
465
|
+
_fields = ("type", "inline_agents", "predefined_agents")
|
|
466
|
+
|
|
467
|
+
def __init__(self, **kwargs: Any) -> None:
|
|
468
|
+
inline_agents = kwargs.get("inline_agents")
|
|
469
|
+
if isinstance(inline_agents, Mapping):
|
|
470
|
+
kwargs["inline_agents"] = WorkflowInlineAgentsConfig(
|
|
471
|
+
**dict(inline_agents),
|
|
472
|
+
)
|
|
473
|
+
agents = kwargs.get("predefined_agents")
|
|
474
|
+
if isinstance(agents, list):
|
|
475
|
+
kwargs["predefined_agents"] = [
|
|
476
|
+
WorkflowResourceReference(**dict(agent))
|
|
477
|
+
if isinstance(agent, Mapping)
|
|
478
|
+
else agent
|
|
479
|
+
for agent in agents
|
|
480
|
+
]
|
|
481
|
+
super().__init__(**kwargs)
|
|
482
|
+
|
|
483
|
+
|
|
484
|
+
class ReuseWorkflowsConfig(BaseModel):
|
|
485
|
+
"""Permission to reuse the listed published Workflow versions."""
|
|
486
|
+
|
|
487
|
+
_fields = ("type", "workflows")
|
|
488
|
+
|
|
489
|
+
def __init__(self, **kwargs: Any) -> None:
|
|
490
|
+
workflows = kwargs.get("workflows")
|
|
491
|
+
if isinstance(workflows, list):
|
|
492
|
+
kwargs["workflows"] = [
|
|
493
|
+
WorkflowResourceReference(**dict(workflow))
|
|
494
|
+
if isinstance(workflow, Mapping)
|
|
495
|
+
else workflow
|
|
496
|
+
for workflow in workflows
|
|
497
|
+
]
|
|
498
|
+
super().__init__(**kwargs)
|
|
499
|
+
|
|
500
|
+
|
|
501
|
+
class DynamicWorkflow(BaseModel):
|
|
502
|
+
"""A published definition, including script and input_schema in lists."""
|
|
503
|
+
|
|
504
|
+
_fields = (
|
|
505
|
+
"id",
|
|
506
|
+
"type",
|
|
507
|
+
"name",
|
|
508
|
+
"description",
|
|
509
|
+
"status",
|
|
510
|
+
"archived",
|
|
511
|
+
"version",
|
|
512
|
+
"script",
|
|
513
|
+
"input_schema",
|
|
514
|
+
"created_at",
|
|
515
|
+
"updated_at",
|
|
516
|
+
"request_id",
|
|
517
|
+
)
|
|
518
|
+
|
|
519
|
+
|
|
450
520
|
class MultiAgentConfig(BaseModel):
|
|
451
521
|
"""Multi-agent coordinator config (the ``multiagent`` field).
|
|
452
522
|
|
|
@@ -458,7 +528,7 @@ class MultiAgentConfig(BaseModel):
|
|
|
458
528
|
a session is created; changes only affect new sessions.
|
|
459
529
|
"""
|
|
460
530
|
|
|
461
|
-
_fields = ("type", "agents")
|
|
531
|
+
_fields = ("type", "agents", "workflows", "reuse_workflows")
|
|
462
532
|
|
|
463
533
|
def __init__(self, **kwargs: Any) -> None:
|
|
464
534
|
if not kwargs.get("type"):
|
|
@@ -475,6 +545,14 @@ class MultiAgentConfig(BaseModel):
|
|
|
475
545
|
]
|
|
476
546
|
elif agents is None:
|
|
477
547
|
kwargs["agents"] = []
|
|
548
|
+
workflows = kwargs.get("workflows")
|
|
549
|
+
if isinstance(workflows, Mapping):
|
|
550
|
+
kwargs["workflows"] = WorkflowConfig(**dict(workflows))
|
|
551
|
+
reuse_workflows = kwargs.get("reuse_workflows")
|
|
552
|
+
if isinstance(reuse_workflows, Mapping):
|
|
553
|
+
kwargs["reuse_workflows"] = ReuseWorkflowsConfig(
|
|
554
|
+
**dict(reuse_workflows),
|
|
555
|
+
)
|
|
478
556
|
super().__init__(**kwargs)
|
|
479
557
|
|
|
480
558
|
|