@happyvertical/smrt-agents 0.44.1 → 0.45.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.
@@ -2,7 +2,7 @@
2
2
  "version": "1.0.0",
3
3
  "timestamp": 0,
4
4
  "packageName": "@happyvertical/smrt-agents",
5
- "packageVersion": "0.44.1",
5
+ "packageVersion": "0.45.1",
6
6
  "objects": {
7
7
  "@happyvertical/smrt-agents:Agent": {
8
8
  "name": "agent",
@@ -45,554 +45,6 @@
45
45
  }
46
46
  },
47
47
  "methods": {
48
- "withDatabase": {
49
- "name": "withDatabase",
50
- "async": true,
51
- "parameters": [
52
- {
53
- "name": "db",
54
- "type": "DatabaseInterface",
55
- "optional": false
56
- },
57
- {
58
- "name": "operation",
59
- "type": "Function",
60
- "optional": false
61
- }
62
- ],
63
- "returnType": "Promise<T>",
64
- "isStatic": false,
65
- "isPublic": true
66
- },
67
- "getAiUsageSnapshot": {
68
- "name": "getAiUsageSnapshot",
69
- "async": false,
70
- "parameters": [],
71
- "returnType": "AiUsageSnapshot | undefined",
72
- "isStatic": false,
73
- "isPublic": true
74
- },
75
- "resetAiUsage": {
76
- "name": "resetAiUsage",
77
- "async": false,
78
- "parameters": [],
79
- "returnType": "void",
80
- "isStatic": false,
81
- "isPublic": true
82
- },
83
- "listAiUsage": {
84
- "name": "listAiUsage",
85
- "async": true,
86
- "parameters": [
87
- {
88
- "name": "options",
89
- "type": "AiUsageListOptions",
90
- "optional": true
91
- }
92
- ],
93
- "returnType": "Promise<SmrtAiUsageRecord[]>",
94
- "isStatic": false,
95
- "isPublic": true
96
- },
97
- "summarizeAiUsage": {
98
- "name": "summarizeAiUsage",
99
- "async": true,
100
- "parameters": [
101
- {
102
- "name": "options",
103
- "type": "AiUsageSummaryOptions",
104
- "optional": true
105
- }
106
- ],
107
- "returnType": "Promise<Record<string, AiUsageStats>>",
108
- "isStatic": false,
109
- "isPublic": true
110
- },
111
- "destroy": {
112
- "name": "destroy",
113
- "async": false,
114
- "parameters": [],
115
- "returnType": "void",
116
- "isStatic": false,
117
- "isPublic": true
118
- },
119
- "markAsPersisted": {
120
- "name": "markAsPersisted",
121
- "async": false,
122
- "parameters": [],
123
- "returnType": "void",
124
- "isStatic": false,
125
- "isPublic": true
126
- },
127
- "requireInsertOnSave": {
128
- "name": "requireInsertOnSave",
129
- "async": false,
130
- "parameters": [],
131
- "returnType": "void",
132
- "isStatic": false,
133
- "isPublic": true
134
- },
135
- "withTransaction": {
136
- "name": "withTransaction",
137
- "async": true,
138
- "parameters": [
139
- {
140
- "name": "operation",
141
- "type": "Function",
142
- "optional": false
143
- }
144
- ],
145
- "returnType": "Promise<T>",
146
- "isStatic": false,
147
- "isPublic": true
148
- },
149
- "initialize": {
150
- "name": "initialize",
151
- "async": true,
152
- "parameters": [],
153
- "returnType": "Promise",
154
- "isStatic": false,
155
- "isPublic": true
156
- },
157
- "loadDataFromDb": {
158
- "name": "loadDataFromDb",
159
- "async": true,
160
- "parameters": [
161
- {
162
- "name": "data",
163
- "type": "Record<string>",
164
- "optional": false
165
- }
166
- ],
167
- "returnType": "any",
168
- "isStatic": false,
169
- "isPublic": true
170
- },
171
- "getFields": {
172
- "name": "getFields",
173
- "async": true,
174
- "parameters": [],
175
- "returnType": "Promise<any>",
176
- "isStatic": false,
177
- "isPublic": true
178
- },
179
- "toJSON": {
180
- "name": "toJSON",
181
- "async": false,
182
- "parameters": [],
183
- "returnType": "any",
184
- "isStatic": false,
185
- "isPublic": true
186
- },
187
- "toPlainObject": {
188
- "name": "toPlainObject",
189
- "async": false,
190
- "parameters": [],
191
- "returnType": "Record<string>",
192
- "isStatic": false,
193
- "isPublic": true
194
- },
195
- "toPublicJSON": {
196
- "name": "toPublicJSON",
197
- "async": false,
198
- "parameters": [
199
- {
200
- "name": "options",
201
- "type": "PublicJsonOptions",
202
- "optional": true
203
- }
204
- ],
205
- "returnType": "Record<string>",
206
- "isStatic": false,
207
- "isPublic": true
208
- },
209
- "getId": {
210
- "name": "getId",
211
- "async": true,
212
- "parameters": [],
213
- "returnType": "any",
214
- "isStatic": false,
215
- "isPublic": true
216
- },
217
- "getSlug": {
218
- "name": "getSlug",
219
- "async": true,
220
- "parameters": [],
221
- "returnType": "any",
222
- "isStatic": false,
223
- "isPublic": true
224
- },
225
- "getSavedId": {
226
- "name": "getSavedId",
227
- "async": true,
228
- "parameters": [],
229
- "returnType": "any",
230
- "isStatic": false,
231
- "isPublic": true
232
- },
233
- "isSaved": {
234
- "name": "isSaved",
235
- "async": true,
236
- "parameters": [],
237
- "returnType": "any",
238
- "isStatic": false,
239
- "isPublic": true
240
- },
241
- "save": {
242
- "name": "save",
243
- "async": true,
244
- "parameters": [
245
- {
246
- "name": "options",
247
- "type": "SmrtSaveOptions",
248
- "optional": true
249
- }
250
- ],
251
- "returnType": "any",
252
- "isStatic": false,
253
- "isPublic": true
254
- },
255
- "claimRevision": {
256
- "name": "claimRevision",
257
- "async": true,
258
- "parameters": [
259
- {
260
- "name": "expectedUpdatedAt",
261
- "type": "Date | string",
262
- "optional": false
263
- }
264
- ],
265
- "returnType": "Promise",
266
- "isStatic": false,
267
- "isPublic": true
268
- },
269
- "classifyConstraintError": {
270
- "name": "classifyConstraintError",
271
- "async": false,
272
- "parameters": [
273
- {
274
- "name": "message",
275
- "type": "string",
276
- "optional": false
277
- }
278
- ],
279
- "returnType": "'unique' | 'not_null' | null",
280
- "isStatic": true,
281
- "isPublic": true
282
- },
283
- "loadFromId": {
284
- "name": "loadFromId",
285
- "async": true,
286
- "parameters": [],
287
- "returnType": "any",
288
- "isStatic": false,
289
- "isPublic": true
290
- },
291
- "loadFromSlug": {
292
- "name": "loadFromSlug",
293
- "async": true,
294
- "parameters": [],
295
- "returnType": "any",
296
- "isStatic": false,
297
- "isPublic": true
298
- },
299
- "is": {
300
- "name": "is",
301
- "async": true,
302
- "parameters": [
303
- {
304
- "name": "criteria",
305
- "type": "string",
306
- "optional": false
307
- },
308
- {
309
- "name": "options",
310
- "type": "AiOperationOptions",
311
- "optional": true
312
- }
313
- ],
314
- "returnType": "any",
315
- "isStatic": false,
316
- "isPublic": true
317
- },
318
- "do": {
319
- "name": "do",
320
- "async": true,
321
- "parameters": [
322
- {
323
- "name": "instructions",
324
- "type": "string",
325
- "optional": false
326
- },
327
- {
328
- "name": "options",
329
- "type": "AiOperationOptions",
330
- "optional": true
331
- }
332
- ],
333
- "returnType": "any",
334
- "isStatic": false,
335
- "isPublic": true
336
- },
337
- "describe": {
338
- "name": "describe",
339
- "async": true,
340
- "parameters": [
341
- {
342
- "name": "options",
343
- "type": "AiOperationOptions",
344
- "optional": true
345
- }
346
- ],
347
- "returnType": "any",
348
- "isStatic": false,
349
- "isPublic": true
350
- },
351
- "delete": {
352
- "name": "delete",
353
- "async": true,
354
- "parameters": [
355
- {
356
- "name": "options",
357
- "type": "SmrtDeleteOptions",
358
- "optional": true
359
- }
360
- ],
361
- "returnType": "Promise<void>",
362
- "isStatic": false,
363
- "isPublic": true
364
- },
365
- "isRelatedLoaded": {
366
- "name": "isRelatedLoaded",
367
- "async": false,
368
- "parameters": [
369
- {
370
- "name": "fieldName",
371
- "type": "string",
372
- "optional": false
373
- }
374
- ],
375
- "returnType": "boolean",
376
- "isStatic": false,
377
- "isPublic": true
378
- },
379
- "_setLoadedRelationship": {
380
- "name": "_setLoadedRelationship",
381
- "async": false,
382
- "parameters": [
383
- {
384
- "name": "fieldName",
385
- "type": "string",
386
- "optional": false
387
- },
388
- {
389
- "name": "value",
390
- "type": "any",
391
- "optional": false
392
- }
393
- ],
394
- "returnType": "void",
395
- "isStatic": false,
396
- "isPublic": true
397
- },
398
- "loadRelated": {
399
- "name": "loadRelated",
400
- "async": true,
401
- "parameters": [
402
- {
403
- "name": "fieldName",
404
- "type": "string",
405
- "optional": false
406
- },
407
- {
408
- "name": "opts",
409
- "type": "LoadRelatedOptions",
410
- "optional": true
411
- }
412
- ],
413
- "returnType": "Promise<any>",
414
- "isStatic": false,
415
- "isPublic": true
416
- },
417
- "loadRelatedMany": {
418
- "name": "loadRelatedMany",
419
- "async": true,
420
- "parameters": [
421
- {
422
- "name": "fieldName",
423
- "type": "string",
424
- "optional": false
425
- },
426
- {
427
- "name": "opts",
428
- "type": "LoadRelatedOptions",
429
- "optional": true
430
- }
431
- ],
432
- "returnType": "Promise<any[]>",
433
- "isStatic": false,
434
- "isPublic": true
435
- },
436
- "getRelated": {
437
- "name": "getRelated",
438
- "async": true,
439
- "parameters": [
440
- {
441
- "name": "fieldName",
442
- "type": "string",
443
- "optional": false
444
- },
445
- {
446
- "name": "opts",
447
- "type": "LoadRelatedOptions",
448
- "optional": true
449
- }
450
- ],
451
- "returnType": "Promise<any>",
452
- "isStatic": false,
453
- "isPublic": true
454
- },
455
- "getAvailableTools": {
456
- "name": "getAvailableTools",
457
- "async": false,
458
- "parameters": [],
459
- "returnType": "AITool[]",
460
- "isStatic": false,
461
- "isPublic": true
462
- },
463
- "executeToolCall": {
464
- "name": "executeToolCall",
465
- "async": true,
466
- "parameters": [
467
- {
468
- "name": "toolCall",
469
- "type": "ToolCall",
470
- "optional": false
471
- }
472
- ],
473
- "returnType": "Promise<ToolCallResult>",
474
- "isStatic": false,
475
- "isPublic": true
476
- },
477
- "remember": {
478
- "name": "remember",
479
- "async": true,
480
- "parameters": [
481
- {
482
- "name": "options",
483
- "type": "object",
484
- "optional": false
485
- }
486
- ],
487
- "returnType": "Promise<void>",
488
- "isStatic": false,
489
- "isPublic": true
490
- },
491
- "recall": {
492
- "name": "recall",
493
- "async": true,
494
- "parameters": [
495
- {
496
- "name": "options",
497
- "type": "object",
498
- "optional": false
499
- }
500
- ],
501
- "returnType": "Promise",
502
- "isStatic": false,
503
- "isPublic": true
504
- },
505
- "recallAll": {
506
- "name": "recallAll",
507
- "async": true,
508
- "parameters": [
509
- {
510
- "name": "options",
511
- "type": "object",
512
- "optional": true
513
- }
514
- ],
515
- "returnType": "Promise<Map<string>>",
516
- "isStatic": false,
517
- "isPublic": true
518
- },
519
- "forget": {
520
- "name": "forget",
521
- "async": true,
522
- "parameters": [
523
- {
524
- "name": "options",
525
- "type": "object",
526
- "optional": false
527
- }
528
- ],
529
- "returnType": "Promise<void>",
530
- "isStatic": false,
531
- "isPublic": true
532
- },
533
- "forgetScope": {
534
- "name": "forgetScope",
535
- "async": true,
536
- "parameters": [
537
- {
538
- "name": "options",
539
- "type": "object",
540
- "optional": false
541
- }
542
- ],
543
- "returnType": "Promise<number>",
544
- "isStatic": false,
545
- "isPublic": true
546
- },
547
- "generateEmbeddings": {
548
- "name": "generateEmbeddings",
549
- "async": true,
550
- "parameters": [
551
- {
552
- "name": "options",
553
- "type": "GenerateEmbeddingsOptions",
554
- "optional": true
555
- }
556
- ],
557
- "returnType": "Promise<void>",
558
- "isStatic": false,
559
- "isPublic": true
560
- },
561
- "getEmbedding": {
562
- "name": "getEmbedding",
563
- "async": true,
564
- "parameters": [
565
- {
566
- "name": "fieldName",
567
- "type": "string",
568
- "optional": false
569
- },
570
- {
571
- "name": "model",
572
- "type": "string",
573
- "optional": true
574
- }
575
- ],
576
- "returnType": "Promise<number[] | null>",
577
- "isStatic": false,
578
- "isPublic": true
579
- },
580
- "hasStaleEmbeddings": {
581
- "name": "hasStaleEmbeddings",
582
- "async": true,
583
- "parameters": [],
584
- "returnType": "Promise<boolean>",
585
- "isStatic": false,
586
- "isPublic": true
587
- },
588
- "clearEmbeddings": {
589
- "name": "clearEmbeddings",
590
- "async": true,
591
- "parameters": [],
592
- "returnType": "Promise<void>",
593
- "isStatic": false,
594
- "isPublic": true
595
- },
596
48
  "getInstanceKey": {
597
49
  "name": "getInstanceKey",
598
50
  "async": false,
@@ -729,6 +181,14 @@
729
181
  "isStatic": false,
730
182
  "isPublic": true
731
183
  },
184
+ "initialize": {
185
+ "name": "initialize",
186
+ "async": true,
187
+ "parameters": [],
188
+ "returnType": "Promise",
189
+ "isStatic": false,
190
+ "isPublic": true
191
+ },
732
192
  "validate": {
733
193
  "name": "validate",
734
194
  "async": true,