Skip to content

Commit 6395756

Browse files
committed
fix pr265 chapter diagrams
1 parent 3fbec7c commit 6395756

73 files changed

Lines changed: 615 additions & 533 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

s02_tool_use/README.en.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,8 @@ The teaching version's separation is clearer for teaching — readers immediatel
170170

171171
### 2. Concurrency Safety: isConcurrencySafe()
172172

173+
![Tool Concurrency](images/concurrency-comparison.en.svg)
174+
173175
The teaching version executes tools one by one in original order, without concurrency. CC uses `isConcurrencySafe(input)` to determine concurrency — note this isn't simply "read-only vs write", but judges by specific input:
174176

175177
| | isReadOnly | isConcurrencySafe |

s02_tool_use/README.ja.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,8 @@ Agent は 5 つの専用ツールを持つようになった。file tools は `s
170170

171171
### 二、並列安全性:isConcurrencySafe()
172172

173+
![Tool Concurrency](images/concurrency-comparison.ja.svg)
174+
173175
教育版は元の順序で一つずつ実行し、並列処理は行わない。CC は `isConcurrencySafe(input)` で並列可否を判断する — これは単なる「読み取り専用 vs 書き込み」ではなく、具体的な入力で判断する:
174176

175177
| | isReadOnly | isConcurrencySafe |

s02_tool_use/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,8 @@ s03 Permission → 在工具执行之前加一道门:这个操作安全吗?
170170

171171
### 二、并发安全判断:isConcurrencySafe()
172172

173+
![Tool Concurrency](images/concurrency-comparison.svg)
174+
173175
教学版按原始顺序逐个执行,不做并发。CC 用 `isConcurrencySafe(input)` 判断能否并发——注意这不是简单的"只读 vs 写",而是按具体输入判断:
174176

175177
| | isReadOnly | isConcurrencySafe |

s02_tool_use/images/concurrency-comparison.en.svg

Lines changed: 38 additions & 39 deletions
Loading

0 commit comments

Comments
 (0)