diff --git a/AGENT_PRIMER.md b/AGENT_PRIMER.md index 74239bd1..26cc0cd8 100644 --- a/AGENT_PRIMER.md +++ b/AGENT_PRIMER.md @@ -97,21 +97,21 @@ Prompt 是一次模型调用所接收的输入,可能包括: ### 一次性 Prompt 与 Loop 有什么不同? ```mermaid -flowchart LR +flowchart TD subgraph ONE[一次性 Prompt] - direction TB + direction LR P1[输入任务] --> P2[模型回答] --> P3([结束]) end subgraph LOOP[Loop] - direction TB + direction LR L1[设定目标] --> L2[观察当前状态] L2 --> L3[决定下一步] L3 --> L4[行动或调用工具] L4 --> L5[更新状态] L5 --> L6{目标完成了吗} - L6 -->|没有| L2 L6 -->|完成| L7([输出结果]) + L6 -->|没有| L2 end classDef prompt fill:#eaf2fd,stroke:#3178c6,color:#173f73,stroke-width:2px;