AI SDK 6
Blog post from Vercel
The AI SDK, a leading TypeScript toolkit for building AI applications, has launched its version 6, introducing features such as agents, tool execution approval, and DevTools, while enhancing structured outputs and provider-specific tools. Widely adopted by various companies, including Thomson Reuters and Clay, the SDK facilitates the creation of AI applications ranging from chatbots to complex agents. It integrates seamlessly with frameworks like Next.js and React, and supports a multitude of AI providers. Notable updates include the introduction of the ToolLoopAgent for reusable agent definitions, improved tool execution with human approval, and structured output generation. The release also enhances the MCP protocol support, providing OAuth authentication and server interactions, and introduces the DevTools middleware for debugging agent workflows. With its focus on type safety, scalability, and ease of use, AI SDK 6 aims to streamline AI development while offering comprehensive migration support for users of the previous version.