AI SDK's Avatar

AI SDK

@sdk.vercel.ai

The AI Toolkit for TypeScript.

245
Followers
1
Following
445
Posts
12.11.2024
Joined
Posts Following

Latest posts by AI SDK @sdk.vercel.ai

Preview
Memory Add persistent memory to your agent using provider-defined tools, memory providers, or a custom tool.

Documentation:
ai-sdk.dev/docs/agents...

17.02.2026 11:00 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Post image

Learn how to add memory to your agents.

17.02.2026 11:00 πŸ‘ 1 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0
Preview
Open Responses Learn how to use the Open Responses provider for the AI SDK.

Documentation:
ai-sdk.dev/providers/a...

06.02.2026 13:29 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Post image

Connect to any Open Responses compatible API.

06.02.2026 13:29 πŸ‘ 0 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0
Preview
Subagents Delegate context-heavy tasks to specialized subagents while keeping the main agent focused.

Learn how to build subagents with the AI SDK.
ai-sdk.dev/docs/agents...

04.02.2026 16:15 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Preview
AI SDK 6 - Vercel Introducing agents, tool execution approval, DevTools, full MCP support, reranking, image editing, and more.

Blog post:
vercel.com/blog/ai-sdk-6

23.12.2025 14:53 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Post image

Thank you to everyone who contributed to AI SDK 6.

23.12.2025 14:53 πŸ‘ 1 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0
Preview
AI SDK 6 - Vercel Introducing agents, tool execution approval, DevTools, full MCP support, reranking, image editing, and more.

Read the full AI SDK 6 announcement:
vercel.com/blog/ai-sdk-6

22.12.2025 17:30 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Post image

Upgrading from AI SDK 5? Run codemods to migrate automatically with minimal code changes.

22.12.2025 17:30 πŸ‘ 0 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0
Post image

`generateImage` now supports image editing by accepting reference images alongside your text prompt.

22.12.2025 17:30 πŸ‘ 0 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0
Post image

Native support for reranking with the new `rerank` function.

Reorder search results based on relevance to pass only the most relevant documents to the model.

22.12.2025 17:30 πŸ‘ 0 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0
Post image

DevTools gives you full visibility into your LLM calls and agents.

Inspect each step of any call including input, output, model configuration, token usage, timing, and raw provider requests.

22.12.2025 17:30 πŸ‘ 0 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0
Post image

Combining tool calling with structured output no longer requires chaining generateText and generateObject together.

This makes it simple to build agents with structured output generation at the end.

22.12.2025 17:30 πŸ‘ 0 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0
Post image

Full MCP support is now stable in AI SDK 6.

HTTP transport, OAuth authentication, resources, elicitation, and experimental support for prompts.

22.12.2025 17:30 πŸ‘ 0 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0
Post image

Tools now natively support human approval before execution with `needsApproval`.

Pass a function to dynamically require approval.

22.12.2025 17:30 πŸ‘ 0 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0
Post image

The new Agent abstraction (ToolLoopAgent) lets you define your agent once and use it everywhere.

Your agent definition becomes the single source of truth for end-to-end type safety, from tools to UI components.

22.12.2025 17:30 πŸ‘ 0 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0
Preview
AI SDK 6 - Vercel Introducing agents, tool execution approval, DevTools, full MCP support, reranking, image editing, and more.

AI SDK 6

Introducing agents, tool execution approval, full MCP support, tool calling with structured output, DevTools, reranking, standard JSON schema support, provider tools, image editing, and so much more.
vercel.com/blog/ai-sdk-6

22.12.2025 17:30 πŸ‘ 4 πŸ” 1 πŸ’¬ 1 πŸ“Œ 0
Preview
Anthropic Learn how to use the Anthropic provider for the AI SDK.

Documentation:
v6.ai-sdk.dev/providers/a...

22.12.2025 11:06 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Post image

With programmatic tool calling, Claude can call your tools from a code execution environment, keeping intermediate results out of context.

It can significantly reduce token usage and cost.

22.12.2025 11:06 πŸ‘ 1 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0
Preview
Tool Calling Learn about tool calling and multi-step calls (using stopWhen) with AI SDK Core.

Documentation:
ai-sdk.dev/docs/ai-sdk...

19.12.2025 14:25 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Post image

Access your context from within the onFinish callback.

19.12.2025 14:25 πŸ‘ 0 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0
Preview
Anthropic Learn how to use the Anthropic provider for the AI SDK.

Documentation:
v6.ai-sdk.dev/providers/a...

18.12.2025 15:36 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
// @ai-sdk/anthropic@3.0.0-beta.77 - Context management support

import { anthropic, AnthropicProviderOptions } from "@ai-sdk/anthropic";
import { generateText } from "ai";

const result = await generateText({
  model: anthropic("claude-sonnet-4-5"),
  messages,
  providerOptions: {
    anthropic: {
      contextManagement: {
        edits: [
          {
            type: "clear_tool_uses_20250919",
            trigger: { type: "input_tokens", value: 10000 },
            keep: { type: "tool_uses", value: 5 },
            clearAtLeast: { type: "input_tokens", value: 1000 },
            clearToolInputs: true,
            excludeTools: ["important_tool"],
          },
        ],
      },
    } satisfies AnthropicProviderOptions,
  },
});

// @ai-sdk/anthropic@3.0.0-beta.77 - Context management support import { anthropic, AnthropicProviderOptions } from "@ai-sdk/anthropic"; import { generateText } from "ai"; const result = await generateText({ model: anthropic("claude-sonnet-4-5"), messages, providerOptions: { anthropic: { contextManagement: { edits: [ { type: "clear_tool_uses_20250919", trigger: { type: "input_tokens", value: 10000 }, keep: { type: "tool_uses", value: 5 }, clearAtLeast: { type: "input_tokens", value: 1000 }, clearToolInputs: true, excludeTools: ["important_tool"], }, ], }, } satisfies AnthropicProviderOptions, }, });

Automatically clear conversation history when approaching token limits while preserving recent context with Anthropic.

18.12.2025 15:36 πŸ‘ 0 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0
Preview
OpenAI Learn how to use the OpenAI provider for the AI SDK.

Documentation:
v6.ai-sdk.dev/providers/a...

17.12.2025 14:25 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Post image

Use OpenAI's apply patch tool to let GPT-5.2 create, update, and delete files using structured diffs.

17.12.2025 14:25 πŸ‘ 0 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0
Preview
Anthropic Learn how to use the Anthropic provider for the AI SDK.

Documentation:
v6.ai-sdk.dev/providers/a...

16.12.2025 11:10 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Post image

Use Anthropic's tool search to give your agent hundreds of tools without filling its context window.

16.12.2025 11:10 πŸ‘ 0 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0
Building Type-safe AI Applications - Nico Albanese, Vercel
Building Type-safe AI Applications - Nico Albanese, Vercel You can now build type-safe AI applications using agents with the Vercel AI SDK.Nico Albanese from Vercel’s AI SDK team walks through practical patterns for ...

Learn how to build type-safe applications on top of your agents with @nicoalbanese10 from the AI SDK core team.
www.youtube.com/watch?v=ZRs...

15.12.2025 17:20 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Post image

20,000 stars on GitHub.

Thank you to everyone building with the AI SDK.

15.12.2025 11:18 πŸ‘ 3 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Preview
Anthropic Learn how to use the Anthropic provider for the AI SDK.

Documentation:
ai-sdk.dev/providers/a...

12.12.2025 15:29 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0