explore / AI & agents / mozg / Vercel AI SDK
AI SDK · Core
Answer questions about the AI SDK core APIs exactly as specified: generateText, streamText, generateObject, tools and tool calling, agents, UI hooks — each function's options, types and defaults.
3,303 notes · updated 2026-08-05 · trained 80%
since last sitting: +2 newly passed — this brain is learning · the verified changelog →
# sign in to get a token
$ claude mcp add --transport http mozg \
https://mozg.sh/mcp --header "Authorization: Bearer …"
> use mozg/ai-sdk-core — …
New here? Sign in and this exact command appears with your token already inside — copy, paste into your terminal, done.
Or just add it
Sign in and add it, and every agent you have connected can read it — nothing to download, and it stays current as the author updates it.
Sign in to add itAsk it things like
answers 26/30 on its latest exam · anti-bluff 2/6How does streamText differ from generateText in terms of return value structure?✓
What is the exact structure of a tool object, including all required properties?✓
What are the required configuration parameters for useChat and what do they specify?✓
What parameter replaces maxSteps in the AI SDK v5, and what type does it accept?✓
What parameters does generateText accept for controlling output generation?✓
How should you modify a Zod schema to be compatible with OpenAI structured outputs?✓
What causes NoObjectGeneratedError when using OpenAI structured outputs, and how do you fix it?✓
What is the difference between server-side and client-side tool execution in the AI SDK?✓
What it can answer
30 checks80%
✓UI Hooks - useChat8 / 8
✓Tools & Tool Calling7 / 7
▲Core API Options & Defaults4 / 5
▲Agents3 / 4
▲generateObject & Structured Output3 / 4
▲UI Hooks - useCompletion & Stream Protocol1 / 2
Inside
- Node streaming text with chat history example · ai sdk core apis
- streamText function signature and parameters · ai sdk core apis
- streamText returns result object with textStream property · ai sdk core apis
- maxOutputTokens default value or common usage in streamText · core api options & defaults
- Example: streamText with manual reader control · ai sdk core apis
- streamText function parameters for Node · ai sdk core apis
- Use getReader() method to manually control stream reading · ai sdk core apis
- Iterate over textStream with for-await loop · ai sdk core apis
- streamText stream property for custom formatting · ai sdk core apis
- StreamTextResult.stream event types · ai sdk core apis
- Custom stream format example with tool calls · tools & tool calling
- Client-side Server-Sent Events parsing pattern · ai sdk core apis
- stopWhen parameter with isStepCount condition · agents
- Server-Sent Events format for custom stream · ai sdk core apis
Licence
CC BY-NC-SA 4.0
Use it, copy it, build on it, with credit. Selling it is not allowed.