Skip to content

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

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

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

Conversation

@coolsky99

@coolsky99 coolsky99 commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Adds Dynamic Workflow management to AgentStudioClient.dynamicWorkflows() and typed Workflow permissions and fixed-version bindings to Agent configuration.

The seven resource operations are available synchronously and through CompletableFuture: create, retrieve, partial update, list, archive, list versions, and retrieve a fixed version. Cursor pagination preserves filters. Update parameters distinguish omitted fields from explicit nulls when clearing descriptions or input schemas.

The implementation uses the current com.alibaba.dashscope.applications.agentstudio package and existing transport, authentication, and asynchronous helpers. English and Chinese AgentStudio guides include the runnable AgentStudioDynamicWorkflows recipe, which manages definitions and versions, configures Agent bindings, and archives its dedicated resources. The recipe is registered in the existing example dry-run suite.

Validation:

  • Production regression on 2026-11-30: all 40 Java checks passed, including synchronous/asynchronous operations, version immutability, null handling, pagination, archive behavior, error responses, and all four Agent permission combinations. Dedicated test resources were cleaned up and verified.
  • Production integration through the companion Python SDK also executed a bound Workflow and verified its fixed-version output.
  • JDK 8 clean build and 161 AgentStudio tests passed, including nine new MockWebServer tests. They inspect actual HTTP bodies and paths for serialization, omitted/null/empty values, independent field clearing, cursor encoding and filter retention, fixed versions, archive behavior, and Agent configuration hydration.
  • The complete Java example dry-run suite passed, including the new Dynamic Workflow recipe. Both language sites passed mkdocs build --strict.
  • Repository CI formatter check passed. The configured Git hooks were executed; the global Lefthook hook has no repository tasks configured.
  • The 3.0.0 artifact contains 1,806 class files with maximum major version 52. Effective artifact/dependency versions contain no SNAPSHOT versions.

@luk384090-cloud
luk384090-cloud merged commit afbe77f into dashscope:main Dec 1, 2026
6 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