Use case · AI
Streaming chat, typed tools, retrieval over your own data, and traces that survive the agent into the same observability dashboard. The four sub-systems an AI product needs are wired into the registry before your first commit.
Eight capabilities grouped by the buyer-side question they answer. Two halves: what the agent does for the user, and what keeps it correct in production.
import { streamText } from "ai"
import { openai } from "@ai-sdk/openai"
import { getTools } from "@workspace/contracts"
export const runAgent = (input: { prompt: string }) =>
streamText({
model: openai("gpt-4o"),
prompt: input.prompt,
tools: getTools("agent-runtime"),
onFinish: ({ usage, finishReason }) =>
db.runs.insert({ usage, finishReason, traceId }),
})The four sub-systems an on-call engineer names first. Same contracts, same registry, same auth, just on the other side of the same RPC.
import { streamText } from "ai"
export const runCancellable = (signal: AbortSignal) =>
streamText({
model: openai("gpt-4o"),
prompt: "...",
abortSignal: signal,
onAbort: () => cleanup(),
})Built with the stack senior engineers ship on.
Process
Tools, memory, and routing live in the same source as the rest of your app. The AI SDK reads them and wires the runtime.
Docs, KB articles, product data — pgvector indexes them in one query. No second database, no second dashboard.
Tool calls stream into the same observability contract as your HTTP routes. Replay any run from the trace ID.
Built on this
Production-ready starter templates, each deployed at its own URL. Used as the reference set for what the registry can ship.
Explore
Related
Multi-tenant B2B SaaS with auth, billing, and a working dashboard on day one.
Read more
Related
Service-only backends with type-safe RPC and zero frontend overhead.
Read more
Related
Auth, sync, and push notifications for native apps, on the same backend.
Read more
Two doors
Self-serve gives you the registry and the templates. Engagement gives you the team that built it. Pick the door that fits the timeline.