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
+64
View File
@@ -0,0 +1,64 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 40 920 540" width="920" height="540" 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>
<text x="220.0" y="65" 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">Sin barra de estado</text>
<text x="645.0" y="65" 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">Con barra de estado</text>
<rect x="30" y="90" width="385" height="35" rx="4" fill="#d0d0d0" stroke="#333333" stroke-width="2"/>
<text x="38" y="107.5" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="14" fill="#333333" text-anchor="start" dominant-baseline="central" font-weight="bold">sistema:</text>
<text x="120" y="107.5" font-family="'Courier New', Courier, monospace" font-size="14" fill="#333333" text-anchor="start" dominant-baseline="central">Prompt de sistema + Herramientas</text>
<rect x="30" y="128" width="385" height="35" rx="4" fill="#f0f0f0" stroke="#333333" stroke-width="2"/>
<text x="38" y="145.5" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="14" fill="#333333" text-anchor="start" dominant-baseline="central" font-weight="bold">usuario:</text>
<text x="120" y="145.5" font-family="'Courier New', Courier, monospace" font-size="10.5" fill="#333333" text-anchor="start" dominant-baseline="central">"Ayúdame a contactar a Xfinity para negociar"</text>
<rect x="30" y="166" width="385" height="35" rx="4" fill="#e8e8e8" stroke="#333333" stroke-width="2"/>
<text x="38" y="183.5" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="14" fill="#333333" text-anchor="start" dominant-baseline="central" font-weight="bold">asistente:</text>
<text x="120" y="183.5" font-family="'Courier New', Courier, monospace" font-size="14" fill="#333333" text-anchor="start" dominant-baseline="central">phone_call(Xfinity) → 1.er intento</text>
<rect x="30" y="204" width="385" height="35" rx="4" fill="#f0f0f0" stroke="#333333" stroke-width="2"/>
<text x="38" y="221.5" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="14" fill="#333333" text-anchor="start" dominant-baseline="central" font-weight="bold">herramienta:</text>
<text x="120" y="221.5" font-family="'Courier New', Courier, monospace" font-size="10.5" fill="#333333" text-anchor="start" dominant-baseline="central">Resultado: espera de 45 minutos, no conectado</text>
<rect x="30" y="242" width="385" height="35" rx="4" fill="#e8e8e8" stroke="#333333" stroke-width="2"/>
<text x="38" y="259.5" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="14" fill="#333333" text-anchor="start" dominant-baseline="central" font-weight="bold">asistente:</text>
<text x="120" y="259.5" font-family="'Courier New', Courier, monospace" font-size="14" fill="#333333" text-anchor="start" dominant-baseline="central">web_search(&quot;Xfinity deals&quot;)</text>
<rect x="30" y="280" width="385" height="35" rx="4" fill="#f0f0f0" stroke="#333333" stroke-width="2"/>
<text x="38" y="297.5" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="14" fill="#333333" text-anchor="start" dominant-baseline="central" font-weight="bold">herramienta:</text>
<text x="120" y="297.5" font-family="'Courier New', Courier, monospace" font-size="8.5" fill="#333333" text-anchor="start" dominant-baseline="central">Resultado: [gran cantidad de contenido de búsqueda...]</text>
<rect x="30" y="318" width="385" height="35" rx="4" fill="#e8e8e8" stroke="#333333" stroke-width="2"/>
<text x="38" y="335.5" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="14" fill="#333333" text-anchor="start" dominant-baseline="central" font-weight="bold">asistente:</text>
<text x="120" y="335.5" font-family="'Courier New', Courier, monospace" font-size="14" fill="#333333" text-anchor="start" dominant-baseline="central">phone_call(Xfinity) → 2.º intento</text>
<rect x="30" y="356" width="385" height="35" rx="4" fill="#f0f0f0" stroke="#333333" stroke-width="2"/>
<text x="38" y="373.5" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="14" fill="#333333" text-anchor="start" dominant-baseline="central" font-weight="bold">herramienta:</text>
<text x="120" y="373.5" font-family="'Courier New', Courier, monospace" font-size="12" fill="#333333" text-anchor="start" dominant-baseline="central">Resultado: conectado, cotizado a $65/mes</text>
<rect x="30" y="394" width="385" height="35" rx="4" fill="#e8e8e8" stroke="#333333" stroke-width="2"/>
<text x="38" y="411.5" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="14" fill="#333333" text-anchor="start" dominant-baseline="central" font-weight="bold">asistente:</text>
<text x="120" y="411.5" font-family="'Courier New', Courier, monospace" font-size="14" fill="#333333" text-anchor="start" dominant-baseline="central">phone_call(Xfinity) → 3.er intento</text>
<rect x="30" y="432" width="385" height="35" rx="4" fill="#f0f0f0" stroke="#333333" stroke-width="2"/>
<text x="38" y="449.5" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="14" fill="#333333" text-anchor="start" dominant-baseline="central" font-weight="bold">herramienta:</text>
<text x="120" y="449.5" font-family="'Courier New', Courier, monospace" font-size="9" fill="#333333" text-anchor="start" dominant-baseline="central">Resultado: reducción de precio confirmada a $59/mes</text>
<rect x="30" y="470" width="385" height="35" rx="4" fill="#f0f0f0" stroke="#333333" stroke-width="2"/>
<text x="38" y="487.5" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="14" fill="#333333" text-anchor="start" dominant-baseline="central" font-weight="bold">usuario:</text>
<text x="120" y="487.5" font-family="'Courier New', Courier, monospace" font-size="9" fill="#333333" text-anchor="start" dominant-baseline="central">"¿Puedes llamar de nuevo para hacer un seguimiento?"</text>
<text x="220.0" y="523" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="16" fill="#666666" text-anchor="middle" dominant-baseline="central" font-weight="normal">→ El modelo necesita escanear todo el contexto para "contar"</text>
<text x="220.0" y="543" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="16" fill="#666666" text-anchor="middle" dominant-baseline="central" font-weight="normal">cuántas llamadas se realizaron, fácil de contar mal</text>
<rect x="455" y="90" width="385" height="35" rx="4" fill="#d0d0d0" stroke="#333333" stroke-width="2"/>
<text x="463" y="107.5" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="14" fill="#333333" text-anchor="start" dominant-baseline="central" font-weight="bold">sistema:</text>
<text x="540" y="107.5" font-family="'Courier New', Courier, monospace" font-size="14" fill="#333333" text-anchor="start" dominant-baseline="central">Prompt de sistema + Herramientas</text>
<rect x="455" y="128" width="385" height="35" rx="4" fill="#f0f0f0" stroke="#333333" stroke-width="2"/>
<text x="463" y="145.5" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="14" fill="#333333" text-anchor="start" dominant-baseline="central" font-weight="bold">usuario:</text>
<text x="540" y="145.5" font-family="'Courier New', Courier, monospace" font-size="10.5" fill="#333333" text-anchor="start" dominant-baseline="central">"Ayúdame a contactar a Xfinity para negociar"</text>
<rect x="455" y="166" width="385" height="90" rx="4" fill="#e8e8e8" stroke="#333333" stroke-width="2"/>
<text x="463" y="211.0" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="14" fill="#333333" text-anchor="start" dominant-baseline="central" font-weight="bold">...:</text>
<text x="540" y="211.0" font-family="'Courier New', Courier, monospace" font-size="14" fill="#333333" text-anchor="start" dominant-baseline="central">[ Mismo contenido de trayectoria ]</text>
<rect x="455" y="259" width="385" height="35" rx="4" fill="#f0f0f0" stroke="#333333" stroke-width="2"/>
<text x="463" y="276.5" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="14" fill="#333333" text-anchor="start" dominant-baseline="central" font-weight="bold">usuario:</text>
<text x="540" y="276.5" font-family="'Courier New', Courier, monospace" font-size="9" fill="#333333" text-anchor="start" dominant-baseline="central">"¿Puedes llamar de nuevo para hacer un seguimiento?"</text>
<rect x="455" y="297" width="385" height="130" rx="4" fill="#d0d0d0" stroke="#333333" stroke-width="2"/>
<text x="465" y="315" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="16" fill="#333333" text-anchor="start" dominant-baseline="central" font-weight="bold">&lt;agent_status&gt;</text>
<text x="470" y="337" font-family="'Courier New', Courier, monospace" font-size="14" fill="#333333" text-anchor="start" dominant-baseline="central">phone_call llamado 3 veces (Xfinity: 3)</text>
<text x="470" y="357" font-family="'Courier New', Courier, monospace" font-size="11" fill="#333333" text-anchor="start" dominant-baseline="central">Verificación de restricción: límite alcanzado (3/3) ✗</text>
<text x="470" y="377" font-family="'Courier New', Courier, monospace" font-size="9.5" fill="#333333" text-anchor="start" dominant-baseline="central">TODO: [✓]Contactar a Xfinity [✓]Confirmar reducción de precio</text>
<text x="470" y="397" font-family="'Courier New', Courier, monospace" font-size="14" fill="#333333" text-anchor="start" dominant-baseline="central">Hora actual: 2025-09-14 10:30</text>
<text x="470" y="417" font-family="'Courier New', Courier, monospace" font-size="12" fill="#333333" text-anchor="start" dominant-baseline="central">Estado actual: esperando confirmación del usuario</text>
<text x="815" y="417" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="16" fill="#333333" text-anchor="end" dominant-baseline="central" font-weight="bold">&lt;/agent_status&gt;</text>
<text x="645.0" y="445" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="16" fill="#666666" text-anchor="middle" dominant-baseline="central" font-weight="normal">→ El modelo lee directamente el estado refinado</text>
<text x="645.0" y="465" font-family="Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="16" fill="#666666" text-anchor="middle" dominant-baseline="central" font-weight="normal">Sigue las restricciones con precisión, sin más llamadas</text>
<text x="435.0" y="300" 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">VS</text>
</svg>

After

Width:  |  Height:  |  Size: 12 KiB