@getsupervisor/agents-studio-sdk 1.25.0 → 1.26.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/README.md +52 -46
- package/dist/index.cjs +118 -75
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +63 -38
- package/dist/index.d.ts +63 -38
- package/dist/index.js +118 -75
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -221,10 +221,15 @@ type components = {
|
|
|
221
221
|
notes?: string;
|
|
222
222
|
};
|
|
223
223
|
AgentBlueprint: {
|
|
224
|
-
|
|
224
|
+
version: {
|
|
225
|
+
id: string;
|
|
226
|
+
number: number;
|
|
227
|
+
status: 'draft' | 'active' | 'archived';
|
|
228
|
+
hash: string;
|
|
229
|
+
createdAt: string;
|
|
230
|
+
};
|
|
231
|
+
blueprintId: string;
|
|
225
232
|
agentId: string;
|
|
226
|
-
versionId: string;
|
|
227
|
-
versionStatus: 'draft' | 'active' | 'archived';
|
|
228
233
|
languageId: string;
|
|
229
234
|
personalityName: string;
|
|
230
235
|
personalityRole: string;
|
|
@@ -233,9 +238,7 @@ type components = {
|
|
|
233
238
|
personalityInitialGreeting: string;
|
|
234
239
|
personalityMessageStyleId: string;
|
|
235
240
|
personalityToneStyleId: string;
|
|
236
|
-
requiredData
|
|
237
|
-
[key: string]: unknown;
|
|
238
|
-
}[];
|
|
241
|
+
requiredData: string[];
|
|
239
242
|
criticalRules?: string[];
|
|
240
243
|
topicsAllowed?: string[];
|
|
241
244
|
topicsForbidden?: string[];
|
|
@@ -261,9 +264,7 @@ type components = {
|
|
|
261
264
|
personalityInitialGreeting: string;
|
|
262
265
|
personalityMessageStyleId: string;
|
|
263
266
|
personalityToneStyleId: string;
|
|
264
|
-
requiredData?:
|
|
265
|
-
[key: string]: unknown;
|
|
266
|
-
}[];
|
|
267
|
+
requiredData?: string[];
|
|
267
268
|
criticalRules?: string[];
|
|
268
269
|
topicsAllowed?: string[];
|
|
269
270
|
topicsForbidden?: string[];
|
|
@@ -277,9 +278,7 @@ type components = {
|
|
|
277
278
|
personalityInitialGreeting?: string;
|
|
278
279
|
personalityMessageStyleId?: string;
|
|
279
280
|
personalityToneStyleId?: string;
|
|
280
|
-
requiredData?:
|
|
281
|
-
[key: string]: unknown;
|
|
282
|
-
}[];
|
|
281
|
+
requiredData?: string[];
|
|
283
282
|
criticalRules?: string[];
|
|
284
283
|
topicsAllowed?: string[];
|
|
285
284
|
topicsForbidden?: string[];
|
|
@@ -290,7 +289,8 @@ type components = {
|
|
|
290
289
|
blueprintId: string;
|
|
291
290
|
name: string;
|
|
292
291
|
title?: string | null;
|
|
293
|
-
|
|
292
|
+
goalPrompt: string;
|
|
293
|
+
promptInstructions: string[];
|
|
294
294
|
order: number;
|
|
295
295
|
triggers: components['schemas']['BlueprintStageTrigger'][];
|
|
296
296
|
metadata?: {
|
|
@@ -306,7 +306,8 @@ type components = {
|
|
|
306
306
|
CreateBlueprintStageRequest: {
|
|
307
307
|
name: string;
|
|
308
308
|
title?: string | null;
|
|
309
|
-
|
|
309
|
+
goalPrompt: string;
|
|
310
|
+
promptInstructions?: string[];
|
|
310
311
|
order?: number | null;
|
|
311
312
|
triggers?: components['schemas']['BlueprintStageTriggerInput'][] | null;
|
|
312
313
|
metadata?: {
|
|
@@ -316,7 +317,8 @@ type components = {
|
|
|
316
317
|
UpdateBlueprintStageRequest: {
|
|
317
318
|
name?: string;
|
|
318
319
|
title?: string | null;
|
|
319
|
-
|
|
320
|
+
goalPrompt?: string;
|
|
321
|
+
promptInstructions?: string[];
|
|
320
322
|
order?: number | null;
|
|
321
323
|
metadata?: {
|
|
322
324
|
[key: string]: unknown;
|
|
@@ -351,7 +353,8 @@ type components = {
|
|
|
351
353
|
BlueprintStageDraft: {
|
|
352
354
|
name: string;
|
|
353
355
|
title?: string | null;
|
|
354
|
-
|
|
356
|
+
goalPrompt: string;
|
|
357
|
+
promptInstructions?: string[];
|
|
355
358
|
order?: number | null;
|
|
356
359
|
triggers?: components['schemas']['BlueprintStageTriggerInput'][] | null;
|
|
357
360
|
metadata?: {
|
|
@@ -825,10 +828,15 @@ type CreateAgentVersionRequest = components['schemas']['CreateAgentVersionReques
|
|
|
825
828
|
type PublishAgentVersionRequest = components['schemas']['PublishAgentVersionRequest'];
|
|
826
829
|
type UpdateAgentVersionNotesRequest = components['schemas']['UpdateAgentVersionNotesRequest'];
|
|
827
830
|
type AgentBlueprint = {
|
|
828
|
-
|
|
831
|
+
version: {
|
|
832
|
+
id: string;
|
|
833
|
+
number: number;
|
|
834
|
+
status: 'draft' | 'active' | 'archived';
|
|
835
|
+
hash: string;
|
|
836
|
+
createdAt: string;
|
|
837
|
+
};
|
|
838
|
+
blueprintId: string;
|
|
829
839
|
agentId: string;
|
|
830
|
-
versionId: string;
|
|
831
|
-
versionStatus: 'draft' | 'active' | 'archived';
|
|
832
840
|
languageId: string;
|
|
833
841
|
personalityName: string;
|
|
834
842
|
personalityRole: string;
|
|
@@ -837,7 +845,7 @@ type AgentBlueprint = {
|
|
|
837
845
|
personalityInitialGreeting: string;
|
|
838
846
|
personalityMessageStyleId: string;
|
|
839
847
|
personalityToneStyleId: string;
|
|
840
|
-
requiredData:
|
|
848
|
+
requiredData: string[];
|
|
841
849
|
criticalRules: string[];
|
|
842
850
|
topicsAllowed: string[];
|
|
843
851
|
topicsForbidden: string[];
|
|
@@ -863,7 +871,7 @@ type CreateAgentBlueprintRequest = {
|
|
|
863
871
|
personalityInitialGreeting: string;
|
|
864
872
|
personalityMessageStyleId: string;
|
|
865
873
|
personalityToneStyleId: string;
|
|
866
|
-
requiredData?:
|
|
874
|
+
requiredData?: string[];
|
|
867
875
|
criticalRules?: string[];
|
|
868
876
|
topicsAllowed?: string[];
|
|
869
877
|
topicsForbidden?: string[];
|
|
@@ -877,13 +885,13 @@ type UpdateAgentBlueprintRequest = {
|
|
|
877
885
|
personalityInitialGreeting?: string;
|
|
878
886
|
personalityMessageStyleId?: string;
|
|
879
887
|
personalityToneStyleId?: string;
|
|
880
|
-
requiredData?:
|
|
888
|
+
requiredData?: string[];
|
|
881
889
|
criticalRules?: string[];
|
|
882
890
|
topicsAllowed?: string[];
|
|
883
891
|
topicsForbidden?: string[];
|
|
884
892
|
};
|
|
885
893
|
type BlueprintStageSchema = components['schemas']['BlueprintStage'];
|
|
886
|
-
type BlueprintStage = Omit<BlueprintStageSchema, 'prompt'
|
|
894
|
+
type BlueprintStage = Omit<BlueprintStageSchema, 'prompt'> & {
|
|
887
895
|
goalPrompt: string;
|
|
888
896
|
promptInstructions: string[];
|
|
889
897
|
};
|
|
@@ -1005,11 +1013,11 @@ declare function createAgentScheduleApi(cfg: ClientConfig & {
|
|
|
1005
1013
|
|
|
1006
1014
|
type ListAgentStageTriggersOptions = ListQueryOptions;
|
|
1007
1015
|
type AgentStageTriggersApi$1 = {
|
|
1008
|
-
list(agentId: string, stageId: string, options?: ListAgentStageTriggersOptions): Promise<PaginatedResult<BlueprintStageTriggerListResponse, ListAgentStageTriggersOptions>>;
|
|
1009
|
-
get(agentId: string, stageId: string, triggerId: string): Promise<BlueprintStageTrigger>;
|
|
1010
|
-
create(agentId: string, stageId: string, payload: CreateBlueprintStageTriggerRequest): Promise<BlueprintStageTrigger>;
|
|
1011
|
-
update(agentId: string, stageId: string, triggerId: string, payload: UpdateBlueprintStageTriggerRequest): Promise<BlueprintStageTrigger>;
|
|
1012
|
-
delete(agentId: string, stageId: string, triggerId: string): Promise<void>;
|
|
1016
|
+
list(agentId: string, blueprintId: string, stageId: string, options?: ListAgentStageTriggersOptions): Promise<PaginatedResult<BlueprintStageTriggerListResponse, ListAgentStageTriggersOptions>>;
|
|
1017
|
+
get(agentId: string, blueprintId: string, stageId: string, triggerId: string): Promise<BlueprintStageTrigger>;
|
|
1018
|
+
create(agentId: string, blueprintId: string, stageId: string, payload: CreateBlueprintStageTriggerRequest): Promise<BlueprintStageTrigger>;
|
|
1019
|
+
update(agentId: string, blueprintId: string, stageId: string, triggerId: string, payload: UpdateBlueprintStageTriggerRequest): Promise<BlueprintStageTrigger>;
|
|
1020
|
+
delete(agentId: string, blueprintId: string, stageId: string, triggerId: string): Promise<void>;
|
|
1013
1021
|
};
|
|
1014
1022
|
declare function createAgentStageTriggersApi(cfg: ClientConfig & {
|
|
1015
1023
|
retry?: RetryPolicy;
|
|
@@ -1017,12 +1025,12 @@ declare function createAgentStageTriggersApi(cfg: ClientConfig & {
|
|
|
1017
1025
|
|
|
1018
1026
|
type ListAgentStagesOptions = ListQueryOptions;
|
|
1019
1027
|
type AgentStagesApi$1 = {
|
|
1020
|
-
list(agentId: string, options?: ListAgentStagesOptions): Promise<PaginatedResult<BlueprintStageListResponse, ListAgentStagesOptions>>;
|
|
1021
|
-
get(agentId: string, stageId: string): Promise<BlueprintStage>;
|
|
1022
|
-
create(agentId: string, payload: CreateBlueprintStageRequest): Promise<BlueprintStage>;
|
|
1023
|
-
update(agentId: string, stageId: string, payload: UpdateBlueprintStageRequest): Promise<BlueprintStage>;
|
|
1024
|
-
delete(agentId: string, stageId: string): Promise<void>;
|
|
1025
|
-
reorder(agentId: string, payload: BlueprintStageReorderRequest): Promise<BlueprintStageListResponse>;
|
|
1028
|
+
list(agentId: string, blueprintId: string, options?: ListAgentStagesOptions): Promise<PaginatedResult<BlueprintStageListResponse, ListAgentStagesOptions>>;
|
|
1029
|
+
get(agentId: string, blueprintId: string, stageId: string): Promise<BlueprintStage>;
|
|
1030
|
+
create(agentId: string, blueprintId: string, payload: CreateBlueprintStageRequest): Promise<BlueprintStage>;
|
|
1031
|
+
update(agentId: string, blueprintId: string, stageId: string, payload: UpdateBlueprintStageRequest): Promise<BlueprintStage>;
|
|
1032
|
+
delete(agentId: string, blueprintId: string, stageId: string): Promise<void>;
|
|
1033
|
+
reorder(agentId: string, blueprintId: string, payload: BlueprintStageReorderRequest): Promise<BlueprintStageListResponse>;
|
|
1026
1034
|
};
|
|
1027
1035
|
declare function createAgentStagesApi(cfg: ClientConfig & {
|
|
1028
1036
|
retry?: RetryPolicy;
|
|
@@ -1118,7 +1126,7 @@ declare const bindAgentInstructions: (api: AgentInstructionsApi, agentId: string
|
|
|
1118
1126
|
}>;
|
|
1119
1127
|
delete(instructionId: string): Promise<void>;
|
|
1120
1128
|
};
|
|
1121
|
-
declare const bindAgentStageTriggers: (api: AgentStageTriggersApi, agentId: string, stageId: string) => {
|
|
1129
|
+
declare const bindAgentStageTriggers: (api: AgentStageTriggersApi, agentId: string, blueprintId: string, stageId: string) => {
|
|
1122
1130
|
list(opts?: ListAgentStageTriggersOptions): Promise<PaginatedResult<{
|
|
1123
1131
|
data: components["schemas"]["BlueprintStageTrigger"][];
|
|
1124
1132
|
meta: components["schemas"]["PaginationMeta"];
|
|
@@ -1153,7 +1161,7 @@ declare const bindAgentStageTriggers: (api: AgentStageTriggersApi, agentId: stri
|
|
|
1153
1161
|
}>;
|
|
1154
1162
|
delete(triggerId: string): Promise<void>;
|
|
1155
1163
|
};
|
|
1156
|
-
declare const bindAgentStages: (stagesApi: AgentStagesApi, triggersApi: AgentStageTriggersApi, agentId: string) => {
|
|
1164
|
+
declare const bindAgentStages: (stagesApi: AgentStagesApi, triggersApi: AgentStageTriggersApi, agentId: string) => ((blueprintId: string) => {
|
|
1157
1165
|
list(opts?: ListAgentStagesOptions): Promise<PaginatedResult<BlueprintStageListResponse, Partial<{
|
|
1158
1166
|
page: number;
|
|
1159
1167
|
limit: number;
|
|
@@ -1170,6 +1178,23 @@ declare const bindAgentStages: (stagesApi: AgentStagesApi, triggersApi: AgentSta
|
|
|
1170
1178
|
delete(stageId: string): Promise<void>;
|
|
1171
1179
|
reorder(payload: BlueprintStageReorderRequest): Promise<BlueprintStageListResponse>;
|
|
1172
1180
|
triggers(stageId: string): AgentStageTriggersHelper;
|
|
1181
|
+
}) & {
|
|
1182
|
+
list(blueprintId: string, opts?: ListAgentStagesOptions): Promise<PaginatedResult<BlueprintStageListResponse, Partial<{
|
|
1183
|
+
page: number;
|
|
1184
|
+
limit: number;
|
|
1185
|
+
sort: string | string[];
|
|
1186
|
+
fields: string | string[];
|
|
1187
|
+
include: string | string[];
|
|
1188
|
+
search: string;
|
|
1189
|
+
filter: QueryFilters | QueryBuilderInput;
|
|
1190
|
+
or: QueryOrGroups | QueryBuilderInput;
|
|
1191
|
+
}>>>;
|
|
1192
|
+
get(blueprintId: string, stageId: string): Promise<BlueprintStage>;
|
|
1193
|
+
create(blueprintId: string, payload: CreateBlueprintStageRequest): Promise<BlueprintStage>;
|
|
1194
|
+
update(blueprintId: string, stageId: string, payload: UpdateBlueprintStageRequest): Promise<BlueprintStage>;
|
|
1195
|
+
delete(blueprintId: string, stageId: string): Promise<void>;
|
|
1196
|
+
reorder(blueprintId: string, payload: BlueprintStageReorderRequest): Promise<BlueprintStageListResponse>;
|
|
1197
|
+
triggers(blueprintId: string, stageId: string): AgentStageTriggersHelper;
|
|
1173
1198
|
};
|
|
1174
1199
|
declare const bindAgentTags: (api: AgentTagsApi, agentId: string) => {
|
|
1175
1200
|
add(tagId: string): Promise<AgentTagsResponse>;
|
|
@@ -1617,7 +1642,7 @@ declare function createClient(initialCfg: ClientConfig & {
|
|
|
1617
1642
|
} & ((agentId: string) => ReturnType<typeof bindAgentVersions>);
|
|
1618
1643
|
blueprints: AgentBlueprintsApi$1 & ((agentId: string) => ReturnType<typeof bindAgentBlueprints>);
|
|
1619
1644
|
stages: AgentStagesApi$1 & ((agentId: string) => ReturnType<typeof bindAgentStages>) & {
|
|
1620
|
-
triggers: AgentStageTriggersApi$1 & ((agentId: string, stageId: string) => ReturnType<typeof bindAgentStageTriggers>);
|
|
1645
|
+
triggers: AgentStageTriggersApi$1 & ((agentId: string, blueprintId: string, stageId: string) => ReturnType<typeof bindAgentStageTriggers>);
|
|
1621
1646
|
};
|
|
1622
1647
|
delete: (agent: string | AgentEntity) => Promise<void>;
|
|
1623
1648
|
list(options?: ListAgentsOptions): Promise<PaginatedResult<{
|
|
@@ -1720,7 +1745,7 @@ declare function createClient(initialCfg: ClientConfig & {
|
|
|
1720
1745
|
} & ((agentId: string) => ReturnType<typeof bindAgentVersions>);
|
|
1721
1746
|
blueprints: AgentBlueprintsApi$1 & ((agentId: string) => ReturnType<typeof bindAgentBlueprints>);
|
|
1722
1747
|
stages: AgentStagesApi$1 & ((agentId: string) => ReturnType<typeof bindAgentStages>) & {
|
|
1723
|
-
triggers: AgentStageTriggersApi$1 & ((agentId: string, stageId: string) => ReturnType<typeof bindAgentStageTriggers>);
|
|
1748
|
+
triggers: AgentStageTriggersApi$1 & ((agentId: string, blueprintId: string, stageId: string) => ReturnType<typeof bindAgentStageTriggers>);
|
|
1724
1749
|
};
|
|
1725
1750
|
delete: (agent: string | AgentEntity) => Promise<void>;
|
|
1726
1751
|
list(options?: ListAgentsOptions): Promise<PaginatedResult<{
|
package/dist/index.d.ts
CHANGED
|
@@ -221,10 +221,15 @@ type components = {
|
|
|
221
221
|
notes?: string;
|
|
222
222
|
};
|
|
223
223
|
AgentBlueprint: {
|
|
224
|
-
|
|
224
|
+
version: {
|
|
225
|
+
id: string;
|
|
226
|
+
number: number;
|
|
227
|
+
status: 'draft' | 'active' | 'archived';
|
|
228
|
+
hash: string;
|
|
229
|
+
createdAt: string;
|
|
230
|
+
};
|
|
231
|
+
blueprintId: string;
|
|
225
232
|
agentId: string;
|
|
226
|
-
versionId: string;
|
|
227
|
-
versionStatus: 'draft' | 'active' | 'archived';
|
|
228
233
|
languageId: string;
|
|
229
234
|
personalityName: string;
|
|
230
235
|
personalityRole: string;
|
|
@@ -233,9 +238,7 @@ type components = {
|
|
|
233
238
|
personalityInitialGreeting: string;
|
|
234
239
|
personalityMessageStyleId: string;
|
|
235
240
|
personalityToneStyleId: string;
|
|
236
|
-
requiredData
|
|
237
|
-
[key: string]: unknown;
|
|
238
|
-
}[];
|
|
241
|
+
requiredData: string[];
|
|
239
242
|
criticalRules?: string[];
|
|
240
243
|
topicsAllowed?: string[];
|
|
241
244
|
topicsForbidden?: string[];
|
|
@@ -261,9 +264,7 @@ type components = {
|
|
|
261
264
|
personalityInitialGreeting: string;
|
|
262
265
|
personalityMessageStyleId: string;
|
|
263
266
|
personalityToneStyleId: string;
|
|
264
|
-
requiredData?:
|
|
265
|
-
[key: string]: unknown;
|
|
266
|
-
}[];
|
|
267
|
+
requiredData?: string[];
|
|
267
268
|
criticalRules?: string[];
|
|
268
269
|
topicsAllowed?: string[];
|
|
269
270
|
topicsForbidden?: string[];
|
|
@@ -277,9 +278,7 @@ type components = {
|
|
|
277
278
|
personalityInitialGreeting?: string;
|
|
278
279
|
personalityMessageStyleId?: string;
|
|
279
280
|
personalityToneStyleId?: string;
|
|
280
|
-
requiredData?:
|
|
281
|
-
[key: string]: unknown;
|
|
282
|
-
}[];
|
|
281
|
+
requiredData?: string[];
|
|
283
282
|
criticalRules?: string[];
|
|
284
283
|
topicsAllowed?: string[];
|
|
285
284
|
topicsForbidden?: string[];
|
|
@@ -290,7 +289,8 @@ type components = {
|
|
|
290
289
|
blueprintId: string;
|
|
291
290
|
name: string;
|
|
292
291
|
title?: string | null;
|
|
293
|
-
|
|
292
|
+
goalPrompt: string;
|
|
293
|
+
promptInstructions: string[];
|
|
294
294
|
order: number;
|
|
295
295
|
triggers: components['schemas']['BlueprintStageTrigger'][];
|
|
296
296
|
metadata?: {
|
|
@@ -306,7 +306,8 @@ type components = {
|
|
|
306
306
|
CreateBlueprintStageRequest: {
|
|
307
307
|
name: string;
|
|
308
308
|
title?: string | null;
|
|
309
|
-
|
|
309
|
+
goalPrompt: string;
|
|
310
|
+
promptInstructions?: string[];
|
|
310
311
|
order?: number | null;
|
|
311
312
|
triggers?: components['schemas']['BlueprintStageTriggerInput'][] | null;
|
|
312
313
|
metadata?: {
|
|
@@ -316,7 +317,8 @@ type components = {
|
|
|
316
317
|
UpdateBlueprintStageRequest: {
|
|
317
318
|
name?: string;
|
|
318
319
|
title?: string | null;
|
|
319
|
-
|
|
320
|
+
goalPrompt?: string;
|
|
321
|
+
promptInstructions?: string[];
|
|
320
322
|
order?: number | null;
|
|
321
323
|
metadata?: {
|
|
322
324
|
[key: string]: unknown;
|
|
@@ -351,7 +353,8 @@ type components = {
|
|
|
351
353
|
BlueprintStageDraft: {
|
|
352
354
|
name: string;
|
|
353
355
|
title?: string | null;
|
|
354
|
-
|
|
356
|
+
goalPrompt: string;
|
|
357
|
+
promptInstructions?: string[];
|
|
355
358
|
order?: number | null;
|
|
356
359
|
triggers?: components['schemas']['BlueprintStageTriggerInput'][] | null;
|
|
357
360
|
metadata?: {
|
|
@@ -825,10 +828,15 @@ type CreateAgentVersionRequest = components['schemas']['CreateAgentVersionReques
|
|
|
825
828
|
type PublishAgentVersionRequest = components['schemas']['PublishAgentVersionRequest'];
|
|
826
829
|
type UpdateAgentVersionNotesRequest = components['schemas']['UpdateAgentVersionNotesRequest'];
|
|
827
830
|
type AgentBlueprint = {
|
|
828
|
-
|
|
831
|
+
version: {
|
|
832
|
+
id: string;
|
|
833
|
+
number: number;
|
|
834
|
+
status: 'draft' | 'active' | 'archived';
|
|
835
|
+
hash: string;
|
|
836
|
+
createdAt: string;
|
|
837
|
+
};
|
|
838
|
+
blueprintId: string;
|
|
829
839
|
agentId: string;
|
|
830
|
-
versionId: string;
|
|
831
|
-
versionStatus: 'draft' | 'active' | 'archived';
|
|
832
840
|
languageId: string;
|
|
833
841
|
personalityName: string;
|
|
834
842
|
personalityRole: string;
|
|
@@ -837,7 +845,7 @@ type AgentBlueprint = {
|
|
|
837
845
|
personalityInitialGreeting: string;
|
|
838
846
|
personalityMessageStyleId: string;
|
|
839
847
|
personalityToneStyleId: string;
|
|
840
|
-
requiredData:
|
|
848
|
+
requiredData: string[];
|
|
841
849
|
criticalRules: string[];
|
|
842
850
|
topicsAllowed: string[];
|
|
843
851
|
topicsForbidden: string[];
|
|
@@ -863,7 +871,7 @@ type CreateAgentBlueprintRequest = {
|
|
|
863
871
|
personalityInitialGreeting: string;
|
|
864
872
|
personalityMessageStyleId: string;
|
|
865
873
|
personalityToneStyleId: string;
|
|
866
|
-
requiredData?:
|
|
874
|
+
requiredData?: string[];
|
|
867
875
|
criticalRules?: string[];
|
|
868
876
|
topicsAllowed?: string[];
|
|
869
877
|
topicsForbidden?: string[];
|
|
@@ -877,13 +885,13 @@ type UpdateAgentBlueprintRequest = {
|
|
|
877
885
|
personalityInitialGreeting?: string;
|
|
878
886
|
personalityMessageStyleId?: string;
|
|
879
887
|
personalityToneStyleId?: string;
|
|
880
|
-
requiredData?:
|
|
888
|
+
requiredData?: string[];
|
|
881
889
|
criticalRules?: string[];
|
|
882
890
|
topicsAllowed?: string[];
|
|
883
891
|
topicsForbidden?: string[];
|
|
884
892
|
};
|
|
885
893
|
type BlueprintStageSchema = components['schemas']['BlueprintStage'];
|
|
886
|
-
type BlueprintStage = Omit<BlueprintStageSchema, 'prompt'
|
|
894
|
+
type BlueprintStage = Omit<BlueprintStageSchema, 'prompt'> & {
|
|
887
895
|
goalPrompt: string;
|
|
888
896
|
promptInstructions: string[];
|
|
889
897
|
};
|
|
@@ -1005,11 +1013,11 @@ declare function createAgentScheduleApi(cfg: ClientConfig & {
|
|
|
1005
1013
|
|
|
1006
1014
|
type ListAgentStageTriggersOptions = ListQueryOptions;
|
|
1007
1015
|
type AgentStageTriggersApi$1 = {
|
|
1008
|
-
list(agentId: string, stageId: string, options?: ListAgentStageTriggersOptions): Promise<PaginatedResult<BlueprintStageTriggerListResponse, ListAgentStageTriggersOptions>>;
|
|
1009
|
-
get(agentId: string, stageId: string, triggerId: string): Promise<BlueprintStageTrigger>;
|
|
1010
|
-
create(agentId: string, stageId: string, payload: CreateBlueprintStageTriggerRequest): Promise<BlueprintStageTrigger>;
|
|
1011
|
-
update(agentId: string, stageId: string, triggerId: string, payload: UpdateBlueprintStageTriggerRequest): Promise<BlueprintStageTrigger>;
|
|
1012
|
-
delete(agentId: string, stageId: string, triggerId: string): Promise<void>;
|
|
1016
|
+
list(agentId: string, blueprintId: string, stageId: string, options?: ListAgentStageTriggersOptions): Promise<PaginatedResult<BlueprintStageTriggerListResponse, ListAgentStageTriggersOptions>>;
|
|
1017
|
+
get(agentId: string, blueprintId: string, stageId: string, triggerId: string): Promise<BlueprintStageTrigger>;
|
|
1018
|
+
create(agentId: string, blueprintId: string, stageId: string, payload: CreateBlueprintStageTriggerRequest): Promise<BlueprintStageTrigger>;
|
|
1019
|
+
update(agentId: string, blueprintId: string, stageId: string, triggerId: string, payload: UpdateBlueprintStageTriggerRequest): Promise<BlueprintStageTrigger>;
|
|
1020
|
+
delete(agentId: string, blueprintId: string, stageId: string, triggerId: string): Promise<void>;
|
|
1013
1021
|
};
|
|
1014
1022
|
declare function createAgentStageTriggersApi(cfg: ClientConfig & {
|
|
1015
1023
|
retry?: RetryPolicy;
|
|
@@ -1017,12 +1025,12 @@ declare function createAgentStageTriggersApi(cfg: ClientConfig & {
|
|
|
1017
1025
|
|
|
1018
1026
|
type ListAgentStagesOptions = ListQueryOptions;
|
|
1019
1027
|
type AgentStagesApi$1 = {
|
|
1020
|
-
list(agentId: string, options?: ListAgentStagesOptions): Promise<PaginatedResult<BlueprintStageListResponse, ListAgentStagesOptions>>;
|
|
1021
|
-
get(agentId: string, stageId: string): Promise<BlueprintStage>;
|
|
1022
|
-
create(agentId: string, payload: CreateBlueprintStageRequest): Promise<BlueprintStage>;
|
|
1023
|
-
update(agentId: string, stageId: string, payload: UpdateBlueprintStageRequest): Promise<BlueprintStage>;
|
|
1024
|
-
delete(agentId: string, stageId: string): Promise<void>;
|
|
1025
|
-
reorder(agentId: string, payload: BlueprintStageReorderRequest): Promise<BlueprintStageListResponse>;
|
|
1028
|
+
list(agentId: string, blueprintId: string, options?: ListAgentStagesOptions): Promise<PaginatedResult<BlueprintStageListResponse, ListAgentStagesOptions>>;
|
|
1029
|
+
get(agentId: string, blueprintId: string, stageId: string): Promise<BlueprintStage>;
|
|
1030
|
+
create(agentId: string, blueprintId: string, payload: CreateBlueprintStageRequest): Promise<BlueprintStage>;
|
|
1031
|
+
update(agentId: string, blueprintId: string, stageId: string, payload: UpdateBlueprintStageRequest): Promise<BlueprintStage>;
|
|
1032
|
+
delete(agentId: string, blueprintId: string, stageId: string): Promise<void>;
|
|
1033
|
+
reorder(agentId: string, blueprintId: string, payload: BlueprintStageReorderRequest): Promise<BlueprintStageListResponse>;
|
|
1026
1034
|
};
|
|
1027
1035
|
declare function createAgentStagesApi(cfg: ClientConfig & {
|
|
1028
1036
|
retry?: RetryPolicy;
|
|
@@ -1118,7 +1126,7 @@ declare const bindAgentInstructions: (api: AgentInstructionsApi, agentId: string
|
|
|
1118
1126
|
}>;
|
|
1119
1127
|
delete(instructionId: string): Promise<void>;
|
|
1120
1128
|
};
|
|
1121
|
-
declare const bindAgentStageTriggers: (api: AgentStageTriggersApi, agentId: string, stageId: string) => {
|
|
1129
|
+
declare const bindAgentStageTriggers: (api: AgentStageTriggersApi, agentId: string, blueprintId: string, stageId: string) => {
|
|
1122
1130
|
list(opts?: ListAgentStageTriggersOptions): Promise<PaginatedResult<{
|
|
1123
1131
|
data: components["schemas"]["BlueprintStageTrigger"][];
|
|
1124
1132
|
meta: components["schemas"]["PaginationMeta"];
|
|
@@ -1153,7 +1161,7 @@ declare const bindAgentStageTriggers: (api: AgentStageTriggersApi, agentId: stri
|
|
|
1153
1161
|
}>;
|
|
1154
1162
|
delete(triggerId: string): Promise<void>;
|
|
1155
1163
|
};
|
|
1156
|
-
declare const bindAgentStages: (stagesApi: AgentStagesApi, triggersApi: AgentStageTriggersApi, agentId: string) => {
|
|
1164
|
+
declare const bindAgentStages: (stagesApi: AgentStagesApi, triggersApi: AgentStageTriggersApi, agentId: string) => ((blueprintId: string) => {
|
|
1157
1165
|
list(opts?: ListAgentStagesOptions): Promise<PaginatedResult<BlueprintStageListResponse, Partial<{
|
|
1158
1166
|
page: number;
|
|
1159
1167
|
limit: number;
|
|
@@ -1170,6 +1178,23 @@ declare const bindAgentStages: (stagesApi: AgentStagesApi, triggersApi: AgentSta
|
|
|
1170
1178
|
delete(stageId: string): Promise<void>;
|
|
1171
1179
|
reorder(payload: BlueprintStageReorderRequest): Promise<BlueprintStageListResponse>;
|
|
1172
1180
|
triggers(stageId: string): AgentStageTriggersHelper;
|
|
1181
|
+
}) & {
|
|
1182
|
+
list(blueprintId: string, opts?: ListAgentStagesOptions): Promise<PaginatedResult<BlueprintStageListResponse, Partial<{
|
|
1183
|
+
page: number;
|
|
1184
|
+
limit: number;
|
|
1185
|
+
sort: string | string[];
|
|
1186
|
+
fields: string | string[];
|
|
1187
|
+
include: string | string[];
|
|
1188
|
+
search: string;
|
|
1189
|
+
filter: QueryFilters | QueryBuilderInput;
|
|
1190
|
+
or: QueryOrGroups | QueryBuilderInput;
|
|
1191
|
+
}>>>;
|
|
1192
|
+
get(blueprintId: string, stageId: string): Promise<BlueprintStage>;
|
|
1193
|
+
create(blueprintId: string, payload: CreateBlueprintStageRequest): Promise<BlueprintStage>;
|
|
1194
|
+
update(blueprintId: string, stageId: string, payload: UpdateBlueprintStageRequest): Promise<BlueprintStage>;
|
|
1195
|
+
delete(blueprintId: string, stageId: string): Promise<void>;
|
|
1196
|
+
reorder(blueprintId: string, payload: BlueprintStageReorderRequest): Promise<BlueprintStageListResponse>;
|
|
1197
|
+
triggers(blueprintId: string, stageId: string): AgentStageTriggersHelper;
|
|
1173
1198
|
};
|
|
1174
1199
|
declare const bindAgentTags: (api: AgentTagsApi, agentId: string) => {
|
|
1175
1200
|
add(tagId: string): Promise<AgentTagsResponse>;
|
|
@@ -1617,7 +1642,7 @@ declare function createClient(initialCfg: ClientConfig & {
|
|
|
1617
1642
|
} & ((agentId: string) => ReturnType<typeof bindAgentVersions>);
|
|
1618
1643
|
blueprints: AgentBlueprintsApi$1 & ((agentId: string) => ReturnType<typeof bindAgentBlueprints>);
|
|
1619
1644
|
stages: AgentStagesApi$1 & ((agentId: string) => ReturnType<typeof bindAgentStages>) & {
|
|
1620
|
-
triggers: AgentStageTriggersApi$1 & ((agentId: string, stageId: string) => ReturnType<typeof bindAgentStageTriggers>);
|
|
1645
|
+
triggers: AgentStageTriggersApi$1 & ((agentId: string, blueprintId: string, stageId: string) => ReturnType<typeof bindAgentStageTriggers>);
|
|
1621
1646
|
};
|
|
1622
1647
|
delete: (agent: string | AgentEntity) => Promise<void>;
|
|
1623
1648
|
list(options?: ListAgentsOptions): Promise<PaginatedResult<{
|
|
@@ -1720,7 +1745,7 @@ declare function createClient(initialCfg: ClientConfig & {
|
|
|
1720
1745
|
} & ((agentId: string) => ReturnType<typeof bindAgentVersions>);
|
|
1721
1746
|
blueprints: AgentBlueprintsApi$1 & ((agentId: string) => ReturnType<typeof bindAgentBlueprints>);
|
|
1722
1747
|
stages: AgentStagesApi$1 & ((agentId: string) => ReturnType<typeof bindAgentStages>) & {
|
|
1723
|
-
triggers: AgentStageTriggersApi$1 & ((agentId: string, stageId: string) => ReturnType<typeof bindAgentStageTriggers>);
|
|
1748
|
+
triggers: AgentStageTriggersApi$1 & ((agentId: string, blueprintId: string, stageId: string) => ReturnType<typeof bindAgentStageTriggers>);
|
|
1724
1749
|
};
|
|
1725
1750
|
delete: (agent: string | AgentEntity) => Promise<void>;
|
|
1726
1751
|
list(options?: ListAgentsOptions): Promise<PaginatedResult<{
|