Skip to content

feat(agentstudio): add dynamic workflow APIs and agent configuration - #251

Merged
luk384090-cloud merged 2 commits into
dashscope:mainfrom
coolsky99:feature/agentstudio-dynamic-workflow
Dec 1, 2026
Merged

luk384090-cloud merged 2 commits into
dashscope:mainfrom
coolsky99:feature/agentstudio-dynamic-workflow

Conversation

@coolsky99

@coolsky99 coolsky99 commented Nov 30, 2026 •

Copy link
Copy Markdown

Description

Adds Dynamic Workflow management through Client.dynamic_workflows and AsyncClient.dynamic_workflows, plus typed creation/reuse permissions and fixed-version bindings in Agent configuration. The legacy dashscope.agentstudio import uses the same resource implementation.

Provides create, retrieve, partial update, list, archive, version listing, and fixed-version retrieval. Cursor pagination retains filters, and updates distinguish omitted fields from explicit nulls. English and Chinese references and recipes document the operations and link to the runnable agentstudio_dynamic_workflows.py example, which demonstrates Agent fixed-version bindings and cleanup.

Related Issue: None.

Security Considerations: Authentication uses the existing transport. Credentials are supplied through environment variables during regression; no credentials or production resource contents are included in this PR.

Type of Change

  • New feature
  • Documentation

Component(s) Affected

  • Application
  • Documentation
  • Tests

Checklist

  • Pre-commit hooks pass
  • Tests pass locally
  • Documentation updated
  • Ready for review

Testing

  • Production regression on 2026-11-30: all 45 checks passed across synchronous, asynchronous, and legacy entry points.
  • Covered the seven management operations, immutable published versions, omitted/null/empty values, pagination, archive filtering, error responses, Agent configuration round trips, and all four creation/reuse permission combinations.
  • A real Agent invoked a bound Workflow at version 1 after its latest script changed. The run completed and its returned JSON matched version 1 exactly.
  • Dedicated Workflow and Agent resources were archived and the Session was deleted; cleanup was independently verified. No protocol differences were found.
  • 57 new mock cases passed across synchronous, asynchronous, and legacy imports, including an execution of the full recipe through mock HTTP. They cover serialization, independent omitted/null/empty fields, cursor encoding and filter retention, archive paths, fixed versions, and typed Agent configuration hydration.
  • AgentStudio and example regression: 868 tests passed. Configured pre-commit checks passed for changed files, including mypy, black, flake8, and pylint.
  • Both language sites passed mkdocs build --strict. Wheel and source distribution builds passed; the source distribution includes the new recipe.

@luk384090-cloud
luk384090-cloud merged commit ad54d65 into dashscope:main Dec 1, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants