@almadar/std 3.12.2 → 3.13.1

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 (86) hide show
  1. package/behaviors/exports/atoms/std-agent-activity-log.orb +559 -0
  2. package/behaviors/exports/atoms/std-agent-chat-thread.orb +774 -0
  3. package/behaviors/exports/atoms/std-agent-classifier.orb +871 -0
  4. package/behaviors/exports/atoms/std-agent-completion.orb +933 -0
  5. package/behaviors/exports/atoms/std-agent-context-window.orb +2294 -0
  6. package/behaviors/exports/atoms/std-agent-conversation.orb +1020 -0
  7. package/behaviors/exports/atoms/std-agent-memory.orb +879 -0
  8. package/behaviors/exports/atoms/std-agent-provider.orb +898 -0
  9. package/behaviors/exports/atoms/std-agent-search.orb +448 -0
  10. package/behaviors/exports/atoms/std-agent-session.orb +835 -0
  11. package/behaviors/exports/atoms/std-agent-step-progress.orb +850 -0
  12. package/behaviors/exports/atoms/std-agent-token-gauge.orb +1616 -0
  13. package/behaviors/exports/atoms/std-agent-tool-call.orb +1237 -0
  14. package/behaviors/exports/molecules/std-agent-fix-loop.orb +3177 -0
  15. package/behaviors/exports/molecules/std-agent-learner.orb +2950 -0
  16. package/behaviors/exports/molecules/std-agent-planner.orb +2655 -0
  17. package/behaviors/exports/molecules/std-agent-rag.orb +1871 -0
  18. package/behaviors/exports/molecules/std-agent-tool-loop.orb +4857 -0
  19. package/behaviors/exports/organisms/std-agent-assistant.orb +6440 -0
  20. package/behaviors/exports/organisms/std-agent-builder.orb +14863 -0
  21. package/behaviors/exports/organisms/std-agent-pipeline.orb +11950 -0
  22. package/behaviors/exports/organisms/std-agent-reviewer.orb +5405 -0
  23. package/behaviors/exports/organisms/std-agent-tutor.orb +5107 -0
  24. package/behaviors/exports/validation-report.json +2 -1099
  25. package/dist/behaviors/exports/atoms/std-agent-activity-log.orb +559 -0
  26. package/dist/behaviors/exports/atoms/std-agent-chat-thread.orb +774 -0
  27. package/dist/behaviors/exports/atoms/std-agent-classifier.orb +871 -0
  28. package/dist/behaviors/exports/atoms/std-agent-completion.orb +933 -0
  29. package/dist/behaviors/exports/atoms/std-agent-context-window.orb +2294 -0
  30. package/dist/behaviors/exports/atoms/std-agent-conversation.orb +1020 -0
  31. package/dist/behaviors/exports/atoms/std-agent-memory.orb +879 -0
  32. package/dist/behaviors/exports/atoms/std-agent-provider.orb +898 -0
  33. package/dist/behaviors/exports/atoms/std-agent-search.orb +448 -0
  34. package/dist/behaviors/exports/atoms/std-agent-session.orb +835 -0
  35. package/dist/behaviors/exports/atoms/std-agent-step-progress.orb +850 -0
  36. package/dist/behaviors/exports/atoms/std-agent-token-gauge.orb +1616 -0
  37. package/dist/behaviors/exports/atoms/std-agent-tool-call.orb +1237 -0
  38. package/dist/behaviors/exports/molecules/std-agent-fix-loop.orb +3177 -0
  39. package/dist/behaviors/exports/molecules/std-agent-learner.orb +2950 -0
  40. package/dist/behaviors/exports/molecules/std-agent-planner.orb +2655 -0
  41. package/dist/behaviors/exports/molecules/std-agent-rag.orb +1871 -0
  42. package/dist/behaviors/exports/molecules/std-agent-tool-loop.orb +4857 -0
  43. package/dist/behaviors/exports/organisms/std-agent-assistant.orb +6440 -0
  44. package/dist/behaviors/exports/organisms/std-agent-builder.orb +14863 -0
  45. package/dist/behaviors/exports/organisms/std-agent-pipeline.orb +11950 -0
  46. package/dist/behaviors/exports/organisms/std-agent-reviewer.orb +5405 -0
  47. package/dist/behaviors/exports/organisms/std-agent-tutor.orb +5107 -0
  48. package/dist/behaviors/exports/validation-report.json +2 -1099
  49. package/dist/behaviors/exports-reader.js +7156 -302
  50. package/dist/behaviors/exports-reader.js.map +1 -1
  51. package/dist/behaviors/functions/index.d.ts +781 -1
  52. package/dist/behaviors/functions/index.js +7080 -303
  53. package/dist/behaviors/functions/index.js.map +1 -1
  54. package/dist/behaviors/index.d.ts +1 -1
  55. package/dist/behaviors/index.js +7159 -305
  56. package/dist/behaviors/index.js.map +1 -1
  57. package/dist/behaviors/query.js +7158 -304
  58. package/dist/behaviors/query.js.map +1 -1
  59. package/dist/exports/atoms/std-agent-activity-log.orb +559 -0
  60. package/dist/exports/atoms/std-agent-chat-thread.orb +774 -0
  61. package/dist/exports/atoms/std-agent-classifier.orb +871 -0
  62. package/dist/exports/atoms/std-agent-completion.orb +933 -0
  63. package/dist/exports/atoms/std-agent-context-window.orb +2294 -0
  64. package/dist/exports/atoms/std-agent-conversation.orb +1020 -0
  65. package/dist/exports/atoms/std-agent-memory.orb +879 -0
  66. package/dist/exports/atoms/std-agent-provider.orb +898 -0
  67. package/dist/exports/atoms/std-agent-search.orb +448 -0
  68. package/dist/exports/atoms/std-agent-session.orb +835 -0
  69. package/dist/exports/atoms/std-agent-step-progress.orb +850 -0
  70. package/dist/exports/atoms/std-agent-token-gauge.orb +1616 -0
  71. package/dist/exports/atoms/std-agent-tool-call.orb +1237 -0
  72. package/dist/exports/molecules/std-agent-fix-loop.orb +3177 -0
  73. package/dist/exports/molecules/std-agent-learner.orb +2950 -0
  74. package/dist/exports/molecules/std-agent-planner.orb +2655 -0
  75. package/dist/exports/molecules/std-agent-rag.orb +1871 -0
  76. package/dist/exports/molecules/std-agent-tool-loop.orb +4857 -0
  77. package/dist/exports/organisms/std-agent-assistant.orb +6440 -0
  78. package/dist/exports/organisms/std-agent-builder.orb +14863 -0
  79. package/dist/exports/organisms/std-agent-pipeline.orb +11950 -0
  80. package/dist/exports/organisms/std-agent-reviewer.orb +5405 -0
  81. package/dist/exports/organisms/std-agent-tutor.orb +5107 -0
  82. package/dist/exports/validation-report.json +2 -1099
  83. package/dist/index.d.ts +1 -1
  84. package/dist/index.js +7159 -305
  85. package/dist/index.js.map +1 -1
  86. package/package.json +1 -1
@@ -0,0 +1,871 @@
1
+ {
2
+ "name": "AgentClassifierOrbital",
3
+ "orbitals": [
4
+ {
5
+ "name": "AgentClassifierOrbital",
6
+ "entity": {
7
+ "name": "AgentClassifier",
8
+ "persistence": "persistent",
9
+ "collection": "agentclassifiers",
10
+ "fields": [
11
+ {
12
+ "name": "id",
13
+ "type": "string"
14
+ },
15
+ {
16
+ "name": "name",
17
+ "type": "string"
18
+ },
19
+ {
20
+ "name": "description",
21
+ "type": "string"
22
+ },
23
+ {
24
+ "name": "status",
25
+ "type": "string",
26
+ "default": "active",
27
+ "values": [
28
+ "active",
29
+ "inactive",
30
+ "pending"
31
+ ]
32
+ },
33
+ {
34
+ "name": "createdAt",
35
+ "type": "string"
36
+ },
37
+ {
38
+ "name": "input",
39
+ "type": "string",
40
+ "default": ""
41
+ },
42
+ {
43
+ "name": "category",
44
+ "type": "string",
45
+ "default": ""
46
+ },
47
+ {
48
+ "name": "confidence",
49
+ "type": "number",
50
+ "default": 0
51
+ },
52
+ {
53
+ "name": "model",
54
+ "type": "string",
55
+ "default": "claude-sonnet-4-20250514"
56
+ },
57
+ {
58
+ "name": "message",
59
+ "type": "string",
60
+ "default": ""
61
+ },
62
+ {
63
+ "name": "notificationType",
64
+ "type": "string",
65
+ "default": "info"
66
+ }
67
+ ]
68
+ },
69
+ "traits": [
70
+ {
71
+ "name": "AgentClassifierModal",
72
+ "linkedEntity": "AgentClassifier",
73
+ "category": "interaction",
74
+ "emits": [
75
+ {
76
+ "event": "CLASSIFIED"
77
+ }
78
+ ],
79
+ "stateMachine": {
80
+ "states": [
81
+ {
82
+ "name": "closed",
83
+ "isInitial": true
84
+ },
85
+ {
86
+ "name": "open"
87
+ }
88
+ ],
89
+ "events": [
90
+ {
91
+ "key": "INIT",
92
+ "name": "Initialize"
93
+ },
94
+ {
95
+ "key": "CLASSIFY",
96
+ "name": "Open"
97
+ },
98
+ {
99
+ "key": "CLOSE",
100
+ "name": "Close"
101
+ },
102
+ {
103
+ "key": "SAVE",
104
+ "name": "Save",
105
+ "payload": [
106
+ {
107
+ "name": "data",
108
+ "type": "object",
109
+ "required": true
110
+ }
111
+ ]
112
+ }
113
+ ],
114
+ "transitions": [
115
+ {
116
+ "from": "closed",
117
+ "to": "closed",
118
+ "event": "INIT",
119
+ "effects": [
120
+ [
121
+ "ref",
122
+ "AgentClassifier"
123
+ ],
124
+ [
125
+ "render-ui",
126
+ "main",
127
+ {
128
+ "type": "stack",
129
+ "direction": "vertical",
130
+ "gap": "lg",
131
+ "children": [
132
+ {
133
+ "type": "stack",
134
+ "direction": "horizontal",
135
+ "gap": "md",
136
+ "justify": "space-between",
137
+ "children": [
138
+ {
139
+ "type": "stack",
140
+ "direction": "horizontal",
141
+ "gap": "md",
142
+ "children": [
143
+ {
144
+ "type": "icon",
145
+ "name": "tag",
146
+ "size": "lg"
147
+ },
148
+ {
149
+ "type": "typography",
150
+ "content": "AgentClassifier",
151
+ "variant": "h2"
152
+ }
153
+ ]
154
+ },
155
+ {
156
+ "type": "button",
157
+ "label": "Open",
158
+ "event": "CLASSIFY",
159
+ "variant": "primary",
160
+ "icon": "tag"
161
+ }
162
+ ]
163
+ },
164
+ {
165
+ "type": "divider"
166
+ },
167
+ {
168
+ "type": "empty-state",
169
+ "icon": "tag",
170
+ "title": "Nothing open",
171
+ "description": "Click Open to view details in a modal overlay."
172
+ }
173
+ ]
174
+ }
175
+ ]
176
+ ]
177
+ },
178
+ {
179
+ "from": "closed",
180
+ "to": "open",
181
+ "event": "CLASSIFY",
182
+ "effects": [
183
+ [
184
+ "render-ui",
185
+ "modal",
186
+ {
187
+ "type": "stack",
188
+ "direction": "vertical",
189
+ "gap": "md",
190
+ "children": [
191
+ {
192
+ "type": "stack",
193
+ "direction": "horizontal",
194
+ "gap": "sm",
195
+ "children": [
196
+ {
197
+ "type": "icon",
198
+ "name": "tag",
199
+ "size": "md"
200
+ },
201
+ {
202
+ "type": "typography",
203
+ "content": "AgentClassifier",
204
+ "variant": "h3"
205
+ }
206
+ ]
207
+ },
208
+ {
209
+ "type": "divider"
210
+ },
211
+ {
212
+ "type": "stack",
213
+ "direction": "horizontal",
214
+ "gap": "sm",
215
+ "children": [
216
+ {
217
+ "type": "typography",
218
+ "variant": "caption",
219
+ "content": "Categories:"
220
+ },
221
+ {
222
+ "type": "badge",
223
+ "label": "positive",
224
+ "variant": "secondary"
225
+ },
226
+ {
227
+ "type": "badge",
228
+ "label": "negative",
229
+ "variant": "secondary"
230
+ },
231
+ {
232
+ "type": "badge",
233
+ "label": "neutral",
234
+ "variant": "secondary"
235
+ }
236
+ ]
237
+ },
238
+ {
239
+ "type": "form-section",
240
+ "entity": "AgentClassifier",
241
+ "mode": "create",
242
+ "submitEvent": "SAVE",
243
+ "cancelEvent": "CLOSE",
244
+ "fields": [
245
+ "input"
246
+ ]
247
+ }
248
+ ]
249
+ }
250
+ ]
251
+ ]
252
+ },
253
+ {
254
+ "from": "open",
255
+ "to": "closed",
256
+ "event": "CLOSE",
257
+ "effects": [
258
+ [
259
+ "render-ui",
260
+ "modal",
261
+ null
262
+ ],
263
+ [
264
+ "notify",
265
+ "Cancelled",
266
+ "info"
267
+ ],
268
+ [
269
+ "ref",
270
+ "AgentClassifier"
271
+ ],
272
+ [
273
+ "render-ui",
274
+ "main",
275
+ {
276
+ "type": "stack",
277
+ "direction": "vertical",
278
+ "gap": "lg",
279
+ "children": [
280
+ {
281
+ "type": "stack",
282
+ "direction": "horizontal",
283
+ "gap": "md",
284
+ "justify": "space-between",
285
+ "children": [
286
+ {
287
+ "type": "stack",
288
+ "direction": "horizontal",
289
+ "gap": "md",
290
+ "children": [
291
+ {
292
+ "type": "icon",
293
+ "name": "tag",
294
+ "size": "lg"
295
+ },
296
+ {
297
+ "type": "typography",
298
+ "content": "AgentClassifier",
299
+ "variant": "h2"
300
+ }
301
+ ]
302
+ },
303
+ {
304
+ "type": "button",
305
+ "label": "Open",
306
+ "event": "CLASSIFY",
307
+ "variant": "primary",
308
+ "icon": "tag"
309
+ }
310
+ ]
311
+ },
312
+ {
313
+ "type": "divider"
314
+ },
315
+ {
316
+ "type": "empty-state",
317
+ "icon": "tag",
318
+ "title": "Nothing open",
319
+ "description": "Click Open to view details in a modal overlay."
320
+ }
321
+ ]
322
+ }
323
+ ]
324
+ ]
325
+ },
326
+ {
327
+ "from": "open",
328
+ "to": "closed",
329
+ "event": "SAVE",
330
+ "effects": [
331
+ [
332
+ "persist",
333
+ "create",
334
+ "AgentClassifier",
335
+ "@payload.data"
336
+ ],
337
+ [
338
+ "render-ui",
339
+ "modal",
340
+ null
341
+ ],
342
+ [
343
+ "emit",
344
+ "CLASSIFIED"
345
+ ],
346
+ [
347
+ "ref",
348
+ "AgentClassifier"
349
+ ],
350
+ [
351
+ "render-ui",
352
+ "main",
353
+ {
354
+ "type": "stack",
355
+ "direction": "vertical",
356
+ "gap": "lg",
357
+ "children": [
358
+ {
359
+ "type": "stack",
360
+ "direction": "horizontal",
361
+ "gap": "md",
362
+ "justify": "space-between",
363
+ "children": [
364
+ {
365
+ "type": "stack",
366
+ "direction": "horizontal",
367
+ "gap": "md",
368
+ "children": [
369
+ {
370
+ "type": "icon",
371
+ "name": "tag",
372
+ "size": "lg"
373
+ },
374
+ {
375
+ "type": "typography",
376
+ "content": "AgentClassifier",
377
+ "variant": "h2"
378
+ }
379
+ ]
380
+ },
381
+ {
382
+ "type": "button",
383
+ "label": "Open",
384
+ "event": "CLASSIFY",
385
+ "variant": "primary",
386
+ "icon": "tag"
387
+ }
388
+ ]
389
+ },
390
+ {
391
+ "type": "divider"
392
+ },
393
+ {
394
+ "type": "empty-state",
395
+ "icon": "tag",
396
+ "title": "Nothing open",
397
+ "description": "Click Open to view details in a modal overlay."
398
+ }
399
+ ]
400
+ }
401
+ ],
402
+ [
403
+ "notify",
404
+ "AgentClassifier created successfully"
405
+ ]
406
+ ]
407
+ }
408
+ ]
409
+ }
410
+ },
411
+ {
412
+ "name": "AgentClassifierNotification",
413
+ "linkedEntity": "AgentClassifier",
414
+ "category": "interaction",
415
+ "stateMachine": {
416
+ "states": [
417
+ {
418
+ "name": "hidden",
419
+ "isInitial": true
420
+ },
421
+ {
422
+ "name": "visible"
423
+ }
424
+ ],
425
+ "events": [
426
+ {
427
+ "key": "INIT",
428
+ "name": "Initialize"
429
+ },
430
+ {
431
+ "key": "SHOW",
432
+ "name": "Show Notification",
433
+ "payload": [
434
+ {
435
+ "name": "message",
436
+ "type": "string",
437
+ "required": true
438
+ },
439
+ {
440
+ "name": "notificationType",
441
+ "type": "string"
442
+ }
443
+ ]
444
+ },
445
+ {
446
+ "key": "HIDE",
447
+ "name": "Hide Notification"
448
+ }
449
+ ],
450
+ "transitions": [
451
+ {
452
+ "from": "hidden",
453
+ "to": "hidden",
454
+ "event": "INIT",
455
+ "effects": [
456
+ [
457
+ "fetch",
458
+ "AgentClassifier"
459
+ ]
460
+ ]
461
+ },
462
+ {
463
+ "from": "hidden",
464
+ "to": "visible",
465
+ "event": "SHOW",
466
+ "effects": [
467
+ [
468
+ "set",
469
+ "@entity.message",
470
+ "@payload.message"
471
+ ],
472
+ [
473
+ "set",
474
+ "@entity.notificationType",
475
+ "@payload.notificationType"
476
+ ],
477
+ [
478
+ "render-ui",
479
+ "main",
480
+ {
481
+ "type": "stack",
482
+ "direction": "vertical",
483
+ "gap": "lg",
484
+ "children": [
485
+ {
486
+ "type": "stack",
487
+ "direction": "horizontal",
488
+ "gap": "md",
489
+ "justify": "space-between",
490
+ "align": "center",
491
+ "children": [
492
+ {
493
+ "type": "stack",
494
+ "direction": "horizontal",
495
+ "gap": "md",
496
+ "align": "center",
497
+ "children": [
498
+ {
499
+ "type": "icon",
500
+ "name": "tag",
501
+ "size": "lg"
502
+ },
503
+ {
504
+ "type": "typography",
505
+ "content": "AgentClassifier Result",
506
+ "variant": "h2"
507
+ }
508
+ ]
509
+ },
510
+ {
511
+ "type": "button",
512
+ "label": "Dismiss",
513
+ "event": "HIDE",
514
+ "variant": "ghost",
515
+ "icon": "x"
516
+ }
517
+ ]
518
+ },
519
+ {
520
+ "type": "divider"
521
+ },
522
+ {
523
+ "type": "alert",
524
+ "variant": [
525
+ "object/get",
526
+ [
527
+ "array/first",
528
+ "@entity"
529
+ ],
530
+ "notificationType"
531
+ ],
532
+ "message": [
533
+ "object/get",
534
+ [
535
+ "array/first",
536
+ "@entity"
537
+ ],
538
+ "message"
539
+ ]
540
+ },
541
+ {
542
+ "type": "toast-slot",
543
+ "position": "top-right"
544
+ },
545
+ {
546
+ "type": "violation-alert",
547
+ "severity": "warning",
548
+ "message": [
549
+ "object/get",
550
+ [
551
+ "array/first",
552
+ "@entity"
553
+ ],
554
+ "message"
555
+ ],
556
+ "category": "compliance"
557
+ }
558
+ ]
559
+ }
560
+ ]
561
+ ]
562
+ },
563
+ {
564
+ "from": "visible",
565
+ "to": "visible",
566
+ "event": "SHOW",
567
+ "effects": [
568
+ [
569
+ "set",
570
+ "@entity.message",
571
+ "@payload.message"
572
+ ],
573
+ [
574
+ "set",
575
+ "@entity.notificationType",
576
+ "@payload.notificationType"
577
+ ],
578
+ [
579
+ "render-ui",
580
+ "main",
581
+ {
582
+ "type": "stack",
583
+ "direction": "vertical",
584
+ "gap": "lg",
585
+ "children": [
586
+ {
587
+ "type": "stack",
588
+ "direction": "horizontal",
589
+ "gap": "md",
590
+ "justify": "space-between",
591
+ "align": "center",
592
+ "children": [
593
+ {
594
+ "type": "stack",
595
+ "direction": "horizontal",
596
+ "gap": "md",
597
+ "align": "center",
598
+ "children": [
599
+ {
600
+ "type": "icon",
601
+ "name": "tag",
602
+ "size": "lg"
603
+ },
604
+ {
605
+ "type": "typography",
606
+ "content": "AgentClassifier Result",
607
+ "variant": "h2"
608
+ }
609
+ ]
610
+ },
611
+ {
612
+ "type": "button",
613
+ "label": "Dismiss",
614
+ "event": "HIDE",
615
+ "variant": "ghost",
616
+ "icon": "x"
617
+ }
618
+ ]
619
+ },
620
+ {
621
+ "type": "divider"
622
+ },
623
+ {
624
+ "type": "alert",
625
+ "variant": [
626
+ "object/get",
627
+ [
628
+ "array/first",
629
+ "@entity"
630
+ ],
631
+ "notificationType"
632
+ ],
633
+ "message": [
634
+ "object/get",
635
+ [
636
+ "array/first",
637
+ "@entity"
638
+ ],
639
+ "message"
640
+ ]
641
+ },
642
+ {
643
+ "type": "toast-slot",
644
+ "position": "top-right"
645
+ },
646
+ {
647
+ "type": "violation-alert",
648
+ "severity": "warning",
649
+ "message": [
650
+ "object/get",
651
+ [
652
+ "array/first",
653
+ "@entity"
654
+ ],
655
+ "message"
656
+ ],
657
+ "category": "compliance"
658
+ }
659
+ ]
660
+ }
661
+ ]
662
+ ]
663
+ },
664
+ {
665
+ "from": "visible",
666
+ "to": "hidden",
667
+ "event": "HIDE",
668
+ "effects": [
669
+ [
670
+ "set",
671
+ "@entity.message",
672
+ ""
673
+ ]
674
+ ]
675
+ }
676
+ ]
677
+ }
678
+ },
679
+ {
680
+ "name": "AgentClassifierAgent",
681
+ "linkedEntity": "AgentClassifier",
682
+ "category": "interaction",
683
+ "emits": [
684
+ {
685
+ "event": "SHOW",
686
+ "scope": "internal",
687
+ "payload": [
688
+ {
689
+ "name": "category",
690
+ "type": "string"
691
+ },
692
+ {
693
+ "name": "confidence",
694
+ "type": "number"
695
+ }
696
+ ]
697
+ }
698
+ ],
699
+ "listens": [
700
+ {
701
+ "event": "CLASSIFIED",
702
+ "triggers": "CLASSIFIED",
703
+ "scope": "external"
704
+ }
705
+ ],
706
+ "stateMachine": {
707
+ "states": [
708
+ {
709
+ "name": "idle",
710
+ "isInitial": true
711
+ },
712
+ {
713
+ "name": "classifying"
714
+ },
715
+ {
716
+ "name": "classified"
717
+ }
718
+ ],
719
+ "events": [
720
+ {
721
+ "key": "INIT",
722
+ "name": "Initialize"
723
+ },
724
+ {
725
+ "key": "DO_CLASSIFY",
726
+ "name": "Do Classify",
727
+ "payload": [
728
+ {
729
+ "name": "data",
730
+ "type": "object",
731
+ "required": true
732
+ }
733
+ ]
734
+ },
735
+ {
736
+ "key": "RESET",
737
+ "name": "Reset"
738
+ },
739
+ {
740
+ "key": "CLASSIFIED",
741
+ "name": "Classified",
742
+ "payload": [
743
+ {
744
+ "name": "data",
745
+ "type": "object",
746
+ "required": true
747
+ }
748
+ ]
749
+ }
750
+ ],
751
+ "transitions": [
752
+ {
753
+ "from": "idle",
754
+ "to": "idle",
755
+ "event": "INIT",
756
+ "effects": [
757
+ [
758
+ "fetch",
759
+ "AgentClassifier"
760
+ ],
761
+ [
762
+ "render-ui",
763
+ "main",
764
+ {
765
+ "type": "empty-state",
766
+ "icon": "tag",
767
+ "title": "Classifier",
768
+ "description": "Classifier is ready"
769
+ }
770
+ ]
771
+ ]
772
+ },
773
+ {
774
+ "from": "idle",
775
+ "to": "classifying",
776
+ "event": "DO_CLASSIFY",
777
+ "effects": [
778
+ [
779
+ "agent/generate",
780
+ [
781
+ "str/concat",
782
+ "Classify the following text into one of these categories: ",
783
+ "positive, negative, neutral",
784
+ ". Text: ",
785
+ "@entity.input",
786
+ ". Respond with JSON: {\"category\": \"...\", \"confidence\": 0.0-1.0}"
787
+ ]
788
+ ]
789
+ ]
790
+ },
791
+ {
792
+ "from": "idle",
793
+ "to": "classifying",
794
+ "event": "CLASSIFIED",
795
+ "effects": [
796
+ [
797
+ "agent/generate",
798
+ [
799
+ "str/concat",
800
+ "Classify the following text into one of these categories: ",
801
+ "positive, negative, neutral",
802
+ ". Text: ",
803
+ "@entity.input",
804
+ ". Respond with JSON: {\"category\": \"...\", \"confidence\": 0.0-1.0}"
805
+ ]
806
+ ]
807
+ ]
808
+ },
809
+ {
810
+ "from": "classifying",
811
+ "to": "classified",
812
+ "event": "DO_CLASSIFY",
813
+ "effects": [
814
+ [
815
+ "set",
816
+ "@entity.category",
817
+ "@payload.data.input"
818
+ ],
819
+ [
820
+ "emit",
821
+ "SHOW"
822
+ ]
823
+ ]
824
+ },
825
+ {
826
+ "from": "classified",
827
+ "to": "idle",
828
+ "event": "RESET",
829
+ "effects": [
830
+ [
831
+ "set",
832
+ "@entity.input",
833
+ ""
834
+ ],
835
+ [
836
+ "set",
837
+ "@entity.category",
838
+ ""
839
+ ],
840
+ [
841
+ "set",
842
+ "@entity.confidence",
843
+ 0
844
+ ]
845
+ ]
846
+ }
847
+ ]
848
+ }
849
+ }
850
+ ],
851
+ "pages": [
852
+ {
853
+ "name": "AgentClassifierPage",
854
+ "path": "/agentclassifiers",
855
+ "traits": [
856
+ {
857
+ "ref": "AgentClassifierModal"
858
+ },
859
+ {
860
+ "ref": "AgentClassifierNotification"
861
+ },
862
+ {
863
+ "ref": "AgentClassifierAgent"
864
+ }
865
+ ]
866
+ }
867
+ ]
868
+ }
869
+ ],
870
+ "description": "Classification flow atom for agent-powered text classification. Composes UI atoms (stdModal for input form, stdNotification for result badge) with an agent trait that uses agent/generate with a classification prompt."
871
+ }