Files
ai-agent-book/book-ar/images/fig4-1.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

45 lines
6.0 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 880 580" width="880" height="580">
<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>
</defs>
<rect x="0" y="40" width="880" height="580" fill="#ffffff"/>
<rect x="95" y="50" width="210" height="44" rx="6" fill="#d0d0d0" stroke="#333333" stroke-width="2"/>
<text direction="rtl" unicode-bidi="plaintext" x="200" y="72" font-family="'Noto Sans Arabic', 'Noto Sans', Arial, sans-serif" font-size="18" fill="#333333" text-anchor="middle" dominant-baseline="central" font-weight="bold">عميل MCP</text>
<rect x="575" y="50" width="210" height="44" rx="6" fill="#d0d0d0" stroke="#333333" stroke-width="2"/>
<text direction="rtl" unicode-bidi="plaintext" x="680" y="72" font-family="'Noto Sans Arabic', 'Noto Sans', Arial, sans-serif" font-size="18" fill="#333333" text-anchor="middle" dominant-baseline="central" font-weight="bold">خادم MCP</text>
<line x1="200" y1="94" x2="200" y2="600" stroke="#999999" stroke-width="2" stroke-dasharray="8,4"/>
<line x1="680" y1="94" x2="680" y2="600" stroke="#999999" stroke-width="2" stroke-dasharray="8,4"/>
<line x1="204" y1="140" x2="676" y2="140" stroke="#333333" stroke-width="2" marker-end="url(#ah)"/>
<text direction="rtl" unicode-bidi="plaintext" x="440" y="120" font-family="'Noto Sans Arabic', 'Noto Sans', Arial, sans-serif" font-size="18" fill="#333333" text-anchor="middle" font-weight="bold">اكتشاف قدرات الخادم (اختياري)</text>
<text direction="rtl" unicode-bidi="plaintext" x="440" y="162" font-family="'Noto Sans Arabic', 'Noto Sans', Arial, sans-serif" font-size="14" fill="#777777" text-anchor="middle">server/discover</text>
<line x1="676" y1="205" x2="204" y2="205" stroke="#333333" stroke-width="2" stroke-dasharray="8,4" marker-end="url(#ah)"/>
<text direction="rtl" unicode-bidi="plaintext" x="440" y="191" font-family="'Noto Sans Arabic', 'Noto Sans', Arial, sans-serif" font-size="18" fill="#333333" text-anchor="middle" font-weight="bold">إرجاع وصف القدرات</text>
<rect x="230" y="218" width="420" height="42" rx="5" fill="#f5f5f5" stroke="#999999" stroke-width="2"/>
<text direction="rtl" unicode-bidi="plaintext" x="440" y="244" font-family="'Noto Sans Arabic', 'Noto Sans', Arial, sans-serif" font-size="16" fill="#555555" text-anchor="middle">القدرات المدعومة وأساليب التفاعل</text>
<line x1="204" y1="305" x2="676" y2="305" stroke="#333333" stroke-width="2" marker-end="url(#ah)"/>
<text direction="rtl" unicode-bidi="plaintext" x="440" y="285" font-family="'Noto Sans Arabic', 'Noto Sans', Arial, sans-serif" font-size="18" fill="#333333" text-anchor="middle" font-weight="bold">الحصول على قائمة الأدوات</text>
<text direction="rtl" unicode-bidi="plaintext" x="440" y="327" font-family="'Noto Sans Arabic', 'Noto Sans', Arial, sans-serif" font-size="14" fill="#777777" text-anchor="middle">tools/list</text>
<line x1="676" y1="370" x2="204" y2="370" stroke="#333333" stroke-width="2" stroke-dasharray="8,4" marker-end="url(#ah)"/>
<text direction="rtl" unicode-bidi="plaintext" x="440" y="356" font-family="'Noto Sans Arabic', 'Noto Sans', Arial, sans-serif" font-size="18" fill="#333333" text-anchor="middle" font-weight="bold">إرجاع تعريف أداة موحّد</text>
<rect x="230" y="383" width="420" height="58" rx="5" fill="#f5f5f5" stroke="#999999" stroke-width="2"/>
<text direction="rtl" unicode-bidi="plaintext" x="440" y="406" font-family="'Noto Sans Arabic', 'Noto Sans', Arial, sans-serif" font-size="16" fill="#444444" text-anchor="middle" font-weight="bold">get_weather — استعلام عن طقس مدينة</text>
<text direction="rtl" unicode-bidi="plaintext" x="440" y="428" font-family="'Noto Sans Arabic', 'Noto Sans', Arial, sans-serif" font-size="15" fill="#666666" text-anchor="middle">المدخل: المدينة المخرج: الطقس</text>
<line x1="204" y1="485" x2="676" y2="485" stroke="#333333" stroke-width="2" marker-end="url(#ah)"/>
<text direction="rtl" unicode-bidi="plaintext" x="440" y="465" font-family="'Noto Sans Arabic', 'Noto Sans', Arial, sans-serif" font-size="18" fill="#333333" text-anchor="middle" font-weight="bold">استدعاء الأداة المحددة</text>
<text direction="rtl" unicode-bidi="plaintext" x="440" y="507" font-family="'Noto Sans Arabic', 'Noto Sans', Arial, sans-serif" font-size="14" fill="#777777" text-anchor="middle">tools/call: get_weather (Beijing)</text>
<line x1="676" y1="550" x2="204" y2="550" stroke="#333333" stroke-width="2" stroke-dasharray="8,4" marker-end="url(#ah)"/>
<text direction="rtl" unicode-bidi="plaintext" x="440" y="536" font-family="'Noto Sans Arabic', 'Noto Sans', Arial, sans-serif" font-size="18" fill="#333333" text-anchor="middle" font-weight="bold">إرجاع نتيجة الأداة</text>
<rect x="300" y="563" width="280" height="38" rx="5" fill="#f5f5f5" stroke="#999999" stroke-width="2"/>
<text direction="rtl" unicode-bidi="plaintext" x="440" y="587" font-family="'Noto Sans Arabic', 'Noto Sans', Arial, sans-serif" font-size="16" fill="#555555" text-anchor="middle">بكين: 22°C، مشمس</text>
<text direction="rtl" unicode-bidi="plaintext" x="90" y="205" font-family="'Noto Sans Arabic', 'Noto Sans', Arial, sans-serif" font-size="16" fill="#666666" text-anchor="middle" font-weight="bold"><tspan x="90" dy="-8">١ اكتشاف</tspan><tspan x="90" dy="20">القدرات</tspan></text>
<text direction="rtl" unicode-bidi="plaintext" x="90" y="370" font-family="'Noto Sans Arabic', 'Noto Sans', Arial, sans-serif" font-size="16" fill="#666666" text-anchor="middle" font-weight="bold"><tspan x="90" dy="-8">٢ اكتشاف</tspan><tspan x="90" dy="20">الأدوات</tspan></text>
<text direction="rtl" unicode-bidi="plaintext" x="90" y="550" font-family="'Noto Sans Arabic', 'Noto Sans', Arial, sans-serif" font-size="16" fill="#666666" text-anchor="middle" font-weight="bold"><tspan x="90" dy="-8">٣ استدعاء</tspan><tspan x="90" dy="20">الأداة</tspan></text>
</svg>