From 3c9112f9695327c41d5657e2c4caf9ab992a7f96 Mon Sep 17 00:00:00 2001 From: claude-code-best Date: Tue, 14 Apr 2026 15:50:04 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E6=B7=BB=E5=8A=A0=E7=AE=80=E5=8C=96?= =?UTF-8?q?=E7=89=88=20agent=20loop?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/diagrams/agent-loop-simple.mmd | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 docs/diagrams/agent-loop-simple.mmd diff --git a/docs/diagrams/agent-loop-simple.mmd b/docs/diagrams/agent-loop-simple.mmd new file mode 100644 index 000000000..4f213ee47 --- /dev/null +++ b/docs/diagrams/agent-loop-simple.mmd @@ -0,0 +1,17 @@ +flowchart TB + START((输入)) --> CTX["Context 管理"] + CTX --> LLM["LLM 流式输出"] + LLM --> TC{tool_use?} + + TC --> |是| EXEC["执行工具"] + EXEC --> CTX + + TC --> |否| DONE((完成)) + + classDef proc fill:#eef,stroke:#66c,color:#224 + classDef decision fill:#fee,stroke:#c66,color:#422 + classDef io fill:#eff,stroke:#6cc,color:#244 + + class CTX,LLM,EXEC proc + class TC decision + class START,DONE io