@almadar/std 3.12.1 → 3.13.0

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 (149) hide show
  1. package/behaviors/exports/atoms/std-agent-classifier.orb +402 -0
  2. package/behaviors/exports/atoms/std-agent-completion.orb +469 -0
  3. package/behaviors/exports/atoms/std-agent-context-window.orb +790 -0
  4. package/behaviors/exports/atoms/std-agent-conversation.orb +737 -0
  5. package/behaviors/exports/atoms/std-agent-memory.orb +627 -0
  6. package/behaviors/exports/atoms/std-agent-provider.orb +402 -0
  7. package/behaviors/exports/atoms/std-agent-search.orb +418 -0
  8. package/behaviors/exports/atoms/std-agent-session.orb +825 -0
  9. package/behaviors/exports/atoms/std-agent-tool-call.orb +380 -0
  10. package/behaviors/exports/atoms/std-wizard.orb +63 -70
  11. package/behaviors/exports/molecules/std-agent-fix-loop.orb +1213 -0
  12. package/behaviors/exports/molecules/std-agent-learner.orb +1143 -0
  13. package/behaviors/exports/molecules/std-agent-planner.orb +898 -0
  14. package/behaviors/exports/molecules/std-agent-rag.orb +736 -0
  15. package/behaviors/exports/molecules/std-agent-tool-loop.orb +1237 -0
  16. package/behaviors/exports/molecules/std-detail.orb +4 -0
  17. package/behaviors/exports/molecules/std-geospatial.orb +4 -0
  18. package/behaviors/exports/molecules/std-inventory.orb +8 -0
  19. package/behaviors/exports/molecules/std-list.orb +18 -1
  20. package/behaviors/exports/molecules/std-messaging.orb +4 -0
  21. package/behaviors/exports/organisms/std-agent-assistant.orb +2288 -0
  22. package/behaviors/exports/organisms/std-agent-builder.orb +2664 -0
  23. package/behaviors/exports/organisms/std-agent-pipeline.orb +2307 -0
  24. package/behaviors/exports/organisms/std-agent-reviewer.orb +1743 -0
  25. package/behaviors/exports/organisms/std-agent-tutor.orb +2303 -0
  26. package/behaviors/exports/organisms/std-api-gateway.orb +18 -1
  27. package/behaviors/exports/organisms/std-booking-system.orb +131 -104
  28. package/behaviors/exports/organisms/std-cicd-pipeline.orb +18 -1
  29. package/behaviors/exports/organisms/std-cms.orb +40 -2
  30. package/behaviors/exports/organisms/std-crm.orb +40 -2
  31. package/behaviors/exports/organisms/std-devops-dashboard.orb +18 -1
  32. package/behaviors/exports/organisms/std-finance-tracker.orb +22 -1
  33. package/behaviors/exports/organisms/std-healthcare.orb +167 -136
  34. package/behaviors/exports/organisms/std-helpdesk.orb +22 -1
  35. package/behaviors/exports/organisms/std-hr-portal.orb +115 -88
  36. package/behaviors/exports/organisms/std-iot-dashboard.orb +18 -1
  37. package/behaviors/exports/organisms/std-lms.orb +97 -87
  38. package/behaviors/exports/organisms/std-platformer-app.orb +8 -0
  39. package/behaviors/exports/organisms/std-project-manager.orb +36 -2
  40. package/behaviors/exports/organisms/std-realtime-chat.orb +22 -1
  41. package/behaviors/exports/organisms/std-rpg-game.orb +8 -0
  42. package/behaviors/exports/organisms/std-service-marketplace.orb +36 -2
  43. package/behaviors/exports/organisms/std-social-feed.orb +8 -0
  44. package/behaviors/exports/organisms/std-trading-dashboard.orb +18 -1
  45. package/behaviors/exports/validation-report.json +1425 -0
  46. package/dist/behaviors/exports/atoms/std-agent-classifier.orb +402 -0
  47. package/dist/behaviors/exports/atoms/std-agent-completion.orb +469 -0
  48. package/dist/behaviors/exports/atoms/std-agent-context-window.orb +790 -0
  49. package/dist/behaviors/exports/atoms/std-agent-conversation.orb +737 -0
  50. package/dist/behaviors/exports/atoms/std-agent-memory.orb +627 -0
  51. package/dist/behaviors/exports/atoms/std-agent-provider.orb +402 -0
  52. package/dist/behaviors/exports/atoms/std-agent-search.orb +418 -0
  53. package/dist/behaviors/exports/atoms/std-agent-session.orb +825 -0
  54. package/dist/behaviors/exports/atoms/std-agent-tool-call.orb +380 -0
  55. package/dist/behaviors/exports/atoms/std-wizard.orb +63 -70
  56. package/dist/behaviors/exports/molecules/std-agent-fix-loop.orb +1213 -0
  57. package/dist/behaviors/exports/molecules/std-agent-learner.orb +1143 -0
  58. package/dist/behaviors/exports/molecules/std-agent-planner.orb +898 -0
  59. package/dist/behaviors/exports/molecules/std-agent-rag.orb +736 -0
  60. package/dist/behaviors/exports/molecules/std-agent-tool-loop.orb +1237 -0
  61. package/dist/behaviors/exports/molecules/std-detail.orb +4 -0
  62. package/dist/behaviors/exports/molecules/std-geospatial.orb +4 -0
  63. package/dist/behaviors/exports/molecules/std-inventory.orb +8 -0
  64. package/dist/behaviors/exports/molecules/std-list.orb +18 -1
  65. package/dist/behaviors/exports/molecules/std-messaging.orb +4 -0
  66. package/dist/behaviors/exports/organisms/std-agent-assistant.orb +2288 -0
  67. package/dist/behaviors/exports/organisms/std-agent-builder.orb +2664 -0
  68. package/dist/behaviors/exports/organisms/std-agent-pipeline.orb +2307 -0
  69. package/dist/behaviors/exports/organisms/std-agent-reviewer.orb +1743 -0
  70. package/dist/behaviors/exports/organisms/std-agent-tutor.orb +2303 -0
  71. package/dist/behaviors/exports/organisms/std-api-gateway.orb +18 -1
  72. package/dist/behaviors/exports/organisms/std-booking-system.orb +131 -104
  73. package/dist/behaviors/exports/organisms/std-cicd-pipeline.orb +18 -1
  74. package/dist/behaviors/exports/organisms/std-cms.orb +40 -2
  75. package/dist/behaviors/exports/organisms/std-crm.orb +40 -2
  76. package/dist/behaviors/exports/organisms/std-devops-dashboard.orb +18 -1
  77. package/dist/behaviors/exports/organisms/std-finance-tracker.orb +22 -1
  78. package/dist/behaviors/exports/organisms/std-healthcare.orb +167 -136
  79. package/dist/behaviors/exports/organisms/std-helpdesk.orb +22 -1
  80. package/dist/behaviors/exports/organisms/std-hr-portal.orb +115 -88
  81. package/dist/behaviors/exports/organisms/std-iot-dashboard.orb +18 -1
  82. package/dist/behaviors/exports/organisms/std-lms.orb +97 -87
  83. package/dist/behaviors/exports/organisms/std-platformer-app.orb +8 -0
  84. package/dist/behaviors/exports/organisms/std-project-manager.orb +36 -2
  85. package/dist/behaviors/exports/organisms/std-realtime-chat.orb +22 -1
  86. package/dist/behaviors/exports/organisms/std-rpg-game.orb +8 -0
  87. package/dist/behaviors/exports/organisms/std-service-marketplace.orb +36 -2
  88. package/dist/behaviors/exports/organisms/std-social-feed.orb +8 -0
  89. package/dist/behaviors/exports/organisms/std-trading-dashboard.orb +18 -1
  90. package/dist/behaviors/exports/validation-report.json +1425 -0
  91. package/dist/behaviors/exports-reader.js +6345 -175
  92. package/dist/behaviors/exports-reader.js.map +1 -1
  93. package/dist/behaviors/functions/index.d.ts +620 -1
  94. package/dist/behaviors/functions/index.js +6285 -176
  95. package/dist/behaviors/functions/index.js.map +1 -1
  96. package/dist/behaviors/index.d.ts +1 -1
  97. package/dist/behaviors/index.js +6348 -178
  98. package/dist/behaviors/index.js.map +1 -1
  99. package/dist/behaviors/query.js +6347 -177
  100. package/dist/behaviors/query.js.map +1 -1
  101. package/dist/exports/atoms/std-agent-classifier.orb +402 -0
  102. package/dist/exports/atoms/std-agent-completion.orb +469 -0
  103. package/dist/exports/atoms/std-agent-context-window.orb +790 -0
  104. package/dist/exports/atoms/std-agent-conversation.orb +737 -0
  105. package/dist/exports/atoms/std-agent-memory.orb +627 -0
  106. package/dist/exports/atoms/std-agent-provider.orb +402 -0
  107. package/dist/exports/atoms/std-agent-search.orb +418 -0
  108. package/dist/exports/atoms/std-agent-session.orb +825 -0
  109. package/dist/exports/atoms/std-agent-tool-call.orb +380 -0
  110. package/dist/exports/atoms/std-wizard.orb +63 -70
  111. package/dist/exports/molecules/std-agent-fix-loop.orb +1213 -0
  112. package/dist/exports/molecules/std-agent-learner.orb +1143 -0
  113. package/dist/exports/molecules/std-agent-planner.orb +898 -0
  114. package/dist/exports/molecules/std-agent-rag.orb +736 -0
  115. package/dist/exports/molecules/std-agent-tool-loop.orb +1237 -0
  116. package/dist/exports/molecules/std-detail.orb +4 -0
  117. package/dist/exports/molecules/std-geospatial.orb +4 -0
  118. package/dist/exports/molecules/std-inventory.orb +8 -0
  119. package/dist/exports/molecules/std-list.orb +18 -1
  120. package/dist/exports/molecules/std-messaging.orb +4 -0
  121. package/dist/exports/organisms/std-agent-assistant.orb +2288 -0
  122. package/dist/exports/organisms/std-agent-builder.orb +2664 -0
  123. package/dist/exports/organisms/std-agent-pipeline.orb +2307 -0
  124. package/dist/exports/organisms/std-agent-reviewer.orb +1743 -0
  125. package/dist/exports/organisms/std-agent-tutor.orb +2303 -0
  126. package/dist/exports/organisms/std-api-gateway.orb +18 -1
  127. package/dist/exports/organisms/std-booking-system.orb +131 -104
  128. package/dist/exports/organisms/std-cicd-pipeline.orb +18 -1
  129. package/dist/exports/organisms/std-cms.orb +40 -2
  130. package/dist/exports/organisms/std-crm.orb +40 -2
  131. package/dist/exports/organisms/std-devops-dashboard.orb +18 -1
  132. package/dist/exports/organisms/std-finance-tracker.orb +22 -1
  133. package/dist/exports/organisms/std-healthcare.orb +167 -136
  134. package/dist/exports/organisms/std-helpdesk.orb +22 -1
  135. package/dist/exports/organisms/std-hr-portal.orb +115 -88
  136. package/dist/exports/organisms/std-iot-dashboard.orb +18 -1
  137. package/dist/exports/organisms/std-lms.orb +97 -87
  138. package/dist/exports/organisms/std-platformer-app.orb +8 -0
  139. package/dist/exports/organisms/std-project-manager.orb +36 -2
  140. package/dist/exports/organisms/std-realtime-chat.orb +22 -1
  141. package/dist/exports/organisms/std-rpg-game.orb +8 -0
  142. package/dist/exports/organisms/std-service-marketplace.orb +36 -2
  143. package/dist/exports/organisms/std-social-feed.orb +8 -0
  144. package/dist/exports/organisms/std-trading-dashboard.orb +18 -1
  145. package/dist/exports/validation-report.json +1425 -0
  146. package/dist/index.d.ts +1 -1
  147. package/dist/index.js +6348 -178
  148. package/dist/index.js.map +1 -1
  149. package/package.json +1 -1
@@ -0,0 +1,737 @@
1
+ {
2
+ "name": "AgentConversationOrbital",
3
+ "orbitals": [
4
+ {
5
+ "name": "AgentConversationOrbital",
6
+ "entity": {
7
+ "name": "AgentConversation",
8
+ "persistence": "persistent",
9
+ "collection": "agentconversations",
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": "messages",
39
+ "type": "array",
40
+ "default": []
41
+ },
42
+ {
43
+ "name": "turnCount",
44
+ "type": "number",
45
+ "default": 0
46
+ },
47
+ {
48
+ "name": "lastMessage",
49
+ "type": "string",
50
+ "default": ""
51
+ },
52
+ {
53
+ "name": "tokenCount",
54
+ "type": "number",
55
+ "default": 0
56
+ }
57
+ ]
58
+ },
59
+ "traits": [
60
+ {
61
+ "name": "AgentConversationFlow",
62
+ "linkedEntity": "AgentConversation",
63
+ "category": "interaction",
64
+ "emits": [
65
+ {
66
+ "event": "TOKEN_UPDATE",
67
+ "scope": "external"
68
+ }
69
+ ],
70
+ "stateMachine": {
71
+ "states": [
72
+ {
73
+ "name": "idle",
74
+ "isInitial": true
75
+ },
76
+ {
77
+ "name": "active"
78
+ },
79
+ {
80
+ "name": "paused"
81
+ }
82
+ ],
83
+ "events": [
84
+ {
85
+ "key": "INIT",
86
+ "name": "Initialize"
87
+ },
88
+ {
89
+ "key": "SEND_MESSAGE",
90
+ "name": "Send Message",
91
+ "payload": [
92
+ {
93
+ "name": "content",
94
+ "type": "string",
95
+ "required": true
96
+ }
97
+ ]
98
+ },
99
+ {
100
+ "key": "PAUSE",
101
+ "name": "Pause"
102
+ },
103
+ {
104
+ "key": "RESUME",
105
+ "name": "Resume"
106
+ },
107
+ {
108
+ "key": "CLEAR",
109
+ "name": "Clear"
110
+ }
111
+ ],
112
+ "transitions": [
113
+ {
114
+ "from": "idle",
115
+ "to": "idle",
116
+ "event": "INIT",
117
+ "effects": [
118
+ [
119
+ "fetch",
120
+ "AgentConversation"
121
+ ],
122
+ [
123
+ "render-ui",
124
+ "main",
125
+ {
126
+ "type": "stack",
127
+ "direction": "vertical",
128
+ "gap": "lg",
129
+ "children": [
130
+ {
131
+ "type": "stack",
132
+ "direction": "horizontal",
133
+ "gap": "sm",
134
+ "align": "center",
135
+ "children": [
136
+ {
137
+ "type": "icon",
138
+ "name": "message-circle",
139
+ "size": "lg"
140
+ },
141
+ {
142
+ "type": "typography",
143
+ "content": "AgentConversation",
144
+ "variant": "h2"
145
+ }
146
+ ]
147
+ },
148
+ {
149
+ "type": "divider"
150
+ },
151
+ {
152
+ "type": "typography",
153
+ "variant": "caption",
154
+ "color": "muted",
155
+ "content": "Start a conversation with the agent."
156
+ },
157
+ {
158
+ "type": "input",
159
+ "label": "Message",
160
+ "bind": "@entity.lastMessage",
161
+ "placeholder": "Type a message..."
162
+ },
163
+ {
164
+ "type": "button",
165
+ "label": "Send",
166
+ "event": "SEND_MESSAGE",
167
+ "variant": "primary",
168
+ "icon": "send"
169
+ }
170
+ ]
171
+ }
172
+ ]
173
+ ]
174
+ },
175
+ {
176
+ "from": "idle",
177
+ "to": "active",
178
+ "event": "SEND_MESSAGE",
179
+ "effects": [
180
+ [
181
+ "set",
182
+ "@entity.lastMessage",
183
+ "@payload.content"
184
+ ],
185
+ [
186
+ "set",
187
+ "@entity.turnCount",
188
+ [
189
+ "+",
190
+ "@entity.turnCount",
191
+ 1
192
+ ]
193
+ ],
194
+ [
195
+ "agent/generate",
196
+ "@payload.content"
197
+ ],
198
+ [
199
+ "emit",
200
+ "TOKEN_UPDATE"
201
+ ],
202
+ [
203
+ "render-ui",
204
+ "main",
205
+ {
206
+ "type": "stack",
207
+ "direction": "vertical",
208
+ "gap": "lg",
209
+ "children": [
210
+ {
211
+ "type": "stack",
212
+ "direction": "horizontal",
213
+ "gap": "sm",
214
+ "align": "center",
215
+ "children": [
216
+ {
217
+ "type": "icon",
218
+ "name": "message-circle",
219
+ "size": "lg"
220
+ },
221
+ {
222
+ "type": "typography",
223
+ "content": "AgentConversation",
224
+ "variant": "h2"
225
+ },
226
+ {
227
+ "type": "badge",
228
+ "label": "@entity.turnCount"
229
+ }
230
+ ]
231
+ },
232
+ {
233
+ "type": "divider"
234
+ },
235
+ {
236
+ "type": "typography",
237
+ "variant": "body",
238
+ "content": "@entity.lastMessage"
239
+ },
240
+ {
241
+ "type": "stack",
242
+ "direction": "horizontal",
243
+ "gap": "sm",
244
+ "children": [
245
+ {
246
+ "type": "badge",
247
+ "label": "@entity.tokenCount"
248
+ }
249
+ ]
250
+ },
251
+ {
252
+ "type": "input",
253
+ "label": "Message",
254
+ "bind": "@entity.lastMessage",
255
+ "placeholder": "Type a message..."
256
+ },
257
+ {
258
+ "type": "stack",
259
+ "direction": "horizontal",
260
+ "gap": "sm",
261
+ "children": [
262
+ {
263
+ "type": "button",
264
+ "label": "Send",
265
+ "event": "SEND_MESSAGE",
266
+ "variant": "primary",
267
+ "icon": "send"
268
+ },
269
+ {
270
+ "type": "button",
271
+ "label": "Pause",
272
+ "event": "PAUSE",
273
+ "variant": "secondary",
274
+ "icon": "pause"
275
+ },
276
+ {
277
+ "type": "button",
278
+ "label": "Clear",
279
+ "event": "CLEAR",
280
+ "variant": "ghost",
281
+ "icon": "trash"
282
+ }
283
+ ]
284
+ }
285
+ ]
286
+ }
287
+ ]
288
+ ]
289
+ },
290
+ {
291
+ "from": "active",
292
+ "to": "active",
293
+ "event": "SEND_MESSAGE",
294
+ "effects": [
295
+ [
296
+ "set",
297
+ "@entity.lastMessage",
298
+ "@payload.content"
299
+ ],
300
+ [
301
+ "set",
302
+ "@entity.turnCount",
303
+ [
304
+ "+",
305
+ "@entity.turnCount",
306
+ 1
307
+ ]
308
+ ],
309
+ [
310
+ "agent/generate",
311
+ "@payload.content"
312
+ ],
313
+ [
314
+ "emit",
315
+ "TOKEN_UPDATE"
316
+ ],
317
+ [
318
+ "render-ui",
319
+ "main",
320
+ {
321
+ "type": "stack",
322
+ "direction": "vertical",
323
+ "gap": "lg",
324
+ "children": [
325
+ {
326
+ "type": "stack",
327
+ "direction": "horizontal",
328
+ "gap": "sm",
329
+ "align": "center",
330
+ "children": [
331
+ {
332
+ "type": "icon",
333
+ "name": "message-circle",
334
+ "size": "lg"
335
+ },
336
+ {
337
+ "type": "typography",
338
+ "content": "AgentConversation",
339
+ "variant": "h2"
340
+ },
341
+ {
342
+ "type": "badge",
343
+ "label": "@entity.turnCount"
344
+ }
345
+ ]
346
+ },
347
+ {
348
+ "type": "divider"
349
+ },
350
+ {
351
+ "type": "typography",
352
+ "variant": "body",
353
+ "content": "@entity.lastMessage"
354
+ },
355
+ {
356
+ "type": "stack",
357
+ "direction": "horizontal",
358
+ "gap": "sm",
359
+ "children": [
360
+ {
361
+ "type": "badge",
362
+ "label": "@entity.tokenCount"
363
+ }
364
+ ]
365
+ },
366
+ {
367
+ "type": "input",
368
+ "label": "Message",
369
+ "bind": "@entity.lastMessage",
370
+ "placeholder": "Type a message..."
371
+ },
372
+ {
373
+ "type": "stack",
374
+ "direction": "horizontal",
375
+ "gap": "sm",
376
+ "children": [
377
+ {
378
+ "type": "button",
379
+ "label": "Send",
380
+ "event": "SEND_MESSAGE",
381
+ "variant": "primary",
382
+ "icon": "send"
383
+ },
384
+ {
385
+ "type": "button",
386
+ "label": "Pause",
387
+ "event": "PAUSE",
388
+ "variant": "secondary",
389
+ "icon": "pause"
390
+ },
391
+ {
392
+ "type": "button",
393
+ "label": "Clear",
394
+ "event": "CLEAR",
395
+ "variant": "ghost",
396
+ "icon": "trash"
397
+ }
398
+ ]
399
+ }
400
+ ]
401
+ }
402
+ ]
403
+ ]
404
+ },
405
+ {
406
+ "from": "active",
407
+ "to": "paused",
408
+ "event": "PAUSE",
409
+ "effects": [
410
+ [
411
+ "render-ui",
412
+ "main",
413
+ {
414
+ "type": "stack",
415
+ "direction": "vertical",
416
+ "gap": "lg",
417
+ "children": [
418
+ {
419
+ "type": "stack",
420
+ "direction": "horizontal",
421
+ "gap": "sm",
422
+ "align": "center",
423
+ "children": [
424
+ {
425
+ "type": "icon",
426
+ "name": "pause-circle",
427
+ "size": "lg"
428
+ },
429
+ {
430
+ "type": "typography",
431
+ "content": "AgentConversation (Paused)",
432
+ "variant": "h2"
433
+ }
434
+ ]
435
+ },
436
+ {
437
+ "type": "divider"
438
+ },
439
+ {
440
+ "type": "alert",
441
+ "variant": "info",
442
+ "message": "Conversation paused."
443
+ },
444
+ {
445
+ "type": "stack",
446
+ "direction": "horizontal",
447
+ "gap": "sm",
448
+ "children": [
449
+ {
450
+ "type": "button",
451
+ "label": "Resume",
452
+ "event": "RESUME",
453
+ "variant": "primary",
454
+ "icon": "play"
455
+ },
456
+ {
457
+ "type": "button",
458
+ "label": "Clear",
459
+ "event": "CLEAR",
460
+ "variant": "ghost",
461
+ "icon": "trash"
462
+ }
463
+ ]
464
+ }
465
+ ]
466
+ }
467
+ ]
468
+ ]
469
+ },
470
+ {
471
+ "from": "paused",
472
+ "to": "active",
473
+ "event": "RESUME",
474
+ "effects": [
475
+ [
476
+ "render-ui",
477
+ "main",
478
+ {
479
+ "type": "stack",
480
+ "direction": "vertical",
481
+ "gap": "lg",
482
+ "children": [
483
+ {
484
+ "type": "stack",
485
+ "direction": "horizontal",
486
+ "gap": "sm",
487
+ "align": "center",
488
+ "children": [
489
+ {
490
+ "type": "icon",
491
+ "name": "message-circle",
492
+ "size": "lg"
493
+ },
494
+ {
495
+ "type": "typography",
496
+ "content": "AgentConversation",
497
+ "variant": "h2"
498
+ },
499
+ {
500
+ "type": "badge",
501
+ "label": "@entity.turnCount"
502
+ }
503
+ ]
504
+ },
505
+ {
506
+ "type": "divider"
507
+ },
508
+ {
509
+ "type": "typography",
510
+ "variant": "body",
511
+ "content": "@entity.lastMessage"
512
+ },
513
+ {
514
+ "type": "stack",
515
+ "direction": "horizontal",
516
+ "gap": "sm",
517
+ "children": [
518
+ {
519
+ "type": "badge",
520
+ "label": "@entity.tokenCount"
521
+ }
522
+ ]
523
+ },
524
+ {
525
+ "type": "input",
526
+ "label": "Message",
527
+ "bind": "@entity.lastMessage",
528
+ "placeholder": "Type a message..."
529
+ },
530
+ {
531
+ "type": "stack",
532
+ "direction": "horizontal",
533
+ "gap": "sm",
534
+ "children": [
535
+ {
536
+ "type": "button",
537
+ "label": "Send",
538
+ "event": "SEND_MESSAGE",
539
+ "variant": "primary",
540
+ "icon": "send"
541
+ },
542
+ {
543
+ "type": "button",
544
+ "label": "Pause",
545
+ "event": "PAUSE",
546
+ "variant": "secondary",
547
+ "icon": "pause"
548
+ },
549
+ {
550
+ "type": "button",
551
+ "label": "Clear",
552
+ "event": "CLEAR",
553
+ "variant": "ghost",
554
+ "icon": "trash"
555
+ }
556
+ ]
557
+ }
558
+ ]
559
+ }
560
+ ]
561
+ ]
562
+ },
563
+ {
564
+ "from": "active",
565
+ "to": "idle",
566
+ "event": "CLEAR",
567
+ "effects": [
568
+ [
569
+ "set",
570
+ "@entity.messages",
571
+ []
572
+ ],
573
+ [
574
+ "set",
575
+ "@entity.turnCount",
576
+ 0
577
+ ],
578
+ [
579
+ "set",
580
+ "@entity.lastMessage",
581
+ ""
582
+ ],
583
+ [
584
+ "set",
585
+ "@entity.tokenCount",
586
+ 0
587
+ ],
588
+ [
589
+ "render-ui",
590
+ "main",
591
+ {
592
+ "type": "stack",
593
+ "direction": "vertical",
594
+ "gap": "lg",
595
+ "children": [
596
+ {
597
+ "type": "stack",
598
+ "direction": "horizontal",
599
+ "gap": "sm",
600
+ "align": "center",
601
+ "children": [
602
+ {
603
+ "type": "icon",
604
+ "name": "message-circle",
605
+ "size": "lg"
606
+ },
607
+ {
608
+ "type": "typography",
609
+ "content": "AgentConversation",
610
+ "variant": "h2"
611
+ }
612
+ ]
613
+ },
614
+ {
615
+ "type": "divider"
616
+ },
617
+ {
618
+ "type": "typography",
619
+ "variant": "caption",
620
+ "color": "muted",
621
+ "content": "Start a conversation with the agent."
622
+ },
623
+ {
624
+ "type": "input",
625
+ "label": "Message",
626
+ "bind": "@entity.lastMessage",
627
+ "placeholder": "Type a message..."
628
+ },
629
+ {
630
+ "type": "button",
631
+ "label": "Send",
632
+ "event": "SEND_MESSAGE",
633
+ "variant": "primary",
634
+ "icon": "send"
635
+ }
636
+ ]
637
+ }
638
+ ]
639
+ ]
640
+ },
641
+ {
642
+ "from": "paused",
643
+ "to": "idle",
644
+ "event": "CLEAR",
645
+ "effects": [
646
+ [
647
+ "set",
648
+ "@entity.messages",
649
+ []
650
+ ],
651
+ [
652
+ "set",
653
+ "@entity.turnCount",
654
+ 0
655
+ ],
656
+ [
657
+ "set",
658
+ "@entity.lastMessage",
659
+ ""
660
+ ],
661
+ [
662
+ "set",
663
+ "@entity.tokenCount",
664
+ 0
665
+ ],
666
+ [
667
+ "render-ui",
668
+ "main",
669
+ {
670
+ "type": "stack",
671
+ "direction": "vertical",
672
+ "gap": "lg",
673
+ "children": [
674
+ {
675
+ "type": "stack",
676
+ "direction": "horizontal",
677
+ "gap": "sm",
678
+ "align": "center",
679
+ "children": [
680
+ {
681
+ "type": "icon",
682
+ "name": "message-circle",
683
+ "size": "lg"
684
+ },
685
+ {
686
+ "type": "typography",
687
+ "content": "AgentConversation",
688
+ "variant": "h2"
689
+ }
690
+ ]
691
+ },
692
+ {
693
+ "type": "divider"
694
+ },
695
+ {
696
+ "type": "typography",
697
+ "variant": "caption",
698
+ "color": "muted",
699
+ "content": "Start a conversation with the agent."
700
+ },
701
+ {
702
+ "type": "input",
703
+ "label": "Message",
704
+ "bind": "@entity.lastMessage",
705
+ "placeholder": "Type a message..."
706
+ },
707
+ {
708
+ "type": "button",
709
+ "label": "Send",
710
+ "event": "SEND_MESSAGE",
711
+ "variant": "primary",
712
+ "icon": "send"
713
+ }
714
+ ]
715
+ }
716
+ ]
717
+ ]
718
+ }
719
+ ]
720
+ }
721
+ }
722
+ ],
723
+ "pages": [
724
+ {
725
+ "name": "AgentConversationPage",
726
+ "path": "/agentconversations",
727
+ "traits": [
728
+ {
729
+ "ref": "AgentConversationFlow"
730
+ }
731
+ ]
732
+ }
733
+ ]
734
+ }
735
+ ],
736
+ "description": "Conversation flow atom for multi-turn agent interactions. Manages message history, turn counting, and token tracking using agent/generate for AI replies."
737
+ }