ai) drives tool-calling agents around any provider in its registry. Mirage ships an AI SDK 7 tool factory that gives generateText, streamText and agent loops a session’s seven tools.
Install
@struktoai/mirage-agents/vercel is runtime-agnostic. Pair it with @struktoai/mirage-node for Node or @struktoai/mirage-browser for the browser.
Usage
Exports
read uses AI SDK 7’s toModelOutput: text files come back as numbered lines, PDFs and supported images become file content parts, and other binary formats return a metadata note.
Examples
examples/typescript/agents/vercel/ram_vercel.ts, RAM-only sandbox driven bygpt-5.4-mini.