showcase/integrations/spring-ai/qa/subagents.md
/api/health)OPENAI_API_KEY is set on the Spring backendSubagentsController runs a per-request supervisor agent that
exposes three tools — research_agent, writing_agent, critique_agent
— each backed by its own ChatClient call with a dedicated system
prompt (research vs. writing vs. critique).Delegation entry
{ id, sub_agent, task, status, result } to state.delegations and
emits a STATE_SNAPSHOT event, so the UI's live "delegation log"
panel grows entry-by-entry while the supervisor works./demos/subagents.data-testid="delegation-log").data-testid="delegation-count" reads "0 calls".data-testid="supervisor-running" is visible.data-testid="delegation-entry" appears with
sub-agent label "Research" and status "completed".data-testid="delegation-count" reads "1 calls".research_agent)writing_agent) — should
contain a polished one-paragraph draft.critique_agent) — should
contain 2–3 actionable critiques.status field reads "failed" and its result starts with
"Sub-agent failed:".