Renamed aimsight-libredesk (ex Support-LibreDesk); architecture diagram updated
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
77fdf998c5
commit
2f7ec25731
2 files changed
+105
-154
No files matched your search
+103
-152
@@ -1,17 +1,40 @@
|
||||
<mxfile host="Electron" pages="2">
|
||||
<mxfile host="Electron">
|
||||
<diagram name="1. Architecture" id="arch">
|
||||
<mxGraphModel dx="2958" dy="1767" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1500" pageHeight="900" math="0" shadow="0">
|
||||
<mxGraphModel dx="2914" dy="841" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1500" pageHeight="900" math="0" shadow="0">
|
||||
<root>
|
||||
<mxCell id="0" />
|
||||
<mxCell id="1" parent="0" />
|
||||
<mxCell id="arch-1" parent="1" style="text;html=1;align=left;verticalAlign=top;whiteSpace=wrap;" value="<b style='font-size:20px'>Support with an independent detector service</b> — blue = exists today, dashed orange = planned" vertex="1">
|
||||
<mxGeometry height="40" width="1400" x="30" y="-110" as="geometry" />
|
||||
<mxCell id="9YVmYg31Dtc29ZtFE1oE-1" edge="1" parent="1" source="arch-2" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;defaultLabelBackgroundColor=page;fillColor=#e51400;strokeColor=#B20000;" target="arch-6">
|
||||
<mxGeometry relative="1" as="geometry">
|
||||
<Array as="points">
|
||||
<mxPoint x="-10" y="240" />
|
||||
<mxPoint x="-10" y="240" />
|
||||
</Array>
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="9YVmYg31Dtc29ZtFE1oE-5" connectable="0" parent="9YVmYg31Dtc29ZtFE1oE-1" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];inheritText=1;defaultLabelBackgroundColor=page;" value="e-mail" vertex="1">
|
||||
<mxGeometry relative="1" x="-0.0667" as="geometry">
|
||||
<mxPoint y="-10" as="offset" />
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="arch-2" parent="1" style="shape=umlActor;verticalLabelPosition=bottom;verticalAlign=top;html=1;outlineConnect=0;" value="Customer" vertex="1">
|
||||
<mxGeometry height="70" width="40" x="-120" y="200" as="geometry" />
|
||||
<mxGeometry height="70" width="40" x="-170" y="205" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="arch-3" parent="1" style="shape=umlActor;verticalLabelPosition=bottom;verticalAlign=top;html=1;outlineConnect=0;" value="Support agent" vertex="1">
|
||||
<mxGeometry height="70" width="40" x="-120" y="440" as="geometry" />
|
||||
<mxCell id="9YVmYg31Dtc29ZtFE1oE-3" edge="1" parent="1" source="arch-3" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;defaultLabelBackgroundColor=page;fillColor=#60a917;strokeColor=#2D7600;" target="arch-2">
|
||||
<mxGeometry relative="1" as="geometry">
|
||||
<Array as="points">
|
||||
<mxPoint x="-270" y="470" />
|
||||
<mxPoint x="-270" y="240" />
|
||||
</Array>
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="9YVmYg31Dtc29ZtFE1oE-4" connectable="0" parent="9YVmYg31Dtc29ZtFE1oE-3" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];inheritText=1;defaultLabelBackgroundColor=page;" value="Send<div>message</div>" vertex="1">
|
||||
<mxGeometry relative="1" x="-0.075" as="geometry">
|
||||
<mxPoint y="-11" as="offset" />
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="arch-3" parent="1" style="shape=umlActor;verticalLabelPosition=bottom;verticalAlign=top;html=1;outlineConnect=0;" value="Support agent<div>(human)</div>" vertex="1">
|
||||
<mxGeometry height="70" width="40" x="-170" y="435" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="arch-4" parent="1" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#f5f5f5;strokeColor=#666666;" value="<b>Anthropic</b><div>https://api.anthropic.com/v1</div>" vertex="1">
|
||||
<mxGeometry height="60" width="180" x="225" y="10" as="geometry" />
|
||||
@@ -19,6 +42,14 @@
|
||||
<mxCell id="arch-5" parent="1" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#f5f5f5;strokeColor=#666666;" value="<b>Ollama</b> + bge-m3<br>embedding model" vertex="1">
|
||||
<mxGeometry height="60" width="180" x="455" y="10" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="9YVmYg31Dtc29ZtFE1oE-2" edge="1" parent="1" source="arch-6" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;defaultLabelBackgroundColor=page;" target="arch-3">
|
||||
<mxGeometry relative="1" as="geometry">
|
||||
<Array as="points">
|
||||
<mxPoint y="470" />
|
||||
<mxPoint y="470" />
|
||||
</Array>
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="arch-6" parent="1" style="rounded=1;arcSize=3;whiteSpace=wrap;html=1;verticalAlign=top;align=left;spacingLeft=8;fontStyle=1;fillColor=#fafafa;strokeColor=#6c8ebf;" value="LibreDesk" vertex="1">
|
||||
<mxGeometry height="465" width="890" x="50" y="160" as="geometry" />
|
||||
</mxCell>
|
||||
@@ -38,7 +69,12 @@
|
||||
<mxGeometry relative="1" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="HigBPHvGvvlsroYYhkdi-15" edge="1" parent="1" source="arch-9" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;defaultLabelBackgroundColor=page;endArrow=none;endFill=0;" target="arch-11">
|
||||
<mxGeometry relative="1" as="geometry" />
|
||||
<mxGeometry relative="1" as="geometry">
|
||||
<Array as="points">
|
||||
<mxPoint x="315" y="400" />
|
||||
<mxPoint x="315" y="400" />
|
||||
</Array>
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="arch-9" parent="1" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;" value="<b>Generate reply</b><br>draft in the editor" vertex="1">
|
||||
<mxGeometry height="70" width="170" x="230" y="290" as="geometry" />
|
||||
@@ -46,13 +82,13 @@
|
||||
<mxCell id="arch-10" parent="1" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" value="<b>Snippets</b><br>knowledge base,<br>118 extracts + vectors" vertex="1">
|
||||
<mxGeometry height="70" width="170" x="700" y="180" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="arch-11" parent="1" style="rounded=1;arcSize=3;whiteSpace=wrap;html=1;verticalAlign=top;align=left;spacingLeft=8;fontStyle=1;fillColor=#fafafa;strokeColor=#6c8ebf;" value="Tools" vertex="1">
|
||||
<mxGeometry height="190" width="360" x="135" y="410" as="geometry" />
|
||||
<mxCell id="arch-11" parent="1" style="rounded=1;arcSize=3;whiteSpace=wrap;html=1;verticalAlign=top;align=left;spacingLeft=8;fontStyle=1;fillColor=#fafafa;strokeColor=#6c8ebf;" value="Tools <span style="font-weight:normal">(function calling: name + JSON schema, exposed to the LLM)</span>" vertex="1">
|
||||
<mxGeometry height="190" width="735" x="135" y="410" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="HigBPHvGvvlsroYYhkdi-16" edge="1" parent="1" source="arch-12" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;defaultLabelBackgroundColor=page;endArrow=none;endFill=0;" target="arch-8">
|
||||
<mxGeometry relative="1" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="HigBPHvGvvlsroYYhkdi-17" connectable="0" parent="HigBPHvGvvlsroYYhkdi-16" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];inheritText=1;defaultLabelBackgroundColor=page;" value="fetch querry" vertex="1">
|
||||
<mxCell id="HigBPHvGvvlsroYYhkdi-17" connectable="0" parent="HigBPHvGvvlsroYYhkdi-16" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];inheritText=1;defaultLabelBackgroundColor=page;" value="fetch query" vertex="1">
|
||||
<mxGeometry relative="1" x="0.0571" y="-1" as="geometry">
|
||||
<mxPoint x="4" y="-13" as="offset" />
|
||||
</mxGeometry>
|
||||
@@ -66,168 +102,83 @@
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="arch-12" parent="1" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" value="search_articles" vertex="1">
|
||||
<mxGeometry height="55" width="90" x="380" y="435" as="geometry" />
|
||||
<mxGeometry height="55" width="90" x="500" y="435" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="arch-13" parent="1" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#ffe6cc;strokeColor=#d79b00;dashed=1;strokeWidth=2;" value="<b>get_station_diagnostic(serial, from, to)</b><br>new custom tool" vertex="1">
|
||||
<mxGeometry height="75" width="320" x="155" y="510" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="arch-19" edge="1" parent="1" source="arch-2" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;labelBackgroundColor=#ffffff;endArrow=classic;strokeColor=#1f5fbf;strokeWidth=2;fontColor=#1f5fbf;exitX=1.000;exitY=0.500;exitDx=0;exitDy=0;entryX=0.000;entryY=0.174;entryDx=0;entryDy=0;" target="arch-6" value="e-mail">
|
||||
<mxGeometry relative="1" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="arch-20" edge="1" parent="1" source="arch-3" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;labelBackgroundColor=#ffffff;endArrow=classic;strokeColor=#1f5fbf;strokeWidth=2;fontColor=#1f5fbf;startArrow=classic;exitX=1.000;exitY=0.500;exitDx=0;exitDy=0;entryX=0.000;entryY=0.733;entryDx=0;entryDy=0;" target="arch-6" value="clicks Generate reply<br>reviews, edits, sends">
|
||||
<mxGeometry relative="1" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="arch-21" edge="1" parent="1" source="arch-3" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;labelBackgroundColor=#ffffff;endArrow=classic;strokeColor=#1f5fbf;strokeWidth=2;fontColor=#1f5fbf;exitX=0.500;exitY=0.000;exitDx=0;exitDy=0;entryX=0.500;entryY=1.214;entryDx=0;entryDy=0;" target="arch-2" value="reply, sent by the human">
|
||||
<mxGeometry relative="1" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="HigBPHvGvvlsroYYhkdi-13" edge="1" parent="1" source="HigBPHvGvvlsroYYhkdi-3" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;defaultLabelBackgroundColor=page;" target="arch-9">
|
||||
<mxGeometry relative="1" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="HigBPHvGvvlsroYYhkdi-3" parent="1" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#f8cecc;strokeColor=#b85450;" value="<div><b>Client</b></div><b>Conversation</b>" vertex="1">
|
||||
<mxGeometry height="70" width="120" x="60" y="290" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="fix-5" parent="1" style="rounded=1;arcSize=3;whiteSpace=wrap;html=1;verticalAlign=top;align=left;spacingLeft=8;fontStyle=1;fillColor=#fff8ef;strokeColor=#d79b00;dashed=1;strokeWidth=2;" value="Detector service (independent)" vertex="1">
|
||||
<mxGeometry height="330" width="420" x="1010" y="160" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="fix-6" parent="1" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#ffe6cc;strokeColor=#d79b00;dashed=1;strokeWidth=2;" value="<b>REST API</b><br>GET /stations/{serial}/diagnostic?from=…&amp;to=…<br>→ events: family, start, end, evidence" vertex="1">
|
||||
<mxGeometry height="80" width="360" x="1040" y="200" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="fix-7" parent="1" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#ffe6cc;strokeColor=#d79b00;dashed=1;strokeWidth=2;" value="<b>Detectors</b><br>visibility · obstruction · target issue<br>thermal · no data · displacement<br>→ classified events" vertex="1">
|
||||
<mxGeometry height="150" width="360" x="1040" y="310" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="fix-8" parent="1" style="shape=cylinder3;whiteSpace=wrap;html=1;boundedLbl=1;backgroundOutline=1;size=10;fillColor=#d5e8d4;strokeColor=#82b366;" value="<b>Station data</b> (AIMsight platform)" vertex="1">
|
||||
<mxGeometry height="70" width="360" x="1040" y="540" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="fix-9" parent="1" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#ffe6cc;strokeColor=#d79b00;dashed=1;strokeWidth=2;" value="<b>Other apps</b> (Diagnostic-App, dashboard, …)" vertex="1">
|
||||
<mxGeometry height="60" width="360" x="1040" y="10" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="fix-10" edge="1" parent="1" source="arch-13" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;labelBackgroundColor=#ffffff;endArrow=classic;strokeColor=#d79b00;strokeWidth=2;dashed=1;fontColor=#b36b00;exitX=1.000;exitY=0.500;exitDx=0;exitDy=0;entryX=0.000;entryY=0.500;entryDx=0;entryDy=0;" target="fix-6" value="7. HTTP GET (serial, from, to)">
|
||||
<mxGeometry relative="1" as="geometry">
|
||||
<Array as="points">
|
||||
<mxPoint x="970" y="547.5" />
|
||||
<mxPoint x="970" y="240" />
|
||||
<mxPoint x="140" y="325" />
|
||||
</Array>
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="HigBPHvGvvlsroYYhkdi-3" parent="1" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#f8cecc;strokeColor=#b85450;" value="<div><b>Client</b></div><b>Conversation</b>" vertex="1">
|
||||
<mxGeometry height="70" width="120" x="80" y="220" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="fix-5" parent="1" style="rounded=1;arcSize=3;whiteSpace=wrap;html=1;verticalAlign=top;align=left;spacingLeft=8;fontStyle=1;fillColor=#fff8ef;strokeColor=#d79b00;dashed=1;strokeWidth=2;" value="Detector service (independent container)" vertex="1">
|
||||
<mxGeometry height="330" width="420" x="105" y="740" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="fix-6" parent="1" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#ffe6cc;strokeColor=#d79b00;dashed=1;strokeWidth=2;" value="<b>REST API</b><br>GET /stations/{serial}/diagnostic?from=…&amp;to=…<br>→ events: family, start, end, evidence" vertex="1">
|
||||
<mxGeometry height="80" width="360" x="135" y="780" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="fix-7" parent="1" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#ffe6cc;strokeColor=#d79b00;dashed=1;strokeWidth=2;" value="<b>Detectors</b><br>visibility · obstruction · target issue<br>thermal · no data · displacement<br>→ classified events" vertex="1">
|
||||
<mxGeometry height="150" width="360" x="135" y="890" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="fix-8" parent="1" style="shape=cylinder3;whiteSpace=wrap;html=1;boundedLbl=1;backgroundOutline=1;size=10;fillColor=#d5e8d4;strokeColor=#82b366;" value="<b>Station data</b> (AIMsight platform)" vertex="1">
|
||||
<mxGeometry height="70" width="360" x="135" y="1190" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="fix-10" edge="1" parent="1" source="arch-13" style="rounded=0;html=1;labelBackgroundColor=#ffffff;endArrow=classic;strokeColor=#d79b00;strokeWidth=2;dashed=1;fontColor=#b36b00;edgeStyle=orthogonalEdgeStyle;" target="fix-6" value="7. HTTP GET (serial, from, to)">
|
||||
<mxGeometry relative="1" x="0.1306" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="fix-11" edge="1" parent="1" source="fix-6" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;labelBackgroundColor=#ffffff;endArrow=classic;strokeColor=#d79b00;strokeWidth=2;dashed=1;fontColor=#b36b00;exitX=0.500;exitY=1.000;exitDx=0;exitDy=0;entryX=0.500;entryY=0.000;entryDx=0;entryDy=0;" target="fix-7" value="">
|
||||
<mxGeometry relative="1" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="fix-12" edge="1" parent="1" source="fix-7" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;labelBackgroundColor=#ffffff;endArrow=classic;strokeColor=#d79b00;strokeWidth=2;dashed=1;fontColor=#b36b00;exitX=0.500;exitY=1.000;exitDx=0;exitDy=0;entryX=0.500;entryY=0.000;entryDx=0;entryDy=0;" target="fix-8" value="reads the range (read-only)">
|
||||
<mxGeometry relative="1" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="fix-13" edge="1" parent="1" source="fix-9" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;labelBackgroundColor=#ffffff;endArrow=classic;strokeColor=#d79b00;strokeWidth=2;dashed=1;fontColor=#b36b00;exitX=0.500;exitY=1.000;exitDx=0;exitDy=0;entryX=0.500;entryY=0.000;entryDx=0;entryDy=0;" target="fix-6" value="same API">
|
||||
<mxCell id="gen-boundary" edge="1" parent="1" style="endArrow=none;html=1;rounded=0;dashed=1;dashPattern=8 4;strokeColor=#999999;strokeWidth=1;" value="">
|
||||
<mxGeometry relative="1" as="geometry">
|
||||
<mxPoint x="60" y="680" as="sourcePoint" />
|
||||
<mxPoint x="1380" y="680" as="targetPoint" />
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="gen-boundary-lbl" parent="1" style="text;html=1;align=right;verticalAlign=bottom;whiteSpace=wrap;fontColor=#666666;fontSize=11;" value="<b>HTTP / JSON boundary</b><br>below: independent containers, deployable and reusable on their own" vertex="1">
|
||||
<mxGeometry height="40" width="380" x="1000" y="638" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="9YVmYg31Dtc29ZtFE1oE-8" edge="1" parent="1" source="9YVmYg31Dtc29ZtFE1oE-6" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;labelBackgroundColor=#ffffff;endArrow=classic;strokeColor=#9673a6;strokeWidth=2;dashed=1;fontColor=#7a4f8f;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" target="gen-6" value="HTTP (params)">
|
||||
<mxGeometry relative="1" x="0.1306" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="9YVmYg31Dtc29ZtFE1oE-6" parent="1" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#e1d5e7;strokeColor=light-dark(#9673a6, #d2bbdd);dashed=1;strokeWidth=2;" value="<b>other_tool(params)</b><br>any other capability, same mechanism<br><i>e.g. get_contract(customer_id)</i>" vertex="1">
|
||||
<mxGeometry height="75" width="280" x="575" y="510" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="gen-5" parent="1" style="rounded=1;arcSize=3;whiteSpace=wrap;html=1;verticalAlign=top;align=left;spacingLeft=8;fontStyle=1;fillColor=#faf6fc;strokeColor=#9673a6;dashed=1;strokeWidth=2;" value="Other service (independent container)" vertex="1">
|
||||
<mxGeometry height="330" width="340" x="545" y="740" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="gen-6" parent="1" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#e1d5e7;strokeColor=#9673a6;dashed=1;strokeWidth=2;" value="<b>REST API</b><br>GET /{resource}/{id}?…<br>→ structured JSON" vertex="1">
|
||||
<mxGeometry height="80" width="300" x="565" y="780" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="gen-7" parent="1" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#e1d5e7;strokeColor=#9673a6;dashed=1;strokeWidth=2;" value="<b>Domain logic</b><br>rules · models · computations<br>owned by the service, not by the LLM<br>→ structured result" vertex="1">
|
||||
<mxGeometry height="150" width="300" x="565" y="890" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="gen-8" parent="1" style="shape=cylinder3;whiteSpace=wrap;html=1;boundedLbl=1;backgroundOutline=1;size=10;fillColor=#f5f5f5;strokeColor=#666666;" value="<b>Domain data</b> (DB, CRM, ERP, …)" vertex="1">
|
||||
<mxGeometry height="70" width="300" x="565" y="1190" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="gen-11" edge="1" parent="1" source="gen-6" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;labelBackgroundColor=#ffffff;endArrow=classic;strokeColor=#9673a6;strokeWidth=2;dashed=1;fontColor=#7a4f8f;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" target="gen-7" value="">
|
||||
<mxGeometry relative="1" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="fix-14" parent="1" style="shape=note;whiteSpace=wrap;html=1;size=14;align=left;verticalAlign=top;spacingLeft=8;spacingTop=4;fillColor=#ffffff;strokeColor=#666666;" value="<b>Principles</b><br>• Detection runs only in the detector service; apps never re-implement it.<br>• One call: (station, from, to) → events. Read-only, versioned API.<br>• LibreDesk is not modified: the integration is one custom tool.<br>• A human always sends the reply." vertex="1">
|
||||
<mxGeometry height="130" width="600" x="50" y="660" as="geometry" />
|
||||
<mxCell id="gen-12" edge="1" parent="1" source="gen-7" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;labelBackgroundColor=#ffffff;endArrow=classic;strokeColor=#9673a6;strokeWidth=2;dashed=1;fontColor=#7a4f8f;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" target="gen-8" value="data access">
|
||||
<mxGeometry relative="1" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="fix-15" parent="1" style="shape=note;whiteSpace=wrap;html=1;size=14;align=left;verticalAlign=top;spacingLeft=8;spacingTop=4;fillColor=#fff2cc;strokeColor=#d6b656;" value="<b>Open questions</b><br>• <b>Blocking:</b> can « Generate reply » call a custom tool in LibreDesk v2.9.0, or only the assistants (which must stay disabled)?<br>• How does the LLM get the station serial and time range: from the e-mail, or a contact → stations list?<br>• Where does the service run, and how long can a diagnostic take before the tool times out?" vertex="1">
|
||||
<mxGeometry height="130" width="750" x="680" y="660" as="geometry" />
|
||||
<mxCell id="gen-host" parent="1" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#f5f5f5;strokeColor=#999999;dashed=1;fontColor=#666666;" value="<b>Other host app</b><br><i>e.g. sales agent</i><br>own LLM + own tools,<br>calls the same services" vertex="1">
|
||||
<mxGeometry height="80" width="200" x="960" y="780" as="geometry" />
|
||||
</mxCell>
|
||||
</root>
|
||||
</mxGraphModel>
|
||||
</diagram>
|
||||
<diagram name="2. Sequence" id="seq">
|
||||
<mxGraphModel grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1500" pageHeight="900" math="0" shadow="0">
|
||||
<root>
|
||||
<mxCell id="0" />
|
||||
<mxCell id="1" parent="0" />
|
||||
<mxCell id="seq-1" value="<b style='font-size:20px'>« Generate reply » with a station diagnostic</b> — dashed orange = planned" style="text;html=1;align=left;verticalAlign=top;whiteSpace=wrap;" vertex="1" parent="1">
|
||||
<mxGeometry x="20" y="10" width="1400" height="40" as="geometry" />
|
||||
<mxCell id="gen-host-edge" edge="1" parent="1" source="gen-host" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;labelBackgroundColor=#ffffff;endArrow=classic;strokeColor=#999999;dashed=1;fontColor=#666666;exitX=0;exitY=0.5;exitDx=0;exitDy=0;entryX=1;entryY=0.5;entryDx=0;entryDy=0;" target="gen-6" value="HTTP">
|
||||
<mxGeometry relative="1" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="seq-2" value="Support agent" style="shape=umlLifeline;perimeter=lifelinePerimeter;whiteSpace=wrap;html=1;container=0;collapsible=0;recursiveResize=0;outlineConnect=0;size=40;fillColor=#f5f5f5;strokeColor=#666666;" vertex="1" parent="1">
|
||||
<mxGeometry x="40" y="70" width="160" height="700" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="seq-3" value="LibreDesk" style="shape=umlLifeline;perimeter=lifelinePerimeter;whiteSpace=wrap;html=1;container=0;collapsible=0;recursiveResize=0;outlineConnect=0;size=40;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="1">
|
||||
<mxGeometry x="320" y="70" width="160" height="700" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="seq-4" value="LLM (Claude)" style="shape=umlLifeline;perimeter=lifelinePerimeter;whiteSpace=wrap;html=1;container=0;collapsible=0;recursiveResize=0;outlineConnect=0;size=40;fillColor=#f5f5f5;strokeColor=#666666;" vertex="1" parent="1">
|
||||
<mxGeometry x="600" y="70" width="160" height="700" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="seq-5" value="Detector service" style="shape=umlLifeline;perimeter=lifelinePerimeter;whiteSpace=wrap;html=1;container=0;collapsible=0;recursiveResize=0;outlineConnect=0;size=40;fillColor=#ffe6cc;strokeColor=#d79b00;dashed=1;" vertex="1" parent="1">
|
||||
<mxGeometry x="880" y="70" width="160" height="700" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="seq-6" value="Station data" style="shape=umlLifeline;perimeter=lifelinePerimeter;whiteSpace=wrap;html=1;container=0;collapsible=0;recursiveResize=0;outlineConnect=0;size=40;fillColor=#f5f5f5;strokeColor=#666666;" vertex="1" parent="1">
|
||||
<mxGeometry x="1160" y="70" width="160" height="700" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="seq-7" value="1. Generate reply" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;labelBackgroundColor=#ffffff;endArrow=classic;edgeStyle=none;strokeColor=#1f5fbf;fontColor=#1f5fbf;" edge="1" parent="1">
|
||||
<mxGeometry relative="1" as="geometry">
|
||||
<mxPoint x="120" y="150" as="sourcePoint" />
|
||||
<mxPoint x="400" y="150" as="targetPoint" />
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="seq-8" value="2. conversation + tools" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;labelBackgroundColor=#ffffff;endArrow=classic;edgeStyle=none;strokeColor=#1f5fbf;fontColor=#1f5fbf;" edge="1" parent="1">
|
||||
<mxGeometry relative="1" as="geometry">
|
||||
<mxPoint x="400" y="200" as="sourcePoint" />
|
||||
<mxPoint x="680" y="200" as="targetPoint" />
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="seq-9" value="3. existing tools: knowledge base, history ⇅" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;labelBackgroundColor=#ffffff;endArrow=classic;edgeStyle=none;strokeColor=#1f5fbf;fontColor=#1f5fbf;startArrow=classic;" edge="1" parent="1">
|
||||
<mxGeometry relative="1" as="geometry">
|
||||
<mxPoint x="680" y="250" as="sourcePoint" />
|
||||
<mxPoint x="400" y="250" as="targetPoint" />
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="seq-10" value="4. get_station_diagnostic(serial, from, to)" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;labelBackgroundColor=#ffffff;endArrow=classic;edgeStyle=none;strokeColor=#d79b00;fontColor=#b36b00;dashed=1;strokeWidth=2;dashed=1;endArrow=open;" edge="1" parent="1">
|
||||
<mxGeometry relative="1" as="geometry">
|
||||
<mxPoint x="680" y="300" as="sourcePoint" />
|
||||
<mxPoint x="400" y="300" as="targetPoint" />
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="seq-11" value="5. GET /stations/{serial}/diagnostic" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;labelBackgroundColor=#ffffff;endArrow=classic;edgeStyle=none;strokeColor=#d79b00;fontColor=#b36b00;dashed=1;strokeWidth=2;" edge="1" parent="1">
|
||||
<mxGeometry relative="1" as="geometry">
|
||||
<mxPoint x="400" y="350" as="sourcePoint" />
|
||||
<mxPoint x="960" y="350" as="targetPoint" />
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="seq-12" value="6. read the range" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;labelBackgroundColor=#ffffff;endArrow=classic;edgeStyle=none;strokeColor=#d79b00;fontColor=#b36b00;dashed=1;strokeWidth=2;" edge="1" parent="1">
|
||||
<mxGeometry relative="1" as="geometry">
|
||||
<mxPoint x="960" y="400" as="sourcePoint" />
|
||||
<mxPoint x="1240" y="400" as="targetPoint" />
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="seq-13" value="data" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;labelBackgroundColor=#ffffff;endArrow=classic;edgeStyle=none;strokeColor=#d79b00;fontColor=#b36b00;dashed=1;strokeWidth=2;dashed=1;endArrow=open;" edge="1" parent="1">
|
||||
<mxGeometry relative="1" as="geometry">
|
||||
<mxPoint x="1240" y="450" as="sourcePoint" />
|
||||
<mxPoint x="960" y="450" as="targetPoint" />
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="seq-14" value="7. events" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;labelBackgroundColor=#ffffff;endArrow=classic;edgeStyle=none;strokeColor=#d79b00;fontColor=#b36b00;dashed=1;strokeWidth=2;dashed=1;endArrow=open;" edge="1" parent="1">
|
||||
<mxGeometry relative="1" as="geometry">
|
||||
<mxPoint x="960" y="500" as="sourcePoint" />
|
||||
<mxPoint x="400" y="500" as="targetPoint" />
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="seq-15" value="tool result: events" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;labelBackgroundColor=#ffffff;endArrow=classic;edgeStyle=none;strokeColor=#d79b00;fontColor=#b36b00;dashed=1;strokeWidth=2;" edge="1" parent="1">
|
||||
<mxGeometry relative="1" as="geometry">
|
||||
<mxPoint x="400" y="550" as="sourcePoint" />
|
||||
<mxPoint x="680" y="550" as="targetPoint" />
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="seq-16" value="8. draft" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;labelBackgroundColor=#ffffff;endArrow=classic;edgeStyle=none;strokeColor=#1f5fbf;fontColor=#1f5fbf;dashed=1;endArrow=open;" edge="1" parent="1">
|
||||
<mxGeometry relative="1" as="geometry">
|
||||
<mxPoint x="680" y="600" as="sourcePoint" />
|
||||
<mxPoint x="400" y="600" as="targetPoint" />
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="seq-17" value="9. draft in the editor" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;labelBackgroundColor=#ffffff;endArrow=classic;edgeStyle=none;strokeColor=#1f5fbf;fontColor=#1f5fbf;dashed=1;endArrow=open;" edge="1" parent="1">
|
||||
<mxGeometry relative="1" as="geometry">
|
||||
<mxPoint x="400" y="650" as="sourcePoint" />
|
||||
<mxPoint x="120" y="650" as="targetPoint" />
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="seq-18" value="10. reviews, sends" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;labelBackgroundColor=#ffffff;endArrow=classic;edgeStyle=none;strokeColor=#1f5fbf;fontColor=#1f5fbf;align=left;spacingLeft=6;" edge="1" parent="1">
|
||||
<mxGeometry relative="1" as="geometry">
|
||||
<mxPoint x="120" y="700" as="sourcePoint" />
|
||||
<mxPoint x="120" y="725" as="targetPoint" />
|
||||
<Array as="points">
|
||||
<mxPoint x="170" y="700" />
|
||||
<mxPoint x="170" y="725" />
|
||||
</Array>
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="seq-19" value="If the detector service fails or is too slow, the tool returns an error and the draft is written without a diagnostic." style="shape=note;whiteSpace=wrap;html=1;size=14;align=left;verticalAlign=top;spacingLeft=8;spacingTop=4;fillColor=#fff2cc;strokeColor=#d6b656;" vertex="1" parent="1">
|
||||
<mxGeometry x="420" y="780" width="700" height="60" as="geometry" />
|
||||
<mxCell id="gen-legend" parent="1" style="shape=note;whiteSpace=wrap;html=1;size=14;align=left;verticalAlign=top;spacingLeft=10;spacingTop=6;spacingRight=8;fillColor=#fff2cc;strokeColor=#d6b656;" value="<b style="font-size:13px">Reusable mechanism</b><br><br><b>1. Host app</b> (here LibreDesk) triggers an action and sends context + tool list to the LLM.<br><b>2. Tool</b> = name + JSON schema + thin HTTP adapter. No business logic in the host.<br><b>3. Independent service</b> = container exposing a REST API; owns its domain logic and its data access, returns structured JSON.<br><b>4.</b> The LLM turns the tool result into the output (here a draft reviewed by a human).<br><br>New capability = one service + one tool declaration.<br>Same pattern for another host app (sales agent: CRM, quotes, stock…).<br><br><b>Legend</b><br><span style="color:#6c8ebf">■</span> existing LibreDesk<br><span style="color:#d79b00">■</span> dashed orange: this use case (planned)<br><span style="color:#9673a6">■</span> dashed purple: any other service, plugged the same way<br><span style="color:#999999">■</span> dashed grey: other consumers of the services" vertex="1">
|
||||
<mxGeometry height="380" width="380" x="1000" y="160" as="geometry" />
|
||||
</mxCell>
|
||||
</root>
|
||||
</mxGraphModel>
|
||||
|
||||
Reference in new issue
Block a user