返回 ppt-master
03_when_to_use_agents.svg
1 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1280 720" width="1280" height="720">
2 <defs>
3 <filter id="cardShadow" x="-15%" y="-15%" width="140%" height="140%">
4 <feGaussianBlur in="SourceAlpha" stdDeviation="10"/>
5 <feOffset dx="0" dy="4" result="offsetBlur"/>
6 <feFlood flood-color="#000000" flood-opacity="0.12" result="shadowColor"/>
7 <feComposite in="shadowColor" in2="offsetBlur" operator="in" result="shadow"/>
8 <feMerge>
9 <feMergeNode in="shadow"/>
10 <feMergeNode in="SourceGraphic"/>
11 </feMerge>
12 </filter>
13 <linearGradient id="successGrad" x1="0%" y1="0%" x2="100%" y2="0%">
14 <stop offset="0%" stop-color="#4ADE80" stop-opacity="0.15"/>
15 <stop offset="100%" stop-color="#4ADE80" stop-opacity="0"/>
16 </linearGradient>
17 </defs>
18
19 <!-- Background -->
20 <rect width="1280" height="720" fill="#0F1117"/>
21
22 <!-- Page header -->
23 <g id="header">
24 <rect x="60" y="50" width="4" height="36" rx="2" fill="#D4845A"/>
25 <text x="78" y="80" font-family="'Helvetica Neue', Arial, sans-serif" font-size="32" font-weight="bold" fill="#E8E8EC">When (and When Not) to Use Agents</text>
26 </g>
27
28 <!-- Top principle bar -->
29 <g id="principle-bar">
30 <rect x="60" y="110" width="1160" height="52" rx="10" fill="#1A1D27" stroke="#2D3348" stroke-width="1"/>
31 <use data-icon="chunk/lightbulb" x="80" y="122" width="28" height="28" fill="#E8B87D"/>
32 <text x="118" y="143" font-family="'Helvetica Neue', Arial, sans-serif" font-size="16" fill="#E8B87D" font-weight="bold">Core Principle:</text>
33 <text x="270" y="143" font-family="'Helvetica Neue', Arial, sans-serif" font-size="16" fill="#E8E8EC">Find the simplest solution possible, and only increase complexity when needed.</text>
34 </g>
35
36 <!-- Three-column decision cards -->
37 <!-- Card 1: Single LLM Calls -->
38 <g id="card-single-llm">
39 <rect x="60" y="185" width="360" height="285" rx="12" fill="#1A1D27" stroke="#2D3348" stroke-width="1" filter="url(#cardShadow)"/>
40 <rect x="60" y="185" width="360" height="6" rx="3" fill="#4ADE80"/>
41 <use data-icon="chunk/terminal" x="84" y="212" width="32" height="32" fill="#4ADE80"/>
42 <text x="128" y="237" font-family="'Helvetica Neue', Arial, sans-serif" font-size="20" font-weight="bold" fill="#E8E8EC">Single LLM Calls</text>
43 <text x="84" y="270" font-family="'Helvetica Neue', Arial, sans-serif" font-size="14" fill="#4ADE80" font-weight="bold">START HERE</text>
44
45 <rect x="84" y="290" width="312" height="1" fill="#2D3348" fill-opacity="0.5"/>
46 <text x="84" y="318" font-family="'Helvetica Neue', Arial, sans-serif" font-size="15" fill="#E8E8EC">Optimized prompts with retrieval</text>
47 <text x="84" y="340" font-family="'Helvetica Neue', Arial, sans-serif" font-size="15" fill="#E8E8EC">and in-context examples</text>
48 <text x="84" y="375" font-family="'Helvetica Neue', Arial, sans-serif" font-size="14" fill="#9CA3AF">✓ Lowest latency</text>
49 <text x="84" y="398" font-family="'Helvetica Neue', Arial, sans-serif" font-size="14" fill="#9CA3AF">✓ Lowest cost</text>
50 <text x="84" y="421" font-family="'Helvetica Neue', Arial, sans-serif" font-size="14" fill="#9CA3AF">✓ Sufficient for most apps</text>
51 <text x="84" y="450" font-family="'Helvetica Neue', Arial, sans-serif" font-size="13" fill="#6B7280">Complexity: ●○○</text>
52 </g>
53
54 <!-- Card 2: Workflows -->
55 <g id="card-workflows">
56 <rect x="450" y="185" width="360" height="285" rx="12" fill="#1A1D27" stroke="#2D3348" stroke-width="1" filter="url(#cardShadow)"/>
57 <rect x="450" y="185" width="360" height="6" rx="3" fill="#5B9BD5"/>
58 <use data-icon="chunk/code" x="474" y="212" width="32" height="32" fill="#5B9BD5"/>
59 <text x="518" y="237" font-family="'Helvetica Neue', Arial, sans-serif" font-size="20" font-weight="bold" fill="#E8E8EC">Workflows</text>
60
61 <text x="474" y="270" font-family="'Helvetica Neue', Arial, sans-serif" font-size="14" fill="#5B9BD5" font-weight="bold">WHEN MORE COMPLEXITY IS WARRANTED</text>
62
63 <rect x="474" y="290" width="312" height="1" fill="#2D3348" fill-opacity="0.5"/>
64 <text x="474" y="318" font-family="'Helvetica Neue', Arial, sans-serif" font-size="15" fill="#E8E8EC">LLMs + tools orchestrated</text>
65 <text x="474" y="340" font-family="'Helvetica Neue', Arial, sans-serif" font-size="15" fill="#E8E8EC">through predefined code paths</text>
66 <text x="474" y="375" font-family="'Helvetica Neue', Arial, sans-serif" font-size="14" fill="#9CA3AF">✓ Predictability</text>
67 <text x="474" y="398" font-family="'Helvetica Neue', Arial, sans-serif" font-size="14" fill="#9CA3AF">✓ Consistency</text>
68 <text x="474" y="421" font-family="'Helvetica Neue', Arial, sans-serif" font-size="14" fill="#9CA3AF">✓ Well-defined tasks</text>
69 <text x="474" y="450" font-family="'Helvetica Neue', Arial, sans-serif" font-size="13" fill="#6B7280">Complexity: ●●○</text>
70 </g>
71
72 <!-- Card 3: Agents -->
73 <g id="card-agents">
74 <rect x="840" y="185" width="380" height="285" rx="12" fill="#1A1D27" stroke="#2D3348" stroke-width="1" filter="url(#cardShadow)"/>
75 <rect x="840" y="185" width="380" height="6" rx="3" fill="#D4845A"/>
76 <use data-icon="chunk/robot" x="864" y="212" width="32" height="32" fill="#D4845A"/>
77 <text x="908" y="237" font-family="'Helvetica Neue', Arial, sans-serif" font-size="20" font-weight="bold" fill="#E8E8EC">Agents</text>
78
79 <text x="864" y="270" font-family="'Helvetica Neue', Arial, sans-serif" font-size="14" fill="#D4845A" font-weight="bold">WHEN FLEXIBILITY IS NEEDED</text>
80
81 <rect x="864" y="290" width="332" height="1" fill="#2D3348" fill-opacity="0.5"/>
82 <text x="864" y="318" font-family="'Helvetica Neue', Arial, sans-serif" font-size="15" fill="#E8E8EC">LLMs dynamically direct their</text>
83 <text x="864" y="340" font-family="'Helvetica Neue', Arial, sans-serif" font-size="15" fill="#E8E8EC">own processes and tool usage</text>
84 <text x="864" y="375" font-family="'Helvetica Neue', Arial, sans-serif" font-size="14" fill="#9CA3AF">✓ Flexibility at scale</text>
85 <text x="864" y="398" font-family="'Helvetica Neue', Arial, sans-serif" font-size="14" fill="#9CA3AF">✓ Model-driven decisions</text>
86 <text x="864" y="421" font-family="'Helvetica Neue', Arial, sans-serif" font-size="14" fill="#9CA3AF">✓ Open-ended problems</text>
87 <text x="864" y="450" font-family="'Helvetica Neue', Arial, sans-serif" font-size="13" fill="#6B7280">Complexity: ●●●</text>
88 </g>
89
90 <!-- Flow arrows between cards -->
91 <polygon points="424,328 440,318 440,338" fill="#2D3348"/>
92 <polygon points="814,328 830,318 830,338" fill="#2D3348"/>
93
94 <!-- Bottom framework note -->
95 <g id="framework-note">
96 <rect x="60" y="500" width="1160" height="140" rx="12" fill="#1A1D27" stroke="#2D3348" stroke-width="1"/>
97 <use data-icon="chunk/toolbox" x="84" y="524" width="28" height="28" fill="#E8B87D"/>
98 <text x="124" y="546" font-family="'Helvetica Neue', Arial, sans-serif" font-size="18" font-weight="bold" fill="#E8B87D">On Frameworks</text>
99 <text x="84" y="580" font-family="'Helvetica Neue', Arial, sans-serif" font-size="16" fill="#E8E8EC">Start by using LLM APIs directly — many patterns can be implemented in a few lines of code.</text>
100 <text x="84" y="606" font-family="'Helvetica Neue', Arial, sans-serif" font-size="16" fill="#E8E8EC">If you do use a framework, ensure you understand the underlying code.</text>
101 <text x="84" y="624" font-family="'Helvetica Neue', Arial, sans-serif" font-size="14" fill="#9CA3AF">Incorrect assumptions about what's under the hood are a common source of customer error.</text>
102 </g>
103
104 <!-- Footer -->
105 <g id="footer">
106 <text x="1220" y="700" text-anchor="end" font-family="'Helvetica Neue', Arial, sans-serif" font-size="10" fill="#6B7280">03</text>
107 </g>
108 </svg>
109
109 lines Plain Text