ai-agent-book 精选快照(<2MB 代码与文档,来自 github.com/bojieli/ai-agent-book)
Build latest book artifacts / build (push) Canceled after 0s
dependency resolution / resolve (3.11) (push) Canceled after 0s
dependency resolution / resolve (3.13) (push) Canceled after 0s
deploy-pages / build (push) Canceled after 0s
deploy-pages / deploy (push) Canceled after 0s
i18n consistency check / check (push) Canceled after 0s
provider adoption tests / test (chapter2/context-compression) (push) Canceled after 0s
provider adoption tests / test (chapter2/prompt-injection) (push) Canceled after 0s
provider adoption tests / test (chapter2/system-hint) (push) Canceled after 0s
provider adoption tests / test (chapter3/log-sanitization) (push) Canceled after 0s
web-search-agent tests / test (push) Canceled after 0s
web-search-agent tests / agentbook (push) Canceled after 0s

This commit is contained in:
2026-08-20 13:12:50 +00:00
commit b119135836
10275 changed files with 3284984 additions and 0 deletions
+39
View File
@@ -0,0 +1,39 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 40 780 430" width="780" height="430" style="background:#ffffff">
<defs><marker id="ah" markerWidth="12" markerHeight="8" refX="12" refY="4" orient="auto"><polygon points="0 0, 12 4, 0 8" fill="#333333" /></marker><marker id="ah-light" markerWidth="12" markerHeight="8" refX="12" refY="4" orient="auto"><polygon points="0 0, 12 4, 0 8" fill="#999999" /></marker></defs>
<rect x="30" y="60" width="140" height="50" rx="6" fill="#d0d0d0" stroke="#333333" stroke-width="2" />
<text x="100" y="0" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="12.88" fill="#333333" text-anchor="middle" dominant-baseline="central" font-weight="bold"><tspan x="100" dy="71.96">đầu vào của</tspan><tspan x="100" dy="13.91">người dùng</tspan></text>
<text x="100" y="98.91" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="11.27" fill="#666666" text-anchor="middle" dominant-baseline="central" font-weight="normal">"Chọn gói nào?"</text>
<line x1="172" y1="78" x2="218" y2="78" stroke="#333333" stroke-width="2" marker-end="url(#ah)" />
<rect x="220" y="55" width="250" height="130" rx="8" fill="#ffffff" stroke="#333333" stroke-width="2" stroke-dasharray="8,4" />
<text x="232" y="73" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="16" fill="#666666" text-anchor="start" dominant-baseline="central" font-weight="bold">Suy nghĩ song song</text>
<rect x="235" y="80" width="220" height="42" rx="6" fill="#f0f0f0" stroke="#333333" stroke-width="2" />
<text x="345" y="0" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="10" fill="#333333" text-anchor="middle" dominant-baseline="central" font-weight="bold"><tspan x="345" dy="84.8">Nghĩ nhanh ~500ms (Nghĩ</tspan><tspan x="345" dy="10.8">đi)</tspan></text>
<text x="345" y="0" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="10" fill="#666666" text-anchor="middle" dominant-baseline="central" font-weight="normal"><tspan x="345" dy="106.4">"Giá tốt, tôi khuyên bạn nên</tspan><tspan x="345" dy="10.8">mua nó"</tspan></text>
<rect x="235" y="130" width="220" height="42" rx="6" fill="#e8e8e8" stroke="#333333" stroke-width="2" />
<text x="345" y="0" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="10" fill="#333333" text-anchor="middle" dominant-baseline="central" font-weight="bold"><tspan x="345" dy="134.8">Suy nghĩ chậm ~8s (đang</tspan><tspan x="345" dy="10.8">suy nghĩ)</tspan></text>
<text x="345" y="0" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="10" fill="#666666" text-anchor="middle" dominant-baseline="central" font-weight="normal"><tspan x="345" dy="156.4">"Thiếu chuyển vùng quốc tế,</tspan><tspan x="345" dy="10.8">không phù hợp"</tspan></text>
<line x1="457" y1="95" x2="503" y2="95" stroke="#333333" stroke-width="2" marker-end="url(#ah)" />
<line x1="457" y1="150" x2="503" y2="150" stroke="#333333" stroke-width="2" marker-end="url(#ah)" />
<rect x="505" y="60" width="240" height="130" rx="4" fill="#f5f5f5" stroke="#333333" stroke-width="2" />
<text x="625" y="0" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="19.49" fill="#333333" text-anchor="middle" dominant-baseline="central" font-weight="bold"><tspan x="625" dy="75.53">trải nghiệm người</tspan><tspan x="625" dy="21.05">dùng</tspan></text>
<text x="625" y="114.47" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="13.65" fill="#666666" text-anchor="middle" dominant-baseline="central" font-weight="normal">0.5s: "Giá tốt nên mua"</text>
<text x="625" y="0" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="13.65" fill="#666666" text-anchor="middle" dominant-baseline="central" font-weight="normal"><tspan x="625" dy="129.21">8.0s: "Thiếu chuyển vùng quốc</tspan><tspan x="625" dy="14.74">tế, không phù hợp"</tspan></text>
<text x="625" y="159.74" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="15.59" fill="#666666" text-anchor="middle" dominant-baseline="central" font-weight="bold">→ Mâu thuẫn!</text>
<text x="625" y="176.58" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="15.59" fill="#666666" text-anchor="middle" dominant-baseline="central" font-weight="normal">→ Người dùng mất niềm tin</text>
<rect x="30" y="210" width="720" height="90" rx="6" fill="#f0f0f0" stroke="#333333" stroke-width="2" />
<text x="390" y="255" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="20" fill="#333333" text-anchor="middle" dominant-baseline="central" font-weight="bold">Hai câu hỏi lớn</text>
<text x="200" y="0" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="16" fill="#333333" text-anchor="middle" dominant-baseline="central" font-weight="bold"><tspan x="200" dy="231.24">Vấn đề 1: Suy nghĩ quá nhiều về những câu</tspan><tspan x="200" dy="17.28">hỏi đơn giản</tspan></text>
<text x="200" y="0" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="14" fill="#666666" text-anchor="middle" dominant-baseline="central" font-weight="normal"><tspan x="200" dy="264.72">"Hôm nay là ngày mấy" → Tư duy nhanh là đúng →</tspan><tspan x="200" dy="15.12">Tư duy chậm vẫn đang chạy 8s</tspan></text>
<text x="580" y="239.88" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="16" fill="#333333" text-anchor="middle" dominant-baseline="central" font-weight="bold">Vấn đề 2: Tốc độ không ổn định</text>
<text x="580" y="0" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="14" fill="#666666" text-anchor="middle" dominant-baseline="central" font-weight="normal"><tspan x="580" dy="256.08">Hãy suy nghĩ độc lập, các giả định có thể hoàn</tspan><tspan x="580" dy="15.12">toàn khác</tspan></text>
<rect x="30" y="355" width="340" height="100" rx="6" fill="#f0f0f0" stroke="#333333" stroke-width="2" />
<text x="200" y="0" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="12.35" fill="#333333" text-anchor="middle" dominant-baseline="central" font-weight="bold"><tspan x="200" dy="366.67">Cải thiện: Tư duy chậm đóng vai trò là</tspan><tspan x="200" dy="13.34">hướng dẫn hậu trường của "chiến lược</tspan><tspan x="200" dy="13.34">gia"</tspan></text>
<text x="200" y="0" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="11.57" fill="#666666" text-anchor="middle" dominant-baseline="central" font-weight="normal"><tspan x="200" dy="406.26">Suy nghĩ chậm → Thanh trạng thái Agent →</tspan><tspan x="200" dy="12.5">Suy nghĩ nhanh</tspan></text>
<text x="200" y="0" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="11.57" fill="#666666" text-anchor="middle" dominant-baseline="central" font-weight="normal"><tspan x="200" dy="431.25">Không có xung đột trực tiếp, nhưng giao</tspan><tspan x="200" dy="12.5">tiếp gián tiếp và mơ hồ</tspan></text>
<rect x="410" y="355" width="340" height="100" rx="6" fill="#e8e8e8" stroke="#333333" stroke-width="2" />
<text x="580" y="366.8" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="12.58" fill="#333333" text-anchor="middle" dominant-baseline="central" font-weight="bold">Vẫn còn những hạn chế cần thiết</text>
<text x="580" y="0" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="11.79" fill="#666666" text-anchor="middle" dominant-baseline="central" font-weight="normal"><tspan x="580" dy="379.96">Suy nghĩ nhanh có thể hiểu sai lời nhắc</tspan><tspan x="580" dy="12.73">trên thanh trạng thái ("Xác nhận giá" →</tspan></text>
<text x="580" y="0" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="11.79" fill="#666666" text-anchor="middle" dominant-baseline="central" font-weight="normal"><tspan x="580" dy="405.43">"xác nhận với người dùng" thay vì "tính</tspan><tspan x="580" dy="12.73">toán lại")</tspan></text>
<text x="580" y="0" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="11.79" fill="#666666" text-anchor="middle" dominant-baseline="central" font-weight="normal"><tspan x="580" dy="430.89">Không thể đạt được sự tương tác tự nhiên</tspan><tspan x="580" dy="12.73">"nghĩ và nói cùng một lúc"</tspan></text>
</svg>

After

Width:  |  Height:  |  Size: 9.2 KiB