人工智能中的工具是什么?(What's a tool in AI?)#
在人工智能中,“工具”有特定的含义。工具就像附加组件,你的人工智能可以使用它们来获取额外的上下文或资源。
🌐 In AI, 'tools' has a specific meaning. Tools act like addons that your AI can use to access extra context or resources.
以下是几种其他表达方式:
🌐 Here are a couple of other ways of expressing it:
工具是代理可以用来与世界互动的接口(来源)
我们可以把这些工具想象成几乎像你的 AI 模型可以调用的函数 (source)
n8n 中的 AI 工具(AI tools in n8n)#
n8n 提供了可以连接到你的 AI 代理 的工具 子节点。除了提供一些流行的工具,例如 维基百科 和 SerpAPI,n8n 还提供了三种特别强大的工具:
🌐 n8n provides tool sub-nodes that you can connect to your AI agent. As well as providing some popular tools, such as Wikipedia and SerpAPI, n8n provides three especially powerful tools:
- 调用 n8n 工作流工具:使用此工具将任何 n8n 工作流加载为工具。
- 自定义代码工具:编写您的代理可以运行的代码。
- HTTP 请求工具:用于发起请求以获取网站或 API 的数据。
以下三个示例重点介绍 Call n8n 工作流程工具:
🌐 The next three examples highlight the Call n8n Workflow Tool:
你还可以学习如何让 AI 使用 $fromAI() 函数动态指定工具参数。
🌐 You can also learn how to let AI dynamically specify parameters for tools with the $fromAI() function.