@remoraflow/core 0.1.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 (77) hide show
  1. package/LICENSE +674 -0
  2. package/README.md +110 -0
  3. package/dist/compiler/index.d.ts +25 -0
  4. package/dist/compiler/index.d.ts.map +1 -0
  5. package/dist/compiler/passes/apply-best-practices.d.ts +19 -0
  6. package/dist/compiler/passes/apply-best-practices.d.ts.map +1 -0
  7. package/dist/compiler/passes/build-graph.d.ts +7 -0
  8. package/dist/compiler/passes/build-graph.d.ts.map +1 -0
  9. package/dist/compiler/passes/generate-constrained-tool-schemas.d.ts +4 -0
  10. package/dist/compiler/passes/generate-constrained-tool-schemas.d.ts.map +1 -0
  11. package/dist/compiler/passes/validate-control-flow.d.ts +4 -0
  12. package/dist/compiler/passes/validate-control-flow.d.ts.map +1 -0
  13. package/dist/compiler/passes/validate-foreach-target.d.ts +4 -0
  14. package/dist/compiler/passes/validate-foreach-target.d.ts.map +1 -0
  15. package/dist/compiler/passes/validate-jmespath.d.ts +4 -0
  16. package/dist/compiler/passes/validate-jmespath.d.ts.map +1 -0
  17. package/dist/compiler/passes/validate-limits.d.ts +9 -0
  18. package/dist/compiler/passes/validate-limits.d.ts.map +1 -0
  19. package/dist/compiler/passes/validate-references.d.ts +4 -0
  20. package/dist/compiler/passes/validate-references.d.ts.map +1 -0
  21. package/dist/compiler/passes/validate-tools.d.ts +4 -0
  22. package/dist/compiler/passes/validate-tools.d.ts.map +1 -0
  23. package/dist/compiler/types.d.ts +100 -0
  24. package/dist/compiler/types.d.ts.map +1 -0
  25. package/dist/compiler/utils/graph.d.ts +35 -0
  26. package/dist/compiler/utils/graph.d.ts.map +1 -0
  27. package/dist/compiler/utils/jmespath-helpers.d.ts +34 -0
  28. package/dist/compiler/utils/jmespath-helpers.d.ts.map +1 -0
  29. package/dist/compiler/utils/schema.d.ts +33 -0
  30. package/dist/compiler/utils/schema.d.ts.map +1 -0
  31. package/dist/example-tasks.d.ts +834 -0
  32. package/dist/example-tasks.d.ts.map +1 -0
  33. package/dist/executor/context.d.ts +42 -0
  34. package/dist/executor/context.d.ts.map +1 -0
  35. package/dist/executor/errors.d.ts +57 -0
  36. package/dist/executor/errors.d.ts.map +1 -0
  37. package/dist/executor/executor-types.d.ts +117 -0
  38. package/dist/executor/executor-types.d.ts.map +1 -0
  39. package/dist/executor/helpers.d.ts +21 -0
  40. package/dist/executor/helpers.d.ts.map +1 -0
  41. package/dist/executor/index.d.ts +16 -0
  42. package/dist/executor/index.d.ts.map +1 -0
  43. package/dist/executor/schema-inference.d.ts +3 -0
  44. package/dist/executor/schema-inference.d.ts.map +1 -0
  45. package/dist/executor/state.d.ts +292 -0
  46. package/dist/executor/state.d.ts.map +1 -0
  47. package/dist/executor/steps/agent-loop.d.ts +15 -0
  48. package/dist/executor/steps/agent-loop.d.ts.map +1 -0
  49. package/dist/executor/steps/end.d.ts +5 -0
  50. package/dist/executor/steps/end.d.ts.map +1 -0
  51. package/dist/executor/steps/extract-data.d.ts +15 -0
  52. package/dist/executor/steps/extract-data.d.ts.map +1 -0
  53. package/dist/executor/steps/for-each.d.ts +11 -0
  54. package/dist/executor/steps/for-each.d.ts.map +1 -0
  55. package/dist/executor/steps/llm-prompt.d.ts +13 -0
  56. package/dist/executor/steps/llm-prompt.d.ts.map +1 -0
  57. package/dist/executor/steps/sleep.d.ts +7 -0
  58. package/dist/executor/steps/sleep.d.ts.map +1 -0
  59. package/dist/executor/steps/start.d.ts +2 -0
  60. package/dist/executor/steps/start.d.ts.map +1 -0
  61. package/dist/executor/steps/switch-case.d.ts +11 -0
  62. package/dist/executor/steps/switch-case.d.ts.map +1 -0
  63. package/dist/executor/steps/tool-call.d.ts +9 -0
  64. package/dist/executor/steps/tool-call.d.ts.map +1 -0
  65. package/dist/executor/steps/wait-for-condition.d.ts +8 -0
  66. package/dist/executor/steps/wait-for-condition.d.ts.map +1 -0
  67. package/dist/generator/index.d.ts +59 -0
  68. package/dist/generator/index.d.ts.map +1 -0
  69. package/dist/generator/prompt.d.ts +6 -0
  70. package/dist/generator/prompt.d.ts.map +1 -0
  71. package/dist/lib.d.ts +15 -0
  72. package/dist/lib.d.ts.map +1 -0
  73. package/dist/lib.js +3566 -0
  74. package/dist/lib.js.map +42 -0
  75. package/dist/types.d.ts +481 -0
  76. package/dist/types.d.ts.map +1 -0
  77. package/package.json +54 -0
@@ -0,0 +1,834 @@
1
+ export declare const EXAMPLE_TASKS: {
2
+ "ticket-review": {
3
+ availableTools: {
4
+ "get-open-tickets": import("ai").Tool<object, {
5
+ tickets: {
6
+ id: string;
7
+ subject: string;
8
+ body: string;
9
+ submittedAt: string;
10
+ }[];
11
+ }>;
12
+ "page-on-call-engineer": import("ai").Tool<{
13
+ ticketId: string;
14
+ reason: string;
15
+ }, {
16
+ success: boolean;
17
+ }>;
18
+ "send-slack-message": import("ai").Tool<{
19
+ channel: string;
20
+ message: string;
21
+ }, {
22
+ success: boolean;
23
+ }>;
24
+ };
25
+ task: string;
26
+ };
27
+ "order-fulfillment": {
28
+ availableTools: {
29
+ "get-pending-orders": import("ai").Tool<object, {
30
+ orders: {
31
+ id: string;
32
+ customerEmail: string;
33
+ items: {
34
+ itemId: string;
35
+ name: string;
36
+ quantity: number;
37
+ }[];
38
+ }[];
39
+ }>;
40
+ "check-inventory": import("ai").Tool<{
41
+ itemId: string;
42
+ }, {
43
+ available: boolean;
44
+ stock: number;
45
+ }>;
46
+ "reserve-inventory": import("ai").Tool<{
47
+ itemId: string;
48
+ quantity: number;
49
+ }, {
50
+ reservationId: string;
51
+ }>;
52
+ "create-shipment": import("ai").Tool<{
53
+ orderId: string;
54
+ reservationId: string;
55
+ }, {
56
+ trackingNumber: string;
57
+ }>;
58
+ "notify-customer": import("ai").Tool<{
59
+ email: string;
60
+ subject: string;
61
+ body: string;
62
+ }, {
63
+ sent: boolean;
64
+ }>;
65
+ "flag-for-review": import("ai").Tool<{
66
+ orderId: string;
67
+ reason: string;
68
+ }, {
69
+ flagged: boolean;
70
+ }>;
71
+ };
72
+ task: string;
73
+ workflow: {
74
+ initialStepId: string;
75
+ steps: ({
76
+ id: string;
77
+ name: string;
78
+ description: string;
79
+ type: string;
80
+ params: {
81
+ toolName: string;
82
+ toolInput: {
83
+ itemId?: undefined;
84
+ quantity?: undefined;
85
+ orderId?: undefined;
86
+ reservationId?: undefined;
87
+ email?: undefined;
88
+ subject?: undefined;
89
+ body?: undefined;
90
+ reason?: undefined;
91
+ };
92
+ target?: undefined;
93
+ itemName?: undefined;
94
+ loopBodyStepId?: undefined;
95
+ switchOn?: undefined;
96
+ cases?: undefined;
97
+ };
98
+ nextStepId: string;
99
+ } | {
100
+ id: string;
101
+ name: string;
102
+ description: string;
103
+ type: string;
104
+ params: {
105
+ target: {
106
+ type: string;
107
+ expression: string;
108
+ };
109
+ itemName: string;
110
+ loopBodyStepId: string;
111
+ toolName?: undefined;
112
+ toolInput?: undefined;
113
+ switchOn?: undefined;
114
+ cases?: undefined;
115
+ };
116
+ nextStepId: string;
117
+ } | {
118
+ id: string;
119
+ name: string;
120
+ description: string;
121
+ type: string;
122
+ params: {
123
+ toolName: string;
124
+ toolInput: {
125
+ itemId: {
126
+ type: string;
127
+ expression: string;
128
+ };
129
+ quantity?: undefined;
130
+ orderId?: undefined;
131
+ reservationId?: undefined;
132
+ email?: undefined;
133
+ subject?: undefined;
134
+ body?: undefined;
135
+ reason?: undefined;
136
+ };
137
+ target?: undefined;
138
+ itemName?: undefined;
139
+ loopBodyStepId?: undefined;
140
+ switchOn?: undefined;
141
+ cases?: undefined;
142
+ };
143
+ nextStepId: string;
144
+ } | {
145
+ id: string;
146
+ name: string;
147
+ description: string;
148
+ type: string;
149
+ params: {
150
+ switchOn: {
151
+ type: string;
152
+ expression: string;
153
+ };
154
+ cases: ({
155
+ value: {
156
+ type: string;
157
+ value: boolean;
158
+ };
159
+ branchBodyStepId: string;
160
+ } | {
161
+ value: {
162
+ type: string;
163
+ value?: undefined;
164
+ };
165
+ branchBodyStepId: string;
166
+ })[];
167
+ toolName?: undefined;
168
+ toolInput?: undefined;
169
+ target?: undefined;
170
+ itemName?: undefined;
171
+ loopBodyStepId?: undefined;
172
+ };
173
+ nextStepId?: undefined;
174
+ } | {
175
+ id: string;
176
+ name: string;
177
+ description: string;
178
+ type: string;
179
+ params: {
180
+ toolName: string;
181
+ toolInput: {
182
+ itemId: {
183
+ type: string;
184
+ expression: string;
185
+ };
186
+ quantity: {
187
+ type: string;
188
+ expression: string;
189
+ };
190
+ orderId?: undefined;
191
+ reservationId?: undefined;
192
+ email?: undefined;
193
+ subject?: undefined;
194
+ body?: undefined;
195
+ reason?: undefined;
196
+ };
197
+ target?: undefined;
198
+ itemName?: undefined;
199
+ loopBodyStepId?: undefined;
200
+ switchOn?: undefined;
201
+ cases?: undefined;
202
+ };
203
+ nextStepId: string;
204
+ } | {
205
+ id: string;
206
+ name: string;
207
+ description: string;
208
+ type: string;
209
+ params: {
210
+ toolName: string;
211
+ toolInput: {
212
+ orderId: {
213
+ type: string;
214
+ expression: string;
215
+ };
216
+ reservationId: {
217
+ type: string;
218
+ expression: string;
219
+ };
220
+ itemId?: undefined;
221
+ quantity?: undefined;
222
+ email?: undefined;
223
+ subject?: undefined;
224
+ body?: undefined;
225
+ reason?: undefined;
226
+ };
227
+ target?: undefined;
228
+ itemName?: undefined;
229
+ loopBodyStepId?: undefined;
230
+ switchOn?: undefined;
231
+ cases?: undefined;
232
+ };
233
+ nextStepId: string;
234
+ } | {
235
+ id: string;
236
+ name: string;
237
+ description: string;
238
+ type: string;
239
+ params: {
240
+ toolName: string;
241
+ toolInput: {
242
+ email: {
243
+ type: string;
244
+ expression: string;
245
+ value?: undefined;
246
+ };
247
+ subject: {
248
+ type: string;
249
+ value: string;
250
+ };
251
+ body: {
252
+ type: string;
253
+ expression: string;
254
+ value?: undefined;
255
+ };
256
+ itemId?: undefined;
257
+ quantity?: undefined;
258
+ orderId?: undefined;
259
+ reservationId?: undefined;
260
+ reason?: undefined;
261
+ };
262
+ target?: undefined;
263
+ itemName?: undefined;
264
+ loopBodyStepId?: undefined;
265
+ switchOn?: undefined;
266
+ cases?: undefined;
267
+ };
268
+ nextStepId?: undefined;
269
+ } | {
270
+ id: string;
271
+ name: string;
272
+ description: string;
273
+ type: string;
274
+ params: {
275
+ toolName: string;
276
+ toolInput: {
277
+ orderId: {
278
+ type: string;
279
+ expression: string;
280
+ };
281
+ reason: {
282
+ type: string;
283
+ value: string;
284
+ };
285
+ itemId?: undefined;
286
+ quantity?: undefined;
287
+ reservationId?: undefined;
288
+ email?: undefined;
289
+ subject?: undefined;
290
+ body?: undefined;
291
+ };
292
+ target?: undefined;
293
+ itemName?: undefined;
294
+ loopBodyStepId?: undefined;
295
+ switchOn?: undefined;
296
+ cases?: undefined;
297
+ };
298
+ nextStepId: string;
299
+ } | {
300
+ id: string;
301
+ name: string;
302
+ description: string;
303
+ type: string;
304
+ params: {
305
+ toolName: string;
306
+ toolInput: {
307
+ email: {
308
+ type: string;
309
+ expression: string;
310
+ value?: undefined;
311
+ };
312
+ subject: {
313
+ type: string;
314
+ value: string;
315
+ };
316
+ body: {
317
+ type: string;
318
+ value: string;
319
+ expression?: undefined;
320
+ };
321
+ itemId?: undefined;
322
+ quantity?: undefined;
323
+ orderId?: undefined;
324
+ reservationId?: undefined;
325
+ reason?: undefined;
326
+ };
327
+ target?: undefined;
328
+ itemName?: undefined;
329
+ loopBodyStepId?: undefined;
330
+ switchOn?: undefined;
331
+ cases?: undefined;
332
+ };
333
+ nextStepId?: undefined;
334
+ } | {
335
+ id: string;
336
+ name: string;
337
+ description: string;
338
+ type: string;
339
+ params: {
340
+ toolName: string;
341
+ toolInput: {
342
+ email: {
343
+ type: string;
344
+ value: string;
345
+ expression?: undefined;
346
+ };
347
+ subject: {
348
+ type: string;
349
+ value: string;
350
+ };
351
+ body: {
352
+ type: string;
353
+ value: string;
354
+ expression?: undefined;
355
+ };
356
+ itemId?: undefined;
357
+ quantity?: undefined;
358
+ orderId?: undefined;
359
+ reservationId?: undefined;
360
+ reason?: undefined;
361
+ };
362
+ target?: undefined;
363
+ itemName?: undefined;
364
+ loopBodyStepId?: undefined;
365
+ switchOn?: undefined;
366
+ cases?: undefined;
367
+ };
368
+ nextStepId: string;
369
+ } | {
370
+ id: string;
371
+ name: string;
372
+ description: string;
373
+ type: string;
374
+ params?: undefined;
375
+ nextStepId?: undefined;
376
+ })[];
377
+ };
378
+ };
379
+ "content-moderation": {
380
+ availableTools: {
381
+ "fetch-submissions": import("ai").Tool<object, {
382
+ submissions: {
383
+ id: string;
384
+ userId: string;
385
+ text: string;
386
+ }[];
387
+ }>;
388
+ "publish-content": import("ai").Tool<{
389
+ submissionId: string;
390
+ }, {
391
+ publishedUrl: string;
392
+ }>;
393
+ "quarantine-content": import("ai").Tool<{
394
+ submissionId: string;
395
+ reason: string;
396
+ }, {
397
+ quarantineId: string;
398
+ }>;
399
+ "send-notification": import("ai").Tool<{
400
+ userId: string;
401
+ message: string;
402
+ }, {
403
+ sent: boolean;
404
+ }>;
405
+ };
406
+ task: string;
407
+ workflow: {
408
+ initialStepId: string;
409
+ steps: ({
410
+ id: string;
411
+ name: string;
412
+ description: string;
413
+ type: string;
414
+ params: {
415
+ toolName: string;
416
+ toolInput: {
417
+ submissionId?: undefined;
418
+ userId?: undefined;
419
+ message?: undefined;
420
+ reason?: undefined;
421
+ };
422
+ target?: undefined;
423
+ itemName?: undefined;
424
+ loopBodyStepId?: undefined;
425
+ sourceData?: undefined;
426
+ outputFormat?: undefined;
427
+ switchOn?: undefined;
428
+ cases?: undefined;
429
+ prompt?: undefined;
430
+ };
431
+ nextStepId: string;
432
+ } | {
433
+ id: string;
434
+ name: string;
435
+ description: string;
436
+ type: string;
437
+ params: {
438
+ target: {
439
+ type: string;
440
+ expression: string;
441
+ };
442
+ itemName: string;
443
+ loopBodyStepId: string;
444
+ toolName?: undefined;
445
+ toolInput?: undefined;
446
+ sourceData?: undefined;
447
+ outputFormat?: undefined;
448
+ switchOn?: undefined;
449
+ cases?: undefined;
450
+ prompt?: undefined;
451
+ };
452
+ nextStepId: string;
453
+ } | {
454
+ id: string;
455
+ name: string;
456
+ description: string;
457
+ type: string;
458
+ params: {
459
+ sourceData: {
460
+ type: string;
461
+ expression: string;
462
+ };
463
+ outputFormat: {
464
+ type: string;
465
+ properties: {
466
+ action: {
467
+ type: string;
468
+ enum: string[];
469
+ };
470
+ reason: {
471
+ type: string;
472
+ };
473
+ totalProcessed?: undefined;
474
+ summary?: undefined;
475
+ };
476
+ required: string[];
477
+ };
478
+ toolName?: undefined;
479
+ toolInput?: undefined;
480
+ target?: undefined;
481
+ itemName?: undefined;
482
+ loopBodyStepId?: undefined;
483
+ switchOn?: undefined;
484
+ cases?: undefined;
485
+ prompt?: undefined;
486
+ };
487
+ nextStepId: string;
488
+ } | {
489
+ id: string;
490
+ name: string;
491
+ description: string;
492
+ type: string;
493
+ params: {
494
+ switchOn: {
495
+ type: string;
496
+ expression: string;
497
+ };
498
+ cases: ({
499
+ value: {
500
+ type: string;
501
+ value: string;
502
+ };
503
+ branchBodyStepId: string;
504
+ } | {
505
+ value: {
506
+ type: string;
507
+ value?: undefined;
508
+ };
509
+ branchBodyStepId: string;
510
+ })[];
511
+ toolName?: undefined;
512
+ toolInput?: undefined;
513
+ target?: undefined;
514
+ itemName?: undefined;
515
+ loopBodyStepId?: undefined;
516
+ sourceData?: undefined;
517
+ outputFormat?: undefined;
518
+ prompt?: undefined;
519
+ };
520
+ nextStepId?: undefined;
521
+ } | {
522
+ id: string;
523
+ name: string;
524
+ description: string;
525
+ type: string;
526
+ params: {
527
+ toolName: string;
528
+ toolInput: {
529
+ submissionId: {
530
+ type: string;
531
+ expression: string;
532
+ };
533
+ userId?: undefined;
534
+ message?: undefined;
535
+ reason?: undefined;
536
+ };
537
+ target?: undefined;
538
+ itemName?: undefined;
539
+ loopBodyStepId?: undefined;
540
+ sourceData?: undefined;
541
+ outputFormat?: undefined;
542
+ switchOn?: undefined;
543
+ cases?: undefined;
544
+ prompt?: undefined;
545
+ };
546
+ nextStepId: string;
547
+ } | {
548
+ id: string;
549
+ name: string;
550
+ description: string;
551
+ type: string;
552
+ params: {
553
+ toolName: string;
554
+ toolInput: {
555
+ userId: {
556
+ type: string;
557
+ expression: string;
558
+ };
559
+ message: {
560
+ type: string;
561
+ value: string;
562
+ };
563
+ submissionId?: undefined;
564
+ reason?: undefined;
565
+ };
566
+ target?: undefined;
567
+ itemName?: undefined;
568
+ loopBodyStepId?: undefined;
569
+ sourceData?: undefined;
570
+ outputFormat?: undefined;
571
+ switchOn?: undefined;
572
+ cases?: undefined;
573
+ prompt?: undefined;
574
+ };
575
+ nextStepId?: undefined;
576
+ } | {
577
+ id: string;
578
+ name: string;
579
+ description: string;
580
+ type: string;
581
+ params: {
582
+ toolName: string;
583
+ toolInput: {
584
+ submissionId: {
585
+ type: string;
586
+ expression: string;
587
+ };
588
+ reason: {
589
+ type: string;
590
+ expression: string;
591
+ value?: undefined;
592
+ };
593
+ userId?: undefined;
594
+ message?: undefined;
595
+ };
596
+ target?: undefined;
597
+ itemName?: undefined;
598
+ loopBodyStepId?: undefined;
599
+ sourceData?: undefined;
600
+ outputFormat?: undefined;
601
+ switchOn?: undefined;
602
+ cases?: undefined;
603
+ prompt?: undefined;
604
+ };
605
+ nextStepId: string;
606
+ } | {
607
+ id: string;
608
+ name: string;
609
+ description: string;
610
+ type: string;
611
+ params: {
612
+ toolName: string;
613
+ toolInput: {
614
+ submissionId: {
615
+ type: string;
616
+ expression: string;
617
+ };
618
+ reason: {
619
+ type: string;
620
+ value: string;
621
+ expression?: undefined;
622
+ };
623
+ userId?: undefined;
624
+ message?: undefined;
625
+ };
626
+ target?: undefined;
627
+ itemName?: undefined;
628
+ loopBodyStepId?: undefined;
629
+ sourceData?: undefined;
630
+ outputFormat?: undefined;
631
+ switchOn?: undefined;
632
+ cases?: undefined;
633
+ prompt?: undefined;
634
+ };
635
+ nextStepId?: undefined;
636
+ } | {
637
+ id: string;
638
+ name: string;
639
+ description: string;
640
+ type: string;
641
+ params: {
642
+ prompt: string;
643
+ outputFormat: {
644
+ type: string;
645
+ properties: {
646
+ totalProcessed: {
647
+ type: string;
648
+ };
649
+ summary: {
650
+ type: string;
651
+ };
652
+ action?: undefined;
653
+ reason?: undefined;
654
+ };
655
+ required: string[];
656
+ };
657
+ toolName?: undefined;
658
+ toolInput?: undefined;
659
+ target?: undefined;
660
+ itemName?: undefined;
661
+ loopBodyStepId?: undefined;
662
+ sourceData?: undefined;
663
+ switchOn?: undefined;
664
+ cases?: undefined;
665
+ };
666
+ nextStepId: string;
667
+ } | {
668
+ id: string;
669
+ name: string;
670
+ description: string;
671
+ type: string;
672
+ params?: undefined;
673
+ nextStepId?: undefined;
674
+ })[];
675
+ };
676
+ };
677
+ "course-assignment": {
678
+ availableTools: {
679
+ "get-students": import("ai").Tool<object, {
680
+ students: {
681
+ id: string;
682
+ name: string;
683
+ grade: string;
684
+ }[];
685
+ }>;
686
+ "get-available-courses": import("ai").Tool<object, {
687
+ courses: {
688
+ id: string;
689
+ name: string;
690
+ capacity: number;
691
+ }[];
692
+ }>;
693
+ "enroll-student": import("ai").Tool<{
694
+ studentId: string;
695
+ courseId: string;
696
+ }, {
697
+ enrolled: boolean;
698
+ enrollmentId: string;
699
+ }>;
700
+ "send-schedule": import("ai").Tool<{
701
+ studentId: string;
702
+ courseSummary: string;
703
+ }, {
704
+ sent: boolean;
705
+ }>;
706
+ };
707
+ task: string;
708
+ workflow: {
709
+ initialStepId: string;
710
+ steps: ({
711
+ id: string;
712
+ name: string;
713
+ description: string;
714
+ type: string;
715
+ params: {
716
+ toolName: string;
717
+ toolInput: {
718
+ studentId?: undefined;
719
+ courseId?: undefined;
720
+ courseSummary?: undefined;
721
+ };
722
+ target?: undefined;
723
+ itemName?: undefined;
724
+ loopBodyStepId?: undefined;
725
+ prompt?: undefined;
726
+ outputFormat?: undefined;
727
+ };
728
+ nextStepId: string;
729
+ } | {
730
+ id: string;
731
+ name: string;
732
+ description: string;
733
+ type: string;
734
+ params: {
735
+ target: {
736
+ type: string;
737
+ expression: string;
738
+ };
739
+ itemName: string;
740
+ loopBodyStepId: string;
741
+ toolName?: undefined;
742
+ toolInput?: undefined;
743
+ prompt?: undefined;
744
+ outputFormat?: undefined;
745
+ };
746
+ nextStepId: string;
747
+ } | {
748
+ id: string;
749
+ name: string;
750
+ description: string;
751
+ type: string;
752
+ params: {
753
+ prompt: string;
754
+ outputFormat: {
755
+ type: string;
756
+ properties: {
757
+ selectedCourseIds: {
758
+ type: string;
759
+ items: {
760
+ type: string;
761
+ };
762
+ };
763
+ };
764
+ required: string[];
765
+ };
766
+ toolName?: undefined;
767
+ toolInput?: undefined;
768
+ target?: undefined;
769
+ itemName?: undefined;
770
+ loopBodyStepId?: undefined;
771
+ };
772
+ nextStepId: string;
773
+ } | {
774
+ id: string;
775
+ name: string;
776
+ description: string;
777
+ type: string;
778
+ params: {
779
+ toolName: string;
780
+ toolInput: {
781
+ studentId: {
782
+ type: string;
783
+ expression: string;
784
+ };
785
+ courseId: {
786
+ type: string;
787
+ expression: string;
788
+ };
789
+ courseSummary?: undefined;
790
+ };
791
+ target?: undefined;
792
+ itemName?: undefined;
793
+ loopBodyStepId?: undefined;
794
+ prompt?: undefined;
795
+ outputFormat?: undefined;
796
+ };
797
+ nextStepId?: undefined;
798
+ } | {
799
+ id: string;
800
+ name: string;
801
+ description: string;
802
+ type: string;
803
+ params: {
804
+ toolName: string;
805
+ toolInput: {
806
+ studentId: {
807
+ type: string;
808
+ expression: string;
809
+ };
810
+ courseSummary: {
811
+ type: string;
812
+ value: string;
813
+ };
814
+ courseId?: undefined;
815
+ };
816
+ target?: undefined;
817
+ itemName?: undefined;
818
+ loopBodyStepId?: undefined;
819
+ prompt?: undefined;
820
+ outputFormat?: undefined;
821
+ };
822
+ nextStepId?: undefined;
823
+ } | {
824
+ id: string;
825
+ name: string;
826
+ description: string;
827
+ type: string;
828
+ params?: undefined;
829
+ nextStepId?: undefined;
830
+ })[];
831
+ };
832
+ };
833
+ };
834
+ //# sourceMappingURL=example-tasks.d.ts.map