我们的合规检查器现已更新,支持欧盟人工智能法案的合规检查! 了解更多。

反思回路 — 智能体自我改进

反思回路:执行者产出草稿,评审者依据任务要求检查,编排者在修订补齐全部缺口后才批准。

下载 .fz 文件

完整 FlowZap 代码

将以下 FlowZap 代码复制并粘贴到您的 FlowZap 账户的项目中,即可查看此模板图。

user { # User
  n1: circle label:"Start request"
  n2: rectangle label:"Send task"
  n4: rectangle label:"Receive acknowledgement"
  n22: rectangle label:"Receive final answer"
  n1.handle(right) -> n2.handle(left)
  n2.handle(bottom) -> orchestrator.n3.handle(top) [label="Task"]
  n4.handle(right) -> n22.handle(left)
}

orchestrator { # Orchestrator
  n3: rectangle label:"Acknowledge task"
  n5: rectangle label:"Dispatch drafting job"
  n8: rectangle label:"Receive draft"
  n9: rectangle label:"Send for review"
  n12: rectangle label:"Receive critique"
  n13: rectangle label:"Request revision"
  n16: rectangle label:"Receive revised draft"
  n17: rectangle label:"Request final review"
  n20: rectangle label:"Receive approval"
  n21: rectangle label:"Send final answer"
  n3.handle(top) -> user.n4.handle(bottom) [label="Ack"]
  n3.handle(right) -> n5.handle(left)
  n5.handle(bottom) -> worker.n6.handle(top) [label="Draft task"]
  n8.handle(right) -> n9.handle(left)
  n9.handle(bottom) -> critic.n10.handle(top) [label="Review draft"]
  n12.handle(right) -> n13.handle(left)
  n13.handle(bottom) -> worker.n14.handle(top) [label="Revise"]
  n16.handle(right) -> n17.handle(left)
  n17.handle(bottom) -> critic.n18.handle(top) [label="Review again"]
  n20.handle(right) -> n21.handle(left)
  n21.handle(top) -> user.n22.handle(bottom) [label="Final"]
}

worker { # Worker Agent
  n6: rectangle label:"Generate draft"
  n7: rectangle label:"Return draft"
  n14: rectangle label:"Revise draft"
  n15: rectangle label:"Return revision"
  n6.handle(right) -> n7.handle(left)
  n7.handle(top) -> orchestrator.n8.handle(bottom) [label="Draft ready"]
  n14.handle(right) -> n15.handle(left)
  n15.handle(top) -> orchestrator.n16.handle(bottom) [label="Revision ready"]
}

critic { # Critic Agent
  n10: rectangle label:"Review draft"
  n11: rectangle label:"Return critique"
  n18: rectangle label:"Approve revision"
  n19: rectangle label:"Return approval"
  n10.handle(right) -> n11.handle(left)
  n11.handle(top) -> orchestrator.n12.handle(bottom) [label="Critique"]
  n18.handle(right) -> n19.handle(left)
  n19.handle(top) -> orchestrator.n20.handle(bottom) [label="Approved"]
}

安装 MCP 包npm install -g flowzap-mcpMCP 文档

相关模板

智能体品味评估回路

旧版执行器、LLM-as-judge 评估器与新一代消费者:评估器为完整轨迹打分,拒绝结构性粗糙的产出,只转发通过校验的载荷。

返回所有模板