ultravisor 1.0.3 → 1.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (248) hide show
  1. package/.claude/launch.json +11 -0
  2. package/.claude/ultravisor-dev-config.json +3 -0
  3. package/card-audit.json +1545 -0
  4. package/docs/_sidebar.md +17 -0
  5. package/docs/css/docuserve.css +73 -0
  6. package/docs/features/beacon-authentication.md +209 -0
  7. package/docs/features/beacon-providers.md +1299 -0
  8. package/docs/features/beacons.md +530 -0
  9. package/docs/features/capabilities.md +193 -0
  10. package/docs/features/llm-model-setup.md +505 -0
  11. package/docs/features/llm.md +262 -0
  12. package/docs/features/tasks-content-system.md +110 -0
  13. package/docs/features/tasks-data-transform.md +233 -0
  14. package/docs/features/tasks-extension.md +36 -0
  15. package/docs/features/tasks-file-system.md +203 -0
  16. package/docs/features/tasks-flow-control.md +125 -0
  17. package/docs/features/tasks-http-client.md +119 -0
  18. package/docs/features/tasks-llm.md +118 -0
  19. package/docs/features/tasks-meadow-api.md +163 -0
  20. package/docs/features/tasks-user-interaction.md +49 -0
  21. package/docs/features/tasks.md +14 -0
  22. package/docs/index.html +1 -1
  23. package/docs/retold-catalog.json +1 -1
  24. package/docs/retold-keyword-index.json +17374 -5
  25. package/operation-library/api-data-pipeline.json +143 -0
  26. package/operation-library/beacon-remote-command.json +72 -0
  27. package/operation-library/conditional-file-backup.json +143 -0
  28. package/operation-library/config-processor.json +136 -0
  29. package/operation-library/csv-data-analysis.json +228 -0
  30. package/operation-library/csv-to-json.json +160 -0
  31. package/operation-library/directory-inventory.json +128 -0
  32. package/operation-library/expression-calculator.json +114 -0
  33. package/operation-library/file-search-replace.json +175 -0
  34. package/operation-library/git-status-report.json +368 -0
  35. package/operation-library/health-check-ping.json +329 -0
  36. package/operation-library/json-config-merge.json +313 -0
  37. package/operation-library/llm-embedding-tool-use.json +314 -0
  38. package/operation-library/llm-multi-turn-analysis.json +322 -0
  39. package/operation-library/llm-summarize.json +264 -0
  40. package/operation-library/log-line-counter.json +185 -0
  41. package/operation-library/meadow-crud-lifecycle.json +264 -0
  42. package/operation-library/npm-project-validator.json +193 -0
  43. package/operation-library/rest-api-orchestrator.json +218 -0
  44. package/operation-library/shell-system-info.json +137 -0
  45. package/operation-library/simple-echo.json +95 -0
  46. package/operation-library/template-processor.json +299 -0
  47. package/operation-library/text-sanitizer.json +176 -0
  48. package/package.json +12 -8
  49. package/source/Ultravisor.cjs +30 -3
  50. package/source/beacon/Ultravisor-Beacon-CLI.cjs +143 -0
  51. package/source/beacon/Ultravisor-Beacon-CapabilityProvider.cjs +129 -0
  52. package/source/beacon/Ultravisor-Beacon-Client.cjs +568 -0
  53. package/source/beacon/Ultravisor-Beacon-Executor.cjs +500 -0
  54. package/source/beacon/Ultravisor-Beacon-ProviderRegistry.cjs +330 -0
  55. package/source/beacon/providers/Ultravisor-Beacon-Provider-FileSystem.cjs +331 -0
  56. package/source/beacon/providers/Ultravisor-Beacon-Provider-LLM.cjs +966 -0
  57. package/source/beacon/providers/Ultravisor-Beacon-Provider-Shell.cjs +95 -0
  58. package/source/cli/Ultravisor-CLIProgram.cjs +44 -22
  59. package/source/cli/commands/Ultravisor-Command-SingleOperation.cjs +29 -18
  60. package/source/cli/commands/Ultravisor-Command-SingleTask.cjs +62 -19
  61. package/source/cli/commands/Ultravisor-Command-UpdateTask.cjs +27 -15
  62. package/source/config/Ultravisor-Default-Command-Configuration.cjs +12 -3
  63. package/source/services/Ultravisor-Beacon-Coordinator.cjs +966 -0
  64. package/source/services/Ultravisor-ExecutionEngine.cjs +1093 -0
  65. package/source/services/Ultravisor-ExecutionManifest.cjs +629 -0
  66. package/source/services/Ultravisor-Hypervisor-State.cjs +270 -97
  67. package/source/services/Ultravisor-Hypervisor.cjs +185 -75
  68. package/source/services/Ultravisor-Schedule-Persistence-Base.cjs +45 -0
  69. package/source/services/Ultravisor-StateManager.cjs +253 -0
  70. package/source/services/Ultravisor-TaskTypeRegistry.cjs +213 -0
  71. package/source/services/persistence/Ultravisor-Schedule-Persistence-JSONFile.cjs +140 -0
  72. package/source/services/tasks/Ultravisor-BuiltIn-TaskConfigs.cjs +19 -0
  73. package/source/services/tasks/Ultravisor-TaskHelper-BeaconDispatch.cjs +107 -0
  74. package/source/services/tasks/Ultravisor-TaskType-Base.cjs +125 -0
  75. package/source/services/tasks/content-system/Ultravisor-TaskConfigs-ContentSystem.cjs +90 -0
  76. package/source/services/tasks/content-system/definitions/content-create-folder.json +24 -0
  77. package/source/services/tasks/content-system/definitions/content-list-files.json +27 -0
  78. package/source/services/tasks/content-system/definitions/content-read-file.json +26 -0
  79. package/source/services/tasks/content-system/definitions/content-save-file.json +26 -0
  80. package/source/services/tasks/data-transform/Ultravisor-TaskConfigs-DataTransform.cjs +577 -0
  81. package/source/services/tasks/data-transform/Ultravisor-TaskType-ReplaceString.cjs +80 -0
  82. package/source/services/tasks/data-transform/Ultravisor-TaskType-SetValues.cjs +74 -0
  83. package/source/services/tasks/data-transform/Ultravisor-TaskType-StringAppender.cjs +90 -0
  84. package/source/services/tasks/data-transform/definitions/comprehension-intersect.json +24 -0
  85. package/source/services/tasks/data-transform/definitions/csv-transform.json +24 -0
  86. package/source/services/tasks/data-transform/definitions/expression-solver.json +20 -0
  87. package/source/services/tasks/data-transform/definitions/histogram.json +23 -0
  88. package/source/services/tasks/data-transform/definitions/parse-csv.json +27 -0
  89. package/source/services/tasks/data-transform/definitions/replace-string.json +27 -0
  90. package/source/services/tasks/data-transform/definitions/set-values.json +17 -0
  91. package/source/services/tasks/data-transform/definitions/string-appender.json +22 -0
  92. package/source/services/tasks/data-transform/definitions/template-string.json +20 -0
  93. package/source/services/tasks/extension/Ultravisor-TaskConfigs-Extension.cjs +87 -0
  94. package/source/services/tasks/extension/definitions/beacon-dispatch.json +32 -0
  95. package/source/services/tasks/file-system/Ultravisor-TaskConfigs-FileSystem.cjs +509 -0
  96. package/source/services/tasks/file-system/Ultravisor-TaskType-ReadFile.cjs +96 -0
  97. package/source/services/tasks/file-system/Ultravisor-TaskType-ReadFileBuffered.cjs +123 -0
  98. package/source/services/tasks/file-system/Ultravisor-TaskType-WriteFile.cjs +106 -0
  99. package/source/services/tasks/file-system/definitions/copy-file.json +27 -0
  100. package/source/services/tasks/file-system/definitions/list-files.json +27 -0
  101. package/source/services/tasks/file-system/definitions/read-file-buffered.json +31 -0
  102. package/source/services/tasks/file-system/definitions/read-file.json +26 -0
  103. package/source/services/tasks/file-system/definitions/read-json.json +23 -0
  104. package/source/services/tasks/file-system/definitions/write-file.json +29 -0
  105. package/source/services/tasks/file-system/definitions/write-json.json +30 -0
  106. package/source/services/tasks/flow-control/Ultravisor-TaskConfigs-FlowControl.cjs +353 -0
  107. package/source/services/tasks/flow-control/Ultravisor-TaskType-IfConditional.cjs +125 -0
  108. package/source/services/tasks/flow-control/Ultravisor-TaskType-LaunchOperation.cjs +186 -0
  109. package/source/services/tasks/flow-control/Ultravisor-TaskType-SplitExecute.cjs +164 -0
  110. package/source/services/tasks/flow-control/definitions/if-conditional.json +25 -0
  111. package/source/services/tasks/flow-control/definitions/launch-operation.json +27 -0
  112. package/source/services/tasks/flow-control/definitions/split-execute.json +32 -0
  113. package/source/services/tasks/http-client/Ultravisor-TaskConfigs-HttpClient.cjs +281 -0
  114. package/source/services/tasks/http-client/definitions/get-json.json +26 -0
  115. package/source/services/tasks/http-client/definitions/get-text.json +26 -0
  116. package/source/services/tasks/http-client/definitions/rest-request.json +32 -0
  117. package/source/services/tasks/http-client/definitions/send-json.json +28 -0
  118. package/source/services/tasks/llm/Ultravisor-TaskConfigs-LLM.cjs +605 -0
  119. package/source/services/tasks/llm/definitions/llm-chat-completion.json +46 -0
  120. package/source/services/tasks/llm/definitions/llm-embedding.json +31 -0
  121. package/source/services/tasks/llm/definitions/llm-tool-use.json +42 -0
  122. package/source/services/tasks/meadow-api/Ultravisor-TaskConfigs-MeadowApi.cjs +341 -0
  123. package/source/services/tasks/meadow-api/definitions/meadow-count.json +26 -0
  124. package/source/services/tasks/meadow-api/definitions/meadow-create.json +26 -0
  125. package/source/services/tasks/meadow-api/definitions/meadow-delete.json +23 -0
  126. package/source/services/tasks/meadow-api/definitions/meadow-read.json +26 -0
  127. package/source/services/tasks/meadow-api/definitions/meadow-reads.json +29 -0
  128. package/source/services/tasks/meadow-api/definitions/meadow-update.json +26 -0
  129. package/source/services/tasks/shell/Ultravisor-TaskConfigs-Shell.cjs +63 -0
  130. package/source/services/tasks/shell/definitions/command.json +29 -0
  131. package/source/services/tasks/user-interaction/Ultravisor-TaskConfigs-UserInteraction.cjs +64 -0
  132. package/source/services/tasks/user-interaction/Ultravisor-TaskType-ErrorMessage.cjs +55 -0
  133. package/source/services/tasks/user-interaction/Ultravisor-TaskType-ValueInput.cjs +47 -0
  134. package/source/services/tasks/user-interaction/definitions/error-message.json +18 -0
  135. package/source/services/tasks/user-interaction/definitions/value-input.json +23 -0
  136. package/source/web_server/Ultravisor-API-Server.cjs +849 -124
  137. package/test/Ultravisor_browser_tests.js +2226 -0
  138. package/test/Ultravisor_operation_library_tests.js +894 -0
  139. package/test/Ultravisor_tests.js +4946 -5044
  140. package/test/workflows/test-content-concatenate-all.json +339 -0
  141. package/test/workflows/test-content-full-pipeline.json +159 -0
  142. package/test/workflows/test-content-list-files.json +76 -0
  143. package/test/workflows/test-content-save-and-read.json +106 -0
  144. package/webinterface/css/ultravisor-themes.css +668 -0
  145. package/webinterface/css/ultravisor.css +37 -14
  146. package/webinterface/docs/card-help/beacon-dispatch.md +30 -0
  147. package/webinterface/docs/card-help/command.md +27 -0
  148. package/webinterface/docs/card-help/comprehension-intersect.md +24 -0
  149. package/webinterface/docs/card-help/content-create-folder.md +22 -0
  150. package/webinterface/docs/card-help/content-list-files.md +25 -0
  151. package/webinterface/docs/card-help/content-read-file.md +24 -0
  152. package/webinterface/docs/card-help/content-save-file.md +24 -0
  153. package/webinterface/docs/card-help/copy-file.md +25 -0
  154. package/webinterface/docs/card-help/csv-transform.md +24 -0
  155. package/webinterface/docs/card-help/end.md +11 -0
  156. package/webinterface/docs/card-help/error-message.md +16 -0
  157. package/webinterface/docs/card-help/expression-solver.md +21 -0
  158. package/webinterface/docs/card-help/get-json.md +24 -0
  159. package/webinterface/docs/card-help/get-text.md +24 -0
  160. package/webinterface/docs/card-help/histogram.md +23 -0
  161. package/webinterface/docs/card-help/if-conditional.md +23 -0
  162. package/webinterface/docs/card-help/launch-operation.md +25 -0
  163. package/webinterface/docs/card-help/list-files.md +25 -0
  164. package/webinterface/docs/card-help/llm-chat-completion.md +43 -0
  165. package/webinterface/docs/card-help/llm-embedding.md +24 -0
  166. package/webinterface/docs/card-help/llm-tool-use.md +39 -0
  167. package/webinterface/docs/card-help/meadow-count.md +24 -0
  168. package/webinterface/docs/card-help/meadow-create.md +24 -0
  169. package/webinterface/docs/card-help/meadow-delete.md +19 -0
  170. package/webinterface/docs/card-help/meadow-read.md +24 -0
  171. package/webinterface/docs/card-help/meadow-reads.md +27 -0
  172. package/webinterface/docs/card-help/meadow-update.md +24 -0
  173. package/webinterface/docs/card-help/parse-csv.md +27 -0
  174. package/webinterface/docs/card-help/read-file-buffered.md +29 -0
  175. package/webinterface/docs/card-help/read-file.md +24 -0
  176. package/webinterface/docs/card-help/read-json.md +21 -0
  177. package/webinterface/docs/card-help/replace-string.md +25 -0
  178. package/webinterface/docs/card-help/rest-request.md +30 -0
  179. package/webinterface/docs/card-help/send-json.md +26 -0
  180. package/webinterface/docs/card-help/set-values.md +16 -0
  181. package/webinterface/docs/card-help/split-execute.md +35 -0
  182. package/webinterface/docs/card-help/start.md +11 -0
  183. package/webinterface/docs/card-help/string-appender.md +22 -0
  184. package/webinterface/docs/card-help/template-string.md +21 -0
  185. package/webinterface/docs/card-help/value-input.md +24 -0
  186. package/webinterface/docs/card-help/write-file.md +27 -0
  187. package/webinterface/docs/card-help/write-json.md +28 -0
  188. package/webinterface/html/index.html +5 -0
  189. package/webinterface/package.json +13 -4
  190. package/webinterface/source/Pict-Application-Ultravisor.js +564 -70
  191. package/webinterface/source/Ultravisor-TimingUtils.js +99 -0
  192. package/webinterface/source/card-help-content.js +46 -0
  193. package/webinterface/source/cards/Ultravisor-BuiltIn-CardConfigs.js +174 -0
  194. package/webinterface/source/cards/Ultravisor-CardConfigGenerator.js +431 -0
  195. package/webinterface/source/data/ExampleFlow-CSVPipeline.js +231 -0
  196. package/webinterface/source/data/ExampleFlow-FileProcessor.js +315 -0
  197. package/webinterface/source/data/ExampleFlow-MeadowPipeline.js +328 -0
  198. package/webinterface/source/panels/Ultravisor-CardSettingsPanel.js +902 -0
  199. package/webinterface/source/providers/PictRouter-Ultravisor-Configuration.json +20 -8
  200. package/webinterface/source/views/PictView-Ultravisor-BeaconList.js +817 -0
  201. package/webinterface/source/views/PictView-Ultravisor-BottomBar.js +5 -5
  202. package/webinterface/source/views/PictView-Ultravisor-Dashboard.js +25 -25
  203. package/webinterface/source/views/PictView-Ultravisor-Documentation.js +856 -0
  204. package/webinterface/source/views/PictView-Ultravisor-FlowEditor.js +777 -0
  205. package/webinterface/source/views/PictView-Ultravisor-ManifestList.js +321 -58
  206. package/webinterface/source/views/PictView-Ultravisor-OperationEdit.js +36 -91
  207. package/webinterface/source/views/PictView-Ultravisor-OperationList.js +388 -16
  208. package/webinterface/source/views/PictView-Ultravisor-PendingInput.js +314 -0
  209. package/webinterface/source/views/PictView-Ultravisor-Schedule.js +521 -65
  210. package/webinterface/source/views/PictView-Ultravisor-TimingView.js +333 -71
  211. package/webinterface/source/views/PictView-Ultravisor-TopBar.js +257 -21
  212. package/webinterface/theme-sampler.html +645 -0
  213. package/debug/Harness.js +0 -6
  214. package/source/services/Ultravisor-Operation-Manifest.cjs +0 -160
  215. package/source/services/Ultravisor-Operation.cjs +0 -200
  216. package/source/services/Ultravisor-Task.cjs +0 -349
  217. package/source/services/events/Ultravisor-Hypervisor-Event-Solver.cjs +0 -11
  218. package/source/services/tasks/Ultravisor-Task-Base.cjs +0 -264
  219. package/source/services/tasks/Ultravisor-Task-CollectValues.cjs +0 -188
  220. package/source/services/tasks/Ultravisor-Task-Command.cjs +0 -65
  221. package/source/services/tasks/Ultravisor-Task-CommandEach.cjs +0 -190
  222. package/source/services/tasks/Ultravisor-Task-Conditional.cjs +0 -104
  223. package/source/services/tasks/Ultravisor-Task-DateWindow.cjs +0 -72
  224. package/source/services/tasks/Ultravisor-Task-GeneratePagedOperation.cjs +0 -336
  225. package/source/services/tasks/Ultravisor-Task-LaunchOperation.cjs +0 -143
  226. package/source/services/tasks/Ultravisor-Task-LaunchTask.cjs +0 -146
  227. package/source/services/tasks/Ultravisor-Task-LineMatch.cjs +0 -158
  228. package/source/services/tasks/Ultravisor-Task-Request.cjs +0 -56
  229. package/source/services/tasks/Ultravisor-Task-Solver.cjs +0 -89
  230. package/source/services/tasks/Ultravisor-Task-TemplateString.cjs +0 -93
  231. package/source/services/tasks/rest/Ultravisor-Task-GetBinary.cjs +0 -127
  232. package/source/services/tasks/rest/Ultravisor-Task-GetJSON.cjs +0 -119
  233. package/source/services/tasks/rest/Ultravisor-Task-GetText.cjs +0 -109
  234. package/source/services/tasks/rest/Ultravisor-Task-GetXML.cjs +0 -112
  235. package/source/services/tasks/rest/Ultravisor-Task-RestRequest.cjs +0 -499
  236. package/source/services/tasks/rest/Ultravisor-Task-SendJSON.cjs +0 -150
  237. package/source/services/tasks/stagingfiles/Ultravisor-Task-CopyFile.cjs +0 -110
  238. package/source/services/tasks/stagingfiles/Ultravisor-Task-ListFiles.cjs +0 -89
  239. package/source/services/tasks/stagingfiles/Ultravisor-Task-ReadBinary.cjs +0 -87
  240. package/source/services/tasks/stagingfiles/Ultravisor-Task-ReadJSON.cjs +0 -67
  241. package/source/services/tasks/stagingfiles/Ultravisor-Task-ReadText.cjs +0 -66
  242. package/source/services/tasks/stagingfiles/Ultravisor-Task-ReadXML.cjs +0 -69
  243. package/source/services/tasks/stagingfiles/Ultravisor-Task-WriteBinary.cjs +0 -95
  244. package/source/services/tasks/stagingfiles/Ultravisor-Task-WriteJSON.cjs +0 -96
  245. package/source/services/tasks/stagingfiles/Ultravisor-Task-WriteText.cjs +0 -99
  246. package/source/services/tasks/stagingfiles/Ultravisor-Task-WriteXML.cjs +0 -102
  247. package/webinterface/source/views/PictView-Ultravisor-TaskEdit.js +0 -220
  248. package/webinterface/source/views/PictView-Ultravisor-TaskList.js +0 -248
@@ -0,0 +1,314 @@
1
+ {
2
+ "Name": "LLM Embedding and Tool Use",
3
+ "Description": "Reads a document, generates an embedding for it, uses LLM tool-use to classify the document based on its content, checks if the classification is confident, and writes a combined analysis report. Demonstrates llm-embedding and llm-tool-use task types.",
4
+ "Tags": [
5
+ "llm",
6
+ "embedding",
7
+ "tool-use",
8
+ "classification",
9
+ "file-processing"
10
+ ],
11
+ "Author": "Ultravisor",
12
+ "Version": "1.0.0",
13
+ "Graph": {
14
+ "Nodes": [
15
+ {
16
+ "Hash": "le-start",
17
+ "Type": "start",
18
+ "X": 50,
19
+ "Y": 220,
20
+ "Width": 140,
21
+ "Height": 80,
22
+ "Title": "Start",
23
+ "Ports": [
24
+ { "Hash": "le-start-out", "Direction": "output", "Side": "right-bottom", "Label": "Out" }
25
+ ],
26
+ "Data": {}
27
+ },
28
+ {
29
+ "Hash": "le-read",
30
+ "Type": "read-file",
31
+ "X": 250,
32
+ "Y": 200,
33
+ "Width": 200,
34
+ "Height": 120,
35
+ "Title": "Read Document",
36
+ "Ports": [
37
+ { "Hash": "le-ei-BeginRead", "Direction": "input", "Side": "left-bottom", "Label": "BeginRead" },
38
+ { "Hash": "le-eo-ReadComplete", "Direction": "output", "Side": "right-bottom", "Label": "ReadComplete" },
39
+ { "Hash": "le-eo-ReadError", "Direction": "output", "Side": "bottom", "Label": "Error" },
40
+ { "Hash": "le-so-FileContent", "Direction": "output", "Side": "right-top", "Label": "FileContent" },
41
+ { "Hash": "le-so-BytesRead", "Direction": "output", "Side": "right-top", "Label": "BytesRead" }
42
+ ],
43
+ "Data": {
44
+ "FilePath": "document.txt",
45
+ "Encoding": "utf8"
46
+ }
47
+ },
48
+ {
49
+ "Hash": "le-embed",
50
+ "Type": "llm-embedding",
51
+ "X": 520,
52
+ "Y": 200,
53
+ "Width": 240,
54
+ "Height": 140,
55
+ "Title": "Generate Embedding",
56
+ "Ports": [
57
+ { "Hash": "le-ei-EmbedTrigger", "Direction": "input", "Side": "left-bottom", "Label": "Trigger" },
58
+ { "Hash": "le-eo-EmbedComplete", "Direction": "output", "Side": "right-bottom", "Label": "Complete" },
59
+ { "Hash": "le-eo-EmbedError", "Direction": "output", "Side": "bottom", "Label": "Error" },
60
+ { "Hash": "le-so-Embedding", "Direction": "output", "Side": "right-top", "Label": "Embedding" },
61
+ { "Hash": "le-so-Dimensions", "Direction": "output", "Side": "right-top", "Label": "Dimensions" },
62
+ { "Hash": "le-so-EmbedModel", "Direction": "output", "Side": "right-top", "Label": "Model" },
63
+ { "Hash": "le-so-EmbedBeaconID", "Direction": "output", "Side": "right-top", "Label": "BeaconID" }
64
+ ],
65
+ "Data": {
66
+ "InputAddress": "TaskOutput.le-read.FileContent",
67
+ "Destination": "Operation.Embedding",
68
+ "TimeoutMs": 60000
69
+ }
70
+ },
71
+ {
72
+ "Hash": "le-classify",
73
+ "Type": "llm-tool-use",
74
+ "X": 830,
75
+ "Y": 200,
76
+ "Width": 260,
77
+ "Height": 160,
78
+ "Title": "Classify Document",
79
+ "Ports": [
80
+ { "Hash": "le-ei-ClassifyTrigger", "Direction": "input", "Side": "left-bottom", "Label": "Trigger" },
81
+ { "Hash": "le-eo-ClassifyComplete", "Direction": "output", "Side": "right-bottom", "Label": "Complete" },
82
+ { "Hash": "le-eo-ToolCall", "Direction": "output", "Side": "right-bottom", "Label": "ToolCall" },
83
+ { "Hash": "le-eo-ClassifyError", "Direction": "output", "Side": "bottom", "Label": "Error" },
84
+ { "Hash": "le-so-Content", "Direction": "output", "Side": "right-top", "Label": "Content" },
85
+ { "Hash": "le-so-ToolCalls", "Direction": "output", "Side": "right-top", "Label": "ToolCalls" },
86
+ { "Hash": "le-so-ClassifyModel", "Direction": "output", "Side": "right-top", "Label": "Model" },
87
+ { "Hash": "le-so-FinishReason", "Direction": "output", "Side": "right-top", "Label": "FinishReason" },
88
+ { "Hash": "le-so-PromptTokens", "Direction": "output", "Side": "right-top", "Label": "PromptTokens" },
89
+ { "Hash": "le-so-CompletionTokens", "Direction": "output", "Side": "right-top", "Label": "CompletionTokens" },
90
+ { "Hash": "le-so-ClassifyBeaconID", "Direction": "output", "Side": "right-top", "Label": "BeaconID" }
91
+ ],
92
+ "Data": {
93
+ "SystemPrompt": "You are a document classifier. Use the classify_document tool to categorize the given text.",
94
+ "UserPrompt": "Classify this document:",
95
+ "InputAddress": "TaskOutput.le-read.FileContent",
96
+ "Tools": "[{\"type\":\"function\",\"function\":{\"name\":\"classify_document\",\"description\":\"Classify a document into a category\",\"parameters\":{\"type\":\"object\",\"properties\":{\"category\":{\"type\":\"string\",\"enum\":[\"technical\",\"business\",\"legal\",\"personal\",\"academic\"]},\"confidence\":{\"type\":\"number\",\"minimum\":0,\"maximum\":1},\"summary\":{\"type\":\"string\"}},\"required\":[\"category\",\"confidence\",\"summary\"]}}}]",
97
+ "Destination": "Operation.Classification",
98
+ "Temperature": 0.3,
99
+ "MaxTokens": 1024
100
+ }
101
+ },
102
+ {
103
+ "Hash": "le-check",
104
+ "Type": "if-conditional",
105
+ "X": 1160,
106
+ "Y": 200,
107
+ "Width": 200,
108
+ "Height": 120,
109
+ "Title": "Classification Confident?",
110
+ "Ports": [
111
+ { "Hash": "le-ei-Evaluate", "Direction": "input", "Side": "left-bottom", "Label": "Evaluate" },
112
+ { "Hash": "le-eo-True", "Direction": "output", "Side": "right-bottom", "Label": "True" },
113
+ { "Hash": "le-eo-False", "Direction": "output", "Side": "bottom", "Label": "False" },
114
+ { "Hash": "le-so-Result", "Direction": "output", "Side": "right-top", "Label": "Result" }
115
+ ],
116
+ "Data": {
117
+ "DataAddress": "TaskOutput.le-classify.Content",
118
+ "Operator": "truthy"
119
+ }
120
+ },
121
+ {
122
+ "Hash": "le-format",
123
+ "Type": "template-string",
124
+ "X": 1430,
125
+ "Y": 180,
126
+ "Width": 260,
127
+ "Height": 100,
128
+ "Title": "Format Report",
129
+ "Ports": [
130
+ { "Hash": "le-ei-In", "Direction": "input", "Side": "left-bottom", "Label": "In" },
131
+ { "Hash": "le-eo-FormatComplete", "Direction": "output", "Side": "right-bottom", "Label": "Complete" },
132
+ { "Hash": "le-so-FormatResult", "Direction": "output", "Side": "right-top", "Label": "Result" }
133
+ ],
134
+ "Data": {
135
+ "Template": "Document Analysis Report\n========================\nFile: document.txt\nBytes: {~D:Record.TaskOutput.le-read.BytesRead~}\n\nEmbedding:\n Dimensions: {~D:Record.TaskOutput.le-embed.Dimensions~}\n Model: {~D:Record.TaskOutput.le-embed.Model~}\n\nClassification:\n Content: {~D:Record.TaskOutput.le-classify.Content~}\n Tool Calls: {~D:Record.TaskOutput.le-classify.ToolCalls~}\n Finish Reason: {~D:Record.TaskOutput.le-classify.FinishReason~}\n Tokens: {~D:Record.TaskOutput.le-classify.PromptTokens~} prompt / {~D:Record.TaskOutput.le-classify.CompletionTokens~} completion\n",
136
+ "Destination": "Operation.Report"
137
+ }
138
+ },
139
+ {
140
+ "Hash": "le-write",
141
+ "Type": "write-file",
142
+ "X": 1760,
143
+ "Y": 180,
144
+ "Width": 200,
145
+ "Height": 120,
146
+ "Title": "Write Report",
147
+ "Ports": [
148
+ { "Hash": "le-ei-BeginWrite", "Direction": "input", "Side": "left-bottom", "Label": "BeginWrite" },
149
+ { "Hash": "le-eo-WriteComplete", "Direction": "output", "Side": "right-bottom", "Label": "WriteComplete" },
150
+ { "Hash": "le-eo-WriteError", "Direction": "output", "Side": "bottom", "Label": "Error" },
151
+ { "Hash": "le-si-Content", "Direction": "input", "Side": "left-top", "Label": "Content" },
152
+ { "Hash": "le-so-BytesWritten", "Direction": "output", "Side": "right-top", "Label": "BytesWritten" }
153
+ ],
154
+ "Data": {
155
+ "FilePath": "analysis-report.txt",
156
+ "Content": "{~D:Record.Operation.Report~}"
157
+ }
158
+ },
159
+ {
160
+ "Hash": "le-err",
161
+ "Type": "error-message",
162
+ "X": 830,
163
+ "Y": 440,
164
+ "Width": 220,
165
+ "Height": 80,
166
+ "Title": "Pipeline Error",
167
+ "Ports": [
168
+ { "Hash": "le-ei-ErrTrigger", "Direction": "input", "Side": "left-bottom", "Label": "Trigger" },
169
+ { "Hash": "le-eo-ErrComplete", "Direction": "output", "Side": "right-bottom", "Label": "Complete" }
170
+ ],
171
+ "Data": {
172
+ "MessageTemplate": "LLM embedding/tool-use pipeline failed"
173
+ }
174
+ },
175
+ {
176
+ "Hash": "le-end",
177
+ "Type": "end",
178
+ "X": 2030,
179
+ "Y": 240,
180
+ "Width": 140,
181
+ "Height": 80,
182
+ "Title": "End",
183
+ "Ports": [
184
+ { "Hash": "le-ei-End", "Direction": "input", "Side": "left-bottom", "Label": "In" }
185
+ ],
186
+ "Data": {}
187
+ }
188
+ ],
189
+ "Connections": [
190
+ {
191
+ "Hash": "le-c1",
192
+ "SourceNodeHash": "le-start",
193
+ "SourcePortHash": "le-start-out",
194
+ "TargetNodeHash": "le-read",
195
+ "TargetPortHash": "le-ei-BeginRead",
196
+ "Data": {}
197
+ },
198
+ {
199
+ "Hash": "le-c2",
200
+ "SourceNodeHash": "le-read",
201
+ "SourcePortHash": "le-eo-ReadComplete",
202
+ "TargetNodeHash": "le-embed",
203
+ "TargetPortHash": "le-ei-EmbedTrigger",
204
+ "Data": {}
205
+ },
206
+ {
207
+ "Hash": "le-c3",
208
+ "SourceNodeHash": "le-embed",
209
+ "SourcePortHash": "le-eo-EmbedComplete",
210
+ "TargetNodeHash": "le-classify",
211
+ "TargetPortHash": "le-ei-ClassifyTrigger",
212
+ "Data": {}
213
+ },
214
+ {
215
+ "Hash": "le-c4",
216
+ "SourceNodeHash": "le-classify",
217
+ "SourcePortHash": "le-eo-ClassifyComplete",
218
+ "TargetNodeHash": "le-check",
219
+ "TargetPortHash": "le-ei-Evaluate",
220
+ "Data": {}
221
+ },
222
+ {
223
+ "Hash": "le-c5",
224
+ "SourceNodeHash": "le-check",
225
+ "SourcePortHash": "le-eo-True",
226
+ "TargetNodeHash": "le-format",
227
+ "TargetPortHash": "le-ei-In",
228
+ "Data": {}
229
+ },
230
+ {
231
+ "Hash": "le-c6",
232
+ "SourceNodeHash": "le-format",
233
+ "SourcePortHash": "le-eo-FormatComplete",
234
+ "TargetNodeHash": "le-write",
235
+ "TargetPortHash": "le-ei-BeginWrite",
236
+ "Data": {}
237
+ },
238
+ {
239
+ "Hash": "le-c7",
240
+ "SourceNodeHash": "le-write",
241
+ "SourcePortHash": "le-eo-WriteComplete",
242
+ "TargetNodeHash": "le-end",
243
+ "TargetPortHash": "le-ei-End",
244
+ "Data": {}
245
+ },
246
+ {
247
+ "Hash": "le-c8",
248
+ "SourceNodeHash": "le-read",
249
+ "SourcePortHash": "le-eo-ReadError",
250
+ "TargetNodeHash": "le-err",
251
+ "TargetPortHash": "le-ei-ErrTrigger",
252
+ "Data": {}
253
+ },
254
+ {
255
+ "Hash": "le-c9",
256
+ "SourceNodeHash": "le-embed",
257
+ "SourcePortHash": "le-eo-EmbedError",
258
+ "TargetNodeHash": "le-err",
259
+ "TargetPortHash": "le-ei-ErrTrigger",
260
+ "Data": {}
261
+ },
262
+ {
263
+ "Hash": "le-c10",
264
+ "SourceNodeHash": "le-classify",
265
+ "SourcePortHash": "le-eo-ClassifyError",
266
+ "TargetNodeHash": "le-err",
267
+ "TargetPortHash": "le-ei-ErrTrigger",
268
+ "Data": {}
269
+ },
270
+ {
271
+ "Hash": "le-c11",
272
+ "SourceNodeHash": "le-check",
273
+ "SourcePortHash": "le-eo-False",
274
+ "TargetNodeHash": "le-err",
275
+ "TargetPortHash": "le-ei-ErrTrigger",
276
+ "Data": {}
277
+ },
278
+ {
279
+ "Hash": "le-c12",
280
+ "SourceNodeHash": "le-write",
281
+ "SourcePortHash": "le-eo-WriteError",
282
+ "TargetNodeHash": "le-end",
283
+ "TargetPortHash": "le-ei-End",
284
+ "Data": {}
285
+ },
286
+ {
287
+ "Hash": "le-c13",
288
+ "SourceNodeHash": "le-err",
289
+ "SourcePortHash": "le-eo-ErrComplete",
290
+ "TargetNodeHash": "le-end",
291
+ "TargetPortHash": "le-ei-End",
292
+ "Data": {}
293
+ },
294
+ {
295
+ "Hash": "le-sc1",
296
+ "SourceNodeHash": "le-format",
297
+ "SourcePortHash": "le-so-FormatResult",
298
+ "TargetNodeHash": "le-write",
299
+ "TargetPortHash": "le-si-Content",
300
+ "Data": {}
301
+ }
302
+ ],
303
+ "ViewState": {
304
+ "PanX": 0,
305
+ "PanY": 0,
306
+ "Zoom": 1,
307
+ "SelectedNodeHash": null,
308
+ "SelectedConnectionHash": null
309
+ }
310
+ },
311
+ "SavedLayouts": [],
312
+ "InitialGlobalState": {},
313
+ "InitialOperationState": {}
314
+ }
@@ -0,0 +1,322 @@
1
+ {
2
+ "Name": "LLM Multi-Turn Analysis",
3
+ "Description": "Demonstrates multi-turn conversation with an LLM. Three chained LLM calls share a ConversationAddress: initial analysis, follow-up question, and final synthesis. Each call builds on the prior conversation context.",
4
+ "Tags": [
5
+ "llm",
6
+ "multi-turn",
7
+ "conversation",
8
+ "analysis"
9
+ ],
10
+ "Author": "Ultravisor",
11
+ "Version": "1.0.0",
12
+ "Graph": {
13
+ "Nodes": [
14
+ {
15
+ "Hash": "mt-start",
16
+ "Type": "start",
17
+ "X": 50,
18
+ "Y": 200,
19
+ "Width": 140,
20
+ "Height": 80,
21
+ "Title": "Start",
22
+ "Ports": [
23
+ {
24
+ "Hash": "mt-start-out",
25
+ "Direction": "output",
26
+ "Side": "right-bottom",
27
+ "Label": "Out"
28
+ }
29
+ ],
30
+ "Data": {}
31
+ },
32
+ {
33
+ "Hash": "mt-analyze",
34
+ "Type": "llm-chat-completion",
35
+ "X": 260,
36
+ "Y": 180,
37
+ "Width": 260,
38
+ "Height": 100,
39
+ "Title": "Initial Analysis",
40
+ "Ports": [
41
+ {
42
+ "Hash": "mt-a-in",
43
+ "Direction": "input",
44
+ "Side": "left-bottom",
45
+ "Label": "Trigger"
46
+ },
47
+ {
48
+ "Hash": "mt-a-done",
49
+ "Direction": "output",
50
+ "Side": "right-bottom",
51
+ "Label": "Complete"
52
+ },
53
+ {
54
+ "Hash": "mt-a-err",
55
+ "Direction": "output",
56
+ "Side": "bottom",
57
+ "Label": "Error"
58
+ },
59
+ {
60
+ "Hash": "mt-a-so-Content",
61
+ "Direction": "output",
62
+ "Side": "right-top",
63
+ "Label": "Content"
64
+ }
65
+ ],
66
+ "Data": {
67
+ "SystemPrompt": "You are an analytical assistant. When given a topic, provide a thorough initial analysis identifying key themes, patterns, and areas that warrant deeper investigation.",
68
+ "UserPrompt": "{~D:Record.Operation.Topic~}",
69
+ "ConversationAddress": "Operation.Conversation",
70
+ "AppendToConversation": "true",
71
+ "Temperature": 0.5,
72
+ "MaxTokens": 2048
73
+ }
74
+ },
75
+ {
76
+ "Hash": "mt-followup",
77
+ "Type": "llm-chat-completion",
78
+ "X": 590,
79
+ "Y": 180,
80
+ "Width": 260,
81
+ "Height": 100,
82
+ "Title": "Follow-Up Question",
83
+ "Ports": [
84
+ {
85
+ "Hash": "mt-f-in",
86
+ "Direction": "input",
87
+ "Side": "left-bottom",
88
+ "Label": "Trigger"
89
+ },
90
+ {
91
+ "Hash": "mt-f-done",
92
+ "Direction": "output",
93
+ "Side": "right-bottom",
94
+ "Label": "Complete"
95
+ },
96
+ {
97
+ "Hash": "mt-f-err",
98
+ "Direction": "output",
99
+ "Side": "bottom",
100
+ "Label": "Error"
101
+ },
102
+ {
103
+ "Hash": "mt-f-so-Content",
104
+ "Direction": "output",
105
+ "Side": "right-top",
106
+ "Label": "Content"
107
+ }
108
+ ],
109
+ "Data": {
110
+ "UserPrompt": "Based on your analysis, what are the most significant implications or risks? Please elaborate on the top 3.",
111
+ "ConversationAddress": "Operation.Conversation",
112
+ "AppendToConversation": "true",
113
+ "Temperature": 0.5,
114
+ "MaxTokens": 2048
115
+ }
116
+ },
117
+ {
118
+ "Hash": "mt-synthesize",
119
+ "Type": "llm-chat-completion",
120
+ "X": 920,
121
+ "Y": 180,
122
+ "Width": 260,
123
+ "Height": 100,
124
+ "Title": "Final Synthesis",
125
+ "Ports": [
126
+ {
127
+ "Hash": "mt-s-in",
128
+ "Direction": "input",
129
+ "Side": "left-bottom",
130
+ "Label": "Trigger"
131
+ },
132
+ {
133
+ "Hash": "mt-s-done",
134
+ "Direction": "output",
135
+ "Side": "right-bottom",
136
+ "Label": "Complete"
137
+ },
138
+ {
139
+ "Hash": "mt-s-err",
140
+ "Direction": "output",
141
+ "Side": "bottom",
142
+ "Label": "Error"
143
+ },
144
+ {
145
+ "Hash": "mt-s-so-Content",
146
+ "Direction": "output",
147
+ "Side": "right-top",
148
+ "Label": "Content"
149
+ }
150
+ ],
151
+ "Data": {
152
+ "UserPrompt": "Now synthesize everything we have discussed into a concise executive summary with actionable recommendations. Use bullet points for clarity.",
153
+ "ConversationAddress": "Operation.Conversation",
154
+ "AppendToConversation": "true",
155
+ "PersistConversation": "true",
156
+ "ConversationPersistAddress": "Global.Sessions.LastAnalysis",
157
+ "Destination": "Operation.FinalSummary",
158
+ "Temperature": 0.3,
159
+ "MaxTokens": 2048
160
+ }
161
+ },
162
+ {
163
+ "Hash": "mt-write",
164
+ "Type": "write-file",
165
+ "X": 1250,
166
+ "Y": 180,
167
+ "Width": 200,
168
+ "Height": 120,
169
+ "Title": "Write Report",
170
+ "Ports": [
171
+ {
172
+ "Hash": "mt-wr-in",
173
+ "Direction": "input",
174
+ "Side": "left-bottom",
175
+ "Label": "BeginWrite"
176
+ },
177
+ {
178
+ "Hash": "mt-wr-done",
179
+ "Direction": "output",
180
+ "Side": "right-bottom",
181
+ "Label": "WriteComplete"
182
+ },
183
+ {
184
+ "Hash": "mt-wr-err",
185
+ "Direction": "output",
186
+ "Side": "bottom",
187
+ "Label": "Error"
188
+ },
189
+ {
190
+ "Hash": "mt-wr-si-Content",
191
+ "Direction": "input",
192
+ "Side": "left-top",
193
+ "Label": "Content"
194
+ },
195
+ {
196
+ "Hash": "mt-wr-so-BytesWritten",
197
+ "Direction": "output",
198
+ "Side": "right-top",
199
+ "Label": "BytesWritten"
200
+ }
201
+ ],
202
+ "Data": {
203
+ "FilePath": "analysis-report.txt",
204
+ "Content": "{~D:Record.Operation.FinalSummary~}",
205
+ "Encoding": "utf8"
206
+ }
207
+ },
208
+ {
209
+ "Hash": "mt-end",
210
+ "Type": "end",
211
+ "X": 1520,
212
+ "Y": 260,
213
+ "Width": 140,
214
+ "Height": 80,
215
+ "Title": "End",
216
+ "Ports": [
217
+ {
218
+ "Hash": "mt-end-in",
219
+ "Direction": "input",
220
+ "Side": "left-bottom",
221
+ "Label": "In"
222
+ }
223
+ ],
224
+ "Data": {}
225
+ }
226
+ ],
227
+ "Connections": [
228
+ {
229
+ "Hash": "mt-c1",
230
+ "SourceNodeHash": "mt-start",
231
+ "SourcePortHash": "mt-start-out",
232
+ "TargetNodeHash": "mt-analyze",
233
+ "TargetPortHash": "mt-a-in",
234
+ "Data": {}
235
+ },
236
+ {
237
+ "Hash": "mt-c2",
238
+ "SourceNodeHash": "mt-analyze",
239
+ "SourcePortHash": "mt-a-done",
240
+ "TargetNodeHash": "mt-followup",
241
+ "TargetPortHash": "mt-f-in",
242
+ "Data": {}
243
+ },
244
+ {
245
+ "Hash": "mt-c3",
246
+ "SourceNodeHash": "mt-followup",
247
+ "SourcePortHash": "mt-f-done",
248
+ "TargetNodeHash": "mt-synthesize",
249
+ "TargetPortHash": "mt-s-in",
250
+ "Data": {}
251
+ },
252
+ {
253
+ "Hash": "mt-c4",
254
+ "SourceNodeHash": "mt-synthesize",
255
+ "SourcePortHash": "mt-s-done",
256
+ "TargetNodeHash": "mt-write",
257
+ "TargetPortHash": "mt-wr-in",
258
+ "Data": {}
259
+ },
260
+ {
261
+ "Hash": "mt-c5",
262
+ "SourceNodeHash": "mt-write",
263
+ "SourcePortHash": "mt-wr-done",
264
+ "TargetNodeHash": "mt-end",
265
+ "TargetPortHash": "mt-end-in",
266
+ "Data": {}
267
+ },
268
+ {
269
+ "Hash": "mt-c6",
270
+ "SourceNodeHash": "mt-analyze",
271
+ "SourcePortHash": "mt-a-err",
272
+ "TargetNodeHash": "mt-end",
273
+ "TargetPortHash": "mt-end-in",
274
+ "Data": {}
275
+ },
276
+ {
277
+ "Hash": "mt-c7",
278
+ "SourceNodeHash": "mt-followup",
279
+ "SourcePortHash": "mt-f-err",
280
+ "TargetNodeHash": "mt-end",
281
+ "TargetPortHash": "mt-end-in",
282
+ "Data": {}
283
+ },
284
+ {
285
+ "Hash": "mt-c8",
286
+ "SourceNodeHash": "mt-synthesize",
287
+ "SourcePortHash": "mt-s-err",
288
+ "TargetNodeHash": "mt-end",
289
+ "TargetPortHash": "mt-end-in",
290
+ "Data": {}
291
+ },
292
+ {
293
+ "Hash": "mt-c9",
294
+ "SourceNodeHash": "mt-write",
295
+ "SourcePortHash": "mt-wr-err",
296
+ "TargetNodeHash": "mt-end",
297
+ "TargetPortHash": "mt-end-in",
298
+ "Data": {}
299
+ },
300
+ {
301
+ "Hash": "mt-sc1",
302
+ "SourceNodeHash": "mt-synthesize",
303
+ "SourcePortHash": "mt-s-so-Content",
304
+ "TargetNodeHash": "mt-write",
305
+ "TargetPortHash": "mt-wr-si-Content",
306
+ "Data": {}
307
+ }
308
+ ],
309
+ "ViewState": {
310
+ "PanX": 0,
311
+ "PanY": 0,
312
+ "Zoom": 1,
313
+ "SelectedNodeHash": null,
314
+ "SelectedConnectionHash": null
315
+ }
316
+ },
317
+ "SavedLayouts": [],
318
+ "InitialGlobalState": {},
319
+ "InitialOperationState": {
320
+ "Topic": "Analyze the current state of AI adoption in enterprise software development, including benefits, challenges, and emerging best practices."
321
+ }
322
+ }