6 solution docs
AI bundle solution docs
Streaming chat, Zod-checked output and tool calling on the Vercel AI SDK.
Pick AI bundle and all 6 land in docs/solutions/ai-bundle/, next to the rules and skills that reference them.
Every AI bundle doc in the registry
Tags: abort · ai · background-jobs · backpressure · cost · debugging · error-handling · idempotency · logging · metering · observability · prompt-injection · queues · quotas · rate-limiting · retries · security · serverless · streaming · timeouts · tools · tracing · untrusted-input · vercel
Prompt injection through user content: why delimiters are not the fix
Any text a user can influence can carry instructions. Wrapping helps a little; least-privilege tools, human confirmation and never trusting output as authorisation are what actually hold.
ai · security · prompt-injection · tools
Streaming edge cases: aborts, disconnects, backpressure and errors after the first token
A streamed response that fails halfway does not reject anything, and a user who closes the tab keeps billing you. The four cases every streaming route has to handle.
ai · streaming · abort · backpressure
Tool retries and partial failures: what the AI SDK retries and what it does not
The SDK retries the request to the model, never your tool's side effects. A tool that half-succeeded and then got called again is where duplicate charges come from.
ai · tools · retries · idempotency
When to add usage metering to an AI feature, and how to do it in an afternoon
A public AI route is a public spend endpoint. The three signals that say you need metering now, and the smallest implementation that actually protects you.
ai · cost · metering · rate-limiting
When AI work has to move to a background job, and what breaks if you wait
Serverless functions have a hard timeout that no amount of streaming avoids. The four signals that mean the work no longer belongs in the request, and the smallest queue that fixes it.
ai · background-jobs · queues · timeouts
When LLM tracing pays for itself, and the free version to build first
A user reports an answer you cannot reproduce. Without the exact prompt, the tool steps and the model version, you are guessing. But a paid tracing tool is not the first thing to reach for.
ai · observability · tracing · logging