Skip to content

Commit 628f6dc

Browse files
committed
feat:《Ai Agent》第3-16节:FlowAgent执行链路设计
1 parent a826723 commit 628f6dc

File tree

7 files changed

+29
-0
lines changed

7 files changed

+29
-0
lines changed

docs/.vuepress/config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2289,6 +2289,7 @@ function getBarAiRagKnowledge() {
22892289
"agent/第3-13节,Agent-ELK日志分析场景.md",
22902290
"agent/第3-14节,Agent-Prometheus监控分析场景.md",
22912291
"agent/第3-15节:FlowAgent执行链路分析.md",
2292+
"agent/第3-16节:FlowAgent执行链路设计.md",
22922293
]
22932294
},
22942295
{
374 KB
Loading
269 KB
Loading
478 KB
Loading
773 KB
Loading
1.94 MB
Loading
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
title: 【更】第3-16节:FlowAgent执行链路设计
3+
pay: https://t.zsxq.com/Htptt
4+
---
5+
6+
# 《Ai Agent》第3-16节:FlowAgent执行链路设计
7+
8+
作者:小傅哥
9+
<br/>博客:[https://bugstack.cn](https://bugstack.cn)
10+
<br/>视频:[https://t.zsxq.com/J68sk](https://t.zsxq.com/J68sk)
11+
12+
> 沉淀、分享、成长,让自己和他人都能有所收获!😄
13+
14+
## 一、本章诉求
15+
16+
在 3-11 节的时候,我们做过一个这样的事情。针对于测试阶段的 Agent Test 代码,使用设计模式拆分出各个执行步骤,便于理解和维护。这一节我们同样需要把上一节分析的 FlowAgent 测试代码,按照模块化的流程进行拆分。
17+
18+
## 二、流程设计
19+
20+
如图,Flow Ai Agent 动态步骤分析执行流程图;
21+
22+
<div align="center">
23+
<img src="https://bugstack.cn/images/article/project/ai-rag-knowledge/ai-rag-knowledge-3-16-01.png" width="800px">
24+
</div>
25+
26+
- 首先,新增加一个 Agent 执行策略,流程步骤拆分执行。这个过程其实比上一 AutoAgent 要简单一些。
27+
- 之后,分贝设计出 Step1 工具分析、Step2 动作规划、Step3 拆分步骤、Step4 执行节点(循环执行),这四个步骤就是 FlowAgentTest.test_agent 里的步骤。
28+
- 最后,响应结果。后续章节会使用 sse 将结果响应到前端,这里我们暂时增加了判null操作,先不需要发送 sse 数据。

0 commit comments

Comments
 (0)