Skip to content

人工智能中的代理是什么?(What's an agent in AI?)#

一种理解代理的方式是把它看作一个知道如何做决策的。当一个链遵循对不同AI组件的预定调用顺序时,代理则使用语言模型来确定采取哪些行动。

🌐 One way to think of an agent is as a chain that knows how to make decisions. Where a chain follows a predetermined sequence of calls to different AI components, an agent uses a language model to determine which actions to take.

智能体是人工智能中充当决策者的部分。它们可以与其他智能体和工具互动。当你向智能体发送查询时,它会尝试选择最佳的工具来回答问题。智能体会根据你的具体查询以及用于配置其行为的提示进行调整。

🌐 Agents are the part of AI that act as decision-makers. They can interact with other agents and tools. When you send a query to an agent, it tries to choose the best tools to use to answer. Agents adapt to your specific queries, as well as the prompts that configure their behavior.

n8n 中的代理(Agents in n8n)#

n8n 提供了一个 Agent 节点,根据您选择的设置,它可以充当不同类型的代理。有关可用代理类型的详细信息,请参阅 Agent 节点文档

🌐 n8n provides one Agent node, which can act as different types of agent depending on the settings you choose. Refer to the Agent node documentation for details on the available agent types.

当你执行包含代理的工作流时,代理会运行多次。例如,它可能先进行初始设置,然后运行一次以调用工具,再运行一次以评估工具的响应并回复用户。

🌐 When you execute a workflow containing an agent, the agent runs multiple times. For example, it may do an initial setup, followed by a run to call a tool, then another run to evaluate the tool response and respond to the user.