跳到主要内容Skip to main content

工具定义Tool Definition

Tool Definition

  • 智能体Agents
  • 第三站 · 用深Station 3 · Going Deeper
解决什么问题What problem it solves

写给模型看的「这个工具是干什么的、参数怎么填」。The instructions you write for the model about what a tool does and how to fill it.

这是什么What it is

Anthropic 指出:工具的说明与规格本身就是在做提示工程。

官方把「为 Agent 写好工具」当作一项独立的工程工作。

Anthropic notes that tool descriptions and specs are themselves prompt engineering.

Vague descriptions lead the model to pick the wrong tool or fill wrong arguments.

为什么需要知道Why it matters

Agent 不好用,常见原因不在模型,在工具说明写得差。When an agent misbehaves, the cause is often the tool description, not the model.

别名Chinese aliases

工具描述 · 工具规格

出处Sources
  • Anthropic《Writing effective tools for agents》Anthropic, Writing effective tools for agents ↗