|
Download knowledge/loop-engineering.md from kaoola/agent-engineering-framework: direct link, hf CLI and curl.
- Browser
- Download file 924 Bytes
-
https://huggingface.co/spaces/kaoola/agent-engineering-framework/resolve/main/knowledge/loop-engineering.md
- Command line
-
hf download hf://spaces/kaoola/agent-engineering-framework/knowledge/loop-engineering.md
-
curl -L -o loop-engineering.md https://huggingface.co/spaces/kaoola/agent-engineering-framework/resolve/main/knowledge/loop-engineering.md
924 Bytes
A newer version of the Gradio SDK is available: 6.32.0
Loop Engineering
是什么
第四层。核心问题:AI 怎么自主完成多步任务?
Harness 给了 AI 工具,但 AI 需要知道什么时候用什么工具、做完一步下一步干什么。这就是 Agentic Loop——ReAct 循环。
核心循环
Observe → Think → Act → Observe → Think → Act → ...
关键创新
从"单次调用"到"自主循环"。Agent 不再是回答问题,而是执行多步骤任务。
实现模式
- ReAct:推理 + 行动交替
- Plan-and-Execute:先规划再执行
- Reflection:自我反思修正
- Tree-of-Thoughts:多路径探索
Loop vs Harness
| Harness Engineering | Loop Engineering | |
|---|---|---|
| 关注点 | 有什么能力 | 怎么用这些能力 |
| 结构 | 静态配置 | 动态循环 |
| 控制流 | 无(靠模型自己决定) | ReAct 循环 |
一句话
告诉 AI 先迈左脚再迈右脚。