Skip to content

docs(agent): replace obsolete SupervisorAgent example#280

Open
March-77 wants to merge 1 commit into
spring-ai-alibaba:mainfrom
March-77:codex/update-supervisor-docs
Open

docs(agent): replace obsolete SupervisorAgent example#280
March-77 wants to merge 1 commit into
spring-ai-alibaba:mainfrom
March-77:codex/update-supervisor-docs

Conversation

@March-77

Copy link
Copy Markdown

What changed

  • replace the obsolete SupervisorAgent section with the current ReactAgent + AgentTool supervisor pattern
  • point the code block at the maintained supervisor example in the main repository
  • explain that the supervisor ReactAgent should be the A2A root while specialist agents remain internal tools
  • remove the stale prompt guidance that referenced the deleted SupervisorAgent API

Why

The page currently recommends AgentTool near the top but later shows an incompatible SupervisorAgent.builder() example. Users following it encounter the missing mainAgent requirement and model-specific JSON routing failures. The current framework implements this pattern by exposing specialized agents as tools to a coordinating ReactAgent.

Fixes alibaba/spring-ai-alibaba#4514
Addresses alibaba/spring-ai-alibaba#4560
Clarifies alibaba/spring-ai-alibaba#4272

Validation

  • verified the committed file by reading it back from the fork and comparing it byte-for-byte with the intended content
  • verified all 15 <Code> blocks still have matching closing tags
  • verified the linked implementation exists in examples/multiagent-patterns/supervisor

@March-77
March-77 marked this pull request as ready for review July 22, 2026 02:02
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.

[BUG] 官网示例multi-agent下的SupervisorAgent配置问题

1 participant