---
title: "构建有效 Agent：先选简单方案"
description: "区分预定义工作流和模型驱动的 Agent。"
---

> Documentation Index
> Fetch the complete documentation index at: https://logbook.pennlam.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 构建有效 Agent：先选简单方案

## 来源

Anthropic，[Building Effective AI Agents](https://www.anthropic.com/engineering/building-effective-agents)。本次通过 Raindrop 读取正文。文章提示部分工具背景已随时间变化，应结合较新的 Managed Agents 资料。

## 主要区别

工作流由代码预先规定执行路径。Agent 则在任务过程中动态决定流程与工具调用。两者都能有工具，但控制路径的来源不同。

## 方法摘要

先确认简单调用、检索与示例是否已经够用。只有确有需要时，再引入链式处理、路由、评估循环或更自主的执行。

使用框架时仍要理解底层提示与响应。框架减少重复工作，不应该遮蔽诊断所需的证据。

## 待本人补充

哪些设计在自己的项目里已经尝试过？哪些方法只停留在收藏和阅读？本页不把收藏自动标记为实践成果。

关联：[Managed Agents](/notes/reading/managed-agents/)。

Source: https://logbook.pennlam.com/notes/reading/effective-agents/index.mdx
