虎嗅

The Five Stages of Evolution in "Agent Project": Progress, or Another Round of Jargon Bubbles?

原文:Agent 工程的五层进化论:是进步,还是新一轮术语泡沫?

Summary of Key Points

The AI Agent industry is transitioning from being able to provide a basic demonstration to becoming truly operational, with architectural design playing a crucial role in this transition. A hot topic in the industry recently has been “Graph Engineering.” Some believe it can solve collaboration and efficiency issues for complex tasks, while others argue that simpler architectures are more reliable. The article provides a practical framework for deciding whether to use Graph, emphasizing that a system that actually works is more important than one that looks advanced.

Detailed Explanation

1. The battlefield for AI Agents has changed: from focusing on prompts to focusing on architecture

In the past, developing AI Agents mainly involved writing good prompts—such as telling the AI, “You are a customer service agent and need to answer questions politely.” However, to use AI in real business scenarios (e.g., handling complex orders or analyzing multi-step data), relying solely on prompts is no longer sufficient. The industry has started discussing “layered architectures”—ranging from prompts for individual requests, to memory management, to tool invocation, loop execution, and finally to coordination of multiple tasks/Agents (which is what Graph does). This indicates that AI Agents are moving from being used for fancy demonstrations to practical applications, with a greater emphasis on system stability and debugability.

2. The five-layer architecture is not some mystery: What does each layer do?

The “five layers” mentioned in the article refer to the different aspects of how AI Agents work. Here’s a simplified explanation:

  • Prompt Layer: The “instruction manual” for a single request. For example, if you ask the AI to write a report, you need to specify the topic, the word count, and the format—this is like giving the AI a single task.
  • Context Layer: “Memory management.” AI cannot start from scratch every time; it needs to remember previous conversations or task information, but it can’t remember everything (to avoid using up memory), so decisions need to be made about what to retain and what to discard.
  • Harness Layer: This layer involves equipping the AI with tools. While large models generate text, they need additional tools (e.g., accessing databases, using calculators) and rules (e.g., retrying if the result is incorrect) to function as useful agents.
  • Loop Layer: This layer ensures that tasks are completed repeatedly until successful. For instance, after writing a report, the AI needs to check for errors and rewrite it until it meets the requirements.
  • Graph Layer: This layer coordinates multiple tasks or agents. When several tasks or agents need to work together, Graph manages who does what first, when, and how the results are combined—for example, if a project requires data retrieval, analysis, and PPT creation, these tasks can be performed in parallel before being summarized.

3. Why do some consider Graph to be a advancement? It solves problems with linear tasks

Traditional AI Agents often follow a linear process (A → B → C). However, with longer and more complex tasks, issues arise:

  • AI may be lazy (claiming completion halfway through).
  • AI may favor its own output (always thinking its answers are correct).
  • It may forget the goal (e.g., starting to write a 2024 economic report but ending up writing about 2023).
  • Tasks that could be done simultaneously are delayed (e.g., data retrieval and data organization are done separately).

Graph solves these problems by breaking tasks down into “nodes” and “connections.” Independent tasks can be executed concurrently, and results can be combined as needed. Errors can be isolated (one task’s failure doesn’t affect others), and models of different costs can be used for different tasks (cheap ones for simple tasks, expensive ones for complex decisions), which saves costs and improves efficiency.

4. Why are there objections? Concerns about “over-engineering”

Many argue that Graph is just an unnecessary addition. The reasons include:

  • No need for complexity: A simple system (trigger → execute → verify → retry) works well; adding Graph increases complexity, makes debugging harder, and raises costs without significant improvements.
  • Term worship: New terms (e.g., Prompt Engineering, now Graph) are introduced frequently, leading to架构 changes just for the sake of using them, rather than solving real problems.
  • Common pitfalls: Forging independent steps together, assuming all tasks must be completed sequentially, and using AI for simple tasks that could be handled by code.

Anthropic, a well-known AI company, also warns that most tasks don’t require complex Graph. The benefits (efficiency, stability) must outweigh the additional complexity and costs; otherwise, it’s not worth using Graph.

5. How should practitioners choose? Don’t follow the trend; consider actual needs

The article provides a practical framework to help decide between using a simple Loop or Graph:

  • Use a simple Loop if: Task boundaries are clear, there aren’t many steps, parallel processing is not needed, verification logic is simple (e.g., checking for spelling errors), and the team prefers easy debugging. In these cases, “trigger → execute → verify → retry” is sufficient.
  • Graph may be worth using if: There’s a real need for parallel processing, strong validation (e.g., having another AI check the results), large datasets (e.g., analyzing 100 reports), long-term tasks (e.g., tracking a project’s lifecycle), multi-role collaboration (e.g., AI researchers, editors, and designers working on a report), or if you need to isolate errors or control costs.

Regardless of the choice, three things are more important than a fancy architecture:

1. Structured output: Ensure that the AI’s output follows a fixed format (e.g., tables, specific templates) for easy processing.

2. Independent verification: Don’t rely on the AI to verify its own work; use third parties (e.g., another AI or tool) for validation.

3. Clear stop conditions: Define when the process should stop (e.g., “Stop when the report is written and has fewer than 2 errors”) to avoid infinite loops.

In conclusion

The development of AI Agents is about finding a balance between complexity and usability. A system that can solve problems efficiently, at low cost, and is easy to debug is what truly matters.

(The entire article uses plain language, making it understandable even for non-finance/AI professionals.)