@tuned-tensor/cli 0.20.0 → 0.21.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.
@@ -0,0 +1,630 @@
1
+ {
2
+ "engine": "decision",
3
+ "id": "3c9b2f1e-5a7d-4e8b-9c1f-2d6a8e4b7f30",
4
+ "name": "Card support triage",
5
+ "description": "Route card-support messages to one queue. Examples are a subset of PolyAI BANKING77 (CC BY 4.0, https://github.com/PolyAI-LDN/task-specific-datasets).",
6
+ "system_prompt": "Which card-support queue should handle this customer message?",
7
+ "guidelines": [
8
+ "Choose the queue for the customer's main problem."
9
+ ],
10
+ "constraints": [],
11
+ "base_model": "convaiinnovations/laya",
12
+ "decision": {
13
+ "type": "choice",
14
+ "criteria": {
15
+ "card_arrival": "new card has not arrived or asking about delivery status",
16
+ "card_not_working": "card is physically broken or does not work at all",
17
+ "lost_or_stolen": "customer lost their card or it was stolen",
18
+ "payment_declined": "a card payment was declined or rejected",
19
+ "unrecognised_payment": "customer does not recognise a card payment on their statement",
20
+ "compromised_card": "card details may have been exposed, hacked or used fraudulently"
21
+ }
22
+ },
23
+ "examples": [
24
+ {
25
+ "input": "My card was lost on vacation, I don't know where it is. Can you help me take care of this immediately?",
26
+ "output": "lost_or_stolen"
27
+ },
28
+ {
29
+ "input": "Am I able to track a card that has already been sent?",
30
+ "output": "card_arrival"
31
+ },
32
+ {
33
+ "input": "There is a card payment I'm not familiar with.",
34
+ "output": "unrecognised_payment"
35
+ },
36
+ {
37
+ "input": "I believe that my card has been stolen!",
38
+ "output": "lost_or_stolen"
39
+ },
40
+ {
41
+ "input": "Why can't I use my card?",
42
+ "output": "card_not_working"
43
+ },
44
+ {
45
+ "input": "I know there's money in my account, why did my account decline me?",
46
+ "output": "payment_declined"
47
+ },
48
+ {
49
+ "input": "I see a strange payment in my account.",
50
+ "output": "unrecognised_payment"
51
+ },
52
+ {
53
+ "input": "I just got an email in confirming my purchase with my card. I login to the mobile app on the card and found out there are several purchase were made without me aware of it. Evidently someone had stole my card information and made these fraudulent purchase. I need the transaction to be reverse and have my card suspended.",
54
+ "output": "compromised_card"
55
+ },
56
+ {
57
+ "input": "Someone might have had access to my card.",
58
+ "output": "compromised_card"
59
+ },
60
+ {
61
+ "input": "Today I used my card at a restaurant and it was declined. Why?",
62
+ "output": "card_not_working"
63
+ },
64
+ {
65
+ "input": "I think that the card is stolen. What are my next steps?",
66
+ "output": "lost_or_stolen"
67
+ },
68
+ {
69
+ "input": "My card was working but now it doesn't.",
70
+ "output": "card_not_working"
71
+ },
72
+ {
73
+ "input": "My payment was declined",
74
+ "output": "payment_declined"
75
+ },
76
+ {
77
+ "input": "My card is missing. Please help.",
78
+ "output": "lost_or_stolen"
79
+ },
80
+ {
81
+ "input": "How do I check security settings on my card?",
82
+ "output": "card_not_working"
83
+ },
84
+ {
85
+ "input": "How do I track the card you sent me?",
86
+ "output": "card_arrival"
87
+ },
88
+ {
89
+ "input": "My card has been stolen. I reported it with the police, but I need to report it with you as well.",
90
+ "output": "lost_or_stolen"
91
+ },
92
+ {
93
+ "input": "I still haven't received my card after two weeks, is it lost?",
94
+ "output": "card_arrival"
95
+ },
96
+ {
97
+ "input": "My card payment is being declined and I've tried several times.",
98
+ "output": "payment_declined"
99
+ },
100
+ {
101
+ "input": "I need clarity on why my card is not working.",
102
+ "output": "card_not_working"
103
+ },
104
+ {
105
+ "input": "How do I replace a stolen card?",
106
+ "output": "lost_or_stolen"
107
+ },
108
+ {
109
+ "input": "Do you have info about the card on delivery?",
110
+ "output": "card_arrival"
111
+ },
112
+ {
113
+ "input": "I can't get the card itself to work.",
114
+ "output": "card_not_working"
115
+ },
116
+ {
117
+ "input": "My card appears to have never arrived?",
118
+ "output": "card_arrival"
119
+ },
120
+ {
121
+ "input": "Why won't my card accept any transactions?",
122
+ "output": "card_not_working"
123
+ },
124
+ {
125
+ "input": "i didnt do this charge",
126
+ "output": "unrecognised_payment"
127
+ },
128
+ {
129
+ "input": "My card payment doesn't work.",
130
+ "output": "payment_declined"
131
+ },
132
+ {
133
+ "input": "I have lost my card! What is my next step?",
134
+ "output": "lost_or_stolen"
135
+ },
136
+ {
137
+ "input": "I was out today looking forward to paying with my new card, but the payment just kept getting declined. This is really sad, what's going on?",
138
+ "output": "payment_declined"
139
+ },
140
+ {
141
+ "input": "What do I do if my card is stolen?",
142
+ "output": "lost_or_stolen"
143
+ },
144
+ {
145
+ "input": "I can't use my card because it is not working.",
146
+ "output": "card_not_working"
147
+ },
148
+ {
149
+ "input": "I didn't make these transactions. Is someone else using my card?",
150
+ "output": "compromised_card"
151
+ },
152
+ {
153
+ "input": "How do I find out how or where this transaction on my account came from?",
154
+ "output": "unrecognised_payment"
155
+ },
156
+ {
157
+ "input": "i dont recognise some of these transactions, i think someone has my card details",
158
+ "output": "compromised_card"
159
+ },
160
+ {
161
+ "input": "My card was refused",
162
+ "output": "payment_declined"
163
+ },
164
+ {
165
+ "input": "My card was supposed to arrive, but hasn't?",
166
+ "output": "card_arrival"
167
+ },
168
+ {
169
+ "input": "What to do if my card has been used without my permission?",
170
+ "output": "compromised_card"
171
+ },
172
+ {
173
+ "input": "I did not make this payment that I see in the App.",
174
+ "output": "unrecognised_payment"
175
+ },
176
+ {
177
+ "input": "I'm noticing a payment/purchase at a company that I don't recognise.",
178
+ "output": "unrecognised_payment"
179
+ },
180
+ {
181
+ "input": "If I ordered my new card last week, how much longer should I wait to receive it?",
182
+ "output": "card_arrival"
183
+ },
184
+ {
185
+ "input": "I tried to pay with my card and it didn't work",
186
+ "output": "payment_declined"
187
+ },
188
+ {
189
+ "input": "My card info was stolen, what do I do?",
190
+ "output": "compromised_card"
191
+ },
192
+ {
193
+ "input": "I'm checking the app and I see a payment that's not mine.",
194
+ "output": "unrecognised_payment"
195
+ },
196
+ {
197
+ "input": "Someone might be using my card. What should I do?",
198
+ "output": "compromised_card"
199
+ },
200
+ {
201
+ "input": "I didn't do a payment and I have it now.",
202
+ "output": "unrecognised_payment"
203
+ },
204
+ {
205
+ "input": "Can you help me track my card?",
206
+ "output": "card_arrival"
207
+ },
208
+ {
209
+ "input": "2 weeks ago I ordered my new card. It isn't here. What should I do?",
210
+ "output": "card_arrival"
211
+ },
212
+ {
213
+ "input": "Could you assist me in finding my lost card?",
214
+ "output": "lost_or_stolen"
215
+ },
216
+ {
217
+ "input": "Can you track my card for me?",
218
+ "output": "card_arrival"
219
+ },
220
+ {
221
+ "input": "Why has my card been declined?",
222
+ "output": "payment_declined"
223
+ },
224
+ {
225
+ "input": "How long does it take for me to get my new card?",
226
+ "output": "card_arrival"
227
+ },
228
+ {
229
+ "input": "I tried to use my card today in the restaurant but it didn't work and just got declined. What's wrong?",
230
+ "output": "card_not_working"
231
+ },
232
+ {
233
+ "input": "Why is there a payment I didn't do?",
234
+ "output": "unrecognised_payment"
235
+ },
236
+ {
237
+ "input": "My card doesn't seem to work anymore",
238
+ "output": "card_not_working"
239
+ },
240
+ {
241
+ "input": "Somebody used my card without my knowledge!",
242
+ "output": "compromised_card"
243
+ },
244
+ {
245
+ "input": "What's wrong with my card? The clerk at the grocery store said it was declined.",
246
+ "output": "card_not_working"
247
+ },
248
+ {
249
+ "input": "How can I periodically check the delivery of the card you sent?",
250
+ "output": "card_arrival"
251
+ },
252
+ {
253
+ "input": "my statement contains an unknown payment",
254
+ "output": "unrecognised_payment"
255
+ },
256
+ {
257
+ "input": "Why is there a random payment in my statement?",
258
+ "output": "unrecognised_payment"
259
+ },
260
+ {
261
+ "input": "I can't find my card! Can you help?",
262
+ "output": "lost_or_stolen"
263
+ },
264
+ {
265
+ "input": "My statement shows charges for things I never purchased. Were my account details stolen?",
266
+ "output": "compromised_card"
267
+ },
268
+ {
269
+ "input": "Someone stole my card!",
270
+ "output": "lost_or_stolen"
271
+ },
272
+ {
273
+ "input": "I'm not recognizing the card payment.",
274
+ "output": "unrecognised_payment"
275
+ },
276
+ {
277
+ "input": "I didn't make this payment!",
278
+ "output": "unrecognised_payment"
279
+ },
280
+ {
281
+ "input": "Will I have to wait much longer for my new card to arrive?",
282
+ "output": "card_arrival"
283
+ },
284
+ {
285
+ "input": "I just got my new card and tried using it and it was declined?",
286
+ "output": "payment_declined"
287
+ },
288
+ {
289
+ "input": "How do I track the card you sent to me?",
290
+ "output": "card_arrival"
291
+ },
292
+ {
293
+ "input": "Someone besides me might be using my card.",
294
+ "output": "compromised_card"
295
+ },
296
+ {
297
+ "input": "My card was stolen. What do I need to do?",
298
+ "output": "lost_or_stolen"
299
+ },
300
+ {
301
+ "input": "Someone has been using my card. There are unfamiliar transactions on there. Can you freeze the card to keep this from happening?",
302
+ "output": "compromised_card"
303
+ },
304
+ {
305
+ "input": "How can I tell if someone else is using my card?",
306
+ "output": "compromised_card"
307
+ },
308
+ {
309
+ "input": "I think my card has been compromised in some way.",
310
+ "output": "compromised_card"
311
+ },
312
+ {
313
+ "input": "What to do if my physical card is not working?",
314
+ "output": "card_not_working"
315
+ },
316
+ {
317
+ "input": "My card no longer works.",
318
+ "output": "card_not_working"
319
+ },
320
+ {
321
+ "input": "My card was declined at a restaurant today and I am not sure why.",
322
+ "output": "card_not_working"
323
+ },
324
+ {
325
+ "input": "There's a payment that isn't mine on my app",
326
+ "output": "unrecognised_payment"
327
+ },
328
+ {
329
+ "input": "How do I fix a broken card?",
330
+ "output": "card_not_working"
331
+ },
332
+ {
333
+ "input": "How can I report that my card was stolen? I made a police report first.",
334
+ "output": "lost_or_stolen"
335
+ },
336
+ {
337
+ "input": "I think my wallet fell out on the Tube today! I realized as soon as I got to my desk. How do I cut off the card?",
338
+ "output": "lost_or_stolen"
339
+ },
340
+ {
341
+ "input": "I need to track the card sent to me.",
342
+ "output": "card_arrival"
343
+ },
344
+ {
345
+ "input": "Please tell me how you can stop unauthorized payments from being made on my card since on this bill I see that this has happened. There are transactions that I never made from a place I've never been to.",
346
+ "output": "compromised_card"
347
+ },
348
+ {
349
+ "input": "My payment card was declined - could you tell me why?",
350
+ "output": "payment_declined"
351
+ },
352
+ {
353
+ "input": "My card payment wasn't accepted.",
354
+ "output": "payment_declined"
355
+ },
356
+ {
357
+ "input": "I need to order a new card as my other one was stolen.",
358
+ "output": "lost_or_stolen"
359
+ },
360
+ {
361
+ "input": "I have an unusual payment in my statement",
362
+ "output": "unrecognised_payment"
363
+ },
364
+ {
365
+ "input": "my payment was rejected",
366
+ "output": "payment_declined"
367
+ },
368
+ {
369
+ "input": "My card isn't here yet.",
370
+ "output": "card_arrival"
371
+ },
372
+ {
373
+ "input": "Tell me why my card payment has been declined.",
374
+ "output": "payment_declined"
375
+ },
376
+ {
377
+ "input": "What do I do if my card was stolen.",
378
+ "output": "lost_or_stolen"
379
+ },
380
+ {
381
+ "input": "Can you help me retrieve my card?",
382
+ "output": "lost_or_stolen"
383
+ },
384
+ {
385
+ "input": "There is a payment made with my card that I don't recognize at all.",
386
+ "output": "unrecognised_payment"
387
+ },
388
+ {
389
+ "input": "Can I track the card that was just sent to me?",
390
+ "output": "card_arrival"
391
+ },
392
+ {
393
+ "input": "My card doesn't seem to work.",
394
+ "output": "card_not_working"
395
+ },
396
+ {
397
+ "input": "Do you know the reason why my card payment was declined?",
398
+ "output": "payment_declined"
399
+ },
400
+ {
401
+ "input": "Can you provide information for freezing my card immediately?",
402
+ "output": "lost_or_stolen"
403
+ },
404
+ {
405
+ "input": "How do I deactivate a stolen card?",
406
+ "output": "lost_or_stolen"
407
+ },
408
+ {
409
+ "input": "I think my card has been used by somebody else since I was never in the little town where some transactions on this bill have come from. Please stop this right away.",
410
+ "output": "compromised_card"
411
+ },
412
+ {
413
+ "input": "card is being used by someone else",
414
+ "output": "compromised_card"
415
+ },
416
+ {
417
+ "input": "There is a strange card payment I don't recognise.",
418
+ "output": "unrecognised_payment"
419
+ },
420
+ {
421
+ "input": "Help. My card is broken.",
422
+ "output": "card_not_working"
423
+ },
424
+ {
425
+ "input": "My payment has been declined several times. Can you help me?",
426
+ "output": "payment_declined"
427
+ },
428
+ {
429
+ "input": "How can I check on the delivery status of my card?",
430
+ "output": "card_arrival"
431
+ },
432
+ {
433
+ "input": "My card hasn't been working when I try to use it.",
434
+ "output": "card_not_working"
435
+ },
436
+ {
437
+ "input": "I can't find my card! What should I do?",
438
+ "output": "lost_or_stolen"
439
+ },
440
+ {
441
+ "input": "I need to report a stolen card",
442
+ "output": "lost_or_stolen"
443
+ },
444
+ {
445
+ "input": "I tried using my card at multiple vendors and now it's not working.",
446
+ "output": "card_not_working"
447
+ },
448
+ {
449
+ "input": "Can you tell me why I can't make any transactions?",
450
+ "output": "card_not_working"
451
+ },
452
+ {
453
+ "input": "What's the tracking on the card you sent?",
454
+ "output": "card_arrival"
455
+ },
456
+ {
457
+ "input": "Please help to explain to me why my new card was declined when I tried to use it at my grocery store this morning to pay for the items I needed. I tried three times to use it and it kept being declined. I was very embarrassed standing there trying to buy my groceries.",
458
+ "output": "payment_declined"
459
+ },
460
+ {
461
+ "input": "I think someone may be using my card.",
462
+ "output": "compromised_card"
463
+ },
464
+ {
465
+ "input": "There are a few transaction that I don't recognize, I think someone managed to get my card details and use it.",
466
+ "output": "compromised_card"
467
+ },
468
+ {
469
+ "input": "Someone must have found my card details as I don't recognize these transactions.",
470
+ "output": "compromised_card"
471
+ },
472
+ {
473
+ "input": "My card has been compromised. I see a bunch of online shopping charges that I didn't make. I need to freeze it immediately.",
474
+ "output": "compromised_card"
475
+ },
476
+ {
477
+ "input": "I don't have my card after 1 week. What are my next steps?",
478
+ "output": "card_arrival"
479
+ },
480
+ {
481
+ "input": "Why is there an unknown card payment?",
482
+ "output": "unrecognised_payment"
483
+ },
484
+ {
485
+ "input": "What do I need to do to get my new card which I have requested 2 weeks ago?",
486
+ "output": "card_arrival"
487
+ },
488
+ {
489
+ "input": "What is this card payment, I do not recognize it.",
490
+ "output": "unrecognised_payment"
491
+ },
492
+ {
493
+ "input": "I can't seem to use my card. Can you help?",
494
+ "output": "card_not_working"
495
+ },
496
+ {
497
+ "input": "How do I report possible fraudulent activity on my account?",
498
+ "output": "compromised_card"
499
+ },
500
+ {
501
+ "input": "I think my card is stolen!",
502
+ "output": "lost_or_stolen"
503
+ },
504
+ {
505
+ "input": "Someone might have access to my card! There are some strange payments showing up on my account. What do I do?",
506
+ "output": "unrecognised_payment"
507
+ },
508
+ {
509
+ "input": "I wasn't able to use my card today when I went out for lunch. Wondering why that is?",
510
+ "output": "card_not_working"
511
+ },
512
+ {
513
+ "input": "Will I be able to track the card that was sent to me?",
514
+ "output": "card_arrival"
515
+ },
516
+ {
517
+ "input": "Why did my card payment not work?",
518
+ "output": "payment_declined"
519
+ },
520
+ {
521
+ "input": "There was a purchase on my card recently to a name that I don't recognize at all. What can be done about this? I need my money back.",
522
+ "output": "unrecognised_payment"
523
+ },
524
+ {
525
+ "input": "Please help. The card won't work.",
526
+ "output": "card_not_working"
527
+ },
528
+ {
529
+ "input": "I think someone else is using my card.",
530
+ "output": "compromised_card"
531
+ },
532
+ {
533
+ "input": "It's been a week since you sent my card and I still don't have it.",
534
+ "output": "card_arrival"
535
+ },
536
+ {
537
+ "input": "My card payment was not successful.",
538
+ "output": "payment_declined"
539
+ },
540
+ {
541
+ "input": "What can I do if I lost my card?",
542
+ "output": "lost_or_stolen"
543
+ },
544
+ {
545
+ "input": "What should I do if I think my card was stolen?",
546
+ "output": "lost_or_stolen"
547
+ },
548
+ {
549
+ "input": "I have not received my card and it's been a week, what do I do?",
550
+ "output": "card_arrival"
551
+ },
552
+ {
553
+ "input": "I think someone stole my card because I can't find it.",
554
+ "output": "lost_or_stolen"
555
+ },
556
+ {
557
+ "input": "What steps can I take if someone else is using my card?",
558
+ "output": "compromised_card"
559
+ },
560
+ {
561
+ "input": "i dont recognize a charge on my card",
562
+ "output": "unrecognised_payment"
563
+ },
564
+ {
565
+ "input": "A shop I go to didn't let me pay.",
566
+ "output": "payment_declined"
567
+ },
568
+ {
569
+ "input": "My payment has been declined!! What's going on, I thought everything was alright and working well?",
570
+ "output": "payment_declined"
571
+ },
572
+ {
573
+ "input": "I think someone stole my card number and brought stuff in different places that I have never been to. I need to suspend any further purchase on my credit card.",
574
+ "output": "compromised_card"
575
+ },
576
+ {
577
+ "input": "Explain the payment that was declined!",
578
+ "output": "payment_declined"
579
+ },
580
+ {
581
+ "input": "Is my card frozen?",
582
+ "output": "card_not_working"
583
+ },
584
+ {
585
+ "input": "When I tried to pay in a store my card din't work",
586
+ "output": "payment_declined"
587
+ },
588
+ {
589
+ "input": "Why was my new card declined?",
590
+ "output": "payment_declined"
591
+ },
592
+ {
593
+ "input": "I've tried using my card multiple times and it keeps getting declined.",
594
+ "output": "payment_declined"
595
+ },
596
+ {
597
+ "input": "Hi something is going on with the app. I see some payments I didn't make?",
598
+ "output": "unrecognised_payment"
599
+ },
600
+ {
601
+ "input": "I need help with understanding why my card is not working.",
602
+ "output": "card_not_working"
603
+ },
604
+ {
605
+ "input": "my payment was rejected, do you know why?",
606
+ "output": "payment_declined"
607
+ },
608
+ {
609
+ "input": "There's a card payment I didn't make",
610
+ "output": "unrecognised_payment"
611
+ },
612
+ {
613
+ "input": "There is a fraudulent payment!",
614
+ "output": "unrecognised_payment"
615
+ },
616
+ {
617
+ "input": "I suspect someone used my card.",
618
+ "output": "compromised_card"
619
+ },
620
+ {
621
+ "input": "My card hasn't arrived yet. What do I do?",
622
+ "output": "card_arrival"
623
+ }
624
+ ],
625
+ "hyperparameters": {
626
+ "n_epochs": 3,
627
+ "batch_size": 8,
628
+ "device": "auto"
629
+ }
630
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tuned-tensor/cli",
3
- "version": "0.20.0",
3
+ "version": "0.21.0",
4
4
  "description": "Local TT agent and CUDA fine-tuning CLI for Tuned Tensor workflows",
5
5
  "repository": {
6
6
  "type": "git",
@@ -19,7 +19,7 @@
19
19
  "test:workflows": "vitest run src/__tests__/workflows",
20
20
  "eval:agent": "tsx scripts/eval-agent.ts",
21
21
  "test:local-runtime": "node --import tsx --test \"test/local-runtime/**/*.test.ts\"",
22
- "test:python": "python3 -m unittest discover -s training/adapter/tests -p 'test_*.py' && uv run --frozen --project training/foundation --group test python -m unittest discover -s training/foundation/tests -p 'test_*.py'",
22
+ "test:python": "python3 -m unittest discover -s training/adapter/tests -p 'test_*.py' && uv run --frozen --project training/foundation --group test python -m unittest discover -s training/foundation/tests -p 'test_*.py' && uv run --frozen --project training/decision python -m unittest discover -s training/decision/tests -p 'test_*.py'",
23
23
  "test:watch": "vitest",
24
24
  "check": "npm run typecheck && npm test && npm run build"
25
25
  },
@@ -33,6 +33,9 @@
33
33
  "training/foundation/pyproject.toml",
34
34
  "training/foundation/uv.lock",
35
35
  "training/foundation/src/*.py",
36
+ "training/decision/pyproject.toml",
37
+ "training/decision/uv.lock",
38
+ "training/decision/src/*.py",
36
39
  "docs/local-runtime",
37
40
  "docs/spec-workflow.md",
38
41
  "docs/spec-architecture.html",