Patch Changes
-
f6ffb8aThanks @omeraplak! - feat: VoltAgent 2.x (AI SDK v6)VoltAgent 2.x aligns the framework with AI SDK v6 and adds new features. VoltAgent APIs are compatible, but if you call AI SDK directly, follow the upstream v6 migration guide.
Migration summary (1.x -> 2.x):
- Update VoltAgent packages
npm run volt update- If the CLI is missing:
npx @voltagent/cli initthennpm run volt update
- Align AI SDK packages
pnpm add ai@^6 @ai-sdk/provider@^3 @ai-sdk/provider-utils@^4 @ai-sdk/openai@^3- If you use UI hooks, upgrade
@ai-sdk/reactto^3
- Structured output
generateObjectandstreamObjectare deprecated in VoltAgent 2.x- Use
generateText/streamTextwithOutput.object(...)
Full migration guide: https://voltagent.dev/docs/getting-started/migration-guide/
-
Updated dependencies [
f6ffb8a]:- @voltagent/internal@1.0.2