Coach surface
Coach provides conversational guidance, context-aware follow-ups, and sessionized history.Primary capabilities
- Bootstrap coach state and active session
- Create, list, rename, and delete chat sessions
- Stream assistant responses via SSE
- Bind conversations to insight context
- Collect per-message feedback and follow-up questions
Key endpoints
GET /api/coach/bootstrapPOST /api/chat/session/createGET /api/chat/sessions/listGET /api/chat/history/{session_id}POST /api/chat/send(stream)PUT /api/chat/session/{session_id}/bindingPOST /api/chat/session/{session_id}/message-feedbackPOST /api/chat/followup_questions
Request and response examples
Transport notes
POST /api/chat/sendreturns server-sent events.- Event envelope supports
text_chunk,wic,control, anderrorpayload types.
Common error patterns
401 Unauthorized: missing or expired access token400 Bad Request: invalidsessionIdor malformed payload500 Internal Server Error: orchestration/tooling failure; retry or escalate