Skip to content

feat(durable): add MVC and WebFlux starters and route Hands tools by contract - #4635

Open
chickenlj wants to merge 3 commits into
agentscope-ai:mainfrom
chickenlj:feat/durable-webflux-hands-tools
Open

chickenlj wants to merge 3 commits into
agentscope-ai:mainfrom
chickenlj:feat/durable-webflux-hands-tools

Conversation

@chickenlj

@chickenlj chickenlj commented Dec 5, 2026 •

Copy link
Copy Markdown
Collaborator

AgentScope-Java Version

2.1.0-SNAPSHOT

Description

The Durable runtime and worker support embedded and remote tool execution. Spring Boot hosts can expose the public Agent API, private Hands channel, backend, executor or webhook using their existing web stack.

  • Keep Durable protocol dispatch, authorization scopes, SSE framing and cursor replay in agentscope-durable-runtime. The outbound Hands client lives in agentscope-durable-worker. Both artifacts are independent of Spring.
  • Add agentscope-durable-webmvc-spring-boot-starter and agentscope-durable-webflux-spring-boot-starter under extensions. The selected starter supplies the route builder, and applications mount their chosen endpoints with their own authorization policy. WebFlux uses non-blocking network I/O. MVC streams on a bounded asynchronous Servlet writer pool.
  • Remove the standalone agentscope-extensions-durable-http artifact. Embedded applications, MQ-only hosts and outbound workers can use runtime or worker directly.
  • Bind remote tools to versioned contracts. Brain registers each selected schema with the Agent. Hands verifies the contract and selects its configured MCP, sandbox or native executor. Calls to native and MCP tools do not allocate a sandbox.
  • Replace the Brain/Hands echo examples with runnable sandbox tests over SSE and a service-status lookup through RocketMQ and an independent MCP server. The integrated HTTP server demonstrates MVC, and the SSE sandbox example demonstrates a WebFlux Brain with separate Hands. Update the English and Chinese deployment guides.

Verification

  • A shared contract suite exercises both web stacks on real HTTP ports, including authorization, SSE cursor replay, object upload/download and the private Hands stream. MVC returns the Durable 503 envelope when its streaming executor is full.

  • Verified Maven dependency isolation for runtime, worker and both starters. The packaged MVC example returned a successful public API response on Tomcat.

  • The sandbox example ran with separate Brain and Hands JVMs and returned the output of both Python doctests.

  • The MCP example ran with RocketMQ 5.5.1, separate Brain and Hands JVMs, and a local Streamable HTTP MCP server. Restarting Brain with the same request ID returned the original Turn. The MCP server observed one tool call across both launches.

  • Documentation tests, validation, broken-link checks and the distribution/BOM consistency check passed.

  • Full Maven verification passed locally on the PR branch: mvn -o -B -ntp -T1C clean verify completed all 117 reactor modules with external model credentials unset.

Checklist

  • Formatted the affected Java sources with Spotless.
  • Confirmed the full Maven build and tests on the PR branch.
  • Updated the user guides and runnable examples.

Copilot AI balanced review requested due to automatic review settings December 5, 2026 03:24
@mintlify

mintlify Bot commented Dec 5, 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 47115db.

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.

@chickenlj chickenlj changed the title feat(durable): integrate WebFlux endpoints and route Hands tools by contract feat(durable): add MVC and WebFlux starters and route Hands tools by contract Dec 5, 2026

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