@little-samo/samo-ai-sdk 0.1.4-rv1 → 0.1.4-rv3

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.
@@ -1,3 +1,4 @@
1
+ import { LocationId } from '@little-samo/samo-ai/models';
1
2
  import { AgentConfig } from '@little-samo/samo-ai-sdk/models';
2
3
  import { z } from 'zod';
3
4
  import { AgentCostDto, AgentPrivateDto, AgentPublicDto } from './agent';
@@ -40,7 +41,7 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
40
41
  agentId: z.ZodBigInt;
41
42
  config: z.ZodObject<{
42
43
  name: z.ZodOptional<z.ZodString>;
43
- avatar: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[], z.ZodString]>>;
44
+ avatar: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[], z.ZodString, z.ZodString]>>;
44
45
  appearance: z.ZodOptional<z.ZodString>;
45
46
  core: z.ZodOptional<z.ZodObject<{
46
47
  name: z.ZodUnion<[z.ZodLiteral<"evaluate_and_actions">, z.ZodLiteral<"execute_actions">, z.ZodLiteral<"response_every_message">]>;
@@ -49,12 +50,99 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
49
50
  }, {
50
51
  name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
51
52
  }>>;
52
- llmPreset: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"gemini-low">, z.ZodLiteral<"gemini-medium">, z.ZodLiteral<"openai-low">, z.ZodLiteral<"openai-medium">]>>;
53
+ llmPreset: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"gemini-low">, z.ZodLiteral<"gemini-medium">, z.ZodLiteral<"gemini-high">, z.ZodLiteral<"openai-low">, z.ZodLiteral<"openai-medium">]>>;
53
54
  languages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
54
55
  timeZone: z.ZodOptional<z.ZodString>;
55
56
  greeting: z.ZodOptional<z.ZodString>;
56
57
  actions: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodLiteral<"todo">, z.ZodLiteral<"todo">]>, "many">>;
57
- character: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>>;
58
+ character: z.ZodOptional<z.ZodObject<{
59
+ background: z.ZodOptional<z.ZodObject<{
60
+ role: z.ZodOptional<z.ZodString>;
61
+ gender: z.ZodOptional<z.ZodString>;
62
+ expertise: z.ZodOptional<z.ZodString>;
63
+ backstory: z.ZodOptional<z.ZodString>;
64
+ }, "strip", z.ZodTypeAny, {
65
+ role?: string | undefined;
66
+ gender?: string | undefined;
67
+ expertise?: string | undefined;
68
+ backstory?: string | undefined;
69
+ }, {
70
+ role?: string | undefined;
71
+ gender?: string | undefined;
72
+ expertise?: string | undefined;
73
+ backstory?: string | undefined;
74
+ }>>;
75
+ speech: z.ZodOptional<z.ZodObject<{
76
+ tone: z.ZodOptional<z.ZodString>;
77
+ style: z.ZodOptional<z.ZodString>;
78
+ formality: z.ZodOptional<z.ZodString>;
79
+ }, "strip", z.ZodTypeAny, {
80
+ tone?: string | undefined;
81
+ style?: string | undefined;
82
+ formality?: string | undefined;
83
+ }, {
84
+ tone?: string | undefined;
85
+ style?: string | undefined;
86
+ formality?: string | undefined;
87
+ }>>;
88
+ personality: z.ZodOptional<z.ZodObject<{
89
+ traits: z.ZodOptional<z.ZodString>;
90
+ interests: z.ZodOptional<z.ZodString>;
91
+ values: z.ZodOptional<z.ZodString>;
92
+ quirks: z.ZodOptional<z.ZodString>;
93
+ mbti: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"INTJ">, z.ZodLiteral<"INTP">, z.ZodLiteral<"ENTJ">, z.ZodLiteral<"ENTP">, z.ZodLiteral<"INFJ">, z.ZodLiteral<"INFP">, z.ZodLiteral<"ENFJ">, z.ZodLiteral<"ENFP">, z.ZodLiteral<"ISTJ">, z.ZodLiteral<"ISFJ">, z.ZodLiteral<"ESTJ">, z.ZodLiteral<"ESFJ">, z.ZodLiteral<"ISTP">, z.ZodLiteral<"ISFP">, z.ZodLiteral<"ESTP">, z.ZodLiteral<"ESFP">]>>;
94
+ }, "strip", z.ZodTypeAny, {
95
+ values?: string | undefined;
96
+ traits?: string | undefined;
97
+ interests?: string | undefined;
98
+ quirks?: string | undefined;
99
+ mbti?: "INTJ" | "INTP" | "ENTJ" | "ENTP" | "INFJ" | "INFP" | "ENFJ" | "ENFP" | "ISTJ" | "ISFJ" | "ESTJ" | "ESFJ" | "ISTP" | "ISFP" | "ESTP" | "ESFP" | undefined;
100
+ }, {
101
+ values?: string | undefined;
102
+ traits?: string | undefined;
103
+ interests?: string | undefined;
104
+ quirks?: string | undefined;
105
+ mbti?: "INTJ" | "INTP" | "ENTJ" | "ENTP" | "INFJ" | "INFP" | "ENFJ" | "ENFP" | "ISTJ" | "ISFJ" | "ESTJ" | "ESFJ" | "ISTP" | "ISFP" | "ESTP" | "ESFP" | undefined;
106
+ }>>;
107
+ }, "strip", z.ZodTypeAny, {
108
+ background?: {
109
+ role?: string | undefined;
110
+ gender?: string | undefined;
111
+ expertise?: string | undefined;
112
+ backstory?: string | undefined;
113
+ } | undefined;
114
+ speech?: {
115
+ tone?: string | undefined;
116
+ style?: string | undefined;
117
+ formality?: string | undefined;
118
+ } | undefined;
119
+ personality?: {
120
+ values?: string | undefined;
121
+ traits?: string | undefined;
122
+ interests?: string | undefined;
123
+ quirks?: string | undefined;
124
+ mbti?: "INTJ" | "INTP" | "ENTJ" | "ENTP" | "INFJ" | "INFP" | "ENFJ" | "ENFP" | "ISTJ" | "ISFJ" | "ESTJ" | "ESFJ" | "ISTP" | "ISFP" | "ESTP" | "ESFP" | undefined;
125
+ } | undefined;
126
+ }, {
127
+ background?: {
128
+ role?: string | undefined;
129
+ gender?: string | undefined;
130
+ expertise?: string | undefined;
131
+ backstory?: string | undefined;
132
+ } | undefined;
133
+ speech?: {
134
+ tone?: string | undefined;
135
+ style?: string | undefined;
136
+ formality?: string | undefined;
137
+ } | undefined;
138
+ personality?: {
139
+ values?: string | undefined;
140
+ traits?: string | undefined;
141
+ interests?: string | undefined;
142
+ quirks?: string | undefined;
143
+ mbti?: "INTJ" | "INTP" | "ENTJ" | "ENTP" | "INFJ" | "INFP" | "ENFJ" | "ENFP" | "ISTJ" | "ISFJ" | "ESTJ" | "ESFJ" | "ISTP" | "ISFP" | "ESTP" | "ESFP" | undefined;
144
+ } | undefined;
145
+ }>>;
58
146
  rules: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
59
147
  }, "strict", z.ZodTypeAny, {
60
148
  name?: string | undefined;
@@ -63,12 +151,31 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
63
151
  core?: {
64
152
  name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
65
153
  } | undefined;
66
- llmPreset?: "gemini-low" | "gemini-medium" | "openai-low" | "openai-medium" | undefined;
154
+ llmPreset?: "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | undefined;
67
155
  languages?: string[] | undefined;
68
156
  timeZone?: string | undefined;
69
157
  greeting?: string | undefined;
70
158
  actions?: "todo"[] | undefined;
71
- character?: Record<string, Record<string, string>> | undefined;
159
+ character?: {
160
+ background?: {
161
+ role?: string | undefined;
162
+ gender?: string | undefined;
163
+ expertise?: string | undefined;
164
+ backstory?: string | undefined;
165
+ } | undefined;
166
+ speech?: {
167
+ tone?: string | undefined;
168
+ style?: string | undefined;
169
+ formality?: string | undefined;
170
+ } | undefined;
171
+ personality?: {
172
+ values?: string | undefined;
173
+ traits?: string | undefined;
174
+ interests?: string | undefined;
175
+ quirks?: string | undefined;
176
+ mbti?: "INTJ" | "INTP" | "ENTJ" | "ENTP" | "INFJ" | "INFP" | "ENFJ" | "ENFP" | "ISTJ" | "ISFJ" | "ESTJ" | "ESFJ" | "ISTP" | "ISFP" | "ESTP" | "ESFP" | undefined;
177
+ } | undefined;
178
+ } | undefined;
72
179
  rules?: string[] | undefined;
73
180
  }, {
74
181
  name?: string | undefined;
@@ -77,12 +184,31 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
77
184
  core?: {
78
185
  name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
79
186
  } | undefined;
80
- llmPreset?: "gemini-low" | "gemini-medium" | "openai-low" | "openai-medium" | undefined;
187
+ llmPreset?: "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | undefined;
81
188
  languages?: string[] | undefined;
82
189
  timeZone?: string | undefined;
83
190
  greeting?: string | undefined;
84
191
  actions?: "todo"[] | undefined;
85
- character?: Record<string, Record<string, string>> | undefined;
192
+ character?: {
193
+ background?: {
194
+ role?: string | undefined;
195
+ gender?: string | undefined;
196
+ expertise?: string | undefined;
197
+ backstory?: string | undefined;
198
+ } | undefined;
199
+ speech?: {
200
+ tone?: string | undefined;
201
+ style?: string | undefined;
202
+ formality?: string | undefined;
203
+ } | undefined;
204
+ personality?: {
205
+ values?: string | undefined;
206
+ traits?: string | undefined;
207
+ interests?: string | undefined;
208
+ quirks?: string | undefined;
209
+ mbti?: "INTJ" | "INTP" | "ENTJ" | "ENTP" | "INFJ" | "INFP" | "ENFJ" | "ENFP" | "ISTJ" | "ISFJ" | "ESTJ" | "ESFJ" | "ISTP" | "ISFP" | "ESTP" | "ESFP" | undefined;
210
+ } | undefined;
211
+ } | undefined;
86
212
  rules?: string[] | undefined;
87
213
  }>;
88
214
  }, "strip", z.ZodTypeAny, {
@@ -93,12 +219,31 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
93
219
  core?: {
94
220
  name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
95
221
  } | undefined;
96
- llmPreset?: "gemini-low" | "gemini-medium" | "openai-low" | "openai-medium" | undefined;
222
+ llmPreset?: "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | undefined;
97
223
  languages?: string[] | undefined;
98
224
  timeZone?: string | undefined;
99
225
  greeting?: string | undefined;
100
226
  actions?: "todo"[] | undefined;
101
- character?: Record<string, Record<string, string>> | undefined;
227
+ character?: {
228
+ background?: {
229
+ role?: string | undefined;
230
+ gender?: string | undefined;
231
+ expertise?: string | undefined;
232
+ backstory?: string | undefined;
233
+ } | undefined;
234
+ speech?: {
235
+ tone?: string | undefined;
236
+ style?: string | undefined;
237
+ formality?: string | undefined;
238
+ } | undefined;
239
+ personality?: {
240
+ values?: string | undefined;
241
+ traits?: string | undefined;
242
+ interests?: string | undefined;
243
+ quirks?: string | undefined;
244
+ mbti?: "INTJ" | "INTP" | "ENTJ" | "ENTP" | "INFJ" | "INFP" | "ENFJ" | "ENFP" | "ISTJ" | "ISFJ" | "ESTJ" | "ESFJ" | "ISTP" | "ISFP" | "ESTP" | "ESFP" | undefined;
245
+ } | undefined;
246
+ } | undefined;
102
247
  rules?: string[] | undefined;
103
248
  };
104
249
  agentId: bigint;
@@ -110,12 +255,31 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
110
255
  core?: {
111
256
  name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
112
257
  } | undefined;
113
- llmPreset?: "gemini-low" | "gemini-medium" | "openai-low" | "openai-medium" | undefined;
258
+ llmPreset?: "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | undefined;
114
259
  languages?: string[] | undefined;
115
260
  timeZone?: string | undefined;
116
261
  greeting?: string | undefined;
117
262
  actions?: "todo"[] | undefined;
118
- character?: Record<string, Record<string, string>> | undefined;
263
+ character?: {
264
+ background?: {
265
+ role?: string | undefined;
266
+ gender?: string | undefined;
267
+ expertise?: string | undefined;
268
+ backstory?: string | undefined;
269
+ } | undefined;
270
+ speech?: {
271
+ tone?: string | undefined;
272
+ style?: string | undefined;
273
+ formality?: string | undefined;
274
+ } | undefined;
275
+ personality?: {
276
+ values?: string | undefined;
277
+ traits?: string | undefined;
278
+ interests?: string | undefined;
279
+ quirks?: string | undefined;
280
+ mbti?: "INTJ" | "INTP" | "ENTJ" | "ENTP" | "INFJ" | "INFP" | "ENFJ" | "ENFP" | "ISTJ" | "ISFJ" | "ESTJ" | "ESFJ" | "ISTP" | "ISFP" | "ESTP" | "ESFP" | undefined;
281
+ } | undefined;
282
+ } | undefined;
119
283
  rules?: string[] | undefined;
120
284
  };
121
285
  agentId: bigint;
@@ -215,7 +379,7 @@ export interface AgentPresetsPaginatedResponseDto {
215
379
  export declare const CreateAgentSchema: z.ZodObject<{
216
380
  config: z.ZodObject<{
217
381
  name: z.ZodOptional<z.ZodString>;
218
- avatar: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[], z.ZodString]>>;
382
+ avatar: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[], z.ZodString, z.ZodString]>>;
219
383
  appearance: z.ZodOptional<z.ZodString>;
220
384
  core: z.ZodOptional<z.ZodObject<{
221
385
  name: z.ZodUnion<[z.ZodLiteral<"evaluate_and_actions">, z.ZodLiteral<"execute_actions">, z.ZodLiteral<"response_every_message">]>;
@@ -224,12 +388,99 @@ export declare const CreateAgentSchema: z.ZodObject<{
224
388
  }, {
225
389
  name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
226
390
  }>>;
227
- llmPreset: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"gemini-low">, z.ZodLiteral<"gemini-medium">, z.ZodLiteral<"openai-low">, z.ZodLiteral<"openai-medium">]>>;
391
+ llmPreset: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"gemini-low">, z.ZodLiteral<"gemini-medium">, z.ZodLiteral<"gemini-high">, z.ZodLiteral<"openai-low">, z.ZodLiteral<"openai-medium">]>>;
228
392
  languages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
229
393
  timeZone: z.ZodOptional<z.ZodString>;
230
394
  greeting: z.ZodOptional<z.ZodString>;
231
395
  actions: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodLiteral<"todo">, z.ZodLiteral<"todo">]>, "many">>;
232
- character: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>>;
396
+ character: z.ZodOptional<z.ZodObject<{
397
+ background: z.ZodOptional<z.ZodObject<{
398
+ role: z.ZodOptional<z.ZodString>;
399
+ gender: z.ZodOptional<z.ZodString>;
400
+ expertise: z.ZodOptional<z.ZodString>;
401
+ backstory: z.ZodOptional<z.ZodString>;
402
+ }, "strip", z.ZodTypeAny, {
403
+ role?: string | undefined;
404
+ gender?: string | undefined;
405
+ expertise?: string | undefined;
406
+ backstory?: string | undefined;
407
+ }, {
408
+ role?: string | undefined;
409
+ gender?: string | undefined;
410
+ expertise?: string | undefined;
411
+ backstory?: string | undefined;
412
+ }>>;
413
+ speech: z.ZodOptional<z.ZodObject<{
414
+ tone: z.ZodOptional<z.ZodString>;
415
+ style: z.ZodOptional<z.ZodString>;
416
+ formality: z.ZodOptional<z.ZodString>;
417
+ }, "strip", z.ZodTypeAny, {
418
+ tone?: string | undefined;
419
+ style?: string | undefined;
420
+ formality?: string | undefined;
421
+ }, {
422
+ tone?: string | undefined;
423
+ style?: string | undefined;
424
+ formality?: string | undefined;
425
+ }>>;
426
+ personality: z.ZodOptional<z.ZodObject<{
427
+ traits: z.ZodOptional<z.ZodString>;
428
+ interests: z.ZodOptional<z.ZodString>;
429
+ values: z.ZodOptional<z.ZodString>;
430
+ quirks: z.ZodOptional<z.ZodString>;
431
+ mbti: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"INTJ">, z.ZodLiteral<"INTP">, z.ZodLiteral<"ENTJ">, z.ZodLiteral<"ENTP">, z.ZodLiteral<"INFJ">, z.ZodLiteral<"INFP">, z.ZodLiteral<"ENFJ">, z.ZodLiteral<"ENFP">, z.ZodLiteral<"ISTJ">, z.ZodLiteral<"ISFJ">, z.ZodLiteral<"ESTJ">, z.ZodLiteral<"ESFJ">, z.ZodLiteral<"ISTP">, z.ZodLiteral<"ISFP">, z.ZodLiteral<"ESTP">, z.ZodLiteral<"ESFP">]>>;
432
+ }, "strip", z.ZodTypeAny, {
433
+ values?: string | undefined;
434
+ traits?: string | undefined;
435
+ interests?: string | undefined;
436
+ quirks?: string | undefined;
437
+ mbti?: "INTJ" | "INTP" | "ENTJ" | "ENTP" | "INFJ" | "INFP" | "ENFJ" | "ENFP" | "ISTJ" | "ISFJ" | "ESTJ" | "ESFJ" | "ISTP" | "ISFP" | "ESTP" | "ESFP" | undefined;
438
+ }, {
439
+ values?: string | undefined;
440
+ traits?: string | undefined;
441
+ interests?: string | undefined;
442
+ quirks?: string | undefined;
443
+ mbti?: "INTJ" | "INTP" | "ENTJ" | "ENTP" | "INFJ" | "INFP" | "ENFJ" | "ENFP" | "ISTJ" | "ISFJ" | "ESTJ" | "ESFJ" | "ISTP" | "ISFP" | "ESTP" | "ESFP" | undefined;
444
+ }>>;
445
+ }, "strip", z.ZodTypeAny, {
446
+ background?: {
447
+ role?: string | undefined;
448
+ gender?: string | undefined;
449
+ expertise?: string | undefined;
450
+ backstory?: string | undefined;
451
+ } | undefined;
452
+ speech?: {
453
+ tone?: string | undefined;
454
+ style?: string | undefined;
455
+ formality?: string | undefined;
456
+ } | undefined;
457
+ personality?: {
458
+ values?: string | undefined;
459
+ traits?: string | undefined;
460
+ interests?: string | undefined;
461
+ quirks?: string | undefined;
462
+ mbti?: "INTJ" | "INTP" | "ENTJ" | "ENTP" | "INFJ" | "INFP" | "ENFJ" | "ENFP" | "ISTJ" | "ISFJ" | "ESTJ" | "ESFJ" | "ISTP" | "ISFP" | "ESTP" | "ESFP" | undefined;
463
+ } | undefined;
464
+ }, {
465
+ background?: {
466
+ role?: string | undefined;
467
+ gender?: string | undefined;
468
+ expertise?: string | undefined;
469
+ backstory?: string | undefined;
470
+ } | undefined;
471
+ speech?: {
472
+ tone?: string | undefined;
473
+ style?: string | undefined;
474
+ formality?: string | undefined;
475
+ } | undefined;
476
+ personality?: {
477
+ values?: string | undefined;
478
+ traits?: string | undefined;
479
+ interests?: string | undefined;
480
+ quirks?: string | undefined;
481
+ mbti?: "INTJ" | "INTP" | "ENTJ" | "ENTP" | "INFJ" | "INFP" | "ENFJ" | "ENFP" | "ISTJ" | "ISFJ" | "ESTJ" | "ESFJ" | "ISTP" | "ISFP" | "ESTP" | "ESFP" | undefined;
482
+ } | undefined;
483
+ }>>;
233
484
  rules: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
234
485
  }, "strict", z.ZodTypeAny, {
235
486
  name?: string | undefined;
@@ -238,12 +489,31 @@ export declare const CreateAgentSchema: z.ZodObject<{
238
489
  core?: {
239
490
  name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
240
491
  } | undefined;
241
- llmPreset?: "gemini-low" | "gemini-medium" | "openai-low" | "openai-medium" | undefined;
492
+ llmPreset?: "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | undefined;
242
493
  languages?: string[] | undefined;
243
494
  timeZone?: string | undefined;
244
495
  greeting?: string | undefined;
245
496
  actions?: "todo"[] | undefined;
246
- character?: Record<string, Record<string, string>> | undefined;
497
+ character?: {
498
+ background?: {
499
+ role?: string | undefined;
500
+ gender?: string | undefined;
501
+ expertise?: string | undefined;
502
+ backstory?: string | undefined;
503
+ } | undefined;
504
+ speech?: {
505
+ tone?: string | undefined;
506
+ style?: string | undefined;
507
+ formality?: string | undefined;
508
+ } | undefined;
509
+ personality?: {
510
+ values?: string | undefined;
511
+ traits?: string | undefined;
512
+ interests?: string | undefined;
513
+ quirks?: string | undefined;
514
+ mbti?: "INTJ" | "INTP" | "ENTJ" | "ENTP" | "INFJ" | "INFP" | "ENFJ" | "ENFP" | "ISTJ" | "ISFJ" | "ESTJ" | "ESFJ" | "ISTP" | "ISFP" | "ESTP" | "ESFP" | undefined;
515
+ } | undefined;
516
+ } | undefined;
247
517
  rules?: string[] | undefined;
248
518
  }, {
249
519
  name?: string | undefined;
@@ -252,12 +522,31 @@ export declare const CreateAgentSchema: z.ZodObject<{
252
522
  core?: {
253
523
  name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
254
524
  } | undefined;
255
- llmPreset?: "gemini-low" | "gemini-medium" | "openai-low" | "openai-medium" | undefined;
525
+ llmPreset?: "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | undefined;
256
526
  languages?: string[] | undefined;
257
527
  timeZone?: string | undefined;
258
528
  greeting?: string | undefined;
259
529
  actions?: "todo"[] | undefined;
260
- character?: Record<string, Record<string, string>> | undefined;
530
+ character?: {
531
+ background?: {
532
+ role?: string | undefined;
533
+ gender?: string | undefined;
534
+ expertise?: string | undefined;
535
+ backstory?: string | undefined;
536
+ } | undefined;
537
+ speech?: {
538
+ tone?: string | undefined;
539
+ style?: string | undefined;
540
+ formality?: string | undefined;
541
+ } | undefined;
542
+ personality?: {
543
+ values?: string | undefined;
544
+ traits?: string | undefined;
545
+ interests?: string | undefined;
546
+ quirks?: string | undefined;
547
+ mbti?: "INTJ" | "INTP" | "ENTJ" | "ENTP" | "INFJ" | "INFP" | "ENFJ" | "ENFP" | "ISTJ" | "ISFJ" | "ESTJ" | "ESFJ" | "ISTP" | "ISFP" | "ESTP" | "ESFP" | undefined;
548
+ } | undefined;
549
+ } | undefined;
261
550
  rules?: string[] | undefined;
262
551
  }>;
263
552
  }, "strip", z.ZodTypeAny, {
@@ -268,12 +557,31 @@ export declare const CreateAgentSchema: z.ZodObject<{
268
557
  core?: {
269
558
  name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
270
559
  } | undefined;
271
- llmPreset?: "gemini-low" | "gemini-medium" | "openai-low" | "openai-medium" | undefined;
560
+ llmPreset?: "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | undefined;
272
561
  languages?: string[] | undefined;
273
562
  timeZone?: string | undefined;
274
563
  greeting?: string | undefined;
275
564
  actions?: "todo"[] | undefined;
276
- character?: Record<string, Record<string, string>> | undefined;
565
+ character?: {
566
+ background?: {
567
+ role?: string | undefined;
568
+ gender?: string | undefined;
569
+ expertise?: string | undefined;
570
+ backstory?: string | undefined;
571
+ } | undefined;
572
+ speech?: {
573
+ tone?: string | undefined;
574
+ style?: string | undefined;
575
+ formality?: string | undefined;
576
+ } | undefined;
577
+ personality?: {
578
+ values?: string | undefined;
579
+ traits?: string | undefined;
580
+ interests?: string | undefined;
581
+ quirks?: string | undefined;
582
+ mbti?: "INTJ" | "INTP" | "ENTJ" | "ENTP" | "INFJ" | "INFP" | "ENFJ" | "ENFP" | "ISTJ" | "ISFJ" | "ESTJ" | "ESFJ" | "ISTP" | "ISFP" | "ESTP" | "ESFP" | undefined;
583
+ } | undefined;
584
+ } | undefined;
277
585
  rules?: string[] | undefined;
278
586
  };
279
587
  }, {
@@ -284,12 +592,31 @@ export declare const CreateAgentSchema: z.ZodObject<{
284
592
  core?: {
285
593
  name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
286
594
  } | undefined;
287
- llmPreset?: "gemini-low" | "gemini-medium" | "openai-low" | "openai-medium" | undefined;
595
+ llmPreset?: "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | undefined;
288
596
  languages?: string[] | undefined;
289
597
  timeZone?: string | undefined;
290
598
  greeting?: string | undefined;
291
599
  actions?: "todo"[] | undefined;
292
- character?: Record<string, Record<string, string>> | undefined;
600
+ character?: {
601
+ background?: {
602
+ role?: string | undefined;
603
+ gender?: string | undefined;
604
+ expertise?: string | undefined;
605
+ backstory?: string | undefined;
606
+ } | undefined;
607
+ speech?: {
608
+ tone?: string | undefined;
609
+ style?: string | undefined;
610
+ formality?: string | undefined;
611
+ } | undefined;
612
+ personality?: {
613
+ values?: string | undefined;
614
+ traits?: string | undefined;
615
+ interests?: string | undefined;
616
+ quirks?: string | undefined;
617
+ mbti?: "INTJ" | "INTP" | "ENTJ" | "ENTP" | "INFJ" | "INFP" | "ENFJ" | "ENFP" | "ISTJ" | "ISFJ" | "ESTJ" | "ESFJ" | "ISTP" | "ISFP" | "ESTP" | "ESFP" | undefined;
618
+ } | undefined;
619
+ } | undefined;
293
620
  rules?: string[] | undefined;
294
621
  };
295
622
  }>;
@@ -321,6 +648,17 @@ export type GetHelperAgentDto = z.infer<typeof GetHelperAgentSchema>;
321
648
  export interface GetHelperAgentResponseDto {
322
649
  agent: AgentPrivateDto;
323
650
  }
651
+ export declare const GetAgentLocationsParamsSchema: z.ZodObject<{
652
+ agentId: z.ZodBigInt;
653
+ }, "strip", z.ZodTypeAny, {
654
+ agentId: bigint;
655
+ }, {
656
+ agentId: bigint;
657
+ }>;
658
+ export type GetAgentLocationsParamsDto = z.infer<typeof GetAgentLocationsParamsSchema>;
659
+ export interface GetAgentLocationsResponseDto {
660
+ locationIds: LocationId[];
661
+ }
324
662
  export declare const GetAgentCostParamsSchema: z.ZodObject<{
325
663
  agentId: z.ZodBigInt;
326
664
  }, "strip", z.ZodTypeAny, {
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DeleteAgentParamsSchema = exports.UploadAgentAvatarParamsSchema = exports.GetAgentCostParamsSchema = exports.GetHelperAgentSchema = exports.CreateAgentFromPresetSchema = exports.CreateAgentSchema = exports.AgentPresetsPaginationQuerySchema = exports.AgentDeleteCredentialSchema = exports.AgentUpdateCredentialSchema = exports.AgentUpdateConfigSchema = exports.GetAgentsByIdsQuerySchema = exports.AgentsPaginationQuerySchema = void 0;
3
+ exports.DeleteAgentParamsSchema = exports.UploadAgentAvatarParamsSchema = exports.GetAgentCostParamsSchema = exports.GetAgentLocationsParamsSchema = exports.GetHelperAgentSchema = exports.CreateAgentFromPresetSchema = exports.CreateAgentSchema = exports.AgentPresetsPaginationQuerySchema = exports.AgentDeleteCredentialSchema = exports.AgentUpdateCredentialSchema = exports.AgentUpdateConfigSchema = exports.GetAgentsByIdsQuerySchema = exports.AgentsPaginationQuerySchema = void 0;
4
4
  const models_1 = require("@little-samo/samo-ai-sdk/models");
5
5
  const zod_1 = require("zod");
6
6
  exports.AgentsPaginationQuerySchema = zod_1.z.object({
@@ -57,6 +57,9 @@ exports.CreateAgentFromPresetSchema = zod_1.z.object({
57
57
  exports.GetHelperAgentSchema = zod_1.z.object({
58
58
  helperType: zod_1.z.nativeEnum(models_1.AgentHelperType),
59
59
  });
60
+ exports.GetAgentLocationsParamsSchema = zod_1.z.object({
61
+ agentId: zod_1.z.coerce.bigint(),
62
+ });
60
63
  exports.GetAgentCostParamsSchema = zod_1.z.object({
61
64
  agentId: zod_1.z.coerce.bigint(),
62
65
  });
@@ -1 +1 @@
1
- {"version":3,"file":"agent.requests.js","sourceRoot":"","sources":["../../../../src/dto/entities/agents/agent.requests.ts"],"names":[],"mappings":";;;AAAA,4DAIyC;AACzC,6BAAwB;AAUX,QAAA,2BAA2B,GAAG,OAAC,CAAC,MAAM,CAAC;IAClD,IAAI,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;IAC1D,KAAK,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;CACtE,CAAC,CAAC;AAkBU,QAAA,yBAAyB,GAAG,OAAC,CAAC,MAAM,CAAC;IAChD,QAAQ,EAAE,OAAC;SACR,MAAM,EAAE;SACR,SAAS,CAAC,CAAC,GAAG,EAAE,EAAE,CACjB,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC,CAC/D;SACA,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,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AAE,CAAC;CACtE,CAAC,CAAC;AAiBU,QAAA,iBAAiB,GAAG,OAAC,CAAC,MAAM,CAAC;IACxC,MAAM,EAAE,0BAAiB,CAAC,OAAO,EAAE;SAChC,MAAM,EAAE;SACR,QAAQ,CACP,oEAAoE,CACrE;CACJ,CAAC,CAAC;AASU,QAAA,2BAA2B,GAAG,OAAC,CAAC,MAAM,CAAC;IAClD,QAAQ,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE;CAC5B,CAAC,CAAC;AAWU,QAAA,oBAAoB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC3C,UAAU,EAAE,OAAC,CAAC,UAAU,CAAC,wBAAe,CAAC;CAC1C,CAAC,CAAC;AASU,QAAA,6BAA6B,GAAG,OAAC,CAAC,MAAM,CAAC;IACpD,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE;CAC3B,CAAC,CAAC;AAWU,QAAA,wBAAwB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/C,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE;CAC3B,CAAC,CAAC;AASU,QAAA,6BAA6B,GAAG,OAAC,CAAC,MAAM,CAAC;IACpD,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE;CAC3B,CAAC,CAAC;AAWU,QAAA,uBAAuB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC9C,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE;CAC3B,CAAC,CAAC"}
@@ -45,16 +45,16 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
45
45
  locationId: z.ZodBigInt;
46
46
  config: z.ZodObject<{
47
47
  name: z.ZodOptional<z.ZodString>;
48
- thumbnail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
48
+ thumbnail: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>>;
49
49
  environment: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"CHAT">, z.ZodLiteral<"CHAT">]>>;
50
50
  core: z.ZodOptional<z.ZodObject<{
51
- name: z.ZodUnion<[z.ZodLiteral<"round_robin">, z.ZodLiteral<"update_forever">, z.ZodLiteral<"update_once">]>;
51
+ name: z.ZodUnion<[z.ZodLiteral<"round_robin">, z.ZodLiteral<"update_forever">, z.ZodLiteral<"update_once">, z.ZodLiteral<"update_until_idle">]>;
52
52
  sequential: z.ZodOptional<z.ZodBoolean>;
53
53
  }, "strip", z.ZodTypeAny, {
54
- name: "round_robin" | "update_forever" | "update_once";
54
+ name: "round_robin" | "update_forever" | "update_once" | "update_until_idle";
55
55
  sequential?: boolean | undefined;
56
56
  }, {
57
- name: "round_robin" | "update_forever" | "update_once";
57
+ name: "round_robin" | "update_forever" | "update_once" | "update_until_idle";
58
58
  sequential?: boolean | undefined;
59
59
  }>>;
60
60
  description: z.ZodOptional<z.ZodString>;
@@ -102,7 +102,7 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
102
102
  name?: string | undefined;
103
103
  description?: string | undefined;
104
104
  core?: {
105
- name: "round_robin" | "update_forever" | "update_once";
105
+ name: "round_robin" | "update_forever" | "update_once" | "update_until_idle";
106
106
  sequential?: boolean | undefined;
107
107
  } | undefined;
108
108
  rules?: string[] | undefined;
@@ -127,7 +127,7 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
127
127
  name?: string | undefined;
128
128
  description?: string | undefined;
129
129
  core?: {
130
- name: "round_robin" | "update_forever" | "update_once";
130
+ name: "round_robin" | "update_forever" | "update_once" | "update_until_idle";
131
131
  sequential?: boolean | undefined;
132
132
  } | undefined;
133
133
  rules?: string[] | undefined;
@@ -155,7 +155,7 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
155
155
  name?: string | undefined;
156
156
  description?: string | undefined;
157
157
  core?: {
158
- name: "round_robin" | "update_forever" | "update_once";
158
+ name: "round_robin" | "update_forever" | "update_once" | "update_until_idle";
159
159
  sequential?: boolean | undefined;
160
160
  } | undefined;
161
161
  rules?: string[] | undefined;
@@ -183,7 +183,7 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
183
183
  name?: string | undefined;
184
184
  description?: string | undefined;
185
185
  core?: {
186
- name: "round_robin" | "update_forever" | "update_once";
186
+ name: "round_robin" | "update_forever" | "update_once" | "update_until_idle";
187
187
  sequential?: boolean | undefined;
188
188
  } | undefined;
189
189
  rules?: string[] | undefined;
@@ -301,16 +301,16 @@ export interface LocationPresetsPaginatedResponseDto {
301
301
  export declare const CreateLocationSchema: z.ZodObject<{
302
302
  config: z.ZodObject<{
303
303
  name: z.ZodOptional<z.ZodString>;
304
- thumbnail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
304
+ thumbnail: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>>;
305
305
  environment: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"CHAT">, z.ZodLiteral<"CHAT">]>>;
306
306
  core: z.ZodOptional<z.ZodObject<{
307
- name: z.ZodUnion<[z.ZodLiteral<"round_robin">, z.ZodLiteral<"update_forever">, z.ZodLiteral<"update_once">]>;
307
+ name: z.ZodUnion<[z.ZodLiteral<"round_robin">, z.ZodLiteral<"update_forever">, z.ZodLiteral<"update_once">, z.ZodLiteral<"update_until_idle">]>;
308
308
  sequential: z.ZodOptional<z.ZodBoolean>;
309
309
  }, "strip", z.ZodTypeAny, {
310
- name: "round_robin" | "update_forever" | "update_once";
310
+ name: "round_robin" | "update_forever" | "update_once" | "update_until_idle";
311
311
  sequential?: boolean | undefined;
312
312
  }, {
313
- name: "round_robin" | "update_forever" | "update_once";
313
+ name: "round_robin" | "update_forever" | "update_once" | "update_until_idle";
314
314
  sequential?: boolean | undefined;
315
315
  }>>;
316
316
  description: z.ZodOptional<z.ZodString>;
@@ -358,7 +358,7 @@ export declare const CreateLocationSchema: z.ZodObject<{
358
358
  name?: string | undefined;
359
359
  description?: string | undefined;
360
360
  core?: {
361
- name: "round_robin" | "update_forever" | "update_once";
361
+ name: "round_robin" | "update_forever" | "update_once" | "update_until_idle";
362
362
  sequential?: boolean | undefined;
363
363
  } | undefined;
364
364
  rules?: string[] | undefined;
@@ -383,7 +383,7 @@ export declare const CreateLocationSchema: z.ZodObject<{
383
383
  name?: string | undefined;
384
384
  description?: string | undefined;
385
385
  core?: {
386
- name: "round_robin" | "update_forever" | "update_once";
386
+ name: "round_robin" | "update_forever" | "update_once" | "update_until_idle";
387
387
  sequential?: boolean | undefined;
388
388
  } | undefined;
389
389
  rules?: string[] | undefined;
@@ -414,7 +414,7 @@ export declare const CreateLocationSchema: z.ZodObject<{
414
414
  name?: string | undefined;
415
415
  description?: string | undefined;
416
416
  core?: {
417
- name: "round_robin" | "update_forever" | "update_once";
417
+ name: "round_robin" | "update_forever" | "update_once" | "update_until_idle";
418
418
  sequential?: boolean | undefined;
419
419
  } | undefined;
420
420
  rules?: string[] | undefined;
@@ -442,7 +442,7 @@ export declare const CreateLocationSchema: z.ZodObject<{
442
442
  name?: string | undefined;
443
443
  description?: string | undefined;
444
444
  core?: {
445
- name: "round_robin" | "update_forever" | "update_once";
445
+ name: "round_robin" | "update_forever" | "update_once" | "update_until_idle";
446
446
  sequential?: boolean | undefined;
447
447
  } | undefined;
448
448
  rules?: string[] | undefined;
@@ -8,11 +8,99 @@ export declare const AgentConfigCoreSchema: z.ZodObject<{
8
8
  name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
9
9
  }>;
10
10
  export type AgentConfigCore = z.infer<typeof AgentConfigCoreSchema>;
11
- declare const LlmPresetSchema: z.ZodUnion<[z.ZodLiteral<"gemini-low">, z.ZodLiteral<"gemini-medium">, z.ZodLiteral<"openai-low">, z.ZodLiteral<"openai-medium">]>;
11
+ export declare const CharacterSchema: z.ZodObject<{
12
+ background: z.ZodOptional<z.ZodObject<{
13
+ role: z.ZodOptional<z.ZodString>;
14
+ gender: z.ZodOptional<z.ZodString>;
15
+ expertise: z.ZodOptional<z.ZodString>;
16
+ backstory: z.ZodOptional<z.ZodString>;
17
+ }, "strip", z.ZodTypeAny, {
18
+ role?: string | undefined;
19
+ gender?: string | undefined;
20
+ expertise?: string | undefined;
21
+ backstory?: string | undefined;
22
+ }, {
23
+ role?: string | undefined;
24
+ gender?: string | undefined;
25
+ expertise?: string | undefined;
26
+ backstory?: string | undefined;
27
+ }>>;
28
+ speech: z.ZodOptional<z.ZodObject<{
29
+ tone: z.ZodOptional<z.ZodString>;
30
+ style: z.ZodOptional<z.ZodString>;
31
+ formality: z.ZodOptional<z.ZodString>;
32
+ }, "strip", z.ZodTypeAny, {
33
+ tone?: string | undefined;
34
+ style?: string | undefined;
35
+ formality?: string | undefined;
36
+ }, {
37
+ tone?: string | undefined;
38
+ style?: string | undefined;
39
+ formality?: string | undefined;
40
+ }>>;
41
+ personality: z.ZodOptional<z.ZodObject<{
42
+ traits: z.ZodOptional<z.ZodString>;
43
+ interests: z.ZodOptional<z.ZodString>;
44
+ values: z.ZodOptional<z.ZodString>;
45
+ quirks: z.ZodOptional<z.ZodString>;
46
+ mbti: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"INTJ">, z.ZodLiteral<"INTP">, z.ZodLiteral<"ENTJ">, z.ZodLiteral<"ENTP">, z.ZodLiteral<"INFJ">, z.ZodLiteral<"INFP">, z.ZodLiteral<"ENFJ">, z.ZodLiteral<"ENFP">, z.ZodLiteral<"ISTJ">, z.ZodLiteral<"ISFJ">, z.ZodLiteral<"ESTJ">, z.ZodLiteral<"ESFJ">, z.ZodLiteral<"ISTP">, z.ZodLiteral<"ISFP">, z.ZodLiteral<"ESTP">, z.ZodLiteral<"ESFP">]>>;
47
+ }, "strip", z.ZodTypeAny, {
48
+ values?: string | undefined;
49
+ traits?: string | undefined;
50
+ interests?: string | undefined;
51
+ quirks?: string | undefined;
52
+ mbti?: "INTJ" | "INTP" | "ENTJ" | "ENTP" | "INFJ" | "INFP" | "ENFJ" | "ENFP" | "ISTJ" | "ISFJ" | "ESTJ" | "ESFJ" | "ISTP" | "ISFP" | "ESTP" | "ESFP" | undefined;
53
+ }, {
54
+ values?: string | undefined;
55
+ traits?: string | undefined;
56
+ interests?: string | undefined;
57
+ quirks?: string | undefined;
58
+ mbti?: "INTJ" | "INTP" | "ENTJ" | "ENTP" | "INFJ" | "INFP" | "ENFJ" | "ENFP" | "ISTJ" | "ISFJ" | "ESTJ" | "ESFJ" | "ISTP" | "ISFP" | "ESTP" | "ESFP" | undefined;
59
+ }>>;
60
+ }, "strip", z.ZodTypeAny, {
61
+ background?: {
62
+ role?: string | undefined;
63
+ gender?: string | undefined;
64
+ expertise?: string | undefined;
65
+ backstory?: string | undefined;
66
+ } | undefined;
67
+ speech?: {
68
+ tone?: string | undefined;
69
+ style?: string | undefined;
70
+ formality?: string | undefined;
71
+ } | undefined;
72
+ personality?: {
73
+ values?: string | undefined;
74
+ traits?: string | undefined;
75
+ interests?: string | undefined;
76
+ quirks?: string | undefined;
77
+ mbti?: "INTJ" | "INTP" | "ENTJ" | "ENTP" | "INFJ" | "INFP" | "ENFJ" | "ENFP" | "ISTJ" | "ISFJ" | "ESTJ" | "ESFJ" | "ISTP" | "ISFP" | "ESTP" | "ESFP" | undefined;
78
+ } | undefined;
79
+ }, {
80
+ background?: {
81
+ role?: string | undefined;
82
+ gender?: string | undefined;
83
+ expertise?: string | undefined;
84
+ backstory?: string | undefined;
85
+ } | undefined;
86
+ speech?: {
87
+ tone?: string | undefined;
88
+ style?: string | undefined;
89
+ formality?: string | undefined;
90
+ } | undefined;
91
+ personality?: {
92
+ values?: string | undefined;
93
+ traits?: string | undefined;
94
+ interests?: string | undefined;
95
+ quirks?: string | undefined;
96
+ mbti?: "INTJ" | "INTP" | "ENTJ" | "ENTP" | "INFJ" | "INFP" | "ENFJ" | "ENFP" | "ISTJ" | "ISFJ" | "ESTJ" | "ESFJ" | "ISTP" | "ISFP" | "ESTP" | "ESFP" | undefined;
97
+ } | undefined;
98
+ }>;
99
+ declare const LlmPresetSchema: z.ZodUnion<[z.ZodLiteral<"gemini-low">, z.ZodLiteral<"gemini-medium">, z.ZodLiteral<"gemini-high">, z.ZodLiteral<"openai-low">, z.ZodLiteral<"openai-medium">]>;
12
100
  export type LlmPreset = z.infer<typeof LlmPresetSchema>;
13
101
  export declare const AgentConfigSchema: z.ZodObject<{
14
102
  name: z.ZodString;
15
- avatar: z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[], z.ZodString]>;
103
+ avatar: z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[], z.ZodString, z.ZodString]>;
16
104
  appearance: z.ZodString;
17
105
  core: z.ZodObject<{
18
106
  name: z.ZodUnion<[z.ZodLiteral<"evaluate_and_actions">, z.ZodLiteral<"execute_actions">, z.ZodLiteral<"response_every_message">]>;
@@ -21,12 +109,99 @@ export declare const AgentConfigSchema: z.ZodObject<{
21
109
  }, {
22
110
  name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
23
111
  }>;
24
- llmPreset: z.ZodUnion<[z.ZodLiteral<"gemini-low">, z.ZodLiteral<"gemini-medium">, z.ZodLiteral<"openai-low">, z.ZodLiteral<"openai-medium">]>;
112
+ llmPreset: z.ZodUnion<[z.ZodLiteral<"gemini-low">, z.ZodLiteral<"gemini-medium">, z.ZodLiteral<"gemini-high">, z.ZodLiteral<"openai-low">, z.ZodLiteral<"openai-medium">]>;
25
113
  languages: z.ZodArray<z.ZodString, "many">;
26
114
  timeZone: z.ZodString;
27
115
  greeting: z.ZodString;
28
116
  actions: z.ZodArray<z.ZodUnion<[z.ZodLiteral<"todo">, z.ZodLiteral<"todo">]>, "many">;
29
- character: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>;
117
+ character: z.ZodObject<{
118
+ background: z.ZodOptional<z.ZodObject<{
119
+ role: z.ZodOptional<z.ZodString>;
120
+ gender: z.ZodOptional<z.ZodString>;
121
+ expertise: z.ZodOptional<z.ZodString>;
122
+ backstory: z.ZodOptional<z.ZodString>;
123
+ }, "strip", z.ZodTypeAny, {
124
+ role?: string | undefined;
125
+ gender?: string | undefined;
126
+ expertise?: string | undefined;
127
+ backstory?: string | undefined;
128
+ }, {
129
+ role?: string | undefined;
130
+ gender?: string | undefined;
131
+ expertise?: string | undefined;
132
+ backstory?: string | undefined;
133
+ }>>;
134
+ speech: z.ZodOptional<z.ZodObject<{
135
+ tone: z.ZodOptional<z.ZodString>;
136
+ style: z.ZodOptional<z.ZodString>;
137
+ formality: z.ZodOptional<z.ZodString>;
138
+ }, "strip", z.ZodTypeAny, {
139
+ tone?: string | undefined;
140
+ style?: string | undefined;
141
+ formality?: string | undefined;
142
+ }, {
143
+ tone?: string | undefined;
144
+ style?: string | undefined;
145
+ formality?: string | undefined;
146
+ }>>;
147
+ personality: z.ZodOptional<z.ZodObject<{
148
+ traits: z.ZodOptional<z.ZodString>;
149
+ interests: z.ZodOptional<z.ZodString>;
150
+ values: z.ZodOptional<z.ZodString>;
151
+ quirks: z.ZodOptional<z.ZodString>;
152
+ mbti: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"INTJ">, z.ZodLiteral<"INTP">, z.ZodLiteral<"ENTJ">, z.ZodLiteral<"ENTP">, z.ZodLiteral<"INFJ">, z.ZodLiteral<"INFP">, z.ZodLiteral<"ENFJ">, z.ZodLiteral<"ENFP">, z.ZodLiteral<"ISTJ">, z.ZodLiteral<"ISFJ">, z.ZodLiteral<"ESTJ">, z.ZodLiteral<"ESFJ">, z.ZodLiteral<"ISTP">, z.ZodLiteral<"ISFP">, z.ZodLiteral<"ESTP">, z.ZodLiteral<"ESFP">]>>;
153
+ }, "strip", z.ZodTypeAny, {
154
+ values?: string | undefined;
155
+ traits?: string | undefined;
156
+ interests?: string | undefined;
157
+ quirks?: string | undefined;
158
+ mbti?: "INTJ" | "INTP" | "ENTJ" | "ENTP" | "INFJ" | "INFP" | "ENFJ" | "ENFP" | "ISTJ" | "ISFJ" | "ESTJ" | "ESFJ" | "ISTP" | "ISFP" | "ESTP" | "ESFP" | undefined;
159
+ }, {
160
+ values?: string | undefined;
161
+ traits?: string | undefined;
162
+ interests?: string | undefined;
163
+ quirks?: string | undefined;
164
+ mbti?: "INTJ" | "INTP" | "ENTJ" | "ENTP" | "INFJ" | "INFP" | "ENFJ" | "ENFP" | "ISTJ" | "ISFJ" | "ESTJ" | "ESFJ" | "ISTP" | "ISFP" | "ESTP" | "ESFP" | undefined;
165
+ }>>;
166
+ }, "strip", z.ZodTypeAny, {
167
+ background?: {
168
+ role?: string | undefined;
169
+ gender?: string | undefined;
170
+ expertise?: string | undefined;
171
+ backstory?: string | undefined;
172
+ } | undefined;
173
+ speech?: {
174
+ tone?: string | undefined;
175
+ style?: string | undefined;
176
+ formality?: string | undefined;
177
+ } | undefined;
178
+ personality?: {
179
+ values?: string | undefined;
180
+ traits?: string | undefined;
181
+ interests?: string | undefined;
182
+ quirks?: string | undefined;
183
+ mbti?: "INTJ" | "INTP" | "ENTJ" | "ENTP" | "INFJ" | "INFP" | "ENFJ" | "ENFP" | "ISTJ" | "ISFJ" | "ESTJ" | "ESFJ" | "ISTP" | "ISFP" | "ESTP" | "ESFP" | undefined;
184
+ } | undefined;
185
+ }, {
186
+ background?: {
187
+ role?: string | undefined;
188
+ gender?: string | undefined;
189
+ expertise?: string | undefined;
190
+ backstory?: string | undefined;
191
+ } | undefined;
192
+ speech?: {
193
+ tone?: string | undefined;
194
+ style?: string | undefined;
195
+ formality?: string | undefined;
196
+ } | undefined;
197
+ personality?: {
198
+ values?: string | undefined;
199
+ traits?: string | undefined;
200
+ interests?: string | undefined;
201
+ quirks?: string | undefined;
202
+ mbti?: "INTJ" | "INTP" | "ENTJ" | "ENTP" | "INFJ" | "INFP" | "ENFJ" | "ENFP" | "ISTJ" | "ISFJ" | "ESTJ" | "ESFJ" | "ISTP" | "ISFP" | "ESTP" | "ESFP" | undefined;
203
+ } | undefined;
204
+ }>;
30
205
  rules: z.ZodArray<z.ZodString, "many">;
31
206
  }, "strip", z.ZodTypeAny, {
32
207
  name: string;
@@ -35,12 +210,31 @@ export declare const AgentConfigSchema: z.ZodObject<{
35
210
  core: {
36
211
  name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
37
212
  };
38
- llmPreset: "gemini-low" | "gemini-medium" | "openai-low" | "openai-medium";
213
+ llmPreset: "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium";
39
214
  languages: string[];
40
215
  timeZone: string;
41
216
  greeting: string;
42
217
  actions: "todo"[];
43
- character: Record<string, Record<string, string>>;
218
+ character: {
219
+ background?: {
220
+ role?: string | undefined;
221
+ gender?: string | undefined;
222
+ expertise?: string | undefined;
223
+ backstory?: string | undefined;
224
+ } | undefined;
225
+ speech?: {
226
+ tone?: string | undefined;
227
+ style?: string | undefined;
228
+ formality?: string | undefined;
229
+ } | undefined;
230
+ personality?: {
231
+ values?: string | undefined;
232
+ traits?: string | undefined;
233
+ interests?: string | undefined;
234
+ quirks?: string | undefined;
235
+ mbti?: "INTJ" | "INTP" | "ENTJ" | "ENTP" | "INFJ" | "INFP" | "ENFJ" | "ENFP" | "ISTJ" | "ISFJ" | "ESTJ" | "ESFJ" | "ISTP" | "ISFP" | "ESTP" | "ESFP" | undefined;
236
+ } | undefined;
237
+ };
44
238
  rules: string[];
45
239
  }, {
46
240
  name: string;
@@ -49,12 +243,31 @@ export declare const AgentConfigSchema: z.ZodObject<{
49
243
  core: {
50
244
  name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
51
245
  };
52
- llmPreset: "gemini-low" | "gemini-medium" | "openai-low" | "openai-medium";
246
+ llmPreset: "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium";
53
247
  languages: string[];
54
248
  timeZone: string;
55
249
  greeting: string;
56
250
  actions: "todo"[];
57
- character: Record<string, Record<string, string>>;
251
+ character: {
252
+ background?: {
253
+ role?: string | undefined;
254
+ gender?: string | undefined;
255
+ expertise?: string | undefined;
256
+ backstory?: string | undefined;
257
+ } | undefined;
258
+ speech?: {
259
+ tone?: string | undefined;
260
+ style?: string | undefined;
261
+ formality?: string | undefined;
262
+ } | undefined;
263
+ personality?: {
264
+ values?: string | undefined;
265
+ traits?: string | undefined;
266
+ interests?: string | undefined;
267
+ quirks?: string | undefined;
268
+ mbti?: "INTJ" | "INTP" | "ENTJ" | "ENTP" | "INFJ" | "INFP" | "ENFJ" | "ENFP" | "ISTJ" | "ISFJ" | "ESTJ" | "ESFJ" | "ISTP" | "ISFP" | "ESTP" | "ESFP" | undefined;
269
+ } | undefined;
270
+ };
58
271
  rules: string[];
59
272
  }>;
60
273
  export type AgentConfig = z.infer<typeof AgentConfigSchema>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AgentConfigSchema = exports.AgentConfigCoreSchema = exports.PREDEFINED_AVATARS = void 0;
3
+ exports.AgentConfigSchema = exports.CharacterSchema = exports.AgentConfigCoreSchema = exports.PREDEFINED_AVATARS = void 0;
4
4
  const zod_1 = require("zod");
5
5
  exports.PREDEFINED_AVATARS = {
6
6
  Mimo: `A confident, square-shaped, coral-pink Minimo with bright green horns. Her sharp eyes and poised stance radiate intelligence and leadership.`,
@@ -22,32 +22,112 @@ exports.AgentConfigCoreSchema = zod_1.z.object({
22
22
  .describe('Responds to every new message in the location. Best for conversational agents that should actively participate in all discussions.'),
23
23
  ]),
24
24
  });
25
- const CharacterSchema = zod_1.z.record(zod_1.z.record(zod_1.z.string().max(500))).describe(`
26
- Defines the agent's character using a flexible, two-level nested object, such as \`{ "category": { "property": "value" } }\`.
27
- You can create any custom categories and properties. Below are some suggestions:
28
- * **background**: Defines the agent's core identity and backstory.
29
- * \`role\`: **CRITICAL**. The agent's primary function and purpose (e.g., 'A helper agent for crafting new agents and discovering treasures.').
30
- * \`gender\`: The agent's gender identity (e.g., 'Male').
31
- * \`expertise\`: Specialized knowledge areas (e.g., 'Treasure hunting, making friends, spreading happiness.').
32
- * \`backstory\`: A brief history of the agent's experiences (e.g., 'Born in a warm home, loves making friends and going on adventures.').
33
- * **speech**: Controls the agent's communication style.
34
- * \`tone\`: The emotional quality of the agent's voice (e.g., 'A cheerful yet polite bark.').
35
- * \`style\`: The agent's manner of expression (e.g., 'Friendly, enthusiastic, lively.').
36
- * \`formality\`: The level of conventionality in language (e.g., 'Playful, respectful, uplifting.').
37
- * **personality**: Describes the agent's distinctive traits and behaviors.
38
- * \`traits\`: Key characteristics (e.g., 'Curious, creative, friendly, optimistic.').
39
- * \`interests\`: Hobbies and topics the agent enjoys (e.g., 'Treasures, adventures, and making new friends.').
40
- * \`values\`: Core principles that guide the agent's actions (e.g., 'Happiness, friendship, adventure, and harmony.').
41
- * \`quirks\`: Peculiar habits or eccentricities (e.g., 'Barks when excited, overly optimistic.').
42
- * \`mbti\`: Myers-Briggs Type Indicator for personality classification (e.g., 'ESFP').
43
-
44
- All property values are strings with a maximum length of 500 characters.
45
- `.trim());
25
+ exports.CharacterSchema = zod_1.z
26
+ .object({
27
+ background: zod_1.z
28
+ .object({
29
+ role: zod_1.z
30
+ .string()
31
+ .max(500)
32
+ .describe("**CRITICAL**. The agent's primary function and purpose (e.g., 'A helper agent for crafting new agents and discovering treasures)")
33
+ .optional(),
34
+ gender: zod_1.z
35
+ .string()
36
+ .max(30)
37
+ .describe("The agent's gender identity")
38
+ .optional(),
39
+ expertise: zod_1.z
40
+ .string()
41
+ .max(500)
42
+ .describe('Specialized knowledge areas')
43
+ .optional(),
44
+ backstory: zod_1.z
45
+ .string()
46
+ .max(1000)
47
+ .describe("A brief history of the agent's experiences")
48
+ .optional(),
49
+ })
50
+ .describe("Defines the agent's core identity and backstory")
51
+ .optional(),
52
+ speech: zod_1.z
53
+ .object({
54
+ tone: zod_1.z
55
+ .string()
56
+ .max(500)
57
+ .describe("The emotional quality of the agent's voice")
58
+ .optional(),
59
+ style: zod_1.z
60
+ .string()
61
+ .max(500)
62
+ .describe("The agent's manner of expression")
63
+ .optional(),
64
+ formality: zod_1.z
65
+ .string()
66
+ .max(500)
67
+ .describe('The level of conventionality in language')
68
+ .optional(),
69
+ })
70
+ .describe("Controls the agent's communication style")
71
+ .optional(),
72
+ personality: zod_1.z
73
+ .object({
74
+ traits: zod_1.z.string().max(500).describe('Key characteristics').optional(),
75
+ interests: zod_1.z
76
+ .string()
77
+ .max(500)
78
+ .describe('Hobbies and topics the agent enjoys')
79
+ .optional(),
80
+ values: zod_1.z
81
+ .string()
82
+ .max(500)
83
+ .describe("Core principles that guide the agent's actions")
84
+ .optional(),
85
+ quirks: zod_1.z
86
+ .string()
87
+ .max(500)
88
+ .describe('Peculiar habits or eccentricities')
89
+ .optional(),
90
+ mbti: zod_1.z
91
+ .union([
92
+ zod_1.z.literal('INTJ'),
93
+ zod_1.z.literal('INTP'),
94
+ zod_1.z.literal('ENTJ'),
95
+ zod_1.z.literal('ENTP'),
96
+ zod_1.z.literal('INFJ'),
97
+ zod_1.z.literal('INFP'),
98
+ zod_1.z.literal('ENFJ'),
99
+ zod_1.z.literal('ENFP'),
100
+ zod_1.z.literal('ISTJ'),
101
+ zod_1.z.literal('ISFJ'),
102
+ zod_1.z.literal('ESTJ'),
103
+ zod_1.z.literal('ESFJ'),
104
+ zod_1.z.literal('ISTP'),
105
+ zod_1.z.literal('ISFP'),
106
+ zod_1.z.literal('ESTP'),
107
+ zod_1.z.literal('ESFP'),
108
+ ])
109
+ .optional(),
110
+ })
111
+ .describe("Describes the agent's distinctive traits and behaviors")
112
+ .optional(),
113
+ })
114
+ .describe("Defines the agent's character using a structured format with predefined categories and properties");
46
115
  const LlmPresetSchema = zod_1.z.union([
47
- zod_1.z.literal('gemini-low').describe('Gemini - Low cost'),
48
- zod_1.z.literal('gemini-medium').describe('Gemini - Balanced'),
49
- zod_1.z.literal('openai-low').describe('OpenAI - Low cost'),
50
- zod_1.z.literal('openai-medium').describe('OpenAI - Balanced'),
116
+ zod_1.z
117
+ .literal('gemini-low')
118
+ .describe('Gemini - Economical model optimized for straightforward tasks and basic interactions. Cost-effective choice for simple operations.'),
119
+ zod_1.z
120
+ .literal('gemini-medium')
121
+ .describe('Gemini - Well-balanced model ideal for general-purpose applications. Recommended for most use cases requiring reliable performance.'),
122
+ zod_1.z
123
+ .literal('gemini-high')
124
+ .describe('Gemini - Premium model with highest performance capabilities. Offers superior reasoning and complex task handling but comes with higher costs and slower processing times.'),
125
+ zod_1.z
126
+ .literal('openai-low')
127
+ .describe('OpenAI - Budget-friendly model designed for elementary tasks and routine operations. Efficient for basic conversational needs.'),
128
+ zod_1.z
129
+ .literal('openai-medium')
130
+ .describe('OpenAI - Versatile model delivering solid performance across diverse scenarios. Optimal balance of capability and cost-effectiveness.'),
51
131
  ]);
52
132
  exports.AgentConfigSchema = zod_1.z.object({
53
133
  name: zod_1.z.string().max(64).describe('Agent name'),
@@ -57,9 +137,11 @@ exports.AgentConfigSchema = zod_1.z.object({
57
137
  zod_1.z
58
138
  .string()
59
139
  .max(2048)
60
- .describe('Custom avatar URL (png, jpeg, jpg files under 3MB only). This will be replaced by the URL of the file uploaded to a CDN, not the original address.'),
140
+ .regex(/^https?:\/\/.+\.(png|jpe?g)$/i)
141
+ .describe('Custom avatar URL (http/https URL pointing to png, jpeg, jpg, webp files under 3MB). This will be replaced by the URL of the file uploaded to a CDN, not the original address.'),
142
+ zod_1.z.string().max(32).describe('Location message image key for API usage'),
61
143
  ])
62
- .describe('Visual representation identifier for the agent. Supports predefined avatar options or custom URL. When a predefined avatar is selected, the appearance field will automatically update to match the avatar description.'),
144
+ .describe('Visual representation identifier for the agent. Supports predefined avatar options, custom URLs, and location message image keys for API usage. When a predefined avatar is selected, the appearance field will automatically update to match the avatar description. Image keys and custom URLs will be replaced by CDN URLs when processed.'),
63
145
  appearance: zod_1.z
64
146
  .string()
65
147
  .max(500)
@@ -89,7 +171,7 @@ exports.AgentConfigSchema = zod_1.z.object({
89
171
  ]))
90
172
  .max(4)
91
173
  .describe("Additional capabilities the agent can perform beyond basic conversation. Each action expands the agent's toolkit for specific use cases."),
92
- character: CharacterSchema,
174
+ character: exports.CharacterSchema,
93
175
  rules: zod_1.z
94
176
  .array(zod_1.z.string().max(200))
95
177
  .max(20)
@@ -1 +1 @@
1
- {"version":3,"file":"agent.config.js","sourceRoot":"","sources":["../../../../src/models/entities/agents/agent.config.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,kBAAkB,GAA2B;IACxD,IAAI,EAAE,8IAA8I;IACpJ,IAAI,EAAE,6KAA6K;IACnL,MAAM,EAAE,0LAA0L;IAClM,IAAI,EAAE,+LAA+L;IACrM,MAAM,EAAE,8KAA8K;CACvL,CAAC;AAEW,QAAA,qBAAqB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC5C,IAAI,EAAE,OAAC,CAAC,KAAK,CAAC;QACZ,OAAC;aACE,OAAO,CAAC,sBAAsB,CAAC;aAC/B,QAAQ,CACP,4JAA4J,CAC7J;QACH,OAAC;aACE,OAAO,CAAC,iBAAiB,CAAC;aAC1B,QAAQ,CACP,+IAA+I,CAChJ;QACH,OAAC;aACE,OAAO,CAAC,wBAAwB,CAAC;aACjC,QAAQ,CACP,oIAAoI,CACrI;KACJ,CAAC;CACH,CAAC,CAAC;AAIH,MAAM,eAAe,GAAG,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CACtE;;;;;;;;;;;;;;;;;;;;CAoBD,CAAC,IAAI,EAAE,CACP,CAAC;AAEF,MAAM,eAAe,GAAG,OAAC,CAAC,KAAK,CAAC;IAC9B,OAAC,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,QAAQ,CAAC,mBAAmB,CAAC;IACrD,OAAC,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC,QAAQ,CAAC,mBAAmB,CAAC;IAExD,OAAC,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,QAAQ,CAAC,mBAAmB,CAAC;IACrD,OAAC,CAAC,OAAO,CAA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AAC,MAAM,CAAC;aACf,QAAQ,CACP,gEAAgE,CACjE;QACH,OAAC;aACE,OAAO,CAAC,MAAM,CAAC;aACf,QAAQ,CACP,gEAAgE,CACjE;KACJ,CAAC,CACH;SACA,GAAG,CAAC,CAAC,CAAC;SACN,QAAQ,CACP,0IAA0I,CAC3I;IAEH,SAAS,EAAE,eAAe;IAE1B,KAAK,EAAE,OAAC;SACL,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;SAC1B,GAAG,CAAC,EAAE,CAAC;SACP,QAAQ,CACP,iLAAiL,CAClL;CACJ,CAAC,CAAC"}
1
+ {"version":3,"file":"agent.config.js","sourceRoot":"","sources":["../../../../src/models/entities/agents/agent.config.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,kBAAkB,GAA2B;IACxD,IAAI,EAAE,8IAA8I;IACpJ,IAAI,EAAE,6KAA6K;IACnL,MAAM,EAAE,0LAA0L;IAClM,IAAI,EAAE,+LAA+L;IACrM,MAAM,EAAE,8KAA8K;CACvL,CAAC;AAEW,QAAA,qBAAqB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC5C,IAAI,EAAE,OAAC,CAAC,KAAK,CAAC;QACZ,OAAC;aACE,OAAO,CAAC,sBAAsB,CAAC;aAC/B,QAAQ,CACP,4JAA4J,CAC7J;QACH,OAAC;aACE,OAAO,CAAC,iBAAiB,CAAC;aAC1B,QAAQ,CACP,+IAA+I,CAChJ;QACH,OAAC;aACE,OAAO,CAAC,wBAAwB,CAAC;aACjC,QAAQ,CACP,oIAAoI,CACrI;KACJ,CAAC;CACH,CAAC,CAAC;AAIU,QAAA,eAAe,GAAG,OAAC;KAC7B,MAAM,CAAC;IACN,UAAU,EAAE,OAAC;SACV,MAAM,CAAC;QACN,IAAI,EAAE,OAAC;aACJ,MAAM,EAAE;aACR,GAAG,CAAC,GAAG,CAAC;aACR,QAAQ,CACP,kIAAkI,CACnI;aACA,QAAQ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P,oNAAoN,CACrN;IACH,QAAQ,EAAE,OAAC;SACR,MAAM,EAAE;SACR,GAAG,CAAC,EAAE,CAAC;SACP,QAAQ,CACP,qEAAqE,CACtE;IACH,QAAQ,EAAE,OAAC;SACR,MAAM,EAAE;SACR,GAAG,CAAC,GAAG,CAAC;SACR,QAAQ,CACP,gKAAgK,CACjK;IAEH,OAAO,EAAE,OAAC;SACP,KAAK,CACJ,OAAC,CAAC,KAAK,CAAC;QACN,OAAC;aACE,OAAO,CAAC,MAAM,CAAC;aACf,QAAQ,CACP,gEAAgE,CACjE;QACH,OAAC;aACE,OAAO,CAAC,MAAM,CAAC;aACf,QAAQ,CACP,gEAAgE,CACjE;KACJ,CAAC,CACH;SACA,GAAG,CAAC,CAAC,CAAC;SACN,QAAQ,CACP,0IAA0I,CAC3I;IAEH,SAAS,EAAE,uBAAe;IAE1B,KAAK,EAAE,OAAC;SACL,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;SAC1B,GAAG,CAAC,EAAE,CAAC;SACP,QAAQ,CACP,iLAAiL,CAClL;CACJ,CAAC,CAAC"}
@@ -1,13 +1,13 @@
1
1
  import { z } from 'zod';
2
2
  export declare const LocationEnvironmentSchema: z.ZodUnion<[z.ZodLiteral<"CHAT">, z.ZodLiteral<"CHAT">]>;
3
3
  export declare const LocationConfigCoreSchema: z.ZodObject<{
4
- name: z.ZodUnion<[z.ZodLiteral<"round_robin">, z.ZodLiteral<"update_forever">, z.ZodLiteral<"update_once">]>;
4
+ name: z.ZodUnion<[z.ZodLiteral<"round_robin">, z.ZodLiteral<"update_forever">, z.ZodLiteral<"update_once">, z.ZodLiteral<"update_until_idle">]>;
5
5
  sequential: z.ZodOptional<z.ZodBoolean>;
6
6
  }, "strip", z.ZodTypeAny, {
7
- name: "round_robin" | "update_forever" | "update_once";
7
+ name: "round_robin" | "update_forever" | "update_once" | "update_until_idle";
8
8
  sequential?: boolean | undefined;
9
9
  }, {
10
- name: "round_robin" | "update_forever" | "update_once";
10
+ name: "round_robin" | "update_forever" | "update_once" | "update_until_idle";
11
11
  sequential?: boolean | undefined;
12
12
  }>;
13
13
  export type LocationConfigCore = z.infer<typeof LocationConfigCoreSchema>;
@@ -42,16 +42,16 @@ export declare const LocationConfigGimmickSchema: z.ZodObject<{
42
42
  export type LocationConfigGimmick = z.infer<typeof LocationConfigGimmickSchema>;
43
43
  export declare const LocationConfigSchema: z.ZodObject<{
44
44
  name: z.ZodString;
45
- thumbnail: z.ZodNullable<z.ZodString>;
45
+ thumbnail: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>;
46
46
  environment: z.ZodUnion<[z.ZodLiteral<"CHAT">, z.ZodLiteral<"CHAT">]>;
47
47
  core: z.ZodObject<{
48
- name: z.ZodUnion<[z.ZodLiteral<"round_robin">, z.ZodLiteral<"update_forever">, z.ZodLiteral<"update_once">]>;
48
+ name: z.ZodUnion<[z.ZodLiteral<"round_robin">, z.ZodLiteral<"update_forever">, z.ZodLiteral<"update_once">, z.ZodLiteral<"update_until_idle">]>;
49
49
  sequential: z.ZodOptional<z.ZodBoolean>;
50
50
  }, "strip", z.ZodTypeAny, {
51
- name: "round_robin" | "update_forever" | "update_once";
51
+ name: "round_robin" | "update_forever" | "update_once" | "update_until_idle";
52
52
  sequential?: boolean | undefined;
53
53
  }, {
54
- name: "round_robin" | "update_forever" | "update_once";
54
+ name: "round_robin" | "update_forever" | "update_once" | "update_until_idle";
55
55
  sequential?: boolean | undefined;
56
56
  }>;
57
57
  description: z.ZodString;
@@ -99,7 +99,7 @@ export declare const LocationConfigSchema: z.ZodObject<{
99
99
  name: string;
100
100
  description: string;
101
101
  core: {
102
- name: "round_robin" | "update_forever" | "update_once";
102
+ name: "round_robin" | "update_forever" | "update_once" | "update_until_idle";
103
103
  sequential?: boolean | undefined;
104
104
  };
105
105
  rules: string[];
@@ -124,7 +124,7 @@ export declare const LocationConfigSchema: z.ZodObject<{
124
124
  name: string;
125
125
  description: string;
126
126
  core: {
127
- name: "round_robin" | "update_forever" | "update_once";
127
+ name: "round_robin" | "update_forever" | "update_once" | "update_until_idle";
128
128
  sequential?: boolean | undefined;
129
129
  };
130
130
  rules: string[];
@@ -18,13 +18,16 @@ exports.LocationConfigCoreSchema = zod_1.z.object({
18
18
  .literal('update_forever')
19
19
  .describe('Continuously update agents without stopping'),
20
20
  zod_1.z.literal('update_once').describe('Execute agents only once per cycle'),
21
+ zod_1.z
22
+ .literal('update_until_idle')
23
+ .describe('Update agents continuously until no actions are available'),
21
24
  ]),
22
25
  sequential: zod_1.z.boolean().optional().describe('Execute agents in fixed order'),
23
26
  });
24
27
  exports.LocationConfigCanvasSchema = zod_1.z.object({
25
28
  name: zod_1.z
26
29
  .string()
27
- .max(16)
30
+ .max(32)
28
31
  .regex(/^[a-zA-Z_]+$/, 'Name must contain only letters and underscores')
29
32
  .describe('Unique identifier for the canvas that agents use to reference it'),
30
33
  description: zod_1.z
@@ -43,7 +46,7 @@ const GimmickCoreSchema = zod_1.z.union([
43
46
  .describe('Searches the web for up-to-date or missing information using an LLM, providing both a summary and detailed results. Execution takes approximately 30 seconds'),
44
47
  zod_1.z
45
48
  .literal('x_twitter')
46
- .describe('Interacts with X (Twitter) platform for social media operations and content management'),
49
+ .describe('Comprehensive X (Twitter) integration for social media operations including posting tweets, timeline management, engagement (likes, retweets, replies), user profile and follower management, content discovery through search and trends, and real-time interaction monitoring'),
47
50
  zod_1.z
48
51
  .literal('notion')
49
52
  .describe('Interacts with Notion platform for content management and collaboration'),
@@ -62,10 +65,16 @@ exports.LocationConfigGimmickSchema = zod_1.z.object({
62
65
  exports.LocationConfigSchema = zod_1.z.object({
63
66
  name: zod_1.z.string().max(64).describe('Location name'),
64
67
  thumbnail: zod_1.z
65
- .string()
66
- .max(2048)
68
+ .union([
69
+ zod_1.z
70
+ .string()
71
+ .max(2048)
72
+ .regex(/^https?:\/\/.+\.(png|jpe?g)$/i)
73
+ .describe('Location thumbnail URL (http/https URL pointing to png, jpeg, jpg, webp files under 3MB). This will be replaced by the URL of the file uploaded to a CDN, not the original address.'),
74
+ zod_1.z.string().max(32).describe('Location message image key for API usage'),
75
+ ])
67
76
  .nullable()
68
- .describe('Location thumbnail URL (png, jpeg, jpg files under 3MB only). This will be replaced by the URL of the file uploaded to a CDN, not the original address.'),
77
+ .describe('Location thumbnail image. Supports HTTP/HTTPS URLs for png, jpeg, jpg, webp images and location message image keys for API usage. When provided, images will be replaced by CDN URLs when processed.'),
69
78
  environment: exports.LocationEnvironmentSchema.describe('Location environment that determines the context and behavior'),
70
79
  core: exports.LocationConfigCoreSchema.describe('Core behavior configuration that determines how agents are executed in this location'),
71
80
  description: zod_1.z
@@ -1 +1 @@
1
- {"version":3,"file":"location.config.js","sourceRoot":"","sources":["../../../src/models/locations/location.config.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,6DAA2D;AAE9C,QAAA,yBAAyB,GAAG,OAAC,CAAC,KAAK,CAAC;IAC/C,OAAC;SACE,OAAO,CAAC,wCAAmB,CAAC,IAAI,CAAC;SACjC,QAAQ,CACP,oEAAoE,CACrE;IACH,OAAC;SACE,OAAO,CAAC,wCAAmB,CAAC,IAAI,CAAC;SACjC,QAAQ,CACP,oEAAoE,CACrE;CACJ,CAAC,CAAC;AAEU,QAAA,wBAAwB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/C,IAAI,EAAE,OAAC,CAAC,KAAK,CAAC;QACZ,OAAC,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,QAAQ,CAAC,kCAAkC,CAAC;QACrE,OAAC;aACE,OAAO,CAAC,gBAAgB,CAAC;aACzB,QAAQ,CAAC,6CAA6C,CAAC;QAC1D,OAAC,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,QAAQ,CAAC,oCAAoC,CAAC;KACxE,CAAC;IACF,UAAU,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,+BAA+B,CAAC;CA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AAe,CAAC;IAClD,SAAS,EAAE,OAAC;SACT,MAAM,EAAE;SACR,GAAG,CAAC,IAAI,CAAC;SACT,QAAQ,EAAE;SACV,QAAQ,CACP,yJAAyJ,CAC1J;IAEH,WAAW,EAAE,iCAAyB,CAAC,QAAQ,CAC7C,+DAA+D,CAChE;IAED,IAAI,EAAE,gCAAwB,CAAC,QAAQ,CACrC,sFAAsF,CACvF;IACD,WAAW,EAAE,OAAC;SACX,MAAM,EAAE;SACR,GAAG,CAAC,GAAG,CAAC;SACR,QAAQ,CACP,kFAAkF,CACnF;IAEH,KAAK,EAAE,OAAC;SACL,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;SAC1B,GAAG,CAAC,EAAE,CAAC;SACP,QAAQ,CACP,iFAAiF,CAClF;IAEH,QAAQ,EAAE,OAAC;SACR,KAAK,CAAC,kCAA0B,CAAC;SACjC,GAAG,CAAC,CAAC,CAAC;SACN,QAAQ,CACP,iFAAiF,CAClF;IACH,aAAa,EAAE,OAAC;SACb,KAAK,CAAC,kCAA0B,CAAC;SACjC,GAAG,CAAC,CAAC,CAAC;SACN,QAAQ,CACP,gFAAgF,CACjF;IAEH,QAAQ,EAAE,OAAC;SACR,KAAK,CAAC,mCAA2B,CAAC;SAClC,GAAG,CAAC,CAAC,CAAC;SACN,QAAQ,CACP,uGAAuG,CACxG;CACJ,CAAC,CAAC"}
1
+ {"version":3,"file":"location.config.js","sourceRoot":"","sources":["../../../src/models/locations/location.config.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,6DAA2D;AAE9C,QAAA,yBAAyB,GAAG,OAAC,CAAC,KAAK,CAAC;IAC/C,OAAC;SACE,OAAO,CAAC,wCAAmB,CAAC,IAAI,CAAC;SACjC,QAAQ,CACP,oEAAoE,CACrE;IACH,OAAC;SACE,OAAO,CAAC,wCAAmB,CAAC,IAAI,CAAC;SACjC,QAAQ,CACP,oEAAoE,CACrE;CACJ,CAAC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,QAAQ,EAAE,OAAC;SACR,KAAK,CAAC,kCAA0B,CAAC;SACjC,GAAG,CAAC,CAAC,CAAC;SACN,QAAQ,CACP,iFAAiF,CAClF;IACH,aAAa,EAAE,OAAC;SACb,KAAK,CAAC,kCAA0B,CAAC;SACjC,GAAG,CAAC,CAAC,CAAC;SACN,QAAQ,CACP,gFAAgF,CACjF;IAEH,QAAQ,EAAE,OAAC;SACR,KAAK,CAAC,mCAA2B,CAAC;SAClC,GAAG,CAAC,CAAC,CAAC;SACN,QAAQ,CACP,uGAAuG,CACxG;CACJ,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@little-samo/samo-ai-sdk",
3
- "version": "0.1.4-rv1",
3
+ "version": "0.1.4-rv3",
4
4
  "description": "SamoAI SDK",
5
5
  "license": "MIT",
6
6
  "repository": {