← BACK TO HOME — LangChain Blog — 进阶
智能体框架 · ANALYSIS · IMPACT 8/10

Human judgment in the agent improvement loop

LangChain explains the core challenge of building reliable AI智能体s: integrating human experts' tacit knowledge and judgment into the development loop, not just relying on documented explicit knowledge.

KEY POINTS
  • The core challenge of reliable 智能体s is absorbing human experts' 'tacit knowledge', not just relying on documentation
  • Human judgment should be integrated into three core 智能体 components: workflow design, tool design, and agent context
  • Using a 'trader copilot' example, it shows how to involve domain experts (e.g., risk & compliance) in designing automated checks
  • The industry trend is moving from simple system prompts to providing 智能体s with richer, structured initial context
ANALYSIS

The Cause: Why Human Judgment is Now Non-Negotiable When enterprises attempt to automate complex workflows with AI智能体s, a fundamental issue emerges: the critical knowledge that makes teams excel often isn't the 'explicit knowledge' documented in manuals, but the 'tacit knowledge' residing in employees' minds. This includes a trader's intuitive grasp of vague terms like 'today's exposure,' or a data scientist's experience with which database tables are reliable or which query patterns are inefficient. LangChain's article points out that you often don't realize the importance of this tacit knowledge until you try building an 智能体 to automate the task. Therefore, the key to building reliable 智能体s lies in designing an improvement loop that continuously incorporates human expert judgment.

Breakdown: How Human Judgment Integrates into the Three Core 智能体 Components Using a 'trader copilot' 智能体 as an example, the article clearly breaks down the three levels where human experts should intervene:

  1. Workflow Design: While LLMs can autonomously plan tool call sequences, in high-risk or heavily regulated scenarios (like finance), parts of the workflow must be rigidly controlled with deterministic code. For instance, having risk and compliance experts define mandatory automated checks ensures the 智能体's final answer adheres to company standards. This balances flexibility with security.
  2. Tool Design: Developers implement tools for the 智能体 (e.g., executing SQL queries), but the tools' names, parameters, and descriptions require careful crafting. A key trade-off is between providing flexible, general tools (like execute_sql), which are riskier, versus parameterized, specialized tools, which are safer but less capable. Determining the optimal approach requires running evaluations, and the evaluation criteria themselves need input from business experts.
  3. 智能体 Context: Early 智能体s only had simple system prompts. The current trend is to provide 智能体s with much richer initial context. For example, the growing adoption of standards like Anthropic's Skills. This means human expert knowledge needs to be 'pre-loaded' in a structured, efficiently consumable format for the 智能体, not just as a paragraph of natural language.

Trend Insight: From 'Prompt Engineering' to 'Knowledge Engineering' This article reveals a deeper trend: the focus of AI智能体 construction is shifting from mere 'prompt engineering' towards more systematic 'knowledge engineering.' Simply writing elegant prompts is insufficient. You need a systematic method to encode domain expert judgment into the 智能体's workflow, tool design, and context structure. This is analogous to 'Domain-Driven Design' in traditional software engineering, but now serving AI systems. The value of observability tools like LangSmith lies in making this iterative process of 'absorbing human judgment' visible, measurable, and optimizable.

Practical Value and a Counter-Intuitive Insight For teams building 智能体s, the most direct takeaway is: Involve your domain experts (not just engineers) in design reviews early. Have them review tool descriptions, define compliance checkpoints, and verify the accuracy of contextual information. A counter-intuitive point is that adding deterministic code control (which seemingly reduces the 智能体's 'intelligence') can actually enhance the overall system's reliability and trustworthiness, especially in critical business operations. Ultimately, a great 智能体 doesn't replace human experts; it productizes and scales their wisdom.

Analysis by BitByAI · Read original

Originally from LangChain Blog · Analyzed by BitByAI