Products

AI SDK 7 canary 发布:工具调用审批配置更灵活

Why we picked it

做 AI 应用开发的团队终于可以精细控制工具调用了——不用再担心模型擅自执行敏感操作,建议用 AI SDK 的开发者立即升级试试。

AI SDK 7 canary 版本发布,新增工具调用审批配置功能。开发者现在可以在 ToolLoopAgent、generateText 和 streamText 中直接为任意工具设置审批逻辑,支持三种方式:使用常量进行工具特定审批、使用函数进行工具特定审批、以及使用自定义逻辑的通用审批函数。

Body

这一更新提升了 AI 应用的安全性和可控性,尤其适合需要人工审核工具调用的场景。

Original · AI SDK

AI SDK 7 canary Configure tool approvals for any tool directly on ToolLoopAgent, generateText, and streamText: - tool specific approval with constants - tool specific approval with functions - generic tool approval function with custom logic📊 8 ⚡

Industry Coordinates & Source Verification

This report is categorized under AITOP's "Products" desk. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows. Key entities and technical topics under continuous tracking include AI SDK, tool use, access control, developer tools.

Source attribution: curated from AI SDK (@aisdk).