Agent Executor
Agent Executor(智能体执行器)是人工智能Agent系统中负责驱动推理-行动循环的核心组件。它接收用户输入后,协调语言模型进行思考与决策,依据模型输出调用外部工具或API,处理工具返回结果,并判断是否继续迭代或终止循环以生成最终响应。其核心特征包括:管理多轮工具调用流程、维护执行上下文状态,以及在模型推理与外部环境之间充当中间调度层。
Core Facts
In LangChain's Agent architecture, the Agent itself is only responsible for reasoning and generating tool-call instructions, while the Agent Executor is responsible for executing tools, handling responses, and managing the iteration loop.
In LangChain, the Agent is responsible for decision-making (selecting tools and parameters), while the Agent Executor is responsible for execution (actually calling tools, managing multi-step iterations, and handling memory); the two serve distinct roles.
Timeline (last 90 days)
LangChain's key abstractions include Model I/O (a unified input/output interface for different models), Retriever (retrieving context from data sources), Tool (external functions callable by the Agent) and Agent Executor (the control loop that decides when to call which tool).
All Facts (3)
In LangChain's Agent architecture, the Agent itself is only responsible for reasoning and generating tool-call instructions, while the Agent Executor is responsible for executing tools, handling responses, and managing the iteration loop.
70%VerifiedIn LangChain, the Agent is responsible for decision-making (selecting tools and parameters), while the Agent Executor is responsible for execution (actually calling tools, managing multi-step iterations, and handling memory); the two serve distinct roles.
65%UnverifiedLangChain's key abstractions include Model I/O (a unified input/output interface for different models), Retriever (retrieving context from data sources), Tool (external functions callable by the Agent) and Agent Executor (the control loop that decides when to call which tool).
50%