@almadar/std 3.2.3 → 3.3.5

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 (163) hide show
  1. package/LICENSE +72 -21
  2. package/README.md +1 -1
  3. package/behaviors/exports/atoms/std-combat-log.orb +12 -12
  4. package/behaviors/exports/atoms/std-dialogue-box.orb +11 -11
  5. package/behaviors/exports/atoms/std-game-audio.orb +9 -9
  6. package/behaviors/exports/atoms/std-game-canvas3d.orb +24 -24
  7. package/behaviors/exports/atoms/std-game-hud.orb +10 -10
  8. package/behaviors/exports/atoms/std-game-menu.orb +12 -12
  9. package/behaviors/exports/atoms/std-game-over-screen.orb +9 -9
  10. package/behaviors/exports/atoms/std-inventory-panel.orb +13 -13
  11. package/behaviors/exports/atoms/std-isometric-canvas.orb +9 -9
  12. package/behaviors/exports/atoms/std-platformer-canvas.orb +9 -9
  13. package/behaviors/exports/atoms/std-score-board.orb +9 -9
  14. package/behaviors/exports/atoms/std-selection.orb +32 -18
  15. package/behaviors/exports/atoms/std-service-custom-bearer.orb +557 -0
  16. package/behaviors/exports/atoms/std-service-custom-header.orb +559 -0
  17. package/behaviors/exports/atoms/std-service-custom-noauth.orb +553 -0
  18. package/behaviors/exports/atoms/std-service-custom-query.orb +559 -0
  19. package/behaviors/exports/atoms/std-service-email.orb +540 -0
  20. package/behaviors/exports/atoms/std-service-github.orb +586 -0
  21. package/behaviors/exports/atoms/std-service-llm.orb +671 -0
  22. package/behaviors/exports/atoms/std-service-oauth.orb +764 -0
  23. package/behaviors/exports/atoms/std-service-redis.orb +580 -0
  24. package/behaviors/exports/atoms/std-service-storage.orb +664 -0
  25. package/behaviors/exports/atoms/std-service-stripe.orb +639 -0
  26. package/behaviors/exports/atoms/std-service-twilio.orb +611 -0
  27. package/behaviors/exports/atoms/std-service-youtube.orb +696 -0
  28. package/behaviors/exports/atoms/std-simulation-canvas.orb +9 -9
  29. package/behaviors/exports/atoms/std-sprite.orb +17 -17
  30. package/behaviors/exports/atoms/std-validate-on-save.orb +623 -0
  31. package/behaviors/exports/molecules/std-quiz.orb +48 -24
  32. package/behaviors/exports/molecules/std-service-content-pipeline.orb +915 -0
  33. package/behaviors/exports/molecules/std-service-custom-api-tester.orb +860 -0
  34. package/behaviors/exports/molecules/std-service-devops-toolkit.orb +1526 -0
  35. package/behaviors/exports/molecules/std-service-notification-hub.orb +696 -0
  36. package/behaviors/exports/molecules/std-service-payment-flow.orb +873 -0
  37. package/behaviors/exports/organisms/std-service-marketplace.orb +5191 -0
  38. package/behaviors/exports/organisms/std-service-research-assistant.orb +3568 -0
  39. package/behaviors/exports/test-schemas/os-trigger-simulation.orb +202 -0
  40. package/behaviors/exports/validation-report.json +2 -2
  41. package/dist/behaviors/exports/atoms/std-combat-log.orb +12 -12
  42. package/dist/behaviors/exports/atoms/std-dialogue-box.orb +11 -11
  43. package/dist/behaviors/exports/atoms/std-game-audio.orb +9 -9
  44. package/dist/behaviors/exports/atoms/std-game-canvas3d.orb +24 -24
  45. package/dist/behaviors/exports/atoms/std-game-hud.orb +10 -10
  46. package/dist/behaviors/exports/atoms/std-game-menu.orb +12 -12
  47. package/dist/behaviors/exports/atoms/std-game-over-screen.orb +9 -9
  48. package/dist/behaviors/exports/atoms/std-inventory-panel.orb +13 -13
  49. package/dist/behaviors/exports/atoms/std-isometric-canvas.orb +9 -9
  50. package/dist/behaviors/exports/atoms/std-platformer-canvas.orb +9 -9
  51. package/dist/behaviors/exports/atoms/std-score-board.orb +9 -9
  52. package/dist/behaviors/exports/atoms/std-selection.orb +32 -18
  53. package/dist/behaviors/exports/atoms/std-service-custom-bearer.orb +557 -0
  54. package/dist/behaviors/exports/atoms/std-service-custom-header.orb +559 -0
  55. package/dist/behaviors/exports/atoms/std-service-custom-noauth.orb +553 -0
  56. package/dist/behaviors/exports/atoms/std-service-custom-query.orb +559 -0
  57. package/dist/behaviors/exports/atoms/std-service-email.orb +540 -0
  58. package/dist/behaviors/exports/atoms/std-service-github.orb +586 -0
  59. package/dist/behaviors/exports/atoms/std-service-llm.orb +671 -0
  60. package/dist/behaviors/exports/atoms/std-service-oauth.orb +764 -0
  61. package/dist/behaviors/exports/atoms/std-service-redis.orb +580 -0
  62. package/dist/behaviors/exports/atoms/std-service-storage.orb +664 -0
  63. package/dist/behaviors/exports/atoms/std-service-stripe.orb +639 -0
  64. package/dist/behaviors/exports/atoms/std-service-twilio.orb +611 -0
  65. package/dist/behaviors/exports/atoms/std-service-youtube.orb +696 -0
  66. package/dist/behaviors/exports/atoms/std-simulation-canvas.orb +9 -9
  67. package/dist/behaviors/exports/atoms/std-sprite.orb +17 -17
  68. package/dist/behaviors/exports/atoms/std-validate-on-save.orb +623 -0
  69. package/dist/behaviors/exports/molecules/std-quiz.orb +48 -24
  70. package/dist/behaviors/exports/molecules/std-service-content-pipeline.orb +915 -0
  71. package/dist/behaviors/exports/molecules/std-service-custom-api-tester.orb +860 -0
  72. package/dist/behaviors/exports/molecules/std-service-devops-toolkit.orb +1526 -0
  73. package/dist/behaviors/exports/molecules/std-service-notification-hub.orb +696 -0
  74. package/dist/behaviors/exports/molecules/std-service-payment-flow.orb +873 -0
  75. package/dist/behaviors/exports/organisms/std-service-marketplace.orb +5191 -0
  76. package/dist/behaviors/exports/organisms/std-service-research-assistant.orb +3568 -0
  77. package/dist/behaviors/exports/test-schemas/os-trigger-simulation.orb +202 -0
  78. package/dist/behaviors/exports/validation-report.json +2 -2
  79. package/dist/behaviors/functions/index.d.ts +662 -1
  80. package/dist/behaviors/functions/index.js +7638 -2117
  81. package/dist/behaviors/functions/index.js.map +1 -1
  82. package/dist/behaviors/index.d.ts +1 -1
  83. package/dist/behaviors/index.js +7638 -2117
  84. package/dist/behaviors/index.js.map +1 -1
  85. package/dist/exports/atoms/std-combat-log.orb +12 -12
  86. package/dist/exports/atoms/std-dialogue-box.orb +11 -11
  87. package/dist/exports/atoms/std-game-audio.orb +9 -9
  88. package/dist/exports/atoms/std-game-canvas3d.orb +24 -24
  89. package/dist/exports/atoms/std-game-hud.orb +10 -10
  90. package/dist/exports/atoms/std-game-menu.orb +12 -12
  91. package/dist/exports/atoms/std-game-over-screen.orb +9 -9
  92. package/dist/exports/atoms/std-inventory-panel.orb +13 -13
  93. package/dist/exports/atoms/std-isometric-canvas.orb +9 -9
  94. package/dist/exports/atoms/std-platformer-canvas.orb +9 -9
  95. package/dist/exports/atoms/std-score-board.orb +9 -9
  96. package/dist/exports/atoms/std-selection.orb +32 -18
  97. package/dist/exports/atoms/std-service-custom-bearer.orb +557 -0
  98. package/dist/exports/atoms/std-service-custom-header.orb +559 -0
  99. package/dist/exports/atoms/std-service-custom-noauth.orb +553 -0
  100. package/dist/exports/atoms/std-service-custom-query.orb +559 -0
  101. package/dist/exports/atoms/std-service-email.orb +540 -0
  102. package/dist/exports/atoms/std-service-github.orb +586 -0
  103. package/dist/exports/atoms/std-service-llm.orb +671 -0
  104. package/dist/exports/atoms/std-service-oauth.orb +764 -0
  105. package/dist/exports/atoms/std-service-redis.orb +580 -0
  106. package/dist/exports/atoms/std-service-storage.orb +664 -0
  107. package/dist/exports/atoms/std-service-stripe.orb +639 -0
  108. package/dist/exports/atoms/std-service-twilio.orb +611 -0
  109. package/dist/exports/atoms/std-service-youtube.orb +696 -0
  110. package/dist/exports/atoms/std-simulation-canvas.orb +9 -9
  111. package/dist/exports/atoms/std-sprite.orb +17 -17
  112. package/dist/exports/atoms/std-validate-on-save.orb +623 -0
  113. package/dist/exports/molecules/std-quiz.orb +48 -24
  114. package/dist/exports/molecules/std-service-content-pipeline.orb +915 -0
  115. package/dist/exports/molecules/std-service-custom-api-tester.orb +860 -0
  116. package/dist/exports/molecules/std-service-devops-toolkit.orb +1526 -0
  117. package/dist/exports/molecules/std-service-notification-hub.orb +696 -0
  118. package/dist/exports/molecules/std-service-payment-flow.orb +873 -0
  119. package/dist/exports/organisms/std-service-marketplace.orb +5191 -0
  120. package/dist/exports/organisms/std-service-research-assistant.orb +3568 -0
  121. package/dist/exports/test-schemas/os-trigger-simulation.orb +202 -0
  122. package/dist/exports/validation-report.json +2 -2
  123. package/dist/index.d.ts +3 -3
  124. package/dist/index.js +7887 -2216
  125. package/dist/index.js.map +1 -1
  126. package/dist/modules/array.d.ts +1 -1
  127. package/dist/modules/async.d.ts +1 -1
  128. package/dist/modules/contract.d.ts +22 -0
  129. package/dist/modules/contract.js +100 -0
  130. package/dist/modules/contract.js.map +1 -0
  131. package/dist/modules/data.d.ts +22 -0
  132. package/dist/modules/data.js +117 -0
  133. package/dist/modules/data.js.map +1 -0
  134. package/dist/modules/format.d.ts +1 -1
  135. package/dist/modules/graph.d.ts +23 -0
  136. package/dist/modules/graph.js +209 -0
  137. package/dist/modules/graph.js.map +1 -0
  138. package/dist/modules/index.d.ts +5 -1
  139. package/dist/modules/index.js +593 -63
  140. package/dist/modules/index.js.map +1 -1
  141. package/dist/modules/math.d.ts +1 -1
  142. package/dist/modules/nn.d.ts +1 -1
  143. package/dist/modules/nn.js +14 -14
  144. package/dist/modules/nn.js.map +1 -1
  145. package/dist/modules/object.d.ts +1 -1
  146. package/dist/modules/os.d.ts +19 -0
  147. package/dist/modules/os.js +116 -0
  148. package/dist/modules/os.js.map +1 -0
  149. package/dist/modules/prob.d.ts +1 -1
  150. package/dist/modules/str.d.ts +1 -1
  151. package/dist/modules/tensor.d.ts +1 -1
  152. package/dist/modules/tensor.js +29 -29
  153. package/dist/modules/tensor.js.map +1 -1
  154. package/dist/modules/time.d.ts +1 -1
  155. package/dist/modules/train.d.ts +1 -1
  156. package/dist/modules/train.js +19 -19
  157. package/dist/modules/train.js.map +1 -1
  158. package/dist/modules/validate.d.ts +1 -1
  159. package/dist/registry.d.ts +2 -2
  160. package/dist/registry.js +184 -65
  161. package/dist/registry.js.map +1 -1
  162. package/dist/{types-CmNM_IbV.d.ts → types-DOeGXRCm.d.ts} +3 -3
  163. package/package.json +4 -4
@@ -0,0 +1,671 @@
1
+ {
2
+ "name": "ServiceLlmOrbital",
3
+ "orbitals": [
4
+ {
5
+ "name": "ServiceLlmOrbital",
6
+ "entity": {
7
+ "name": "ServiceLlm",
8
+ "persistence": "runtime",
9
+ "fields": [
10
+ {
11
+ "name": "id",
12
+ "type": "string",
13
+ "required": true
14
+ },
15
+ {
16
+ "name": "inputText",
17
+ "type": "string",
18
+ "default": ""
19
+ },
20
+ {
21
+ "name": "action",
22
+ "type": "string",
23
+ "default": "generate"
24
+ },
25
+ {
26
+ "name": "result",
27
+ "type": "string",
28
+ "default": ""
29
+ },
30
+ {
31
+ "name": "llmStatus",
32
+ "type": "string",
33
+ "default": "idle"
34
+ },
35
+ {
36
+ "name": "error",
37
+ "type": "string",
38
+ "default": ""
39
+ },
40
+ {
41
+ "name": "name",
42
+ "type": "string"
43
+ },
44
+ {
45
+ "name": "description",
46
+ "type": "string"
47
+ },
48
+ {
49
+ "name": "status",
50
+ "type": "string",
51
+ "default": "active",
52
+ "values": [
53
+ "active",
54
+ "inactive",
55
+ "pending"
56
+ ]
57
+ },
58
+ {
59
+ "name": "createdAt",
60
+ "type": "string"
61
+ }
62
+ ]
63
+ },
64
+ "traits": [
65
+ {
66
+ "name": "ServiceLlmLlm",
67
+ "linkedEntity": "ServiceLlm",
68
+ "category": "interaction",
69
+ "stateMachine": {
70
+ "states": [
71
+ {
72
+ "name": "idle",
73
+ "isInitial": true
74
+ },
75
+ {
76
+ "name": "processing"
77
+ },
78
+ {
79
+ "name": "complete"
80
+ },
81
+ {
82
+ "name": "error"
83
+ }
84
+ ],
85
+ "events": [
86
+ {
87
+ "key": "INIT",
88
+ "name": "Initialize"
89
+ },
90
+ {
91
+ "key": "GENERATE",
92
+ "name": "Generate"
93
+ },
94
+ {
95
+ "key": "CLASSIFY",
96
+ "name": "Classify"
97
+ },
98
+ {
99
+ "key": "SUMMARIZE",
100
+ "name": "Summarize"
101
+ },
102
+ {
103
+ "key": "COMPLETE",
104
+ "name": "Complete",
105
+ "payload": [
106
+ {
107
+ "name": "content",
108
+ "type": "string",
109
+ "required": true
110
+ }
111
+ ]
112
+ },
113
+ {
114
+ "key": "FAILED",
115
+ "name": "Failed",
116
+ "payload": [
117
+ {
118
+ "name": "error",
119
+ "type": "string",
120
+ "required": true
121
+ }
122
+ ]
123
+ },
124
+ {
125
+ "key": "RETRY",
126
+ "name": "Retry"
127
+ },
128
+ {
129
+ "key": "RESET",
130
+ "name": "Reset"
131
+ }
132
+ ],
133
+ "transitions": [
134
+ {
135
+ "from": "idle",
136
+ "to": "idle",
137
+ "event": "INIT",
138
+ "effects": [
139
+ [
140
+ "fetch",
141
+ "ServiceLlm"
142
+ ],
143
+ [
144
+ "render-ui",
145
+ "main",
146
+ {
147
+ "type": "stack",
148
+ "direction": "vertical",
149
+ "gap": "lg",
150
+ "align": "stretch",
151
+ "children": [
152
+ {
153
+ "type": "stack",
154
+ "direction": "horizontal",
155
+ "gap": "md",
156
+ "align": "center",
157
+ "children": [
158
+ {
159
+ "type": "icon",
160
+ "name": "brain",
161
+ "size": "lg"
162
+ },
163
+ {
164
+ "type": "typography",
165
+ "content": "ServiceLlm LLM",
166
+ "variant": "h2"
167
+ }
168
+ ]
169
+ },
170
+ {
171
+ "type": "divider"
172
+ },
173
+ {
174
+ "type": "textarea",
175
+ "label": "Input Text",
176
+ "bind": "@entity.inputText",
177
+ "placeholder": "Enter text for LLM processing..."
178
+ },
179
+ {
180
+ "type": "stack",
181
+ "direction": "horizontal",
182
+ "gap": "sm",
183
+ "justify": "center",
184
+ "children": [
185
+ {
186
+ "type": "button",
187
+ "label": "Generate",
188
+ "event": "GENERATE",
189
+ "variant": "primary",
190
+ "icon": "sparkles"
191
+ },
192
+ {
193
+ "type": "button",
194
+ "label": "Classify",
195
+ "event": "CLASSIFY",
196
+ "variant": "secondary",
197
+ "icon": "tag"
198
+ },
199
+ {
200
+ "type": "button",
201
+ "label": "Summarize",
202
+ "event": "SUMMARIZE",
203
+ "variant": "secondary",
204
+ "icon": "align-left"
205
+ }
206
+ ]
207
+ }
208
+ ]
209
+ }
210
+ ]
211
+ ]
212
+ },
213
+ {
214
+ "from": "idle",
215
+ "to": "processing",
216
+ "event": "GENERATE",
217
+ "effects": [
218
+ [
219
+ "set",
220
+ "@entity.action",
221
+ "generate"
222
+ ],
223
+ [
224
+ "render-ui",
225
+ "main",
226
+ {
227
+ "type": "loading-state",
228
+ "title": "Processing...",
229
+ "message": "Running servicellm LLM task..."
230
+ }
231
+ ],
232
+ [
233
+ "call-service",
234
+ "llm",
235
+ "generate",
236
+ {
237
+ "userPrompt": "@entity.inputText"
238
+ }
239
+ ]
240
+ ]
241
+ },
242
+ {
243
+ "from": "idle",
244
+ "to": "processing",
245
+ "event": "CLASSIFY",
246
+ "effects": [
247
+ [
248
+ "set",
249
+ "@entity.action",
250
+ "classify"
251
+ ],
252
+ [
253
+ "render-ui",
254
+ "main",
255
+ {
256
+ "type": "loading-state",
257
+ "title": "Processing...",
258
+ "message": "Running servicellm LLM task..."
259
+ }
260
+ ],
261
+ [
262
+ "call-service",
263
+ "llm",
264
+ "classify",
265
+ {
266
+ "text": "@entity.inputText",
267
+ "categories": [
268
+ "positive",
269
+ "negative",
270
+ "neutral"
271
+ ]
272
+ }
273
+ ]
274
+ ]
275
+ },
276
+ {
277
+ "from": "idle",
278
+ "to": "processing",
279
+ "event": "SUMMARIZE",
280
+ "effects": [
281
+ [
282
+ "set",
283
+ "@entity.action",
284
+ "summarize"
285
+ ],
286
+ [
287
+ "render-ui",
288
+ "main",
289
+ {
290
+ "type": "loading-state",
291
+ "title": "Processing...",
292
+ "message": "Running servicellm LLM task..."
293
+ }
294
+ ],
295
+ [
296
+ "call-service",
297
+ "llm",
298
+ "summarize",
299
+ {
300
+ "text": "@entity.inputText"
301
+ }
302
+ ]
303
+ ]
304
+ },
305
+ {
306
+ "from": "processing",
307
+ "to": "complete",
308
+ "event": "COMPLETE",
309
+ "effects": [
310
+ [
311
+ "set",
312
+ "@entity.result",
313
+ "@payload.content"
314
+ ],
315
+ [
316
+ "set",
317
+ "@entity.llmStatus",
318
+ "complete"
319
+ ],
320
+ [
321
+ "render-ui",
322
+ "main",
323
+ {
324
+ "type": "stack",
325
+ "direction": "vertical",
326
+ "gap": "lg",
327
+ "align": "center",
328
+ "children": [
329
+ {
330
+ "type": "icon",
331
+ "name": "check-circle",
332
+ "size": "lg"
333
+ },
334
+ {
335
+ "type": "alert",
336
+ "variant": "success",
337
+ "message": "LLM task complete"
338
+ },
339
+ {
340
+ "type": "typography",
341
+ "variant": "body",
342
+ "content": "@entity.result"
343
+ },
344
+ {
345
+ "type": "button",
346
+ "label": "Start Over",
347
+ "event": "RESET",
348
+ "variant": "ghost",
349
+ "icon": "rotate-ccw"
350
+ }
351
+ ]
352
+ }
353
+ ]
354
+ ]
355
+ },
356
+ {
357
+ "from": "processing",
358
+ "to": "error",
359
+ "event": "FAILED",
360
+ "effects": [
361
+ [
362
+ "set",
363
+ "@entity.error",
364
+ "@payload.error"
365
+ ],
366
+ [
367
+ "set",
368
+ "@entity.llmStatus",
369
+ "error"
370
+ ],
371
+ [
372
+ "render-ui",
373
+ "main",
374
+ {
375
+ "type": "stack",
376
+ "direction": "vertical",
377
+ "gap": "lg",
378
+ "align": "center",
379
+ "children": [
380
+ {
381
+ "type": "error-state",
382
+ "title": "LLM Failed",
383
+ "message": "@entity.error",
384
+ "onRetry": "RETRY"
385
+ },
386
+ {
387
+ "type": "stack",
388
+ "direction": "horizontal",
389
+ "gap": "sm",
390
+ "justify": "center",
391
+ "children": [
392
+ {
393
+ "type": "button",
394
+ "label": "Retry",
395
+ "event": "RETRY",
396
+ "variant": "primary",
397
+ "icon": "refresh-cw"
398
+ },
399
+ {
400
+ "type": "button",
401
+ "label": "Reset",
402
+ "event": "RESET",
403
+ "variant": "ghost",
404
+ "icon": "rotate-ccw"
405
+ }
406
+ ]
407
+ }
408
+ ]
409
+ }
410
+ ]
411
+ ]
412
+ },
413
+ {
414
+ "from": "error",
415
+ "to": "idle",
416
+ "event": "RETRY",
417
+ "effects": [
418
+ [
419
+ "set",
420
+ "@entity.llmStatus",
421
+ "idle"
422
+ ],
423
+ [
424
+ "render-ui",
425
+ "main",
426
+ {
427
+ "type": "stack",
428
+ "direction": "vertical",
429
+ "gap": "lg",
430
+ "align": "stretch",
431
+ "children": [
432
+ {
433
+ "type": "stack",
434
+ "direction": "horizontal",
435
+ "gap": "md",
436
+ "align": "center",
437
+ "children": [
438
+ {
439
+ "type": "icon",
440
+ "name": "brain",
441
+ "size": "lg"
442
+ },
443
+ {
444
+ "type": "typography",
445
+ "content": "ServiceLlm LLM",
446
+ "variant": "h2"
447
+ }
448
+ ]
449
+ },
450
+ {
451
+ "type": "divider"
452
+ },
453
+ {
454
+ "type": "textarea",
455
+ "label": "Input Text",
456
+ "bind": "@entity.inputText",
457
+ "placeholder": "Enter text for LLM processing..."
458
+ },
459
+ {
460
+ "type": "stack",
461
+ "direction": "horizontal",
462
+ "gap": "sm",
463
+ "justify": "center",
464
+ "children": [
465
+ {
466
+ "type": "button",
467
+ "label": "Generate",
468
+ "event": "GENERATE",
469
+ "variant": "primary",
470
+ "icon": "sparkles"
471
+ },
472
+ {
473
+ "type": "button",
474
+ "label": "Classify",
475
+ "event": "CLASSIFY",
476
+ "variant": "secondary",
477
+ "icon": "tag"
478
+ },
479
+ {
480
+ "type": "button",
481
+ "label": "Summarize",
482
+ "event": "SUMMARIZE",
483
+ "variant": "secondary",
484
+ "icon": "align-left"
485
+ }
486
+ ]
487
+ }
488
+ ]
489
+ }
490
+ ]
491
+ ]
492
+ },
493
+ {
494
+ "from": "complete",
495
+ "to": "idle",
496
+ "event": "RESET",
497
+ "effects": [
498
+ [
499
+ "set",
500
+ "@entity.llmStatus",
501
+ "idle"
502
+ ],
503
+ [
504
+ "render-ui",
505
+ "main",
506
+ {
507
+ "type": "stack",
508
+ "direction": "vertical",
509
+ "gap": "lg",
510
+ "align": "stretch",
511
+ "children": [
512
+ {
513
+ "type": "stack",
514
+ "direction": "horizontal",
515
+ "gap": "md",
516
+ "align": "center",
517
+ "children": [
518
+ {
519
+ "type": "icon",
520
+ "name": "brain",
521
+ "size": "lg"
522
+ },
523
+ {
524
+ "type": "typography",
525
+ "content": "ServiceLlm LLM",
526
+ "variant": "h2"
527
+ }
528
+ ]
529
+ },
530
+ {
531
+ "type": "divider"
532
+ },
533
+ {
534
+ "type": "textarea",
535
+ "label": "Input Text",
536
+ "bind": "@entity.inputText",
537
+ "placeholder": "Enter text for LLM processing..."
538
+ },
539
+ {
540
+ "type": "stack",
541
+ "direction": "horizontal",
542
+ "gap": "sm",
543
+ "justify": "center",
544
+ "children": [
545
+ {
546
+ "type": "button",
547
+ "label": "Generate",
548
+ "event": "GENERATE",
549
+ "variant": "primary",
550
+ "icon": "sparkles"
551
+ },
552
+ {
553
+ "type": "button",
554
+ "label": "Classify",
555
+ "event": "CLASSIFY",
556
+ "variant": "secondary",
557
+ "icon": "tag"
558
+ },
559
+ {
560
+ "type": "button",
561
+ "label": "Summarize",
562
+ "event": "SUMMARIZE",
563
+ "variant": "secondary",
564
+ "icon": "align-left"
565
+ }
566
+ ]
567
+ }
568
+ ]
569
+ }
570
+ ]
571
+ ]
572
+ },
573
+ {
574
+ "from": "error",
575
+ "to": "idle",
576
+ "event": "RESET",
577
+ "effects": [
578
+ [
579
+ "set",
580
+ "@entity.llmStatus",
581
+ "idle"
582
+ ],
583
+ [
584
+ "render-ui",
585
+ "main",
586
+ {
587
+ "type": "stack",
588
+ "direction": "vertical",
589
+ "gap": "lg",
590
+ "align": "stretch",
591
+ "children": [
592
+ {
593
+ "type": "stack",
594
+ "direction": "horizontal",
595
+ "gap": "md",
596
+ "align": "center",
597
+ "children": [
598
+ {
599
+ "type": "icon",
600
+ "name": "brain",
601
+ "size": "lg"
602
+ },
603
+ {
604
+ "type": "typography",
605
+ "content": "ServiceLlm LLM",
606
+ "variant": "h2"
607
+ }
608
+ ]
609
+ },
610
+ {
611
+ "type": "divider"
612
+ },
613
+ {
614
+ "type": "textarea",
615
+ "label": "Input Text",
616
+ "bind": "@entity.inputText",
617
+ "placeholder": "Enter text for LLM processing..."
618
+ },
619
+ {
620
+ "type": "stack",
621
+ "direction": "horizontal",
622
+ "gap": "sm",
623
+ "justify": "center",
624
+ "children": [
625
+ {
626
+ "type": "button",
627
+ "label": "Generate",
628
+ "event": "GENERATE",
629
+ "variant": "primary",
630
+ "icon": "sparkles"
631
+ },
632
+ {
633
+ "type": "button",
634
+ "label": "Classify",
635
+ "event": "CLASSIFY",
636
+ "variant": "secondary",
637
+ "icon": "tag"
638
+ },
639
+ {
640
+ "type": "button",
641
+ "label": "Summarize",
642
+ "event": "SUMMARIZE",
643
+ "variant": "secondary",
644
+ "icon": "align-left"
645
+ }
646
+ ]
647
+ }
648
+ ]
649
+ }
650
+ ]
651
+ ]
652
+ }
653
+ ]
654
+ }
655
+ }
656
+ ],
657
+ "pages": [
658
+ {
659
+ "name": "ServiceLlmPage",
660
+ "path": "/servicellms",
661
+ "traits": [
662
+ {
663
+ "ref": "ServiceLlmLlm"
664
+ }
665
+ ]
666
+ }
667
+ ]
668
+ }
669
+ ],
670
+ "description": "LLM service integration behavior: generate, classify, summarize text. Wraps the `llm` integration with 4 actions via separate action events. Pure function: params in, OrbitalDefinition out."
671
+ }