Files
inspiration-collector/docs/agent-workflow.svg
2026-06-13 10:18:34 +08:00

48 lines
4.9 KiB
XML

<svg viewBox="0 0 680 540" width="100%" role="img" xmlns="http://www.w3.org/2000/svg">
<title>Agent workflow</title>
<desc>Flowchart: user input, intent detection, tool execution or chat, response</desc>
<defs>
<marker id="arrow" viewBox="0 0 10 10" refX="8" refY="5" markerWidth="6" markerHeight="6" orient="auto-start-reverse">
<path d="M2 1L8 5L2 9" fill="none" stroke="context-stroke" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
</marker>
</defs>
<rect x="240" y="20" width="200" height="44" rx="10" fill="#E6F1FB" stroke="#185FA5" stroke-width="0.5"/>
<text x="340" y="42" text-anchor="middle" font-size="14" font-weight="500" fill="#0C447C">user says something</text>
<path d="M340 64L340 95" fill="none" stroke="#185FA5" stroke-width="1.5" marker-end="url(#arrow)"/>
<polygon points="340,95 420,135 340,175 260,135" fill="#E6F1FB" stroke="#185FA5" stroke-width="0.5"/>
<text x="340" y="135" text-anchor="middle" font-size="14" font-weight="500" fill="#0C447C">intent detect</text>
<path d="M260 135L120 135L120 210" fill="none" stroke="#D85A30" stroke-width="1.5" marker-end="url(#arrow)"/>
<text x="190" y="125" text-anchor="middle" font-size="12" fill="#D85A30">match</text>
<rect x="60" y="210" width="120" height="44" rx="10" fill="#FAECE7" stroke="#D85A30" stroke-width="0.5"/>
<text x="120" y="228" text-anchor="middle" font-size="14" font-weight="500" fill="#993C1D">execute tool</text>
<text x="120" y="246" text-anchor="middle" font-size="12" fill="#D85A30">api / script</text>
<path d="M120 254L120 280" fill="none" stroke="#F0997B" stroke-width="1" marker-end="url(#arrow)"/>
<rect x="40" y="280" width="112" height="40" rx="8" fill="#FAEEDA" stroke="#FAC775" stroke-width="0.5"/>
<text x="96" y="296" text-anchor="middle" font-size="12" fill="#854F0B">memos</text><text x="96" y="312" text-anchor="middle" font-size="11" fill="#BA7517">灵感记录</text>
<rect x="164" y="280" width="112" height="40" rx="8" fill="#E6F1FB" stroke="#B5D4F4" stroke-width="0.5"/>
<text x="220" y="296" text-anchor="middle" font-size="12" fill="#0C447C">gitea</text><text x="220" y="312" text-anchor="middle" font-size="11" fill="#185FA5">文库 / 代码</text>
<rect x="288" y="280" width="112" height="40" rx="8" fill="#E1F5EE" stroke="#9FE1CB" stroke-width="0.5"/>
<text x="344" y="296" text-anchor="middle" font-size="12" fill="#085041">blog</text><text x="344" y="312" text-anchor="middle" font-size="11" fill="#0F6E56">最新文章</text>
<rect x="412" y="280" width="112" height="40" rx="8" fill="#EEEDFE" stroke="#CECBF6" stroke-width="0.5"/>
<text x="468" y="296" text-anchor="middle" font-size="12" fill="#3C3489">analysis</text><text x="468" y="312" text-anchor="middle" font-size="11" fill="#534AB7">日报 / 专题</text>
<rect x="536" y="280" width="112" height="40" rx="8" fill="#EAF3DE" stroke="#C0DD97" stroke-width="0.5"/>
<text x="592" y="296" text-anchor="middle" font-size="12" fill="#27500A">server</text><text x="592" y="312" text-anchor="middle" font-size="11" fill="#3B6D11">状态监控</text>
<path d="M120 320L120 360L210 360L210 385" fill="none" stroke="#F0997B" stroke-width="1" marker-end="url(#arrow)"/>
<rect x="110" y="385" width="200" height="44" rx="10" fill="#FAECE7" stroke="#D85A30" stroke-width="0.5"/>
<text x="210" y="403" text-anchor="middle" font-size="14" font-weight="500" fill="#993C1D">ai summarizes result</text>
<text x="210" y="421" text-anchor="middle" font-size="12" fill="#D85A30">加注关键信息和背景</text>
<path d="M420 135L560 135L560 210" fill="none" stroke="#185FA5" stroke-width="1.5" marker-end="url(#arrow)"/>
<text x="495" y="125" text-anchor="middle" font-size="12" fill="#185FA5">no match</text>
<rect x="460" y="210" width="200" height="44" rx="10" fill="#E6F1FB" stroke="#185FA5" stroke-width="0.5"/>
<text x="560" y="228" text-anchor="middle" font-size="14" font-weight="500" fill="#0C447C">deepseek chat</text>
<text x="560" y="246" text-anchor="middle" font-size="12" fill="#185FA5">有上下文 + 背景知识</text>
<path d="M560 254L560 410L340 410" fill="none" stroke="#85B7EB" stroke-width="1.5" marker-end="url(#arrow)"/>
<path d="M210 429L210 445L340 445" fill="none" stroke="#F0997B" stroke-width="1.5" marker-end="url(#arrow)"/>
<rect x="240" y="460" width="200" height="44" rx="10" fill="#E6F1FB" stroke="#185FA5" stroke-width="0.5"/>
<text x="340" y="478" text-anchor="middle" font-size="14" font-weight="500" fill="#0C447C">response to user</text>
<rect x="490" y="460" width="150" height="44" rx="10" fill="#F1EFE8" stroke="#D3D1C7" stroke-width="0.5"/>
<text x="565" y="478" text-anchor="middle" font-size="12" fill="#5F5E5A">每条消息</text>
<text x="565" y="496" text-anchor="middle" font-size="11" fill="#5F5E5A">写入 sqlite 持久化</text>
<path d="M440 482L485 482" fill="none" stroke="#B4B2A9" stroke-width="1" marker-end="url(#arrow)"/>
</svg>