Files
ai-agent-book/book-vi/images/fig10-10.svg
T
liqiang b119135836
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
ai-agent-book 精选快照(<2MB 代码与文档,来自 github.com/bojieli/ai-agent-book)
2026-08-20 13:12:50 +00:00

56 lines
14 KiB
XML

<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 40 810 520" width="810" height="520" 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="55" width="180" height="65" rx="6" fill="#d0d0d0" stroke="#333333" stroke-width="2" />
<text x="120" y="72" 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">Isabella Rodriguez</text>
<text x="120" y="92" 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">Chủ quán cà phê Hobbs</text>
<text x="120" y="108" 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">hiếu khách và hòa đồng</text>
<rect x="30" y="140" width="240" height="224" rx="6" fill="#f0f0f0" stroke="#333333" stroke-width="2" />
<text x="150" 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="150" dy="243.36">Luồng bộ nhớ Memory</tspan><tspan x="150" dy="17.28">Stream</tspan></text>
<text x="40" y="0" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="11" fill="#333333" text-anchor="start" dominant-baseline="central" font-weight="normal"><tspan x="40" dy="171.54">[08:30] Quán cà phê Hobbs mở cửa kinh</tspan><tspan x="40" dy="11.88">doanh</tspan></text>
<text x="40" y="194.76" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="10" fill="#666666" text-anchor="start" dominant-baseline="central" font-weight="normal">importance: 4 recency: 0.9</text>
<text x="40" y="0" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="11" fill="#333333" text-anchor="start" dominant-baseline="central" font-weight="normal"><tspan x="40" dy="206.1">[09:15] Khách hàng Klaus đến cửa hàng</tspan><tspan x="40" dy="11.88">mua cà phê</tspan></text>
<text x="40" y="229.32" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="10" fill="#666666" text-anchor="start" dominant-baseline="central" font-weight="normal">importance: 5 recency: 0.85</text>
<text x="40" y="0" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="11" fill="#333333" text-anchor="start" dominant-baseline="central" font-weight="normal"><tspan x="40" dy="240.66">[10:00] Quyết định tổ chức tiệc Ngày</tspan><tspan x="40" dy="11.88">lễ tình nhân</tspan></text>
<text x="40" y="263.88" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="10" fill="#666666" text-anchor="start" dominant-baseline="central" font-weight="normal">importance: 9 recency: 0.8</text>
<text x="40" y="0" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="11" fill="#333333" text-anchor="start" dominant-baseline="central" font-weight="normal"><tspan x="40" dy="275.22">[11:30] Mời khách hàng Maria đến dự</tspan><tspan x="40" dy="11.88">tiệc</tspan></text>
<text x="40" y="298.44" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="10" fill="#666666" text-anchor="start" dominant-baseline="central" font-weight="normal">importance: 8 recency: 0.7</text>
<text x="40" y="0" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="11" fill="#333333" text-anchor="start" dominant-baseline="central" font-weight="normal"><tspan x="40" dy="309.78">[14:00] Vui lòng giúp Maria sắp xếp</tspan><tspan x="40" dy="11.88">địa điểm</tspan></text>
<text x="40" y="333" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="10" fill="#666666" text-anchor="start" dominant-baseline="central" font-weight="normal">importance: 7 recency: 0.6</text>
<rect x="285" y="140" width="230" height="188" rx="6" fill="#d0d0d0" stroke="#333333" stroke-width="2" />
<text x="400" y="234" 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">Phản ánh Reflection</text>
<text x="295" y="0" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="11" fill="#333333" text-anchor="start" dominant-baseline="central" font-weight="normal"><tspan x="295" dy="171.9">"Ai là khách thường xuyên của</tspan><tspan x="295" dy="11.88">Hobbs?"</tspan></text>
<text x="295" y="195.12" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="10" fill="#666666" text-anchor="start" dominant-baseline="central" font-weight="normal">→ Maria, Klaus, Tom (thường xuyên đến)</text>
<text x="295" y="0" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="10" fill="#333333" text-anchor="start" dominant-baseline="central" font-weight="normal"><tspan x="295" dy="215.6">"Mời</tspan><tspan x="295" dy="10.8">ai?"</tspan></text>
<text x="295" y="0" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="10" fill="#666666" text-anchor="start" dominant-baseline="central" font-weight="normal"><tspan x="295" dy="205.92">→ Khách hàng thường xuyên và bạn bè</tspan><tspan x="295" dy="10.8">được mời</tspan></text>
<text x="295" y="0" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="11" fill="#333333" text-anchor="start" dominant-baseline="central" font-weight="normal"><tspan x="295" dy="228.06">"Việc chuẩn bị của bữa tiệc đã tiến</tspan><tspan x="295" dy="11.88">triển đến đâu rồi?"</tspan></text>
<text x="295" y="0" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="10" fill="#666666" text-anchor="start" dominant-baseline="central" font-weight="normal"><tspan x="295" dy="251.28">→ Một số người đã được mời và địa điểm</tspan><tspan x="295" dy="10.8">sẽ được sắp xếp</tspan></text>
<text x="295" y="0" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="11" fill="#333333" text-anchor="start" dominant-baseline="central" font-weight="normal"><tspan x="295" dy="273.42">"Ai có thể giúp tôi trang trí quán</tspan><tspan x="295" dy="11.88">cà phê?"</tspan></text>
<text x="295" y="296.64" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="10" fill="#666666" text-anchor="start" dominant-baseline="central" font-weight="normal">→ Maria (Bạn ơi, rất vui được giúp đỡ)</text>
<rect x="530" y="140" width="250" height="260" rx="6" fill="#e8e8e8" stroke="#333333" stroke-width="2" />
<text x="655" 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="655" dy="261.36">Kế hoạch và hành động</tspan><tspan x="655" dy="17.28">Planning</tspan></text>
<text x="540" y="234.9" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="11" fill="#333333" text-anchor="start" dominant-baseline="central" font-weight="normal">08:00 Dậy + ăn sáng</text>
<text x="540" y="0" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="10" fill="#333333" text-anchor="start" dominant-baseline="central" font-weight="normal"><tspan x="540" dy="210.2">09:00</tspan><tspan x="540" dy="10.8">mở</tspan><tspan x="540" dy="10.8">cửa</tspan></text>
<text x="540" y="246.78" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="11" fill="#333333" text-anchor="start" dominant-baseline="central" font-weight="normal">12:00 Mời khách hàng khi kinh doanh</text>
<text x="540" y="258.66" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="11" fill="#333333" text-anchor="start" dominant-baseline="central" font-weight="normal">14:00 và Maria bố trí trang web</text>
<text x="540" y="270.54" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="11" fill="#333333" text-anchor="start" dominant-baseline="central" font-weight="normal">16:00 Chuẩn bị đồ uống và chỗ ngồi</text>
<text x="540" y="281.88" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="10" fill="#666666" text-anchor="start" dominant-baseline="central" font-weight="normal">← Điều chỉnh động</text>
<text x="540" y="0" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="11" fill="#333333" text-anchor="start" dominant-baseline="central" font-weight="normal"><tspan x="540" dy="293.22">18:00 đang tổ chức bữa tiệc Ngày lễ</tspan><tspan x="540" dy="11.88">tình nhân tại Hobbs</tspan></text>
<line x1="270" y1="250" x2="285" y2="250" stroke="#333333" stroke-width="2" marker-end="url(#ah)" />
<rect x="263" y="213" width="30" height="16" rx="2" fill="#ffffff" stroke="none" />
<text x="277.5" y="0" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="10" fill="#666666" text-anchor="middle" dominant-baseline="auto"><tspan x="277.5" dy="215.6">Tìm</tspan><tspan x="277.5" dy="10.8">kiếm</tspan></text>
<line x1="515" y1="250" x2="530" y2="250" stroke="#333333" stroke-width="2" marker-end="url(#ah)" />
<rect x="508" y="213" width="30" height="16" rx="2" fill="#ffffff" stroke="none" />
<text x="522.5" y="0" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="10" fill="#666666" text-anchor="middle" dominant-baseline="auto"><tspan x="522.5" dy="215.6">lái</tspan><tspan x="522.5" dy="10.8">xe</tspan></text>
<rect x="30" y="420" width="750" height="115" rx="4" fill="#f5f5f5" stroke="#333333" stroke-width="2" />
<text x="405" y="407.3" 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">Hành vi mới nổi (25 Agent · 2 ngày thời gian ảo)</text>
<text x="50" y="0" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="10.23" fill="#333333" text-anchor="start" dominant-baseline="central" font-weight="bold"><tspan x="50" dy="428.28">▸ Mạng xã</tspan><tspan x="50" dy="11.05">hội tự</tspan><tspan x="50" dy="11.05">phát</tspan></text>
<text x="140" y="0" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="10" fill="#666666" text-anchor="start" dominant-baseline="central" font-weight="normal"><tspan x="140" dy="461.3">Nhiều cuộc gặp gỡ tình cờ → tình</tspan><tspan x="140" dy="10.8">bạn hình thành → chủ động hẹn hò</tspan></text>
<text x="400" y="0" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="10" fill="#333333" text-anchor="start" dominant-baseline="central" font-weight="bold"><tspan x="400" dy="418.1">▸ Phổ</tspan><tspan x="400" dy="10.8">biến</tspan><tspan x="400" dy="10.8">thông</tspan><tspan x="400" dy="10.8">tin</tspan></text>
<text x="490" y="0" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="10" fill="#666666" text-anchor="start" dominant-baseline="central" font-weight="normal"><tspan x="490" dy="461.3">Lời mời dự tiệc Ngày lễ tình nhân của</tspan><tspan x="490" dy="10.8">Isabella lan truyền đến nhiều Agent</tspan></text>
<text x="50" y="0" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="10.23" fill="#333333" text-anchor="start" dominant-baseline="central" font-weight="bold"><tspan x="50" dy="483.02">▸ Truyền</tspan><tspan x="50" dy="11.05">thông</tspan><tspan x="50" dy="11.05">bầu cử</tspan></text>
<text x="140" y="0" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="10" fill="#666666" text-anchor="start" dominant-baseline="central" font-weight="normal"><tspan x="140" dy="516.05">Tin tức về việc Sam tranh cử thị</tspan><tspan x="140" dy="10.8">trưởng đã lan truyền trong Agent</tspan></text>
<text x="400" y="0" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="10" fill="#333333" text-anchor="start" dominant-baseline="central" font-weight="bold"><tspan x="400" dy="482.9">▸ Bộ nhớ</tspan><tspan x="400" dy="10.8">quan hệ</tspan></text>
<text x="490" y="0" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="10" fill="#666666" text-anchor="start" dominant-baseline="central" font-weight="normal"><tspan x="490" dy="504.5">Ghi nhớ các cuộc trò chuyện trong quá</tspan><tspan x="490" dy="10.8">khứ (chẳng hạn như các dự án chụp ảnh)</tspan><tspan x="490" dy="10.8">và tiếp tục cuộc trò chuyện</tspan></text>
<text x="405" 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="405" dy="536.9">Mọi hành vi đều không được lập trình trước - kết quả nổi bật của trí nhớ + suy ngẫm + lý</tspan><tspan x="405" dy="10.8">luận thông thường của xã hội</tspan></text>
</svg>