Skip to content

feat(durable): declare async subagents and add a Super Agent example - #4583

Open
chickenlj wants to merge 1 commit into
agentscope-ai:mainfrom
chickenlj:feat/declarative-async-subagents
Open

chickenlj wants to merge 1 commit into
agentscope-ai:mainfrom
chickenlj:feat/declarative-async-subagents

Conversation

@chickenlj

Copy link
Copy Markdown
Collaborator

AgentScope-Java Version

2.1.0-SNAPSHOT

Description

Applications can now declare their async workers on a versioned Harness definition and register the router once with Durable. This builds on the Job execution and completion delivery introduced in #4572.

  • Declare a local worker with SubagentDeclaration.async(name, description, factory), or reference a worker published by another deployment with deployment.agent(name). The adapter installs the Job tools, executor routes and worker registrations when the runtime is built.
  • Local Jobs keep the root definition version they were admitted against. Remote workers save the binding admitted by the remote service so that a replacement parent can resume the same work. Declarations also control parent-context sharing and the default completion wakeup.
  • The new offline Super Agent example follows an order export issue across two JVMs. The router dispatches reproduction and compatibility checks, accepts a finance follow-up, then wakes to coordinate a fix and an independent review of the exact SQL digest. Example and run instructions

Verification

  • mvn -B -ntp -T1C clean verify passed across all 115 reactor modules, including the durable adapter, remote subagent and Super Agent example tests.
  • Ran bash agentscope-examples/durable/integrated/super-agent/run.sh. The review verified all 1,001 orders and the original CSV header. Reopening the completed issue returned the same four child Thread IDs and verdict.
  • The documentation checks passed with 20 tests, build validation and a broken-link scan.

Checklist

  • Code has been formatted with mvn spotless:apply.
  • Tests pass.
  • Javadoc builds successfully for the changed APIs.
  • English and Chinese guides and examples have been updated.
  • Ready for review.

Copilot AI balanced review requested due to automatic review settings December 3, 2026 00:44
@mintlify

mintlify Bot commented Dec 3, 2026

Copy link
Copy Markdown

Preview approval required

This pull request comes from a fork, so Mintlify won't build a preview until someone with write access approves commit 469a36d.

Approve preview

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.

This branch has not been deployed

No deployments
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