NutritionCoach Live Stream Demo

Phase 12 · Server-Sent Events (SSE) · Spring MVC + Reactor · ChatClient.stream()

How it works: This page calls POST /api/stream/plan, which runs PlannerAgent → optional ResearchAgent (sync), then streams the coaching response token-by-token via ChatClient.stream().content()Flux<String> → SSE.

Tokens are buffered server-side for OutputModerator safety check, then re-emitted. Watch the output div fill in real time.

MERN analogy: Vercel AI SDK useChat() hook consuming a result.toDataStreamResponse() from a Next.js App Router POST route.
Response POST /api/stream/plan
Press "Stream Plan" to begin...