@stackflo-labs/n8n-nodes-retainr 0.2.4 → 0.2.6
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.
|
@@ -11,7 +11,7 @@ class Retainr {
|
|
|
11
11
|
group: ['transform'],
|
|
12
12
|
version: 1,
|
|
13
13
|
subtitle: '={{$parameter["operation"] + " " + $parameter["resource"]}}',
|
|
14
|
-
description: 'Store, search, and retrieve AI agent memories',
|
|
14
|
+
description: 'Store, search, and retrieve AI agent memories.',
|
|
15
15
|
defaults: {
|
|
16
16
|
name: 'Retainr',
|
|
17
17
|
},
|
|
@@ -62,31 +62,31 @@ class Retainr {
|
|
|
62
62
|
{
|
|
63
63
|
name: 'Delete',
|
|
64
64
|
value: 'delete',
|
|
65
|
-
description: 'Delete memories matching a filter',
|
|
65
|
+
description: 'Delete memories matching a filter.',
|
|
66
66
|
action: 'Delete memories',
|
|
67
67
|
},
|
|
68
68
|
{
|
|
69
69
|
name: 'Get Context',
|
|
70
70
|
value: 'getContext',
|
|
71
|
-
description: 'Get pre-formatted memory context for LLM prompts',
|
|
71
|
+
description: 'Get pre-formatted memory context for LLM prompts.',
|
|
72
72
|
action: 'Get memory context',
|
|
73
73
|
},
|
|
74
74
|
{
|
|
75
75
|
name: 'List',
|
|
76
76
|
value: 'list',
|
|
77
|
-
description: 'List memories with optional filters',
|
|
77
|
+
description: 'List memories with optional filters.',
|
|
78
78
|
action: 'List memories',
|
|
79
79
|
},
|
|
80
80
|
{
|
|
81
81
|
name: 'Search',
|
|
82
82
|
value: 'search',
|
|
83
|
-
description: 'Semantic search across memories',
|
|
83
|
+
description: 'Semantic search across memories.',
|
|
84
84
|
action: 'Search memories',
|
|
85
85
|
},
|
|
86
86
|
{
|
|
87
87
|
name: 'Store',
|
|
88
88
|
value: 'store',
|
|
89
|
-
description: 'Store a new memory',
|
|
89
|
+
description: 'Store a new memory.',
|
|
90
90
|
action: 'Store a memory',
|
|
91
91
|
},
|
|
92
92
|
],
|
|
@@ -109,7 +109,7 @@ class Retainr {
|
|
|
109
109
|
{
|
|
110
110
|
name: 'Get Info',
|
|
111
111
|
value: 'getInfo',
|
|
112
|
-
description: 'Get workspace details, usage, and API keys',
|
|
112
|
+
description: 'Get workspace details, usage, and API keys.',
|
|
113
113
|
action: 'Get workspace info',
|
|
114
114
|
},
|
|
115
115
|
],
|
|
@@ -128,7 +128,7 @@ class Retainr {
|
|
|
128
128
|
required: true,
|
|
129
129
|
default: '',
|
|
130
130
|
placeholder: 'The user prefers dark mode and speaks French.',
|
|
131
|
-
description: 'The memory content to store (max 32 768 characters)',
|
|
131
|
+
description: 'The memory content to store (max 32 768 characters).',
|
|
132
132
|
displayOptions: {
|
|
133
133
|
show: {
|
|
134
134
|
resource: ['memory'],
|
|
@@ -142,27 +142,27 @@ class Retainr {
|
|
|
142
142
|
type: 'options',
|
|
143
143
|
required: true,
|
|
144
144
|
default: 'user',
|
|
145
|
-
description: 'Memory visibility scope',
|
|
145
|
+
description: 'Memory visibility scope.',
|
|
146
146
|
options: [
|
|
147
147
|
{
|
|
148
148
|
name: 'Session',
|
|
149
149
|
value: 'session',
|
|
150
|
-
description: 'Scoped to a single workflow run',
|
|
150
|
+
description: 'Scoped to a single workflow run.',
|
|
151
151
|
},
|
|
152
152
|
{
|
|
153
153
|
name: 'User',
|
|
154
154
|
value: 'user',
|
|
155
|
-
description: 'Persists across runs for one user',
|
|
155
|
+
description: 'Persists across runs for one user.',
|
|
156
156
|
},
|
|
157
157
|
{
|
|
158
158
|
name: 'Agent',
|
|
159
159
|
value: 'agent',
|
|
160
|
-
description: 'Shared across users for one agent',
|
|
160
|
+
description: 'Shared across users for one agent.',
|
|
161
161
|
},
|
|
162
162
|
{
|
|
163
163
|
name: 'Global',
|
|
164
164
|
value: 'global',
|
|
165
|
-
description: 'Shared across the entire workspace',
|
|
165
|
+
description: 'Shared across the entire workspace.',
|
|
166
166
|
},
|
|
167
167
|
],
|
|
168
168
|
displayOptions: {
|
|
@@ -178,7 +178,7 @@ class Retainr {
|
|
|
178
178
|
type: 'string',
|
|
179
179
|
default: '',
|
|
180
180
|
required: true,
|
|
181
|
-
description: 'Unique identifier for the session',
|
|
181
|
+
description: 'Unique identifier for the session.',
|
|
182
182
|
displayOptions: {
|
|
183
183
|
show: {
|
|
184
184
|
resource: ['memory'],
|
|
@@ -193,7 +193,7 @@ class Retainr {
|
|
|
193
193
|
type: 'string',
|
|
194
194
|
default: '',
|
|
195
195
|
required: true,
|
|
196
|
-
description: 'Unique identifier for the user',
|
|
196
|
+
description: 'Unique identifier for the user.',
|
|
197
197
|
displayOptions: {
|
|
198
198
|
show: {
|
|
199
199
|
resource: ['memory'],
|
|
@@ -208,7 +208,7 @@ class Retainr {
|
|
|
208
208
|
type: 'string',
|
|
209
209
|
default: '',
|
|
210
210
|
required: true,
|
|
211
|
-
description: 'Unique identifier for the agent',
|
|
211
|
+
description: 'Unique identifier for the agent.',
|
|
212
212
|
displayOptions: {
|
|
213
213
|
show: {
|
|
214
214
|
resource: ['memory'],
|
|
@@ -246,21 +246,21 @@ class Retainr {
|
|
|
246
246
|
name: 'metadata',
|
|
247
247
|
type: 'json',
|
|
248
248
|
default: '{}',
|
|
249
|
-
description: 'Arbitrary key-value pairs as JSON object',
|
|
249
|
+
description: 'Arbitrary key-value pairs as JSON object.',
|
|
250
250
|
},
|
|
251
251
|
{
|
|
252
252
|
displayName: 'Namespace',
|
|
253
253
|
name: 'namespace',
|
|
254
254
|
type: 'string',
|
|
255
255
|
default: '',
|
|
256
|
-
description: 'Free-form grouping label for organizing memories',
|
|
256
|
+
description: 'Free-form grouping label for organizing memories.',
|
|
257
257
|
},
|
|
258
258
|
{
|
|
259
259
|
displayName: 'Tags',
|
|
260
260
|
name: 'tags',
|
|
261
261
|
type: 'string',
|
|
262
262
|
default: '',
|
|
263
|
-
description: 'Comma-separated list of tags for categorical filtering (max 20 tags, 64 chars each)',
|
|
263
|
+
description: 'Comma-separated list of tags for categorical filtering (max 20 tags, 64 chars each).',
|
|
264
264
|
},
|
|
265
265
|
{
|
|
266
266
|
displayName: 'TTL (Seconds)',
|
|
@@ -287,7 +287,7 @@ class Retainr {
|
|
|
287
287
|
required: true,
|
|
288
288
|
default: '',
|
|
289
289
|
placeholder: "What are this user's preferences?",
|
|
290
|
-
description: 'Natural language query for semantic search',
|
|
290
|
+
description: 'Natural language query for semantic search.',
|
|
291
291
|
displayOptions: {
|
|
292
292
|
show: {
|
|
293
293
|
resource: ['memory'],
|
|
@@ -313,7 +313,7 @@ class Retainr {
|
|
|
313
313
|
name: 'agentId',
|
|
314
314
|
type: 'string',
|
|
315
315
|
default: '',
|
|
316
|
-
description: 'Filter by agent ID',
|
|
316
|
+
description: 'Filter by agent ID.',
|
|
317
317
|
},
|
|
318
318
|
{
|
|
319
319
|
displayName: 'Limit',
|
|
@@ -323,14 +323,14 @@ class Retainr {
|
|
|
323
323
|
minValue: 1,
|
|
324
324
|
},
|
|
325
325
|
default: 50,
|
|
326
|
-
description: 'Max number of results to return',
|
|
326
|
+
description: 'Max number of results to return.',
|
|
327
327
|
},
|
|
328
328
|
{
|
|
329
329
|
displayName: 'Namespace',
|
|
330
330
|
name: 'namespace',
|
|
331
331
|
type: 'string',
|
|
332
332
|
default: '',
|
|
333
|
-
description: 'Filter by namespace',
|
|
333
|
+
description: 'Filter by namespace.',
|
|
334
334
|
},
|
|
335
335
|
{
|
|
336
336
|
displayName: 'Scope',
|
|
@@ -343,21 +343,21 @@ class Retainr {
|
|
|
343
343
|
{ name: 'Global', value: 'global' },
|
|
344
344
|
],
|
|
345
345
|
default: 'user',
|
|
346
|
-
description: 'Filter by scope',
|
|
346
|
+
description: 'Filter by scope.',
|
|
347
347
|
},
|
|
348
348
|
{
|
|
349
349
|
displayName: 'Session ID',
|
|
350
350
|
name: 'sessionId',
|
|
351
351
|
type: 'string',
|
|
352
352
|
default: '',
|
|
353
|
-
description: 'Filter by session ID',
|
|
353
|
+
description: 'Filter by session ID.',
|
|
354
354
|
},
|
|
355
355
|
{
|
|
356
356
|
displayName: 'Tags',
|
|
357
357
|
name: 'tags',
|
|
358
358
|
type: 'string',
|
|
359
359
|
default: '',
|
|
360
|
-
description: 'Comma-separated list of tags to filter by',
|
|
360
|
+
description: 'Comma-separated list of tags to filter by.',
|
|
361
361
|
},
|
|
362
362
|
{
|
|
363
363
|
displayName: 'Threshold',
|
|
@@ -368,14 +368,14 @@ class Retainr {
|
|
|
368
368
|
numberPrecision: 2,
|
|
369
369
|
},
|
|
370
370
|
default: 0.5,
|
|
371
|
-
description: 'Minimum similarity threshold (0-1)',
|
|
371
|
+
description: 'Minimum similarity threshold (0-1).',
|
|
372
372
|
},
|
|
373
373
|
{
|
|
374
374
|
displayName: 'User ID',
|
|
375
375
|
name: 'userId',
|
|
376
376
|
type: 'string',
|
|
377
377
|
default: '',
|
|
378
|
-
description: 'Filter by user ID',
|
|
378
|
+
description: 'Filter by user ID.',
|
|
379
379
|
},
|
|
380
380
|
],
|
|
381
381
|
},
|
|
@@ -392,7 +392,7 @@ class Retainr {
|
|
|
392
392
|
required: true,
|
|
393
393
|
default: '',
|
|
394
394
|
placeholder: 'Summarize what we know about this customer',
|
|
395
|
-
description: 'Natural language query to retrieve relevant context',
|
|
395
|
+
description: 'Natural language query to retrieve relevant context.',
|
|
396
396
|
displayOptions: {
|
|
397
397
|
show: {
|
|
398
398
|
resource: ['memory'],
|
|
@@ -405,22 +405,22 @@ class Retainr {
|
|
|
405
405
|
name: 'format',
|
|
406
406
|
type: 'options',
|
|
407
407
|
default: 'system_prompt',
|
|
408
|
-
description: 'Output format for the context block',
|
|
408
|
+
description: 'Output format for the context block.',
|
|
409
409
|
options: [
|
|
410
410
|
{
|
|
411
411
|
name: 'System Prompt',
|
|
412
412
|
value: 'system_prompt',
|
|
413
|
-
description: 'Formatted as an LLM system prompt with header',
|
|
413
|
+
description: 'Formatted as an LLM system prompt with header.',
|
|
414
414
|
},
|
|
415
415
|
{
|
|
416
416
|
name: 'Bullet List',
|
|
417
417
|
value: 'bullet_list',
|
|
418
|
-
description: 'Simple bulleted list of memories',
|
|
418
|
+
description: 'Simple bulleted list of memories.',
|
|
419
419
|
},
|
|
420
420
|
{
|
|
421
421
|
name: 'Numbered List',
|
|
422
422
|
value: 'numbered_list',
|
|
423
|
-
description: 'Numbered list of memories',
|
|
423
|
+
description: 'Numbered list of memories.',
|
|
424
424
|
},
|
|
425
425
|
],
|
|
426
426
|
displayOptions: {
|
|
@@ -448,7 +448,7 @@ class Retainr {
|
|
|
448
448
|
name: 'agentId',
|
|
449
449
|
type: 'string',
|
|
450
450
|
default: '',
|
|
451
|
-
description: 'Filter by agent ID',
|
|
451
|
+
description: 'Filter by agent ID.',
|
|
452
452
|
},
|
|
453
453
|
{
|
|
454
454
|
displayName: 'Max Memories',
|
|
@@ -458,14 +458,14 @@ class Retainr {
|
|
|
458
458
|
minValue: 1,
|
|
459
459
|
},
|
|
460
460
|
default: 5,
|
|
461
|
-
description: 'Maximum number of memories to include in the context (API max 20)',
|
|
461
|
+
description: 'Maximum number of memories to include in the context (API max 20).',
|
|
462
462
|
},
|
|
463
463
|
{
|
|
464
464
|
displayName: 'Namespace',
|
|
465
465
|
name: 'namespace',
|
|
466
466
|
type: 'string',
|
|
467
467
|
default: '',
|
|
468
|
-
description: 'Filter by namespace',
|
|
468
|
+
description: 'Filter by namespace.',
|
|
469
469
|
},
|
|
470
470
|
{
|
|
471
471
|
displayName: 'Scope',
|
|
@@ -478,21 +478,21 @@ class Retainr {
|
|
|
478
478
|
{ name: 'Global', value: 'global' },
|
|
479
479
|
],
|
|
480
480
|
default: 'user',
|
|
481
|
-
description: 'Filter by scope',
|
|
481
|
+
description: 'Filter by scope.',
|
|
482
482
|
},
|
|
483
483
|
{
|
|
484
484
|
displayName: 'Session ID',
|
|
485
485
|
name: 'sessionId',
|
|
486
486
|
type: 'string',
|
|
487
487
|
default: '',
|
|
488
|
-
description: 'Filter by session ID',
|
|
488
|
+
description: 'Filter by session ID.',
|
|
489
489
|
},
|
|
490
490
|
{
|
|
491
491
|
displayName: 'Tags',
|
|
492
492
|
name: 'tags',
|
|
493
493
|
type: 'string',
|
|
494
494
|
default: '',
|
|
495
|
-
description: 'Comma-separated list of tags to filter by',
|
|
495
|
+
description: 'Comma-separated list of tags to filter by.',
|
|
496
496
|
},
|
|
497
497
|
{
|
|
498
498
|
displayName: 'Threshold',
|
|
@@ -503,14 +503,14 @@ class Retainr {
|
|
|
503
503
|
numberPrecision: 2,
|
|
504
504
|
},
|
|
505
505
|
default: 0.35,
|
|
506
|
-
description: 'Minimum similarity threshold (0-1)',
|
|
506
|
+
description: 'Minimum similarity threshold (0-1).',
|
|
507
507
|
},
|
|
508
508
|
{
|
|
509
509
|
displayName: 'User ID',
|
|
510
510
|
name: 'userId',
|
|
511
511
|
type: 'string',
|
|
512
512
|
default: '',
|
|
513
|
-
description: 'Filter by user ID',
|
|
513
|
+
description: 'Filter by user ID.',
|
|
514
514
|
},
|
|
515
515
|
],
|
|
516
516
|
},
|
|
@@ -535,7 +535,7 @@ class Retainr {
|
|
|
535
535
|
name: 'agentId',
|
|
536
536
|
type: 'string',
|
|
537
537
|
default: '',
|
|
538
|
-
description: 'Filter by agent ID',
|
|
538
|
+
description: 'Filter by agent ID.',
|
|
539
539
|
},
|
|
540
540
|
{
|
|
541
541
|
displayName: 'Limit',
|
|
@@ -545,14 +545,14 @@ class Retainr {
|
|
|
545
545
|
minValue: 1,
|
|
546
546
|
},
|
|
547
547
|
default: 50,
|
|
548
|
-
description: 'Max number of results to return',
|
|
548
|
+
description: 'Max number of results to return.',
|
|
549
549
|
},
|
|
550
550
|
{
|
|
551
551
|
displayName: 'Namespace',
|
|
552
552
|
name: 'namespace',
|
|
553
553
|
type: 'string',
|
|
554
554
|
default: '',
|
|
555
|
-
description: 'Filter by namespace',
|
|
555
|
+
description: 'Filter by namespace.',
|
|
556
556
|
},
|
|
557
557
|
{
|
|
558
558
|
displayName: 'Offset',
|
|
@@ -562,7 +562,7 @@ class Retainr {
|
|
|
562
562
|
minValue: 0,
|
|
563
563
|
},
|
|
564
564
|
default: 0,
|
|
565
|
-
description: 'Pagination offset',
|
|
565
|
+
description: 'Pagination offset.',
|
|
566
566
|
},
|
|
567
567
|
{
|
|
568
568
|
displayName: 'Scope',
|
|
@@ -575,28 +575,28 @@ class Retainr {
|
|
|
575
575
|
{ name: 'Global', value: 'global' },
|
|
576
576
|
],
|
|
577
577
|
default: 'user',
|
|
578
|
-
description: 'Filter by scope',
|
|
578
|
+
description: 'Filter by scope.',
|
|
579
579
|
},
|
|
580
580
|
{
|
|
581
581
|
displayName: 'Session ID',
|
|
582
582
|
name: 'sessionId',
|
|
583
583
|
type: 'string',
|
|
584
584
|
default: '',
|
|
585
|
-
description: 'Filter by session ID',
|
|
585
|
+
description: 'Filter by session ID.',
|
|
586
586
|
},
|
|
587
587
|
{
|
|
588
588
|
displayName: 'Tags',
|
|
589
589
|
name: 'tags',
|
|
590
590
|
type: 'string',
|
|
591
591
|
default: '',
|
|
592
|
-
description: 'Comma-separated list of tags to filter by',
|
|
592
|
+
description: 'Comma-separated list of tags to filter by.',
|
|
593
593
|
},
|
|
594
594
|
{
|
|
595
595
|
displayName: 'User ID',
|
|
596
596
|
name: 'userId',
|
|
597
597
|
type: 'string',
|
|
598
598
|
default: '',
|
|
599
|
-
description: 'Filter by user ID',
|
|
599
|
+
description: 'Filter by user ID.',
|
|
600
600
|
},
|
|
601
601
|
],
|
|
602
602
|
},
|
|
@@ -640,28 +640,28 @@ class Retainr {
|
|
|
640
640
|
name: 'agentId',
|
|
641
641
|
type: 'string',
|
|
642
642
|
default: '',
|
|
643
|
-
description: 'Filter by agent ID',
|
|
643
|
+
description: 'Filter by agent ID.',
|
|
644
644
|
},
|
|
645
645
|
{
|
|
646
646
|
displayName: 'Namespace',
|
|
647
647
|
name: 'namespace',
|
|
648
648
|
type: 'string',
|
|
649
649
|
default: '',
|
|
650
|
-
description: 'Filter by namespace',
|
|
650
|
+
description: 'Filter by namespace.',
|
|
651
651
|
},
|
|
652
652
|
{
|
|
653
653
|
displayName: 'Session ID',
|
|
654
654
|
name: 'sessionId',
|
|
655
655
|
type: 'string',
|
|
656
656
|
default: '',
|
|
657
|
-
description: 'Filter by session ID',
|
|
657
|
+
description: 'Filter by session ID.',
|
|
658
658
|
},
|
|
659
659
|
{
|
|
660
660
|
displayName: 'User ID',
|
|
661
661
|
name: 'userId',
|
|
662
662
|
type: 'string',
|
|
663
663
|
default: '',
|
|
664
|
-
description: 'Filter by user ID',
|
|
664
|
+
description: 'Filter by user ID.',
|
|
665
665
|
},
|
|
666
666
|
],
|
|
667
667
|
},
|