@little-samo/samo-ai-sdk 0.1.3 → 0.1.4-rv2
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.d.ts +8 -0
- package/dist/dto/entities/agents/agent.requests.d.ts +221 -20
- package/dist/dto/entities/agents/agent.requests.js +37 -1
- package/dist/dto/entities/agents/agent.requests.js.map +1 -1
- package/dist/dto/entities/gimmicks/gimmick.d.ts +5 -0
- package/dist/dto/entities/gimmicks/gimmick.js +3 -0
- package/dist/dto/entities/gimmicks/gimmick.js.map +1 -0
- package/dist/dto/entities/gimmicks/index.d.ts +1 -0
- package/dist/dto/entities/gimmicks/index.js +18 -0
- package/dist/dto/entities/gimmicks/index.js.map +1 -0
- package/dist/dto/entities/index.d.ts +1 -0
- package/dist/dto/entities/index.js +1 -0
- package/dist/dto/entities/index.js.map +1 -1
- package/dist/dto/entities/users/user.d.ts +4 -0
- package/dist/dto/entities/users/user.requests.d.ts +6 -1
- package/dist/dto/entities/users/user.requests.js +2 -1
- package/dist/dto/entities/users/user.requests.js.map +1 -1
- package/dist/dto/items/item.requests.d.ts +12 -2
- package/dist/dto/items/item.requests.js +17 -32
- package/dist/dto/items/item.requests.js.map +1 -1
- package/dist/dto/locations/index.d.ts +1 -0
- package/dist/dto/locations/index.js +1 -0
- package/dist/dto/locations/index.js.map +1 -1
- package/dist/dto/locations/location.d.ts +25 -2
- package/dist/dto/locations/location.events.d.ts +29 -9
- package/dist/dto/locations/location.events.js +6 -2
- package/dist/dto/locations/location.events.js.map +1 -1
- package/dist/dto/locations/location.message.d.ts +1 -0
- package/dist/dto/locations/location.requests.d.ts +660 -169
- package/dist/dto/locations/location.requests.js +147 -44
- package/dist/dto/locations/location.requests.js.map +1 -1
- package/dist/dto/locations/location.snapshot.d.ts +11 -0
- package/dist/dto/locations/location.snapshot.js +3 -0
- package/dist/dto/locations/location.snapshot.js.map +1 -0
- package/dist/models/entities/agents/agent.config.d.ts +4 -4
- package/dist/models/entities/agents/agent.config.js +23 -15
- package/dist/models/entities/agents/agent.config.js.map +1 -1
- package/dist/models/locations/location.config.d.ts +26 -23
- package/dist/models/locations/location.config.js +19 -12
- package/dist/models/locations/location.config.js.map +1 -1
- package/dist/models/locations/location.constants.d.ts +1 -0
- package/dist/models/locations/location.constants.js +1 -0
- package/dist/models/locations/location.constants.js.map +1 -1
- package/package.json +3 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.ResumeLocationUpdateSchema = exports.PauseLocationUpdateSchema = exports.UpdateLocationAgentIsActiveSchema = exports.UpdateLocationRenderingSchema = exports.UpdateLocationImageSchema = exports.SendSystemMessageSchema = exports.SendLocationMessageSchema = exports.GetLocationMessagesSchema = exports.UnsubscribeLocationSchema = exports.SubscribeLocationSchema = exports.LeaveLocationSchema = exports.JoinLocationSchema = exports.DeleteLocationScheduledMessageToolSchema = exports.DeleteLocationScheduledMessageParamsSchema = exports.UpdateLocationScheduledMessageToolSchema = exports.UpdateLocationScheduledMessageBodySchema = exports.UpdateLocationScheduledMessageParamsSchema = exports.CreateLocationScheduledMessageToolSchema = exports.CreateLocationScheduledMessageBodySchema = exports.CreateLocationScheduledMessageParamsSchema = exports.GetLocationScheduledMessagesParamsSchema = exports.RemoveAgentFromLocationToolSchema = exports.RemoveAgentFromLocationBodySchema = exports.RemoveAgentFromLocationParamsSchema = exports.JoinAgentToLocationToolSchema = exports.JoinAgentToLocationBodySchema = exports.JoinAgentToLocationParamsSchema = exports.LocationUnreadCountParamsSchema = exports.MarkLocationAsReadParamsSchema = exports.GetLocationSnapshotParamsSchema = exports.CreateLocationSnapshotBodySchema = exports.CreateLocationSnapshotParamsSchema = exports.GetLocationContentParamsSchema = exports.DeleteLocationParamsSchema = exports.UploadLocationThumbnailParamsSchema = exports.GetLocationCostParamsSchema = exports.GetLocationPrivateParamsSchema = exports.GetLocationParamsSchema = exports.GetAgentDmLocationQuerySchema = exports.GetLocationHelperLocationQuerySchema = exports.GetAgentHelperLocationQuerySchema = exports.GetHelperLocationQuerySchema = exports.CreateLocationFromPresetSchema = exports.CreateLocationSchema = exports.LocationPresetsPaginationQuerySchema = exports.LocationDeleteCredentialSchema = exports.LocationUpdateCredentialSchema = exports.LocationUpdateConfigSchema = exports.LocationsUnreadCountQuerySchema = exports.UserLocationsQuerySchema = void 0;
|
|
4
4
|
const common_1 = require("@little-samo/samo-ai/common");
|
|
5
5
|
const models_1 = require("@little-samo/samo-ai-sdk/models");
|
|
6
6
|
const zod_1 = require("zod");
|
|
@@ -14,18 +14,6 @@ exports.UserLocationsQuerySchema = zod_1.z.object({
|
|
|
14
14
|
.default(10)
|
|
15
15
|
.describe('Number of locations to return'),
|
|
16
16
|
});
|
|
17
|
-
exports.GetLocationParamsSchema = zod_1.z.object({
|
|
18
|
-
locationId: zod_1.z.coerce.bigint(),
|
|
19
|
-
});
|
|
20
|
-
exports.GetLocationPrivateParamsSchema = zod_1.z.object({
|
|
21
|
-
locationId: zod_1.z.coerce.bigint(),
|
|
22
|
-
});
|
|
23
|
-
exports.MarkLocationAsReadParamsSchema = zod_1.z.object({
|
|
24
|
-
locationId: zod_1.z.coerce.bigint(),
|
|
25
|
-
});
|
|
26
|
-
exports.LocationUnreadCountParamsSchema = zod_1.z.object({
|
|
27
|
-
locationId: zod_1.z.coerce.bigint(),
|
|
28
|
-
});
|
|
29
17
|
exports.LocationsUnreadCountQuerySchema = zod_1.z.object({
|
|
30
18
|
locationIds: zod_1.z
|
|
31
19
|
.string()
|
|
@@ -34,30 +22,44 @@ exports.LocationsUnreadCountQuerySchema = zod_1.z.object({
|
|
|
34
22
|
message: 'locationIds must contain 1-10 location IDs',
|
|
35
23
|
}),
|
|
36
24
|
});
|
|
37
|
-
exports.
|
|
38
|
-
locationId: zod_1.z.coerce.bigint(),
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
});
|
|
43
|
-
exports.JoinAgentToLocationToolSchema = zod_1.z.object({
|
|
44
|
-
locationId: zod_1.z.coerce.bigint(),
|
|
45
|
-
agentId: zod_1.z.coerce.bigint(),
|
|
25
|
+
exports.LocationUpdateConfigSchema = zod_1.z.object({
|
|
26
|
+
locationId: zod_1.z.coerce.bigint().describe('ID of the location to update'),
|
|
27
|
+
config: location_config_1.LocationConfigSchema.partial()
|
|
28
|
+
.strict()
|
|
29
|
+
.describe('Only the specific configuration fields that need to be updated (name, environment, core, description, etc.)'),
|
|
46
30
|
});
|
|
47
|
-
exports.
|
|
31
|
+
exports.LocationUpdateCredentialSchema = zod_1.z.object({
|
|
48
32
|
locationId: zod_1.z.coerce.bigint(),
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
33
|
+
credential: zod_1.z.union([
|
|
34
|
+
zod_1.z.object({
|
|
35
|
+
type: zod_1.z.literal('x_twitter'),
|
|
36
|
+
email: zod_1.z.string().max(255),
|
|
37
|
+
password: zod_1.z.string().max(255),
|
|
38
|
+
username: zod_1.z.string().max(255),
|
|
39
|
+
}),
|
|
40
|
+
zod_1.z.object({
|
|
41
|
+
type: zod_1.z.literal('notion'),
|
|
42
|
+
token: zod_1.z.string().max(255),
|
|
43
|
+
}),
|
|
44
|
+
]),
|
|
45
|
+
});
|
|
46
|
+
exports.LocationDeleteCredentialSchema = zod_1.z.object({
|
|
54
47
|
locationId: zod_1.z.coerce.bigint(),
|
|
55
|
-
|
|
48
|
+
credentialType: zod_1.z.string(),
|
|
56
49
|
});
|
|
57
50
|
exports.LocationPresetsPaginationQuerySchema = zod_1.z.object({
|
|
58
51
|
page: zod_1.z.coerce.number().int().min(1).optional().default(1),
|
|
59
52
|
limit: zod_1.z.coerce.number().int().min(1).max(100).optional().default(20),
|
|
60
53
|
});
|
|
54
|
+
exports.CreateLocationSchema = zod_1.z.object({
|
|
55
|
+
config: location_config_1.LocationConfigSchema.partial()
|
|
56
|
+
.strict()
|
|
57
|
+
.describe('Location configuration settings (e.g., name, description)'),
|
|
58
|
+
platform: zod_1.z
|
|
59
|
+
.nativeEnum(models_1.LocationPlatform)
|
|
60
|
+
.optional()
|
|
61
|
+
.default(models_1.LocationPlatform.API),
|
|
62
|
+
});
|
|
61
63
|
exports.CreateLocationFromPresetSchema = zod_1.z.object({
|
|
62
64
|
presetId: zod_1.z.coerce.bigint(),
|
|
63
65
|
platform: zod_1.z
|
|
@@ -65,11 +67,11 @@ exports.CreateLocationFromPresetSchema = zod_1.z.object({
|
|
|
65
67
|
.optional()
|
|
66
68
|
.default(models_1.LocationPlatform.API),
|
|
67
69
|
});
|
|
68
|
-
exports.
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
.
|
|
72
|
-
.
|
|
70
|
+
exports.GetHelperLocationQuerySchema = zod_1.z.object({
|
|
71
|
+
platform: zod_1.z
|
|
72
|
+
.nativeEnum(models_1.LocationPlatform)
|
|
73
|
+
.optional()
|
|
74
|
+
.default(models_1.LocationPlatform.API),
|
|
73
75
|
});
|
|
74
76
|
exports.GetAgentHelperLocationQuerySchema = zod_1.z.object({
|
|
75
77
|
agentId: zod_1.z.coerce.bigint(),
|
|
@@ -92,6 +94,59 @@ exports.GetAgentDmLocationQuerySchema = zod_1.z.object({
|
|
|
92
94
|
.optional()
|
|
93
95
|
.default(models_1.LocationPlatform.API),
|
|
94
96
|
});
|
|
97
|
+
exports.GetLocationParamsSchema = zod_1.z.object({
|
|
98
|
+
locationId: zod_1.z.coerce.bigint(),
|
|
99
|
+
});
|
|
100
|
+
exports.GetLocationPrivateParamsSchema = zod_1.z.object({
|
|
101
|
+
locationId: zod_1.z.coerce.bigint(),
|
|
102
|
+
});
|
|
103
|
+
exports.GetLocationCostParamsSchema = zod_1.z.object({
|
|
104
|
+
locationId: zod_1.z.coerce.bigint(),
|
|
105
|
+
});
|
|
106
|
+
exports.UploadLocationThumbnailParamsSchema = zod_1.z.object({
|
|
107
|
+
locationId: zod_1.z.coerce.bigint(),
|
|
108
|
+
});
|
|
109
|
+
exports.DeleteLocationParamsSchema = zod_1.z.object({
|
|
110
|
+
locationId: zod_1.z.coerce.bigint(),
|
|
111
|
+
});
|
|
112
|
+
exports.GetLocationContentParamsSchema = zod_1.z.object({
|
|
113
|
+
locationId: zod_1.z.coerce.bigint(),
|
|
114
|
+
});
|
|
115
|
+
exports.CreateLocationSnapshotParamsSchema = zod_1.z.object({
|
|
116
|
+
locationId: zod_1.z.coerce.bigint(),
|
|
117
|
+
});
|
|
118
|
+
exports.CreateLocationSnapshotBodySchema = zod_1.z.object({
|
|
119
|
+
maxMessages: zod_1.z.coerce.number().int().positive().optional().default(30),
|
|
120
|
+
});
|
|
121
|
+
exports.GetLocationSnapshotParamsSchema = zod_1.z.object({
|
|
122
|
+
snapshotKey: zod_1.z.string().max(128),
|
|
123
|
+
});
|
|
124
|
+
exports.MarkLocationAsReadParamsSchema = zod_1.z.object({
|
|
125
|
+
locationId: zod_1.z.coerce.bigint(),
|
|
126
|
+
});
|
|
127
|
+
exports.LocationUnreadCountParamsSchema = zod_1.z.object({
|
|
128
|
+
locationId: zod_1.z.coerce.bigint(),
|
|
129
|
+
});
|
|
130
|
+
exports.JoinAgentToLocationParamsSchema = zod_1.z.object({
|
|
131
|
+
locationId: zod_1.z.coerce.bigint(),
|
|
132
|
+
});
|
|
133
|
+
exports.JoinAgentToLocationBodySchema = zod_1.z.object({
|
|
134
|
+
agentId: zod_1.z.coerce.bigint(),
|
|
135
|
+
});
|
|
136
|
+
exports.JoinAgentToLocationToolSchema = zod_1.z.object({
|
|
137
|
+
locationId: zod_1.z.coerce.bigint(),
|
|
138
|
+
agentId: zod_1.z.coerce.bigint(),
|
|
139
|
+
});
|
|
140
|
+
exports.RemoveAgentFromLocationParamsSchema = zod_1.z.object({
|
|
141
|
+
locationId: zod_1.z.coerce.bigint(),
|
|
142
|
+
});
|
|
143
|
+
exports.RemoveAgentFromLocationBodySchema = zod_1.z.object({
|
|
144
|
+
agentId: zod_1.z.coerce.bigint(),
|
|
145
|
+
});
|
|
146
|
+
exports.RemoveAgentFromLocationToolSchema = zod_1.z.object({
|
|
147
|
+
locationId: zod_1.z.coerce.bigint(),
|
|
148
|
+
agentId: zod_1.z.coerce.bigint(),
|
|
149
|
+
});
|
|
95
150
|
exports.GetLocationScheduledMessagesParamsSchema = zod_1.z.object({
|
|
96
151
|
locationId: zod_1.z.coerce.bigint(),
|
|
97
152
|
});
|
|
@@ -114,6 +169,10 @@ const LocationScheduledMessageBaseSchema = zod_1.z.object({
|
|
|
114
169
|
exports.CreateLocationScheduledMessageBodySchema = LocationScheduledMessageBaseSchema.extend({
|
|
115
170
|
message: zod_1.z.string().max(500),
|
|
116
171
|
});
|
|
172
|
+
exports.CreateLocationScheduledMessageToolSchema = LocationScheduledMessageBaseSchema.extend({
|
|
173
|
+
locationId: zod_1.z.coerce.bigint(),
|
|
174
|
+
message: zod_1.z.string().max(500),
|
|
175
|
+
});
|
|
117
176
|
exports.UpdateLocationScheduledMessageParamsSchema = zod_1.z.object({
|
|
118
177
|
locationId: zod_1.z.coerce.bigint(),
|
|
119
178
|
messageId: zod_1.z.string(),
|
|
@@ -121,24 +180,68 @@ exports.UpdateLocationScheduledMessageParamsSchema = zod_1.z.object({
|
|
|
121
180
|
exports.UpdateLocationScheduledMessageBodySchema = LocationScheduledMessageBaseSchema.extend({
|
|
122
181
|
message: zod_1.z.string().max(500).optional(),
|
|
123
182
|
});
|
|
124
|
-
exports.
|
|
183
|
+
exports.UpdateLocationScheduledMessageToolSchema = LocationScheduledMessageBaseSchema.extend({
|
|
125
184
|
locationId: zod_1.z.coerce.bigint(),
|
|
126
185
|
messageId: zod_1.z.string(),
|
|
186
|
+
message: zod_1.z.string().max(500).optional(),
|
|
127
187
|
});
|
|
128
|
-
|
|
129
|
-
.object({
|
|
188
|
+
exports.DeleteLocationScheduledMessageParamsSchema = zod_1.z.object({
|
|
130
189
|
locationId: zod_1.z.coerce.bigint(),
|
|
131
|
-
})
|
|
132
|
-
.merge(LocationScheduledMessageBaseSchema);
|
|
133
|
-
exports.CreateLocationScheduledMessageToolSchema = LocationScheduledMessageToolBaseSchema.extend({
|
|
134
|
-
message: zod_1.z.string().max(500),
|
|
135
|
-
});
|
|
136
|
-
exports.UpdateLocationScheduledMessageToolSchema = LocationScheduledMessageToolBaseSchema.extend({
|
|
137
190
|
messageId: zod_1.z.string(),
|
|
138
|
-
message: zod_1.z.string().max(500).optional(),
|
|
139
191
|
});
|
|
140
192
|
exports.DeleteLocationScheduledMessageToolSchema = zod_1.z.object({
|
|
141
193
|
locationId: zod_1.z.coerce.bigint(),
|
|
142
194
|
messageId: zod_1.z.string(),
|
|
143
195
|
});
|
|
196
|
+
exports.JoinLocationSchema = zod_1.z.object({
|
|
197
|
+
locationId: zod_1.z.coerce.bigint(),
|
|
198
|
+
});
|
|
199
|
+
exports.LeaveLocationSchema = zod_1.z.object({
|
|
200
|
+
locationId: zod_1.z.coerce.bigint(),
|
|
201
|
+
});
|
|
202
|
+
exports.SubscribeLocationSchema = zod_1.z.object({
|
|
203
|
+
locationId: zod_1.z.coerce.bigint(),
|
|
204
|
+
});
|
|
205
|
+
exports.UnsubscribeLocationSchema = zod_1.z.object({
|
|
206
|
+
locationId: zod_1.z.coerce.bigint(),
|
|
207
|
+
});
|
|
208
|
+
exports.GetLocationMessagesSchema = zod_1.z.object({
|
|
209
|
+
locationId: zod_1.z.coerce.bigint(),
|
|
210
|
+
cursor: zod_1.z.string().optional(),
|
|
211
|
+
});
|
|
212
|
+
exports.SendLocationMessageSchema = zod_1.z.object({
|
|
213
|
+
locationId: zod_1.z.coerce.bigint(),
|
|
214
|
+
message: zod_1.z.string().max(2000).optional(),
|
|
215
|
+
action: zod_1.z.string().max(2000).optional(),
|
|
216
|
+
image: zod_1.z
|
|
217
|
+
.string()
|
|
218
|
+
.max(4 * 1024 * 1024)
|
|
219
|
+
.optional(),
|
|
220
|
+
});
|
|
221
|
+
exports.SendSystemMessageSchema = zod_1.z.object({
|
|
222
|
+
locationId: zod_1.z.coerce.bigint(),
|
|
223
|
+
message: zod_1.z.string().max(2000),
|
|
224
|
+
resumeUpdate: zod_1.z.boolean().optional(),
|
|
225
|
+
});
|
|
226
|
+
exports.UpdateLocationImageSchema = zod_1.z.object({
|
|
227
|
+
locationId: zod_1.z.coerce.bigint(),
|
|
228
|
+
image: zod_1.z.string(),
|
|
229
|
+
index: zod_1.z.number().int().min(0).optional(),
|
|
230
|
+
});
|
|
231
|
+
exports.UpdateLocationRenderingSchema = zod_1.z.object({
|
|
232
|
+
locationId: zod_1.z.coerce.bigint(),
|
|
233
|
+
rendering: zod_1.z.string().nullable(),
|
|
234
|
+
});
|
|
235
|
+
exports.UpdateLocationAgentIsActiveSchema = zod_1.z.object({
|
|
236
|
+
locationId: zod_1.z.coerce.bigint(),
|
|
237
|
+
agentId: zod_1.z.coerce.bigint(),
|
|
238
|
+
isActive: zod_1.z.boolean(),
|
|
239
|
+
});
|
|
240
|
+
exports.PauseLocationUpdateSchema = zod_1.z.object({
|
|
241
|
+
locationId: zod_1.z.coerce.bigint(),
|
|
242
|
+
});
|
|
243
|
+
exports.ResumeLocationUpdateSchema = zod_1.z.object({
|
|
244
|
+
locationId: zod_1.z.coerce.bigint(),
|
|
245
|
+
delayMs: zod_1.z.number().int().min(0).max(60000).optional().default(0),
|
|
246
|
+
});
|
|
144
247
|
//# sourceMappingURL=location.requests.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"location.requests.js","sourceRoot":"","sources":["../../../src/dto/locations/location.requests.ts"],"names":[],"mappings":";;;AAAA,wDAAwD;
|
|
1
|
+
{"version":3,"file":"location.requests.js","sourceRoot":"","sources":["../../../src/dto/locations/location.requests.ts"],"names":[],"mappings":";;;AAAA,wDAAwD;AAExD,4DAAmE;AACnE,6BAAwB;AAExB,4EAGgD;AAkBnC,QAAA,wBAAwB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/C,MAAM,EAAE,OAA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,CAAC,MAAM,CAAC;IACxD,UAAU,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE;IAC7B,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE;IAC1B,QAAQ,EAAE,OAAC,CAAC,OAAO,EAAE;CACtB,CAAC,CAAC;AASU,QAAA,yBAAyB,GAAG,OAAC,CAAC,MAAM,CAAC;IAChD,UAAU,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE;CAC9B,CAAC,CAAC;AAOU,QAAA,0BAA0B,GAAG,OAAC,CAAC,MAAM,CAAC;IACjD,UAAU,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE;IAC7B,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;CAClE,CAAC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { LocationId, UserId } from '@little-samo/samo-ai/models';
|
|
2
|
+
import { LocationMessageDto } from './location.message';
|
|
3
|
+
export interface LocationSnapshotDto {
|
|
4
|
+
snapshotKey: string;
|
|
5
|
+
snapshotOwnerUserId: UserId;
|
|
6
|
+
locationId: LocationId;
|
|
7
|
+
locationName: string;
|
|
8
|
+
locationOwnerUserId: UserId;
|
|
9
|
+
messages: LocationMessageDto[];
|
|
10
|
+
createdAt: Date;
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"location.snapshot.js","sourceRoot":"","sources":["../../../src/dto/locations/location.snapshot.ts"],"names":[],"mappings":""}
|
|
@@ -8,7 +8,7 @@ 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<"
|
|
11
|
+
declare const LlmPresetSchema: z.ZodUnion<[z.ZodLiteral<"gemini-low">, z.ZodLiteral<"gemini-medium">, z.ZodLiteral<"openai-low">, z.ZodLiteral<"openai-medium">]>;
|
|
12
12
|
export type LlmPreset = z.infer<typeof LlmPresetSchema>;
|
|
13
13
|
export declare const AgentConfigSchema: z.ZodObject<{
|
|
14
14
|
name: z.ZodString;
|
|
@@ -21,7 +21,7 @@ export declare const AgentConfigSchema: z.ZodObject<{
|
|
|
21
21
|
}, {
|
|
22
22
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
|
|
23
23
|
}>;
|
|
24
|
-
llmPreset: z.ZodUnion<[z.ZodLiteral<"gemini-low">, z.ZodLiteral<"gemini-medium">, z.ZodLiteral<"
|
|
24
|
+
llmPreset: z.ZodUnion<[z.ZodLiteral<"gemini-low">, z.ZodLiteral<"gemini-medium">, z.ZodLiteral<"openai-low">, z.ZodLiteral<"openai-medium">]>;
|
|
25
25
|
languages: z.ZodArray<z.ZodString, "many">;
|
|
26
26
|
timeZone: z.ZodString;
|
|
27
27
|
greeting: z.ZodString;
|
|
@@ -35,7 +35,7 @@ export declare const AgentConfigSchema: z.ZodObject<{
|
|
|
35
35
|
core: {
|
|
36
36
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
|
|
37
37
|
};
|
|
38
|
-
llmPreset: "gemini-low" | "gemini-medium" | "
|
|
38
|
+
llmPreset: "gemini-low" | "gemini-medium" | "openai-low" | "openai-medium";
|
|
39
39
|
languages: string[];
|
|
40
40
|
timeZone: string;
|
|
41
41
|
greeting: string;
|
|
@@ -49,7 +49,7 @@ export declare const AgentConfigSchema: z.ZodObject<{
|
|
|
49
49
|
core: {
|
|
50
50
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
|
|
51
51
|
};
|
|
52
|
-
llmPreset: "gemini-low" | "gemini-medium" | "
|
|
52
|
+
llmPreset: "gemini-low" | "gemini-medium" | "openai-low" | "openai-medium";
|
|
53
53
|
languages: string[];
|
|
54
54
|
timeZone: string;
|
|
55
55
|
greeting: string;
|
|
@@ -22,24 +22,32 @@ 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
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
'
|
|
30
|
-
|
|
31
|
-
|
|
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());
|
|
32
46
|
const LlmPresetSchema = zod_1.z.union([
|
|
33
47
|
zod_1.z.literal('gemini-low').describe('Gemini - Low cost'),
|
|
34
48
|
zod_1.z.literal('gemini-medium').describe('Gemini - Balanced'),
|
|
35
|
-
zod_1.z.literal('gemini-high').describe('Gemini - High performance'),
|
|
36
49
|
zod_1.z.literal('openai-low').describe('OpenAI - Low cost'),
|
|
37
50
|
zod_1.z.literal('openai-medium').describe('OpenAI - Balanced'),
|
|
38
|
-
zod_1.z.literal('anthropic-low').describe('Anthropic - Low cost'),
|
|
39
|
-
zod_1.z.literal('anthropic-medium').describe('Anthropic - Balanced'),
|
|
40
|
-
zod_1.z.literal('anthropic-high').describe('Anthropic - High performance'),
|
|
41
|
-
zod_1.z.literal('deepseek-low').describe('DeepSeek - Low cost'),
|
|
42
|
-
zod_1.z.literal('deepseek-medium').describe('DeepSeek - Balanced'),
|
|
43
51
|
]);
|
|
44
52
|
exports.AgentConfigSchema = zod_1.z.object({
|
|
45
53
|
name: zod_1.z.string().max(64).describe('Agent name'),
|
|
@@ -49,9 +57,9 @@ exports.AgentConfigSchema = zod_1.z.object({
|
|
|
49
57
|
zod_1.z
|
|
50
58
|
.string()
|
|
51
59
|
.max(2048)
|
|
52
|
-
.describe('Custom avatar
|
|
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.'),
|
|
53
61
|
])
|
|
54
|
-
.describe('Visual representation identifier for the agent. Supports predefined avatar options or custom
|
|
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.'),
|
|
55
63
|
appearance: zod_1.z
|
|
56
64
|
.string()
|
|
57
65
|
.max(500)
|
|
@@ -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
|
|
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,sB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mentSchema: z.ZodUnion<[z.ZodLiteral<"CHAT">, z.ZodLiteral<"
|
|
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>;
|
|
@@ -24,32 +24,34 @@ export declare const LocationConfigCanvasSchema: z.ZodObject<{
|
|
|
24
24
|
description: string;
|
|
25
25
|
maxLength: number;
|
|
26
26
|
}>;
|
|
27
|
+
declare const GimmickCoreSchema: z.ZodUnion<[z.ZodLiteral<"web_search">, z.ZodLiteral<"x_twitter">, z.ZodLiteral<"notion">]>;
|
|
28
|
+
export type GimmickCore = z.infer<typeof GimmickCoreSchema>;
|
|
27
29
|
export declare const LocationConfigGimmickSchema: z.ZodObject<{
|
|
28
|
-
core: z.ZodUnion<[z.ZodLiteral<"web_search">, z.ZodLiteral<"x_twitter">]>;
|
|
30
|
+
core: z.ZodUnion<[z.ZodLiteral<"web_search">, z.ZodLiteral<"x_twitter">, z.ZodLiteral<"notion">]>;
|
|
29
31
|
name: z.ZodString;
|
|
30
32
|
appearance: z.ZodString;
|
|
31
33
|
}, "strip", z.ZodTypeAny, {
|
|
32
34
|
name: string;
|
|
35
|
+
core: "web_search" | "x_twitter" | "notion";
|
|
33
36
|
appearance: string;
|
|
34
|
-
core: "web_search" | "x_twitter";
|
|
35
37
|
}, {
|
|
36
38
|
name: string;
|
|
39
|
+
core: "web_search" | "x_twitter" | "notion";
|
|
37
40
|
appearance: string;
|
|
38
|
-
core: "web_search" | "x_twitter";
|
|
39
41
|
}>;
|
|
40
42
|
export type LocationConfigGimmick = z.infer<typeof LocationConfigGimmickSchema>;
|
|
41
43
|
export declare const LocationConfigSchema: z.ZodObject<{
|
|
42
44
|
name: z.ZodString;
|
|
43
|
-
thumbnail: z.
|
|
44
|
-
environment: z.ZodUnion<[z.ZodLiteral<"CHAT">, z.ZodLiteral<"
|
|
45
|
+
thumbnail: z.ZodNullable<z.ZodString>;
|
|
46
|
+
environment: z.ZodUnion<[z.ZodLiteral<"CHAT">, z.ZodLiteral<"CHAT">]>;
|
|
45
47
|
core: z.ZodObject<{
|
|
46
|
-
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">]>;
|
|
47
49
|
sequential: z.ZodOptional<z.ZodBoolean>;
|
|
48
50
|
}, "strip", z.ZodTypeAny, {
|
|
49
|
-
name: "round_robin" | "update_forever" | "update_once";
|
|
51
|
+
name: "round_robin" | "update_forever" | "update_once" | "update_until_idle";
|
|
50
52
|
sequential?: boolean | undefined;
|
|
51
53
|
}, {
|
|
52
|
-
name: "round_robin" | "update_forever" | "update_once";
|
|
54
|
+
name: "round_robin" | "update_forever" | "update_once" | "update_until_idle";
|
|
53
55
|
sequential?: boolean | undefined;
|
|
54
56
|
}>;
|
|
55
57
|
description: z.ZodString;
|
|
@@ -81,27 +83,28 @@ export declare const LocationConfigSchema: z.ZodObject<{
|
|
|
81
83
|
maxLength: number;
|
|
82
84
|
}>, "many">;
|
|
83
85
|
gimmicks: z.ZodArray<z.ZodObject<{
|
|
84
|
-
core: z.ZodUnion<[z.ZodLiteral<"web_search">, z.ZodLiteral<"x_twitter">]>;
|
|
86
|
+
core: z.ZodUnion<[z.ZodLiteral<"web_search">, z.ZodLiteral<"x_twitter">, z.ZodLiteral<"notion">]>;
|
|
85
87
|
name: z.ZodString;
|
|
86
88
|
appearance: z.ZodString;
|
|
87
89
|
}, "strip", z.ZodTypeAny, {
|
|
88
90
|
name: string;
|
|
91
|
+
core: "web_search" | "x_twitter" | "notion";
|
|
89
92
|
appearance: string;
|
|
90
|
-
core: "web_search" | "x_twitter";
|
|
91
93
|
}, {
|
|
92
94
|
name: string;
|
|
95
|
+
core: "web_search" | "x_twitter" | "notion";
|
|
93
96
|
appearance: string;
|
|
94
|
-
core: "web_search" | "x_twitter";
|
|
95
97
|
}>, "many">;
|
|
96
98
|
}, "strip", z.ZodTypeAny, {
|
|
97
99
|
name: string;
|
|
98
100
|
description: string;
|
|
99
101
|
core: {
|
|
100
|
-
name: "round_robin" | "update_forever" | "update_once";
|
|
102
|
+
name: "round_robin" | "update_forever" | "update_once" | "update_until_idle";
|
|
101
103
|
sequential?: boolean | undefined;
|
|
102
104
|
};
|
|
105
|
+
thumbnail: string | null;
|
|
106
|
+
environment: "CHAT";
|
|
103
107
|
rules: string[];
|
|
104
|
-
environment: "CHAT" | "WEB_BROWSER";
|
|
105
108
|
canvases: {
|
|
106
109
|
name: string;
|
|
107
110
|
description: string;
|
|
@@ -114,19 +117,19 @@ export declare const LocationConfigSchema: z.ZodObject<{
|
|
|
114
117
|
}[];
|
|
115
118
|
gimmicks: {
|
|
116
119
|
name: string;
|
|
120
|
+
core: "web_search" | "x_twitter" | "notion";
|
|
117
121
|
appearance: string;
|
|
118
|
-
core: "web_search" | "x_twitter";
|
|
119
122
|
}[];
|
|
120
|
-
thumbnail?: string | undefined;
|
|
121
123
|
}, {
|
|
122
124
|
name: string;
|
|
123
125
|
description: string;
|
|
124
126
|
core: {
|
|
125
|
-
name: "round_robin" | "update_forever" | "update_once";
|
|
127
|
+
name: "round_robin" | "update_forever" | "update_once" | "update_until_idle";
|
|
126
128
|
sequential?: boolean | undefined;
|
|
127
129
|
};
|
|
130
|
+
thumbnail: string | null;
|
|
131
|
+
environment: "CHAT";
|
|
128
132
|
rules: string[];
|
|
129
|
-
environment: "CHAT" | "WEB_BROWSER";
|
|
130
133
|
canvases: {
|
|
131
134
|
name: string;
|
|
132
135
|
description: string;
|
|
@@ -139,9 +142,9 @@ export declare const LocationConfigSchema: z.ZodObject<{
|
|
|
139
142
|
}[];
|
|
140
143
|
gimmicks: {
|
|
141
144
|
name: string;
|
|
145
|
+
core: "web_search" | "x_twitter" | "notion";
|
|
142
146
|
appearance: string;
|
|
143
|
-
core: "web_search" | "x_twitter";
|
|
144
147
|
}[];
|
|
145
|
-
thumbnail?: string | undefined;
|
|
146
148
|
}>;
|
|
147
149
|
export type LocationConfig = z.infer<typeof LocationConfigSchema>;
|
|
150
|
+
export {};
|
|
@@ -8,8 +8,8 @@ exports.LocationEnvironmentSchema = zod_1.z.union([
|
|
|
8
8
|
.literal(location_constants_1.LocationEnvironment.CHAT)
|
|
9
9
|
.describe('Standard conversational environment for general agent interactions'),
|
|
10
10
|
zod_1.z
|
|
11
|
-
.literal(location_constants_1.LocationEnvironment.
|
|
12
|
-
.describe('
|
|
11
|
+
.literal(location_constants_1.LocationEnvironment.CHAT)
|
|
12
|
+
.describe('Standard conversational environment for general agent interactions'),
|
|
13
13
|
]);
|
|
14
14
|
exports.LocationConfigCoreSchema = zod_1.z.object({
|
|
15
15
|
name: zod_1.z.union([
|
|
@@ -18,6 +18,9 @@ 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
|
});
|
|
@@ -37,15 +40,19 @@ exports.LocationConfigCanvasSchema = zod_1.z.object({
|
|
|
37
40
|
.max(1000)
|
|
38
41
|
.describe('Maximum character limit for canvas content'),
|
|
39
42
|
});
|
|
43
|
+
const GimmickCoreSchema = zod_1.z.union([
|
|
44
|
+
zod_1.z
|
|
45
|
+
.literal('web_search')
|
|
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'),
|
|
47
|
+
zod_1.z
|
|
48
|
+
.literal('x_twitter')
|
|
49
|
+
.describe('Interacts with X (Twitter) platform for social media operations and content management'),
|
|
50
|
+
zod_1.z
|
|
51
|
+
.literal('notion')
|
|
52
|
+
.describe('Interacts with Notion platform for content management and collaboration'),
|
|
53
|
+
]);
|
|
40
54
|
exports.LocationConfigGimmickSchema = zod_1.z.object({
|
|
41
|
-
core:
|
|
42
|
-
zod_1.z
|
|
43
|
-
.literal('web_search')
|
|
44
|
-
.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'),
|
|
45
|
-
zod_1.z
|
|
46
|
-
.literal('x_twitter')
|
|
47
|
-
.describe('Interacts with X (Twitter) platform for social media operations and content management'),
|
|
48
|
-
]),
|
|
55
|
+
core: GimmickCoreSchema.describe('Core gimmick behavior that determines how the gimmick is executed'),
|
|
49
56
|
name: zod_1.z
|
|
50
57
|
.string()
|
|
51
58
|
.max(64)
|
|
@@ -60,8 +67,8 @@ exports.LocationConfigSchema = zod_1.z.object({
|
|
|
60
67
|
thumbnail: zod_1.z
|
|
61
68
|
.string()
|
|
62
69
|
.max(2048)
|
|
63
|
-
.
|
|
64
|
-
.describe('Location thumbnail URL
|
|
70
|
+
.nullable()
|
|
71
|
+
.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.'),
|
|
65
72
|
environment: exports.LocationEnvironmentSchema.describe('Location environment that determines the context and behavior'),
|
|
66
73
|
core: exports.LocationConfigCoreSchema.describe('Core behavior configuration that determines how agents are executed in this location'),
|
|
67
74
|
description: zod_1.z
|