In Phase 4, we will expand upon the builder workflow to integrate Vercel AI SDK–based tool calling. Our goal is for each workflow stage (brainstorm vs. review, etc.) to be able to autonomously create or update notes (e.g., riff.md
, prd.md
) using tool calls while keeping the entire AI output in the chat thread. We'll rely on multi-step logic (maxSteps
) to let the model call a tool, get the result, and then produce final text. We'll also pass “invisible” system messages to the AI, instructing it on how to create or edit a doc.
Key additions:
- Tool set definitions (like
createDocument
,updateDocument
) usingtool
fromai
. - Invisibly instructing the AI (system messages) at each new stage or section, so it can spontaneously produce partial or final doc text.
- Multi-doc support in a single workspace (as user transitio