@little-samo/samo-ai-sdk 0.1.1-rv7 → 0.1.2-rv1
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.
- package/dist/dto/entities/agents/agent.requests.d.ts +10 -395
- package/dist/dto/entities/agents/agent.requests.js +4 -2
- package/dist/dto/entities/agents/agent.requests.js.map +1 -1
- package/dist/dto/locations/index.d.ts +1 -1
- package/dist/dto/locations/index.js +1 -1
- package/dist/dto/locations/index.js.map +1 -1
- package/dist/dto/locations/location.events.d.ts +24 -5
- package/dist/dto/locations/location.events.js +4 -1
- package/dist/dto/locations/location.events.js.map +1 -1
- package/dist/dto/locations/location.requests.d.ts +146 -12
- package/dist/dto/locations/location.requests.js +58 -8
- package/dist/dto/locations/location.requests.js.map +1 -1
- package/dist/dto/locations/location.scheduled-message.d.ts +12 -0
- package/dist/dto/locations/location.scheduled-message.js +3 -0
- package/dist/dto/locations/location.scheduled-message.js.map +1 -0
- package/dist/models/entities/agents/agent.config.d.ts +6 -281
- package/dist/models/entities/agents/agent.config.js +9 -43
- package/dist/models/entities/agents/agent.config.js.map +1 -1
- package/package.json +2 -2
|
@@ -25,173 +25,8 @@ export declare const AgentConfigSchema: z.ZodObject<{
|
|
|
25
25
|
languages: z.ZodArray<z.ZodString, "many">;
|
|
26
26
|
timeZone: z.ZodString;
|
|
27
27
|
greeting: z.ZodString;
|
|
28
|
-
actions: z.ZodArray<z.ZodUnion<[z.ZodLiteral<"
|
|
29
|
-
character: z.
|
|
30
|
-
background: z.ZodOptional<z.ZodObject<{
|
|
31
|
-
role: z.ZodOptional<z.ZodString>;
|
|
32
|
-
gender: z.ZodOptional<z.ZodString>;
|
|
33
|
-
expertise: z.ZodOptional<z.ZodString>;
|
|
34
|
-
backstory: z.ZodOptional<z.ZodString>;
|
|
35
|
-
birthDate: z.ZodOptional<z.ZodString>;
|
|
36
|
-
occupation: z.ZodOptional<z.ZodString>;
|
|
37
|
-
}, "strip", z.ZodOptional<z.ZodString>, z.objectOutputType<{
|
|
38
|
-
role: z.ZodOptional<z.ZodString>;
|
|
39
|
-
gender: z.ZodOptional<z.ZodString>;
|
|
40
|
-
expertise: z.ZodOptional<z.ZodString>;
|
|
41
|
-
backstory: z.ZodOptional<z.ZodString>;
|
|
42
|
-
birthDate: z.ZodOptional<z.ZodString>;
|
|
43
|
-
occupation: z.ZodOptional<z.ZodString>;
|
|
44
|
-
}, z.ZodOptional<z.ZodString>, "strip">, z.objectInputType<{
|
|
45
|
-
role: z.ZodOptional<z.ZodString>;
|
|
46
|
-
gender: z.ZodOptional<z.ZodString>;
|
|
47
|
-
expertise: z.ZodOptional<z.ZodString>;
|
|
48
|
-
backstory: z.ZodOptional<z.ZodString>;
|
|
49
|
-
birthDate: z.ZodOptional<z.ZodString>;
|
|
50
|
-
occupation: z.ZodOptional<z.ZodString>;
|
|
51
|
-
}, z.ZodOptional<z.ZodString>, "strip">>>;
|
|
52
|
-
speech: z.ZodOptional<z.ZodObject<{
|
|
53
|
-
tone: z.ZodOptional<z.ZodString>;
|
|
54
|
-
style: z.ZodOptional<z.ZodString>;
|
|
55
|
-
formality: z.ZodOptional<z.ZodString>;
|
|
56
|
-
}, "strip", z.ZodOptional<z.ZodString>, z.objectOutputType<{
|
|
57
|
-
tone: z.ZodOptional<z.ZodString>;
|
|
58
|
-
style: z.ZodOptional<z.ZodString>;
|
|
59
|
-
formality: z.ZodOptional<z.ZodString>;
|
|
60
|
-
}, z.ZodOptional<z.ZodString>, "strip">, z.objectInputType<{
|
|
61
|
-
tone: z.ZodOptional<z.ZodString>;
|
|
62
|
-
style: z.ZodOptional<z.ZodString>;
|
|
63
|
-
formality: z.ZodOptional<z.ZodString>;
|
|
64
|
-
}, z.ZodOptional<z.ZodString>, "strip">>>;
|
|
65
|
-
personality: z.ZodOptional<z.ZodObject<{
|
|
66
|
-
traits: z.ZodOptional<z.ZodString>;
|
|
67
|
-
interests: z.ZodOptional<z.ZodString>;
|
|
68
|
-
values: z.ZodOptional<z.ZodString>;
|
|
69
|
-
quirks: z.ZodOptional<z.ZodString>;
|
|
70
|
-
mbti: z.ZodOptional<z.ZodString>;
|
|
71
|
-
}, "strip", z.ZodOptional<z.ZodString>, z.objectOutputType<{
|
|
72
|
-
traits: z.ZodOptional<z.ZodString>;
|
|
73
|
-
interests: z.ZodOptional<z.ZodString>;
|
|
74
|
-
values: z.ZodOptional<z.ZodString>;
|
|
75
|
-
quirks: z.ZodOptional<z.ZodString>;
|
|
76
|
-
mbti: z.ZodOptional<z.ZodString>;
|
|
77
|
-
}, z.ZodOptional<z.ZodString>, "strip">, z.objectInputType<{
|
|
78
|
-
traits: z.ZodOptional<z.ZodString>;
|
|
79
|
-
interests: z.ZodOptional<z.ZodString>;
|
|
80
|
-
values: z.ZodOptional<z.ZodString>;
|
|
81
|
-
quirks: z.ZodOptional<z.ZodString>;
|
|
82
|
-
mbti: z.ZodOptional<z.ZodString>;
|
|
83
|
-
}, z.ZodOptional<z.ZodString>, "strip">>>;
|
|
84
|
-
}, "strip", z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodObject<{}, "strip", z.ZodOptional<z.ZodString>, z.objectOutputType<{}, z.ZodOptional<z.ZodString>, "strip">, z.objectInputType<{}, z.ZodOptional<z.ZodString>, "strip">>]>, z.objectOutputType<{
|
|
85
|
-
background: z.ZodOptional<z.ZodObject<{
|
|
86
|
-
role: z.ZodOptional<z.ZodString>;
|
|
87
|
-
gender: z.ZodOptional<z.ZodString>;
|
|
88
|
-
expertise: z.ZodOptional<z.ZodString>;
|
|
89
|
-
backstory: z.ZodOptional<z.ZodString>;
|
|
90
|
-
birthDate: z.ZodOptional<z.ZodString>;
|
|
91
|
-
occupation: z.ZodOptional<z.ZodString>;
|
|
92
|
-
}, "strip", z.ZodOptional<z.ZodString>, z.objectOutputType<{
|
|
93
|
-
role: z.ZodOptional<z.ZodString>;
|
|
94
|
-
gender: z.ZodOptional<z.ZodString>;
|
|
95
|
-
expertise: z.ZodOptional<z.ZodString>;
|
|
96
|
-
backstory: z.ZodOptional<z.ZodString>;
|
|
97
|
-
birthDate: z.ZodOptional<z.ZodString>;
|
|
98
|
-
occupation: z.ZodOptional<z.ZodString>;
|
|
99
|
-
}, z.ZodOptional<z.ZodString>, "strip">, z.objectInputType<{
|
|
100
|
-
role: z.ZodOptional<z.ZodString>;
|
|
101
|
-
gender: z.ZodOptional<z.ZodString>;
|
|
102
|
-
expertise: z.ZodOptional<z.ZodString>;
|
|
103
|
-
backstory: z.ZodOptional<z.ZodString>;
|
|
104
|
-
birthDate: z.ZodOptional<z.ZodString>;
|
|
105
|
-
occupation: z.ZodOptional<z.ZodString>;
|
|
106
|
-
}, z.ZodOptional<z.ZodString>, "strip">>>;
|
|
107
|
-
speech: z.ZodOptional<z.ZodObject<{
|
|
108
|
-
tone: z.ZodOptional<z.ZodString>;
|
|
109
|
-
style: z.ZodOptional<z.ZodString>;
|
|
110
|
-
formality: z.ZodOptional<z.ZodString>;
|
|
111
|
-
}, "strip", z.ZodOptional<z.ZodString>, z.objectOutputType<{
|
|
112
|
-
tone: z.ZodOptional<z.ZodString>;
|
|
113
|
-
style: z.ZodOptional<z.ZodString>;
|
|
114
|
-
formality: z.ZodOptional<z.ZodString>;
|
|
115
|
-
}, z.ZodOptional<z.ZodString>, "strip">, z.objectInputType<{
|
|
116
|
-
tone: z.ZodOptional<z.ZodString>;
|
|
117
|
-
style: z.ZodOptional<z.ZodString>;
|
|
118
|
-
formality: z.ZodOptional<z.ZodString>;
|
|
119
|
-
}, z.ZodOptional<z.ZodString>, "strip">>>;
|
|
120
|
-
personality: z.ZodOptional<z.ZodObject<{
|
|
121
|
-
traits: z.ZodOptional<z.ZodString>;
|
|
122
|
-
interests: z.ZodOptional<z.ZodString>;
|
|
123
|
-
values: z.ZodOptional<z.ZodString>;
|
|
124
|
-
quirks: z.ZodOptional<z.ZodString>;
|
|
125
|
-
mbti: z.ZodOptional<z.ZodString>;
|
|
126
|
-
}, "strip", z.ZodOptional<z.ZodString>, z.objectOutputType<{
|
|
127
|
-
traits: z.ZodOptional<z.ZodString>;
|
|
128
|
-
interests: z.ZodOptional<z.ZodString>;
|
|
129
|
-
values: z.ZodOptional<z.ZodString>;
|
|
130
|
-
quirks: z.ZodOptional<z.ZodString>;
|
|
131
|
-
mbti: z.ZodOptional<z.ZodString>;
|
|
132
|
-
}, z.ZodOptional<z.ZodString>, "strip">, z.objectInputType<{
|
|
133
|
-
traits: z.ZodOptional<z.ZodString>;
|
|
134
|
-
interests: z.ZodOptional<z.ZodString>;
|
|
135
|
-
values: z.ZodOptional<z.ZodString>;
|
|
136
|
-
quirks: z.ZodOptional<z.ZodString>;
|
|
137
|
-
mbti: z.ZodOptional<z.ZodString>;
|
|
138
|
-
}, z.ZodOptional<z.ZodString>, "strip">>>;
|
|
139
|
-
}, z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodObject<{}, "strip", z.ZodOptional<z.ZodString>, z.objectOutputType<{}, z.ZodOptional<z.ZodString>, "strip">, z.objectInputType<{}, z.ZodOptional<z.ZodString>, "strip">>]>, "strip">, z.objectInputType<{
|
|
140
|
-
background: z.ZodOptional<z.ZodObject<{
|
|
141
|
-
role: z.ZodOptional<z.ZodString>;
|
|
142
|
-
gender: z.ZodOptional<z.ZodString>;
|
|
143
|
-
expertise: z.ZodOptional<z.ZodString>;
|
|
144
|
-
backstory: z.ZodOptional<z.ZodString>;
|
|
145
|
-
birthDate: z.ZodOptional<z.ZodString>;
|
|
146
|
-
occupation: z.ZodOptional<z.ZodString>;
|
|
147
|
-
}, "strip", z.ZodOptional<z.ZodString>, z.objectOutputType<{
|
|
148
|
-
role: z.ZodOptional<z.ZodString>;
|
|
149
|
-
gender: z.ZodOptional<z.ZodString>;
|
|
150
|
-
expertise: z.ZodOptional<z.ZodString>;
|
|
151
|
-
backstory: z.ZodOptional<z.ZodString>;
|
|
152
|
-
birthDate: z.ZodOptional<z.ZodString>;
|
|
153
|
-
occupation: z.ZodOptional<z.ZodString>;
|
|
154
|
-
}, z.ZodOptional<z.ZodString>, "strip">, z.objectInputType<{
|
|
155
|
-
role: z.ZodOptional<z.ZodString>;
|
|
156
|
-
gender: z.ZodOptional<z.ZodString>;
|
|
157
|
-
expertise: z.ZodOptional<z.ZodString>;
|
|
158
|
-
backstory: z.ZodOptional<z.ZodString>;
|
|
159
|
-
birthDate: z.ZodOptional<z.ZodString>;
|
|
160
|
-
occupation: z.ZodOptional<z.ZodString>;
|
|
161
|
-
}, z.ZodOptional<z.ZodString>, "strip">>>;
|
|
162
|
-
speech: z.ZodOptional<z.ZodObject<{
|
|
163
|
-
tone: z.ZodOptional<z.ZodString>;
|
|
164
|
-
style: z.ZodOptional<z.ZodString>;
|
|
165
|
-
formality: z.ZodOptional<z.ZodString>;
|
|
166
|
-
}, "strip", z.ZodOptional<z.ZodString>, z.objectOutputType<{
|
|
167
|
-
tone: z.ZodOptional<z.ZodString>;
|
|
168
|
-
style: z.ZodOptional<z.ZodString>;
|
|
169
|
-
formality: z.ZodOptional<z.ZodString>;
|
|
170
|
-
}, z.ZodOptional<z.ZodString>, "strip">, z.objectInputType<{
|
|
171
|
-
tone: z.ZodOptional<z.ZodString>;
|
|
172
|
-
style: z.ZodOptional<z.ZodString>;
|
|
173
|
-
formality: z.ZodOptional<z.ZodString>;
|
|
174
|
-
}, z.ZodOptional<z.ZodString>, "strip">>>;
|
|
175
|
-
personality: z.ZodOptional<z.ZodObject<{
|
|
176
|
-
traits: z.ZodOptional<z.ZodString>;
|
|
177
|
-
interests: z.ZodOptional<z.ZodString>;
|
|
178
|
-
values: z.ZodOptional<z.ZodString>;
|
|
179
|
-
quirks: z.ZodOptional<z.ZodString>;
|
|
180
|
-
mbti: z.ZodOptional<z.ZodString>;
|
|
181
|
-
}, "strip", z.ZodOptional<z.ZodString>, z.objectOutputType<{
|
|
182
|
-
traits: z.ZodOptional<z.ZodString>;
|
|
183
|
-
interests: z.ZodOptional<z.ZodString>;
|
|
184
|
-
values: z.ZodOptional<z.ZodString>;
|
|
185
|
-
quirks: z.ZodOptional<z.ZodString>;
|
|
186
|
-
mbti: z.ZodOptional<z.ZodString>;
|
|
187
|
-
}, z.ZodOptional<z.ZodString>, "strip">, z.objectInputType<{
|
|
188
|
-
traits: z.ZodOptional<z.ZodString>;
|
|
189
|
-
interests: z.ZodOptional<z.ZodString>;
|
|
190
|
-
values: z.ZodOptional<z.ZodString>;
|
|
191
|
-
quirks: z.ZodOptional<z.ZodString>;
|
|
192
|
-
mbti: z.ZodOptional<z.ZodString>;
|
|
193
|
-
}, z.ZodOptional<z.ZodString>, "strip">>>;
|
|
194
|
-
}, z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodObject<{}, "strip", z.ZodOptional<z.ZodString>, z.objectOutputType<{}, z.ZodOptional<z.ZodString>, "strip">, z.objectInputType<{}, z.ZodOptional<z.ZodString>, "strip">>]>, "strip">>>;
|
|
28
|
+
actions: z.ZodArray<z.ZodUnion<[z.ZodLiteral<"todo">, z.ZodLiteral<"todo">]>, "many">;
|
|
29
|
+
character: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
195
30
|
rules: z.ZodArray<z.ZodString, "many">;
|
|
196
31
|
}, "strip", z.ZodTypeAny, {
|
|
197
32
|
name: string;
|
|
@@ -204,64 +39,9 @@ export declare const AgentConfigSchema: z.ZodObject<{
|
|
|
204
39
|
languages: string[];
|
|
205
40
|
timeZone: string;
|
|
206
41
|
greeting: string;
|
|
207
|
-
actions:
|
|
42
|
+
actions: "todo"[];
|
|
43
|
+
character: Record<string, Record<string, string>>;
|
|
208
44
|
rules: string[];
|
|
209
|
-
character?: z.objectOutputType<{
|
|
210
|
-
background: z.ZodOptional<z.ZodObject<{
|
|
211
|
-
role: z.ZodOptional<z.ZodString>;
|
|
212
|
-
gender: z.ZodOptional<z.ZodString>;
|
|
213
|
-
expertise: z.ZodOptional<z.ZodString>;
|
|
214
|
-
backstory: z.ZodOptional<z.ZodString>;
|
|
215
|
-
birthDate: z.ZodOptional<z.ZodString>;
|
|
216
|
-
occupation: z.ZodOptional<z.ZodString>;
|
|
217
|
-
}, "strip", z.ZodOptional<z.ZodString>, z.objectOutputType<{
|
|
218
|
-
role: z.ZodOptional<z.ZodString>;
|
|
219
|
-
gender: z.ZodOptional<z.ZodString>;
|
|
220
|
-
expertise: z.ZodOptional<z.ZodString>;
|
|
221
|
-
backstory: z.ZodOptional<z.ZodString>;
|
|
222
|
-
birthDate: z.ZodOptional<z.ZodString>;
|
|
223
|
-
occupation: z.ZodOptional<z.ZodString>;
|
|
224
|
-
}, z.ZodOptional<z.ZodString>, "strip">, z.objectInputType<{
|
|
225
|
-
role: z.ZodOptional<z.ZodString>;
|
|
226
|
-
gender: z.ZodOptional<z.ZodString>;
|
|
227
|
-
expertise: z.ZodOptional<z.ZodString>;
|
|
228
|
-
backstory: z.ZodOptional<z.ZodString>;
|
|
229
|
-
birthDate: z.ZodOptional<z.ZodString>;
|
|
230
|
-
occupation: z.ZodOptional<z.ZodString>;
|
|
231
|
-
}, z.ZodOptional<z.ZodString>, "strip">>>;
|
|
232
|
-
speech: z.ZodOptional<z.ZodObject<{
|
|
233
|
-
tone: z.ZodOptional<z.ZodString>;
|
|
234
|
-
style: z.ZodOptional<z.ZodString>;
|
|
235
|
-
formality: z.ZodOptional<z.ZodString>;
|
|
236
|
-
}, "strip", z.ZodOptional<z.ZodString>, z.objectOutputType<{
|
|
237
|
-
tone: z.ZodOptional<z.ZodString>;
|
|
238
|
-
style: z.ZodOptional<z.ZodString>;
|
|
239
|
-
formality: z.ZodOptional<z.ZodString>;
|
|
240
|
-
}, z.ZodOptional<z.ZodString>, "strip">, z.objectInputType<{
|
|
241
|
-
tone: z.ZodOptional<z.ZodString>;
|
|
242
|
-
style: z.ZodOptional<z.ZodString>;
|
|
243
|
-
formality: z.ZodOptional<z.ZodString>;
|
|
244
|
-
}, z.ZodOptional<z.ZodString>, "strip">>>;
|
|
245
|
-
personality: z.ZodOptional<z.ZodObject<{
|
|
246
|
-
traits: z.ZodOptional<z.ZodString>;
|
|
247
|
-
interests: z.ZodOptional<z.ZodString>;
|
|
248
|
-
values: z.ZodOptional<z.ZodString>;
|
|
249
|
-
quirks: z.ZodOptional<z.ZodString>;
|
|
250
|
-
mbti: z.ZodOptional<z.ZodString>;
|
|
251
|
-
}, "strip", z.ZodOptional<z.ZodString>, z.objectOutputType<{
|
|
252
|
-
traits: z.ZodOptional<z.ZodString>;
|
|
253
|
-
interests: z.ZodOptional<z.ZodString>;
|
|
254
|
-
values: z.ZodOptional<z.ZodString>;
|
|
255
|
-
quirks: z.ZodOptional<z.ZodString>;
|
|
256
|
-
mbti: z.ZodOptional<z.ZodString>;
|
|
257
|
-
}, z.ZodOptional<z.ZodString>, "strip">, z.objectInputType<{
|
|
258
|
-
traits: z.ZodOptional<z.ZodString>;
|
|
259
|
-
interests: z.ZodOptional<z.ZodString>;
|
|
260
|
-
values: z.ZodOptional<z.ZodString>;
|
|
261
|
-
quirks: z.ZodOptional<z.ZodString>;
|
|
262
|
-
mbti: z.ZodOptional<z.ZodString>;
|
|
263
|
-
}, z.ZodOptional<z.ZodString>, "strip">>>;
|
|
264
|
-
}, z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodObject<{}, "strip", z.ZodOptional<z.ZodString>, z.objectOutputType<{}, z.ZodOptional<z.ZodString>, "strip">, z.objectInputType<{}, z.ZodOptional<z.ZodString>, "strip">>]>, "strip"> | undefined;
|
|
265
45
|
}, {
|
|
266
46
|
name: string;
|
|
267
47
|
avatar: string;
|
|
@@ -273,64 +53,9 @@ export declare const AgentConfigSchema: z.ZodObject<{
|
|
|
273
53
|
languages: string[];
|
|
274
54
|
timeZone: string;
|
|
275
55
|
greeting: string;
|
|
276
|
-
actions:
|
|
56
|
+
actions: "todo"[];
|
|
57
|
+
character: Record<string, Record<string, string>>;
|
|
277
58
|
rules: string[];
|
|
278
|
-
character?: z.objectInputType<{
|
|
279
|
-
background: z.ZodOptional<z.ZodObject<{
|
|
280
|
-
role: z.ZodOptional<z.ZodString>;
|
|
281
|
-
gender: z.ZodOptional<z.ZodString>;
|
|
282
|
-
expertise: z.ZodOptional<z.ZodString>;
|
|
283
|
-
backstory: z.ZodOptional<z.ZodString>;
|
|
284
|
-
birthDate: z.ZodOptional<z.ZodString>;
|
|
285
|
-
occupation: z.ZodOptional<z.ZodString>;
|
|
286
|
-
}, "strip", z.ZodOptional<z.ZodString>, z.objectOutputType<{
|
|
287
|
-
role: z.ZodOptional<z.ZodString>;
|
|
288
|
-
gender: z.ZodOptional<z.ZodString>;
|
|
289
|
-
expertise: z.ZodOptional<z.ZodString>;
|
|
290
|
-
backstory: z.ZodOptional<z.ZodString>;
|
|
291
|
-
birthDate: z.ZodOptional<z.ZodString>;
|
|
292
|
-
occupation: z.ZodOptional<z.ZodString>;
|
|
293
|
-
}, z.ZodOptional<z.ZodString>, "strip">, z.objectInputType<{
|
|
294
|
-
role: z.ZodOptional<z.ZodString>;
|
|
295
|
-
gender: z.ZodOptional<z.ZodString>;
|
|
296
|
-
expertise: z.ZodOptional<z.ZodString>;
|
|
297
|
-
backstory: z.ZodOptional<z.ZodString>;
|
|
298
|
-
birthDate: z.ZodOptional<z.ZodString>;
|
|
299
|
-
occupation: z.ZodOptional<z.ZodString>;
|
|
300
|
-
}, z.ZodOptional<z.ZodString>, "strip">>>;
|
|
301
|
-
speech: z.ZodOptional<z.ZodObject<{
|
|
302
|
-
tone: z.ZodOptional<z.ZodString>;
|
|
303
|
-
style: z.ZodOptional<z.ZodString>;
|
|
304
|
-
formality: z.ZodOptional<z.ZodString>;
|
|
305
|
-
}, "strip", z.ZodOptional<z.ZodString>, z.objectOutputType<{
|
|
306
|
-
tone: z.ZodOptional<z.ZodString>;
|
|
307
|
-
style: z.ZodOptional<z.ZodString>;
|
|
308
|
-
formality: z.ZodOptional<z.ZodString>;
|
|
309
|
-
}, z.ZodOptional<z.ZodString>, "strip">, z.objectInputType<{
|
|
310
|
-
tone: z.ZodOptional<z.ZodString>;
|
|
311
|
-
style: z.ZodOptional<z.ZodString>;
|
|
312
|
-
formality: z.ZodOptional<z.ZodString>;
|
|
313
|
-
}, z.ZodOptional<z.ZodString>, "strip">>>;
|
|
314
|
-
personality: z.ZodOptional<z.ZodObject<{
|
|
315
|
-
traits: z.ZodOptional<z.ZodString>;
|
|
316
|
-
interests: z.ZodOptional<z.ZodString>;
|
|
317
|
-
values: z.ZodOptional<z.ZodString>;
|
|
318
|
-
quirks: z.ZodOptional<z.ZodString>;
|
|
319
|
-
mbti: z.ZodOptional<z.ZodString>;
|
|
320
|
-
}, "strip", z.ZodOptional<z.ZodString>, z.objectOutputType<{
|
|
321
|
-
traits: z.ZodOptional<z.ZodString>;
|
|
322
|
-
interests: z.ZodOptional<z.ZodString>;
|
|
323
|
-
values: z.ZodOptional<z.ZodString>;
|
|
324
|
-
quirks: z.ZodOptional<z.ZodString>;
|
|
325
|
-
mbti: z.ZodOptional<z.ZodString>;
|
|
326
|
-
}, z.ZodOptional<z.ZodString>, "strip">, z.objectInputType<{
|
|
327
|
-
traits: z.ZodOptional<z.ZodString>;
|
|
328
|
-
interests: z.ZodOptional<z.ZodString>;
|
|
329
|
-
values: z.ZodOptional<z.ZodString>;
|
|
330
|
-
quirks: z.ZodOptional<z.ZodString>;
|
|
331
|
-
mbti: z.ZodOptional<z.ZodString>;
|
|
332
|
-
}, z.ZodOptional<z.ZodString>, "strip">>>;
|
|
333
|
-
}, z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodObject<{}, "strip", z.ZodOptional<z.ZodString>, z.objectOutputType<{}, z.ZodOptional<z.ZodString>, "strip">, z.objectInputType<{}, z.ZodOptional<z.ZodString>, "strip">>]>, "strip"> | undefined;
|
|
334
59
|
}>;
|
|
335
60
|
export type AgentConfig = z.infer<typeof AgentConfigSchema>;
|
|
336
61
|
export {};
|
|
@@ -22,47 +22,13 @@ 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 CharacterPropertySchema = zod_1.z.string().max(500).optional();
|
|
26
|
-
const CharacterBackgroundSchema = zod_1.z
|
|
27
|
-
.object({
|
|
28
|
-
role: CharacterPropertySchema.describe("Agent's primary role or profession (e.g., 'professor', 'assistant', 'coach', 'mentor'). This shapes how they approach interactions and what expertise they offer."),
|
|
29
|
-
gender: CharacterPropertySchema.describe('Gender identity of the agent, which may influence their communication style and perspective.'),
|
|
30
|
-
expertise: CharacterPropertySchema.describe("Specific areas of knowledge or skills (e.g., 'machine learning', 'creative writing', 'financial planning'). Determines what topics the agent can provide authoritative guidance on."),
|
|
31
|
-
backstory: CharacterPropertySchema.describe('Personal history and experiences that shaped the agent. This background informs their worldview, reactions, and decision-making patterns.'),
|
|
32
|
-
birthDate: CharacterPropertySchema.describe('Birth date in YYYY-MM-DD format'),
|
|
33
|
-
occupation: CharacterPropertySchema.describe('Current or past occupation'),
|
|
34
|
-
})
|
|
35
|
-
.catchall(CharacterPropertySchema)
|
|
36
|
-
.optional();
|
|
37
|
-
const CharacterSpeechSchema = zod_1.z
|
|
38
|
-
.object({
|
|
39
|
-
tone: CharacterPropertySchema.describe("Overall emotional quality of communication (e.g., 'friendly', 'formal', 'enthusiastic', 'calm'). Affects how messages are perceived by others."),
|
|
40
|
-
style: CharacterPropertySchema.describe("Conversation approach and structure (e.g., 'concise', 'detailed', 'humorous', 'analytical'). Determines message length and information density."),
|
|
41
|
-
formality: CharacterPropertySchema.describe("Level of formal language usage (e.g., 'casual', 'professional', 'academic'). Affects vocabulary choice and sentence structure."),
|
|
42
|
-
})
|
|
43
|
-
.catchall(CharacterPropertySchema)
|
|
44
|
-
.optional();
|
|
45
|
-
const CharacterPersonalitySchema = zod_1.z
|
|
46
|
-
.object({
|
|
47
|
-
traits: CharacterPropertySchema.describe("Core personality characteristics (e.g., 'empathetic', 'analytical', 'creative', 'decisive'). These drive behavioral patterns and response tendencies."),
|
|
48
|
-
interests: CharacterPropertySchema.describe('Topics and activities the agent finds engaging or enjoys discussing. Influences conversation direction and enthusiasm levels.'),
|
|
49
|
-
values: CharacterPropertySchema.describe('Fundamental beliefs and principles that guide decision-making. Affects moral stances and advice given to others.'),
|
|
50
|
-
quirks: CharacterPropertySchema.describe('Unique habits, mannerisms, or characteristics that make the agent distinctive. Adds personality depth and memorability.'),
|
|
51
|
-
mbti: CharacterPropertySchema.describe("Myers-Briggs personality type (e.g., 'ENFP', 'INTJ'). Provides structured personality framework for consistent behavior patterns."),
|
|
52
|
-
})
|
|
53
|
-
.catchall(CharacterPropertySchema)
|
|
54
|
-
.optional();
|
|
55
25
|
const CharacterSchema = zod_1.z
|
|
56
|
-
.
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
}
|
|
61
|
-
.
|
|
62
|
-
CharacterPropertySchema,
|
|
63
|
-
zod_1.z.object({}).catchall(CharacterPropertySchema),
|
|
64
|
-
]))
|
|
65
|
-
.optional();
|
|
26
|
+
.record(zod_1.z.record(zod_1.z.string().max(500)))
|
|
27
|
+
.describe('Flexible 2-depth character configuration. Common suggested categories and properties: ' +
|
|
28
|
+
"background: {role (CRITICAL: Agent's core identity and primary function - defines how they approach ALL interactions, what expertise they provide, and their fundamental purpose. This shapes their entire behavioral pattern and response style), gender, expertise, backstory, birthDate, occupation} - " +
|
|
29
|
+
'speech: {tone, style, formality} - ' +
|
|
30
|
+
'personality: {traits, interests, values, quirks, mbti}. ' +
|
|
31
|
+
'All values are strings up to 500 characters. You can use any category and property names.');
|
|
66
32
|
const LlmPresetSchema = zod_1.z.union([
|
|
67
33
|
zod_1.z.literal('gemini-low').describe('Gemini - Low cost'),
|
|
68
34
|
zod_1.z.literal('gemini-medium').describe('Gemini - Balanced'),
|
|
@@ -107,15 +73,15 @@ exports.AgentConfigSchema = zod_1.z.object({
|
|
|
107
73
|
actions: zod_1.z
|
|
108
74
|
.array(zod_1.z.union([
|
|
109
75
|
zod_1.z
|
|
110
|
-
.literal('
|
|
111
|
-
.describe('
|
|
76
|
+
.literal('todo')
|
|
77
|
+
.describe('Placeholder for future action capabilities - to be implemented'),
|
|
112
78
|
zod_1.z
|
|
113
79
|
.literal('todo')
|
|
114
80
|
.describe('Placeholder for future action capabilities - to be implemented'),
|
|
115
81
|
]))
|
|
116
82
|
.max(4)
|
|
117
83
|
.describe("Additional capabilities the agent can perform beyond basic conversation. Each action expands the agent's toolkit for specific use cases."),
|
|
118
|
-
character: CharacterSchema
|
|
84
|
+
character: CharacterSchema,
|
|
119
85
|
rules: zod_1.z
|
|
120
86
|
.array(zod_1.z.string().max(200))
|
|
121
87
|
.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,+KAA+K;IACrL,IAAI,EAAE,8KAA8K;IACpL,IAAI,EAAE,mMAAmM;IACzM,MAAM,EACJ,uLAAuL;IACzL,MAAM,EACJ,mMAAmM;CACtM,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,
|
|
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,+KAA+K;IAC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AAG,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,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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@little-samo/samo-ai-sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2-rv1",
|
|
4
4
|
"description": "SamoAI SDK",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
"zod": "^3.24.1"
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {
|
|
87
|
-
"@little-samo/samo-ai": "^0.1.
|
|
87
|
+
"@little-samo/samo-ai": "^0.1.2",
|
|
88
88
|
"class-transformer": "^0.5.1",
|
|
89
89
|
"class-validator": "^0.14.2",
|
|
90
90
|
"zod": "^3.24.1"
|