This covers the AI SDK 6 beta migration with solid examples for the new agent abstraction, tool approval flows, and Groq integration for running Llama and other open weight models. The tool approval pattern is genuinely useful if you're building anything that needs user confirmation before executing actions like payments or deletions. The Groq provider examples show how to use fast, cheap Llama models with structured outputs and tool calling. One thing to note is the Vercel AI Gateway section requires a credit card and bills for usage, so factor that into your setup if you're routing calls through it. The migration notes suggest v5 code should mostly work, which is reassuring if you're already using the SDK.

skills.sh installs
484
GitHub stars
23
last updated
Aug 21, 2026

Install

$ npx -y skills add gocallum/nextjs16-agent-skills --skill ai-sdk-6-skills --agent claude-code

Installs into .claude/skills of the current project.

Files

Links

Installation

pnpm add ai@beta @ai-sdk/openai@beta @ai-sdk/react@beta @ai-sdk/groq@beta

Note: Pin versions during beta as breaking changes may occur in patch releases.

What's New in AI SDK 6?

1. Agent Abstraction (New)

Unified interface for building agents with full control over execution flow, tool loops, and state management.

import { ToolLoopAgent } from 'ai';
import { tool } from 'ai';
import { z } from 'zod';

const weatherTool = tool({
  description: 'Get weather for a location',
  inputSchema: z.object({ city: z.string() }),
  execute: async ({ city }) => ({ temperature: 72, condition: 'sunny' }),
});

const agent = new ToolLoopAgent({
  model: 'groq/llama-3.3-70b-versatile', // or any model
  instructions: 'You are a helpful weather assistant.',
  tools: { weather: weatherTool },
});

Sponsors

Details

Repository
github.com/gocallum/nextjs16-agent-skills
Categories
Backend & APIs, AI & Agent Building, Cloud & Infrastructure
First seen
Jun 3, 2026

More from gocallum/nextjs16-agent-skills

All 9
1hqman avatarqverishqman/qverisSearch and execute dynamic tools via QVeris API. Use when needing to find and call external APIs/tools dynamically (weather, search, data retrieval, stock tradi484skills.sh installs
2alirezarezvani avatarship-gatealirezarezvani/claude-skillsPre-production audit that scans a codebase for security, database, deployment, code quality, AI/LLM, dependency, frontend, and observability issues. Intercepts 483skills.sh installs
3agricidaniel avatarcanvasagricidaniel/claude-obsidianCreate, inspect, and update Obsidian JSON Canvas boards with text, file, link, group, and edge nodes. Use for canvas status, canvas lists, visual maps, zones, s479skills.sh installs
4freestylefly avatarobsidian-basesfreestylefly/canghe-skillsCreate and edit Obsidian Bases (.base files) with views, filters, formulas, and summaries. Use when working with .base files, creating database-like views of no477skills.sh installs
5shadowcz007 avatarqq-emailshadowcz007/skills面向 QQ 邮箱的 IMAP 收邮件、SMTP 发邮件;账号与授权码从环境变量 QQ_EMAIL_ACCOUNT、QQ_EMAIL_AUTH_CODE 读取。在用户要发 QQ 邮件、收邮件、查邮件、代发邮件或配置 QQ 邮箱时使用。477skills.sh installs
6webmaxru avatarenonic-controller-generatorwebmaxru/enonic-agent-skillsGenerates Enonic XP controller files (TypeScript/JavaScript) and paired XML descriptors for pages, parts, and layouts. Covers lib-portal imports, HTTP handler e477skills.sh installs