Files
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

44 lines
7.2 KiB
XML
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 40 880 460" width="880" height="460" 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="220" y="55" width="440" height="200" rx="6" fill="#ffffff" stroke="#333333" stroke-width="2" />
<text x="440" y="78" 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">Agent (vòng lặp ReAct)</text>
<rect x="240" y="100" width="180" height="45" rx="6" fill="#f0f0f0" stroke="#333333" stroke-width="2" />
<text x="330.0" 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="330" dy="113.86">① Thought (Suy</tspan><tspan x="330" dy="17.28">nghĩ)</tspan></text>
<rect x="460" y="100" width="180" height="45" rx="6" fill="#d0d0d0" stroke="#333333" stroke-width="2" />
<text x="550.0" 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="550" dy="113.86">② Action (hành</tspan><tspan x="550" dy="17.28">động)</tspan></text>
<rect x="350" y="180" width="180" height="45" rx="6" fill="#f0f0f0" stroke="#333333" stroke-width="2" />
<text x="440.0" 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="440" dy="193.86">③ Observation (quan</tspan><tspan x="440" dy="17.28">sát)</tspan></text>
<line x1="420" y1="122" x2="458" y2="122" stroke="#333333" stroke-width="2" marker-end="url(#ah)" />
<line x1="640" y1="130" x2="530" y2="178" stroke="#333333" stroke-width="2" marker-end="url(#ah)" />
<line x1="350" y1="202" x2="280" y2="145" stroke="#333333" stroke-width="2" marker-end="url(#ah)" />
<text x="360" y="165" 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">Lặp lại cho đến khi có đủ thông tin</text>
<rect x="20" y="95" width="160" height="55" rx="6" fill="#d0d0d0" stroke="#333333" stroke-width="2" />
<text x="100.0" y="0" 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"><tspan x="100" dy="111.7">Truy vấn của</tspan><tspan x="100" dy="21.6">người dùng</tspan></text>
<line x1="180" y1="122" x2="218" y2="122" stroke="#333333" stroke-width="2" marker-end="url(#ah)" />
<rect x="700" y="95" width="160" height="55" rx="6" fill="#d0d0d0" stroke="#333333" stroke-width="2" />
<text x="780.0" y="122.5" 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">final answer</text>
<line x1="660" y1="122" x2="698" y2="122" stroke="#333333" stroke-width="2" marker-end="url(#ah)" />
<rect x="100" y="290" width="680" height="85" rx="6" fill="#ffffff" stroke="#333333" stroke-width="2" stroke-dasharray="8,4" />
<text x="440" y="312" 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">lớp tool</text>
<rect x="120" y="330" width="220" height="35" rx="6" fill="#f0f0f0" stroke="#333333" stroke-width="2" />
<text x="230.0" y="347" font-family="'Courier New', Courier, monospace" font-size="14" fill="#333333" text-anchor="middle" dominant-baseline="central">knowledge_base_search</text>
<rect x="370" y="330" width="140" height="35" rx="6" fill="#f0f0f0" stroke="#333333" stroke-width="2" />
<text x="440.0" y="347" font-family="'Courier New', Courier, monospace" font-size="14" fill="#333333" text-anchor="middle" dominant-baseline="central">web_search</text>
<rect x="540" y="330" width="160" height="35" rx="6" fill="#f0f0f0" stroke="#333333" stroke-width="2" />
<text x="620.0" y="347" font-family="'Courier New', Courier, monospace" font-size="14" fill="#333333" text-anchor="middle" dominant-baseline="central">code_interpreter</text>
<line x1="440" y1="255" x2="440" y2="288" stroke="#333333" stroke-width="2" marker-end="url(#ah)" />
<line x1="440" y1="288" x2="440" y2="255" stroke="#333333" stroke-width="2" marker-end="url(#ah)" />
<rect x="100" y="400" width="680" height="85" rx="6" fill="#ffffff" stroke="#999999" stroke-width="2" stroke-dasharray="8,4" />
<text x="440" y="420" 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">Phần phụ trợ cơ sở kiến thức (có thể chuyển đổi)</text>
<rect x="120" y="435" width="180" height="45" rx="6" fill="#f0f0f0" stroke="#333333" stroke-width="2" />
<text x="210.0" y="449" 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="normal">retrieval-pipeline</text>
<text x="210.0" y="466" 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="normal">Tìm kiếm kết hợp</text>
<rect x="340" y="435" width="180" height="45" rx="6" fill="#f0f0f0" stroke="#333333" stroke-width="2" />
<text x="430.0" y="449" 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="normal">structured-index</text>
<text x="430.0" y="466" 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="normal">RAPTOR/GraphRAG</text>
<rect x="560" y="435" width="180" height="45" rx="6" fill="#f0f0f0" stroke="#333333" stroke-width="2" />
<text x="650.0" y="449" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="14.5" fill="#333333" text-anchor="middle" dominant-baseline="central" font-weight="normal">contextual-retrieval</text>
<text x="650.0" y="466" 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="normal">nhận biết bối cảnh</text>
<line x1="230" y1="365" x2="230" y2="398" stroke="#333333" stroke-width="2" marker-end="url(#ah)" />
<line x1="440" y1="375" x2="440" y2="398" stroke="#333333" stroke-width="2" marker-end="url(#ah)" />
</svg>