Skip to content

v2.1.3

Latest

Choose a tag to compare

@github-actions github-actions released this 01 Dec 07:59
1bd6a88

v2.1.3 Release Notes

πŸš€ Highlights

  • AgentStudio Dynamic Workflows β€” a brand-new dynamic_workflows resource (sync and async) for managing dynamic workflows and their versions, plus extended agent configuration support.
  • Slimmer core install β€” RL server/observability dependencies (fastapi, uvicorn, opentelemetry-sdk) moved out of the core package into the new agentic-rl extra.
  • CLI works without click β€” the CLI no longer fails to import or produce output when click is not installed.

✨ Features

  • agentstudio: dynamic workflow APIs and agent configuration (#251)
    • New client.dynamic_workflows resource with full lifecycle management: create, retrieve, update, archive, and list with cursor-based pagination.
    • Version management APIs: list_versions (paginated) and retrieve_version for inspecting workflow history.
    • Fully typed request params and response models (DynamicWorkflow and related types) exported from dashscope.applications.agentstudio.
    • Async parity via AsyncDynamicWorkflows, including async cursor pages.
    • Extended agent configuration options in the AgentStudio models.
    • English and Chinese reference documentation updated with usage examples.

♻️ Refactoring

  • deps: move RL server/observability deps to the agentic-rl extra (#250)
    • fastapi, uvicorn and opentelemetry-sdk are only used by the Agentic RL function server and observability; they are no longer installed with the core package.
    • Inference-only users get a smaller dependency tree with fewer resolution conflicts in locked environments.
    • Install the server dependencies explicitly when needed: pip install dashscope[agentic-rl].
    • The RL function server raises a clear ImportError with install guidance when the extra is missing; OpenTelemetry tracing degrades gracefully without it.
    • README (EN/ZH), docs index and Agentic RL reference pages updated to document the extra.

πŸ› Bug Fixes

  • cli: enable CLI import and output without real click installed (#252)
    • dashscope/cli/errors.py now imports click conditionally and defines exception classes gracefully when it is absent, preventing ModuleNotFoundError on CLI import.
    • dashscope/cli/output.py switched from click.echo to typer.echo, so JSON, NDJSON and YAML outputs are emitted consistently without wrapping issues.
    • Added regression tests that simulate a click-less environment by blocking click imports in subprocesses, verifying CLI modules load and operate correctly.

πŸ“š Documentation

  • AgentStudio reference (EN/ZH): dynamic workflow usage and agent configuration examples.
  • Agentic RL reference and docs index (EN/ZH): agentic-rl extra installation instructions.
  • README / README_zh: updated install guidance for the slimmer core package.

πŸ”§ CI & Chore

  • version: bump version to 2.1.3.
  • agentstudio: test coverage for dynamic workflows.
  • style: satisfy black formatting for the RL server import guard.
  • cli: trailing newline fix in test_clickless_import.py.

⚠️ Breaking Changes

None.

Note: users running the Agentic RL function server must now install the extra explicitly (pip install dashscope[agentic-rl]); a clear ImportError with guidance is raised if it is missing.


πŸ“¦ Installation

pip install --upgrade dashscope==2.1.3

# Optional: Agentic RL function server & observability dependencies
pip install --upgrade "dashscope[agentic-rl]==2.1.3"

πŸ‘₯ Contributors

Thanks to all the contributors who made this release possible:

πŸ“ Full Changelog

v2.1.2...v2.1.3