# AI bundle solution docs

- [Prompt injection through user content: why delimiters are not the fix](https://agenticboilerplate.com/cookbook/ai-bundle/prompt-injection-through-user-content): 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.
- [Streaming edge cases: aborts, disconnects, backpressure and errors after the first token](https://agenticboilerplate.com/cookbook/ai-bundle/streaming-edge-cases): 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.
- [Tool retries and partial failures: what the AI SDK retries and what it does not](https://agenticboilerplate.com/cookbook/ai-bundle/tool-retries-and-partial-failures): 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.
- [When to add usage metering to an AI feature, and how to do it in an afternoon](https://agenticboilerplate.com/cookbook/ai-bundle/when-to-add-usage-metering): 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.
- [When AI work has to move to a background job, and what breaks if you wait](https://agenticboilerplate.com/cookbook/ai-bundle/when-to-move-ai-work-to-a-background-job): 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.
- [When LLM tracing pays for itself, and the free version to build first](https://agenticboilerplate.com/cookbook/ai-bundle/when-tracing-pays-for-itself): 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.

---

Agentic Boilerplate: A Next.js repo your agent already knows. $99 once. Lifetime access and updates.

- Site map for agents: https://agenticboilerplate.com/llms.txt
- Public API: https://agenticboilerplate.com/openapi.json
- Contact: agenticstudio@gmail.com
