💄 docs(tsl): lay out AGENT_PRIMER prompt/loop diagrams horizontally, stacked prompt-then-loop
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
+4
-4
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user