Files
ai-agent-book/book-vi/images/fig6-14.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

33 lines
6.9 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. 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 780 310" width="780" height="310" 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="40" y="65" width="200" height="120" rx="6" fill="#f0f0f0" stroke="#333333" stroke-width="2" />
<text x="140" y="93.68" 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">màn hình thực tế</text>
<text x="140" y="113.12" 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">2560 × 1440</text>
<text x="140" y="129.32" 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">hoặc độ phân giải khác</text>
<text x="140" 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="140" dy="144.44">Người dùng nhấp chuột:</tspan><tspan x="140" dy="15.12">(1280, 720)</tspan></text>
<circle cx="155" cy="165" r="4" fill="#333333" stroke="#333333" stroke-width="2" />
<rect x="290" y="65" width="200" height="120" rx="6" fill="#d0d0d0" stroke="#333333" stroke-width="2" />
<text x="390" y="0" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="18.52" fill="#333333" text-anchor="middle" dominant-baseline="central" font-weight="bold"><tspan x="390" dy="80.01">Độ phân giải đào</tspan><tspan x="390" dy="20">tạo mô hình</tspan></text>
<text x="390" y="117.01" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="12.96" fill="#666666" text-anchor="middle" dominant-baseline="central" font-weight="normal">XGA: 1024×768</text>
<text x="390" y="131" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="12.96" fill="#666666" text-anchor="middle" dominant-baseline="central" font-weight="normal">WXGA: 1280×800</text>
<text x="390" y="145" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="12.96" fill="#666666" text-anchor="middle" dominant-baseline="central" font-weight="normal">FWXGA: 1366×768</text>
<text x="390" y="0" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="12.96" fill="#666666" text-anchor="middle" dominant-baseline="central" font-weight="normal"><tspan x="390" dy="159">Chọn kết quả phù hợp nhất</tspan><tspan x="390" dy="14">dựa trên tỷ lệ khung hình</tspan></text>
<rect x="540" y="65" width="200" height="120" rx="6" fill="#f0f0f0" stroke="#333333" stroke-width="2" />
<text x="640" y="0" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="17.56" fill="#333333" text-anchor="middle" dominant-baseline="central" font-weight="bold"><tspan x="640" dy="79.48">Tọa độ đầu ra của</tspan><tspan x="640" dy="18.96">mô hình</tspan></text>
<text x="640" y="0" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="14.05" fill="#666666" text-anchor="middle" dominant-baseline="central" font-weight="normal"><tspan x="640" dy="115.52">Dựa trên hình ảnh thu</tspan><tspan x="640" dy="15.17">nhỏ</tspan></text>
<text x="640" y="145.87" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="14.05" fill="#333333" text-anchor="middle" dominant-baseline="central" font-weight="normal">Dự đoán: (683, 384)</text>
<circle cx="650" cy="145" r="4" fill="#333333" stroke="#333333" stroke-width="2" />
<text x="640" y="0" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="12.29" fill="#666666" text-anchor="middle" dominant-baseline="central" font-weight="normal"><tspan x="640" dy="160.09">→ Thu phóng về độ phân</tspan><tspan x="640" dy="13.27">giải thực tế</tspan></text>
<line x1="242" y1="110" x2="288" y2="110" stroke="#333333" stroke-width="2" marker-end="url(#ah)" />
<text x="265.0" y="100.0" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="16" fill="#666666" text-anchor="middle">thu nhỏ</text>
<line x1="492" y1="140" x2="538" y2="140" stroke="#333333" stroke-width="2" marker-end="url(#ah)" />
<line x1="538" y1="110" x2="492" y2="110" stroke="#333333" stroke-width="2" marker-end="url(#ah)" />
<text x="515.0" y="100.0" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="16" fill="#666666" text-anchor="middle">điều phối</text>
<rect x="40" y="200" width="700" height="60" rx="4" fill="#f5f5f5" stroke="#333333" stroke-width="2" />
<text x="390" y="215.96" 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">Quá trình hoàn tất</text>
<text x="390" y="0" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="13" fill="#666666" text-anchor="middle" dominant-baseline="central" font-weight="normal"><tspan x="390" dy="233.78">①Chọn độ phân giải mục tiêu theo tỷ lệ khung hình → ②ImageMagick để giảm ảnh chụp màn hình → ③Suy</tspan><tspan x="390" dy="14.04">luận mô hình để tạo tọa độ → ④Phóng to theo tỷ lệ → ⑤thực thi xdotool</tspan></text>
<rect x="40" y="275" width="700" height="55" rx="6" fill="#f0f0f0" stroke="#333333" stroke-width="2" />
<text x="390" y="288.18" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="15.15" fill="#333333" text-anchor="middle" dominant-baseline="central" font-weight="bold">Ví dụ thu phóng (Màn hình 16:9 → FWXGA)</text>
<text x="390" y="0" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="13.26" fill="#666666" text-anchor="middle" dominant-baseline="central" font-weight="normal"><tspan x="390" dy="303.52">Ảnh chụp màn hình: 2560×1440 → 1366×768 (×0.53) | Tọa độ: Mô hình (683, 384) → Thực tế (1280,</tspan><tspan x="390" dy="14.32">720) (×1.87)</tspan></text>
</svg>