在Claude开发者平台上引入高级工具使用

The future of AI agents is one where models work seamlessly across hundreds or thousands of tools. An IDE assistant that integrates git operations, file manipulation, package managers, testing frameworks, and deployment pipelines. An operations coordinator that connects Slack, GitHub, Google Drive, Jira, company databases, and dozens of MCP servers simultaneously.

AI 代理的未来是模型能够在数百或数千个工具之间无缝工作。一个集成 git 操作、文件操作、包管理器、测试框架和部署管道的 IDE 助手。一个操作协调员,能够同时连接 Slack、GitHub、Google Drive、Jira、公司数据库和数十个 MCP 服务器。

To build effective agents, they need to work with unlimited tool libraries without stuffing every definition into context upfront. Our blog article on using code execution with MCP discussed how tool results and definitions can sometimes consume 50,000+ tokens before an agent reads a request. Agents should discover and load tools on-demand, keeping only what's relevant for the current task.

为了 构建有效的代理,它们需要与无限的工具库合作,而不必在一开始就将每个定义都塞入上下文。我们关于使用 MCP 进行代码执行 的博客文章讨论了工具结果和定义有时会在代理读取请求之前消耗超过 50,000 个令牌。代理应该按需发现和加载工具,仅保留当前任务相关的内容。

Agents also need the ability to call tools from code. When using natural language tool calling, each invocation requires a full inference pass, and intermediate results pile up in context whether they're useful or not. Code is a natural fit for orchestration logic, such as loops, conditionals, and data transformations. Agents need the flexibility to choose between code execution and inference based on the task at hand.

代理还需要能够从代码中调用工具的能力。当使用自然语言工具调用时,每次调用都需要进行完整的推理过程,中间结果无论是否有用都会堆积在上下文中。代码非常适合用于编排逻辑,例如循环、条件语句和数据转换。代理需要根据手头的任务在代码执行和推理之间选择的灵活性。

Agents also need to learn correct tool usage from examples, not just schema definitions. JSON schemas define what's structurally valid, but can't express usage patterns: when to include optional parameters, which combinations make sense, or what conventions your API expects.

代理还需要从示例中学习正确的工具使用,而不仅仅是模式定义。JSON 模式定义了结构上有效的内容,但无法表达使用模式:何时包含可选参数,哪些组合是合理的,或者您的 API 期望什么约定。

Today, we're releasing three features that make this possible:

今天,我们发布了三个使这一切成为可能的功能:

  • Tool Search Too...
开通本站会员,查看完整译文。

Accueil - Wiki
Copyright © 2011-2025 iteam. Current version is 2.148.1. UTC+08:00, 2025-11-26 20:01
浙ICP备14020137号-1 $Carte des visiteurs$