@takeshape/schema 11.17.4 → 11.18.0

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/index.d.ts CHANGED
@@ -29,5 +29,4 @@ export * from './relationships';
29
29
  export * from './create-input-schema';
30
30
  export * from './schema-transform';
31
31
  export * from './interfaces';
32
- export declare const projectSchemaJson: any;
33
32
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,YAAY,EAAC,IAAI,EAAC,MAAM,eAAe,CAAC;AACxC,YAAY,EAAC,mBAAmB,EAAC,MAAM,mBAAmB,CAAC;AAC3D,cAAc,4BAA4B,CAAC;AAC3C,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,0BAA0B,CAAC;AACzC,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAE7B,eAAO,MAAM,iBAAiB,KAAO,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,YAAY,EAAC,IAAI,EAAC,MAAM,eAAe,CAAC;AACxC,YAAY,EAAC,mBAAmB,EAAC,MAAM,mBAAmB,CAAC;AAC3D,cAAc,4BAA4B,CAAC;AAC3C,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,0BAA0B,CAAC;AACzC,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC"}
package/dist/index.js CHANGED
@@ -3,14 +3,9 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- var _exportNames = {
7
- projectSchemaJson: true
8
- };
9
- exports.projectSchemaJson = void 0;
10
6
  var _contentSchemaTransform = require("./content-schema-transform");
11
7
  Object.keys(_contentSchemaTransform).forEach(function (key) {
12
8
  if (key === "default" || key === "__esModule") return;
13
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
14
9
  if (key in exports && exports[key] === _contentSchemaTransform[key]) return;
15
10
  Object.defineProperty(exports, key, {
16
11
  enumerable: true,
@@ -22,7 +17,6 @@ Object.keys(_contentSchemaTransform).forEach(function (key) {
22
17
  var _getIsLeaf = require("./get-is-leaf");
23
18
  Object.keys(_getIsLeaf).forEach(function (key) {
24
19
  if (key === "default" || key === "__esModule") return;
25
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
26
20
  if (key in exports && exports[key] === _getIsLeaf[key]) return;
27
21
  Object.defineProperty(exports, key, {
28
22
  enumerable: true,
@@ -34,7 +28,6 @@ Object.keys(_getIsLeaf).forEach(function (key) {
34
28
  var _projectSchema = require("./project-schema");
35
29
  Object.keys(_projectSchema).forEach(function (key) {
36
30
  if (key === "default" || key === "__esModule") return;
37
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
38
31
  if (key in exports && exports[key] === _projectSchema[key]) return;
39
32
  Object.defineProperty(exports, key, {
40
33
  enumerable: true,
@@ -46,7 +39,6 @@ Object.keys(_projectSchema).forEach(function (key) {
46
39
  var _migrate = require("./project-schema/migrate");
47
40
  Object.keys(_migrate).forEach(function (key) {
48
41
  if (key === "default" || key === "__esModule") return;
49
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
50
42
  if (key in exports && exports[key] === _migrate[key]) return;
51
43
  Object.defineProperty(exports, key, {
52
44
  enumerable: true,
@@ -58,7 +50,6 @@ Object.keys(_migrate).forEach(function (key) {
58
50
  var _schemaUtil = require("./schema-util");
59
51
  Object.keys(_schemaUtil).forEach(function (key) {
60
52
  if (key === "default" || key === "__esModule") return;
61
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
62
53
  if (key in exports && exports[key] === _schemaUtil[key]) return;
63
54
  Object.defineProperty(exports, key, {
64
55
  enumerable: true,
@@ -70,7 +61,6 @@ Object.keys(_schemaUtil).forEach(function (key) {
70
61
  var _services = require("./services");
71
62
  Object.keys(_services).forEach(function (key) {
72
63
  if (key === "default" || key === "__esModule") return;
73
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
74
64
  if (key in exports && exports[key] === _services[key]) return;
75
65
  Object.defineProperty(exports, key, {
76
66
  enumerable: true,
@@ -82,7 +72,6 @@ Object.keys(_services).forEach(function (key) {
82
72
  var _templateShapes = require("./template-shapes");
83
73
  Object.keys(_templateShapes).forEach(function (key) {
84
74
  if (key === "default" || key === "__esModule") return;
85
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
86
75
  if (key in exports && exports[key] === _templateShapes[key]) return;
87
76
  Object.defineProperty(exports, key, {
88
77
  enumerable: true,
@@ -94,7 +83,6 @@ Object.keys(_templateShapes).forEach(function (key) {
94
83
  var _taxonomies = require("./taxonomies");
95
84
  Object.keys(_taxonomies).forEach(function (key) {
96
85
  if (key === "default" || key === "__esModule") return;
97
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
98
86
  if (key in exports && exports[key] === _taxonomies[key]) return;
99
87
  Object.defineProperty(exports, key, {
100
88
  enumerable: true,
@@ -106,7 +94,6 @@ Object.keys(_taxonomies).forEach(function (key) {
106
94
  var _workflows = require("./workflows");
107
95
  Object.keys(_workflows).forEach(function (key) {
108
96
  if (key === "default" || key === "__esModule") return;
109
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
110
97
  if (key in exports && exports[key] === _workflows[key]) return;
111
98
  Object.defineProperty(exports, key, {
112
99
  enumerable: true,
@@ -118,7 +105,6 @@ Object.keys(_workflows).forEach(function (key) {
118
105
  var _authSchemas = require("./auth-schemas");
119
106
  Object.keys(_authSchemas).forEach(function (key) {
120
107
  if (key === "default" || key === "__esModule") return;
121
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
122
108
  if (key in exports && exports[key] === _authSchemas[key]) return;
123
109
  Object.defineProperty(exports, key, {
124
110
  enumerable: true,
@@ -130,7 +116,6 @@ Object.keys(_authSchemas).forEach(function (key) {
130
116
  var _apiVersion = require("./api-version");
131
117
  Object.keys(_apiVersion).forEach(function (key) {
132
118
  if (key === "default" || key === "__esModule") return;
133
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
134
119
  if (key in exports && exports[key] === _apiVersion[key]) return;
135
120
  Object.defineProperty(exports, key, {
136
121
  enumerable: true,
@@ -142,7 +127,6 @@ Object.keys(_apiVersion).forEach(function (key) {
142
127
  var _migration = require("./migration");
143
128
  Object.keys(_migration).forEach(function (key) {
144
129
  if (key === "default" || key === "__esModule") return;
145
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
146
130
  if (key in exports && exports[key] === _migration[key]) return;
147
131
  Object.defineProperty(exports, key, {
148
132
  enumerable: true,
@@ -154,7 +138,6 @@ Object.keys(_migration).forEach(function (key) {
154
138
  var _validate = require("./validate");
155
139
  Object.keys(_validate).forEach(function (key) {
156
140
  if (key === "default" || key === "__esModule") return;
157
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
158
141
  if (key in exports && exports[key] === _validate[key]) return;
159
142
  Object.defineProperty(exports, key, {
160
143
  enumerable: true,
@@ -166,7 +149,6 @@ Object.keys(_validate).forEach(function (key) {
166
149
  var _builtinSchema = require("./builtin-schema");
167
150
  Object.keys(_builtinSchema).forEach(function (key) {
168
151
  if (key === "default" || key === "__esModule") return;
169
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
170
152
  if (key in exports && exports[key] === _builtinSchema[key]) return;
171
153
  Object.defineProperty(exports, key, {
172
154
  enumerable: true,
@@ -178,7 +160,6 @@ Object.keys(_builtinSchema).forEach(function (key) {
178
160
  var _versions = require("./versions");
179
161
  Object.keys(_versions).forEach(function (key) {
180
162
  if (key === "default" || key === "__esModule") return;
181
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
182
163
  if (key in exports && exports[key] === _versions[key]) return;
183
164
  Object.defineProperty(exports, key, {
184
165
  enumerable: true,
@@ -190,7 +171,6 @@ Object.keys(_versions).forEach(function (key) {
190
171
  var _mocks = require("./mocks");
191
172
  Object.keys(_mocks).forEach(function (key) {
192
173
  if (key === "default" || key === "__esModule") return;
193
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
194
174
  if (key in exports && exports[key] === _mocks[key]) return;
195
175
  Object.defineProperty(exports, key, {
196
176
  enumerable: true,
@@ -202,7 +182,6 @@ Object.keys(_mocks).forEach(function (key) {
202
182
  var _util = require("./util");
203
183
  Object.keys(_util).forEach(function (key) {
204
184
  if (key === "default" || key === "__esModule") return;
205
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
206
185
  if (key in exports && exports[key] === _util[key]) return;
207
186
  Object.defineProperty(exports, key, {
208
187
  enumerable: true,
@@ -214,7 +193,6 @@ Object.keys(_util).forEach(function (key) {
214
193
  var _scalars = require("./scalars");
215
194
  Object.keys(_scalars).forEach(function (key) {
216
195
  if (key === "default" || key === "__esModule") return;
217
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
218
196
  if (key in exports && exports[key] === _scalars[key]) return;
219
197
  Object.defineProperty(exports, key, {
220
198
  enumerable: true,
@@ -226,7 +204,6 @@ Object.keys(_scalars).forEach(function (key) {
226
204
  var _refs = require("./refs");
227
205
  Object.keys(_refs).forEach(function (key) {
228
206
  if (key === "default" || key === "__esModule") return;
229
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
230
207
  if (key in exports && exports[key] === _refs[key]) return;
231
208
  Object.defineProperty(exports, key, {
232
209
  enumerable: true,
@@ -238,7 +215,6 @@ Object.keys(_refs).forEach(function (key) {
238
215
  var _unions = require("./unions");
239
216
  Object.keys(_unions).forEach(function (key) {
240
217
  if (key === "default" || key === "__esModule") return;
241
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
242
218
  if (key in exports && exports[key] === _unions[key]) return;
243
219
  Object.defineProperty(exports, key, {
244
220
  enumerable: true,
@@ -250,7 +226,6 @@ Object.keys(_unions).forEach(function (key) {
250
226
  var _enum = require("./enum");
251
227
  Object.keys(_enum).forEach(function (key) {
252
228
  if (key === "default" || key === "__esModule") return;
253
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
254
229
  if (key in exports && exports[key] === _enum[key]) return;
255
230
  Object.defineProperty(exports, key, {
256
231
  enumerable: true,
@@ -262,7 +237,6 @@ Object.keys(_enum).forEach(function (key) {
262
237
  var _patterns = require("./patterns");
263
238
  Object.keys(_patterns).forEach(function (key) {
264
239
  if (key === "default" || key === "__esModule") return;
265
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
266
240
  if (key in exports && exports[key] === _patterns[key]) return;
267
241
  Object.defineProperty(exports, key, {
268
242
  enumerable: true,
@@ -274,7 +248,6 @@ Object.keys(_patterns).forEach(function (key) {
274
248
  var _types = require("./types/types");
275
249
  Object.keys(_types).forEach(function (key) {
276
250
  if (key === "default" || key === "__esModule") return;
277
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
278
251
  if (key in exports && exports[key] === _types[key]) return;
279
252
  Object.defineProperty(exports, key, {
280
253
  enumerable: true,
@@ -286,7 +259,6 @@ Object.keys(_types).forEach(function (key) {
286
259
  var _utils = require("./types/utils");
287
260
  Object.keys(_utils).forEach(function (key) {
288
261
  if (key === "default" || key === "__esModule") return;
289
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
290
262
  if (key in exports && exports[key] === _utils[key]) return;
291
263
  Object.defineProperty(exports, key, {
292
264
  enumerable: true,
@@ -298,7 +270,6 @@ Object.keys(_utils).forEach(function (key) {
298
270
  var _flattenTemplates = require("./flatten-templates");
299
271
  Object.keys(_flattenTemplates).forEach(function (key) {
300
272
  if (key === "default" || key === "__esModule") return;
301
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
302
273
  if (key in exports && exports[key] === _flattenTemplates[key]) return;
303
274
  Object.defineProperty(exports, key, {
304
275
  enumerable: true,
@@ -310,7 +281,6 @@ Object.keys(_flattenTemplates).forEach(function (key) {
310
281
  var _relationships = require("./relationships");
311
282
  Object.keys(_relationships).forEach(function (key) {
312
283
  if (key === "default" || key === "__esModule") return;
313
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
314
284
  if (key in exports && exports[key] === _relationships[key]) return;
315
285
  Object.defineProperty(exports, key, {
316
286
  enumerable: true,
@@ -322,7 +292,6 @@ Object.keys(_relationships).forEach(function (key) {
322
292
  var _createInputSchema = require("./create-input-schema");
323
293
  Object.keys(_createInputSchema).forEach(function (key) {
324
294
  if (key === "default" || key === "__esModule") return;
325
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
326
295
  if (key in exports && exports[key] === _createInputSchema[key]) return;
327
296
  Object.defineProperty(exports, key, {
328
297
  enumerable: true,
@@ -334,7 +303,6 @@ Object.keys(_createInputSchema).forEach(function (key) {
334
303
  var _schemaTransform = require("./schema-transform");
335
304
  Object.keys(_schemaTransform).forEach(function (key) {
336
305
  if (key === "default" || key === "__esModule") return;
337
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
338
306
  if (key in exports && exports[key] === _schemaTransform[key]) return;
339
307
  Object.defineProperty(exports, key, {
340
308
  enumerable: true,
@@ -346,7 +314,6 @@ Object.keys(_schemaTransform).forEach(function (key) {
346
314
  var _interfaces = require("./interfaces");
347
315
  Object.keys(_interfaces).forEach(function (key) {
348
316
  if (key === "default" || key === "__esModule") return;
349
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
350
317
  if (key in exports && exports[key] === _interfaces[key]) return;
351
318
  Object.defineProperty(exports, key, {
352
319
  enumerable: true,
@@ -354,9 +321,4 @@ Object.keys(_interfaces).forEach(function (key) {
354
321
  return _interfaces[key];
355
322
  }
356
323
  });
357
- });
358
- var _latest = _interopRequireDefault(require("./schemas/project-schema/latest.json"));
359
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
360
- // Only export User here since AccessPolicyDocument is in auth-schemas
361
-
362
- const projectSchemaJson = exports.projectSchemaJson = _latest.default;
324
+ });
@@ -262,22 +262,44 @@ export type CacheTriggerConfig = CacheScheduleTriggerConfig | CacheWebhookTrigge
262
262
  * via the `definition` "shapeSchema".
263
263
  */
264
264
  export type ShapeSchema = ShapeSchemaAllOf | ShapeSchemaExtends | ShapeSchemaOneOf | ShapeSchemaEnum | ObjectSchema | ShapeSchemaAny;
265
- /**
266
- * This interface was referenced by `ProjectSchemaJSON`'s JSON-Schema
267
- * via the `definition` "agentVariableStep".
268
- */
269
265
  export type AgentVariableStep = AgentVariableStepGraphQLArg | AgentVariableStepStateOutput | AgentVariableStepPreviousStateOutput;
270
266
  export type Variables = AgentVariable[];
267
+ export type AgentExecution = AgentExecutionNoOperation | AgentExecutionInput | AgentExecutionGraphQL | AgentExecutionGenerateText | AgentExecutionChat;
268
+ export type AgentAIStateInput = AgentAIStateInputArgument | AgentAIStateInputTemplate;
269
+ export type AgentGuardrail = AgentSimilarityGuardrail;
270
+ export type History1 = boolean;
271
271
  /**
272
- * This interface was referenced by `ProjectSchemaJSON`'s JSON-Schema
273
- * via the `definition` "agentExecution".
272
+ * Maximum number of tokens to generate.
274
273
  */
275
- export type AgentExecution = AgentExecutionNoOperation | AgentExecutionInput | AgentExecutionGraphQL | AgentExecutionGenerateText | AgentExecutionChat;
274
+ export type MaximumTokens1 = number;
276
275
  /**
277
- * This interface was referenced by `ProjectSchemaJSON`'s JSON-Schema
278
- * via the `definition` "agentAiStateInput".
276
+ * This is a number between 0 (almost no randomness) and 1 (very random). It is recommended to set either `temperature` or `topP`, but not both. Defaults to 0
279
277
  */
280
- export type AgentAIStateInput = AgentAIStateInputArgument | AgentAIStateInputTemplate;
278
+ export type Temperature1 = number;
279
+ /**
280
+ * Nucleus sampling. This is a number between 0 and 1. E.g. 0.1 would mean that only tokens with the top 10% probability mass are considered. It is recommended to set either `temperature` or `topP`, but not both.
281
+ */
282
+ export type TopP1 = number;
283
+ /**
284
+ * Only sample from the top K options for each subsequent token. Used to remove "long tail" low probability responses. Recommended for advanced use cases only. You usually only need to use temperature.
285
+ */
286
+ export type TopK1 = number;
287
+ /**
288
+ * It affects the likelihood of the model to repeat information that is already in the prompt. The presence penalty is a number between -1 (increase repetition) and 1 (maximum penalty, decrease repetition). 0 means no penalty.
289
+ */
290
+ export type PresencePenaltySetting1 = number;
291
+ /**
292
+ * It affects the likelihood of the model to repeatedly use the same words or phrases. The frequency penalty is a number between -1 (increase repetition) and 1 (maximum penalty, decrease repetition). 0 means no penalty.
293
+ */
294
+ export type FrequencyPenaltySetting1 = number;
295
+ /**
296
+ * If set, the model will stop generating text when one of the stop sequences is generated.
297
+ */
298
+ export type StopSequences1 = string[];
299
+ /**
300
+ * The seed (integer) to use for random sampling. If set and supported by the model, calls will generate deterministic results.
301
+ */
302
+ export type Seed1 = number;
281
303
  /**
282
304
  * These are evaluated in order until a destination is found.
283
305
  */
@@ -1192,10 +1214,6 @@ export interface AIParseFileResolver {
1192
1214
  args?: ParameterConfigForJson;
1193
1215
  results?: ParameterConfigForJson;
1194
1216
  }
1195
- /**
1196
- * This interface was referenced by `ProjectSchemaJSON`'s JSON-Schema
1197
- * via the `definition` "aiRunAgentResolver".
1198
- */
1199
1217
  export interface AIRunAgentResolver {
1200
1218
  id?: string;
1201
1219
  name: AIResolverName3;
@@ -1434,17 +1452,9 @@ export interface ShapeSchemaEnum {
1434
1452
  */
1435
1453
  export interface ShapeSchemaAny {
1436
1454
  }
1437
- /**
1438
- * This interface was referenced by `ProjectSchemaJSON`'s JSON-Schema
1439
- * via the `definition` "aiExperimental".
1440
- */
1441
1455
  export interface AIExperimental {
1442
1456
  agents?: AgentMap;
1443
1457
  }
1444
- /**
1445
- * This interface was referenced by `ProjectSchemaJSON`'s JSON-Schema
1446
- * via the `definition` "agentMap".
1447
- */
1448
1458
  export interface AgentMap {
1449
1459
  [k: string]: AgentJSON;
1450
1460
  }
@@ -1453,9 +1463,6 @@ export interface AgentMap {
1453
1463
  *
1454
1464
  * This interface was referenced by `AgentMap`'s JSON-Schema definition
1455
1465
  * via the `patternProperty` "^[0-9A-Za-z_]+$".
1456
- *
1457
- * This interface was referenced by `ProjectSchemaJSON`'s JSON-Schema
1458
- * via the `definition` "agent".
1459
1466
  */
1460
1467
  export interface AgentJSON {
1461
1468
  description?: string;
@@ -1463,9 +1470,6 @@ export interface AgentJSON {
1463
1470
  }
1464
1471
  /**
1465
1472
  * States that are traversed during the execution of an agent.
1466
- *
1467
- * This interface was referenced by `ProjectSchemaJSON`'s JSON-Schema
1468
- * via the `definition` "agentStateMap".
1469
1473
  */
1470
1474
  export interface AgentStates {
1471
1475
  [k: string]: AgentState;
@@ -1475,9 +1479,6 @@ export interface AgentStates {
1475
1479
  *
1476
1480
  * This interface was referenced by `AgentStates`'s JSON-Schema definition
1477
1481
  * via the `patternProperty` "^[0-9A-Za-z_]+$".
1478
- *
1479
- * This interface was referenced by `ProjectSchemaJSON`'s JSON-Schema
1480
- * via the `definition` "agentState".
1481
1482
  */
1482
1483
  export interface AgentState {
1483
1484
  name: string;
@@ -1485,10 +1486,6 @@ export interface AgentState {
1485
1486
  execution: AgentExecution;
1486
1487
  transition?: AgentStateTransition;
1487
1488
  }
1488
- /**
1489
- * This interface was referenced by `ProjectSchemaJSON`'s JSON-Schema
1490
- * via the `definition` "agentVariable".
1491
- */
1492
1489
  export interface AgentVariable {
1493
1490
  name: string;
1494
1491
  /**
@@ -1498,9 +1495,6 @@ export interface AgentVariable {
1498
1495
  }
1499
1496
  /**
1500
1497
  * An Agent Variable that defines a GraphQL argument and makes its value available to templates.
1501
- *
1502
- * This interface was referenced by `ProjectSchemaJSON`'s JSON-Schema
1503
- * via the `definition` "agentVariableStepGraphqlArg".
1504
1498
  */
1505
1499
  export interface AgentVariableStepGraphQLArg {
1506
1500
  type: 'graphqlArg';
@@ -1508,9 +1502,6 @@ export interface AgentVariableStepGraphQLArg {
1508
1502
  }
1509
1503
  /**
1510
1504
  * An Agent Variable that provides the output of any previous state's execution.
1511
- *
1512
- * This interface was referenced by `ProjectSchemaJSON`'s JSON-Schema
1513
- * via the `definition` "agentVariableStepStateOutput".
1514
1505
  */
1515
1506
  export interface AgentVariableStepStateOutput {
1516
1507
  type: 'stateOutput';
@@ -1519,53 +1510,30 @@ export interface AgentVariableStepStateOutput {
1519
1510
  }
1520
1511
  /**
1521
1512
  * An Agent Variable that provides the output of the previous state's execution.
1522
- *
1523
- * This interface was referenced by `ProjectSchemaJSON`'s JSON-Schema
1524
- * via the `definition` "agentVariableStepPreviousStateOutput".
1525
1513
  */
1526
1514
  export interface AgentVariableStepPreviousStateOutput {
1527
1515
  type: 'previousStateOutput';
1528
1516
  path?: string;
1529
1517
  }
1530
- /**
1531
- * This interface was referenced by `ProjectSchemaJSON`'s JSON-Schema
1532
- * via the `definition` "agentExecutionNoop".
1533
- */
1534
1518
  export interface AgentExecutionNoOperation {
1535
1519
  type: 'noop';
1536
1520
  }
1537
- /**
1538
- * This interface was referenced by `ProjectSchemaJSON`'s JSON-Schema
1539
- * via the `definition` "agentExecutionInput".
1540
- */
1541
1521
  export interface AgentExecutionInput {
1542
1522
  type: 'input';
1543
1523
  name: string;
1544
1524
  inputType: 'query' | 'mutation';
1545
1525
  arguments?: AgentExecutionInputArgument[];
1546
1526
  }
1547
- /**
1548
- * This interface was referenced by `ProjectSchemaJSON`'s JSON-Schema
1549
- * via the `definition` "agentExecutionInputArgument".
1550
- */
1551
1527
  export interface AgentExecutionInputArgument {
1552
1528
  argName: string;
1553
1529
  argType: 'boolean' | 'integer' | 'number' | 'string';
1554
1530
  required?: boolean;
1555
1531
  }
1556
- /**
1557
- * This interface was referenced by `ProjectSchemaJSON`'s JSON-Schema
1558
- * via the `definition` "agentExecutionGraphql".
1559
- */
1560
1532
  export interface AgentExecutionGraphQL {
1561
1533
  type: 'graphql';
1562
1534
  query: string;
1563
1535
  path?: string;
1564
1536
  }
1565
- /**
1566
- * This interface was referenced by `ProjectSchemaJSON`'s JSON-Schema
1567
- * via the `definition` "agentExecutionGenerateText".
1568
- */
1569
1537
  export interface AgentExecutionGenerateText {
1570
1538
  type: 'generateText';
1571
1539
  service: string;
@@ -1573,61 +1541,74 @@ export interface AgentExecutionGenerateText {
1573
1541
  systemPrompt?: string;
1574
1542
  input: AgentAIStateInput;
1575
1543
  jsonSchema?: string;
1576
- tools?: AIToolConfig[];
1577
- guardrails?: AIGuardrail[];
1578
- options?: AIGenerateTextResolverOptions;
1544
+ tools?: AgentToolConfig[];
1545
+ guardrails?: AgentGuardrail[];
1546
+ options?: AgentGenerateOptions;
1579
1547
  }
1580
- /**
1581
- * This interface was referenced by `ProjectSchemaJSON`'s JSON-Schema
1582
- * via the `definition` "agentAiStateInputArg".
1583
- */
1584
1548
  export interface AgentAIStateInputArgument {
1585
1549
  type: 'arg';
1586
1550
  inputArgName: string;
1587
1551
  [k: string]: any;
1588
1552
  }
1589
- /**
1590
- * This interface was referenced by `ProjectSchemaJSON`'s JSON-Schema
1591
- * via the `definition` "agentAiStateInputTemplate".
1592
- */
1593
1553
  export interface AgentAIStateInputTemplate {
1594
1554
  type: 'template';
1595
1555
  inputTemplate: string;
1596
1556
  [k: string]: any;
1597
1557
  }
1598
- /**
1599
- * This interface was referenced by `ProjectSchemaJSON`'s JSON-Schema
1600
- * via the `definition` "agentExecutionChat".
1601
- */
1558
+ export interface AgentToolConfig {
1559
+ ref: string;
1560
+ selectionSet?: string;
1561
+ }
1562
+ export interface AgentSimilarityGuardrail {
1563
+ name: 'similarity';
1564
+ shape: string;
1565
+ defaultResponse: string;
1566
+ threshold?: number;
1567
+ }
1568
+ export interface AgentGenerateOptions {
1569
+ history?: History1;
1570
+ maxTokens?: MaximumTokens1;
1571
+ temperature?: Temperature1;
1572
+ topP?: TopP1;
1573
+ topK?: TopK1;
1574
+ presencePenalty?: PresencePenaltySetting1;
1575
+ frequencyPenalty?: FrequencyPenaltySetting1;
1576
+ stopSequences?: StopSequences1;
1577
+ seed?: Seed1;
1578
+ /**
1579
+ * Maximum number of retries. Set to 0 to disable retries. Defaults to 2
1580
+ */
1581
+ maxRetries?: number;
1582
+ /**
1583
+ * The tool choice strategy. Default: 'auto'
1584
+ */
1585
+ toolChoice?: (('auto' | 'none' | 'required') | string) & string;
1586
+ /**
1587
+ * Maximal number of automatic roundtrips for tool calls.
1588
+ */
1589
+ maxToolRoundtrips?: number;
1590
+ }
1602
1591
  export interface AgentExecutionChat {
1603
1592
  type: 'chat';
1604
1593
  service: string;
1605
1594
  model: string;
1606
1595
  systemPrompt?: string;
1607
1596
  input: AgentAIStateInput;
1608
- tools?: AIToolConfig[];
1597
+ tools?: AgentToolConfig[];
1609
1598
  sessionArg: string;
1610
- guardrails?: AIGuardrail[];
1611
- options?: AIGenerateTextResolverOptions;
1599
+ guardrails?: AgentGuardrail[];
1600
+ options?: AgentGenerateOptions;
1612
1601
  }
1613
1602
  export interface AgentTransition {
1614
- valueCheck: ValueCheckNone | ValueCheckBoolean;
1603
+ valueCheck: AgentValueCheckNone | AgentValueCheckBoolean;
1615
1604
  limit?: number;
1616
1605
  destination: string;
1617
1606
  }
1618
- /**
1619
- * This interface was referenced by `ProjectSchemaJSON`'s JSON-Schema
1620
- * via the `definition` "valueCheckNone".
1621
- */
1622
- export interface ValueCheckNone {
1607
+ export interface AgentValueCheckNone {
1623
1608
  type: 'none';
1624
1609
  [k: string]: any;
1625
1610
  }
1626
- /**
1627
- * This interface was referenced by `ProjectSchemaJSON`'s JSON-Schema
1628
- * via the `definition` "valueCheckBoolean".
1629
- */
1630
- export interface ValueCheckBoolean {
1611
+ export interface AgentValueCheckBoolean {
1631
1612
  type: 'boolean';
1632
1613
  path: string;
1633
1614
  negated?: boolean;
@@ -1818,15 +1799,6 @@ export interface ParameterConfig {
1818
1799
  export interface AIParseFileResolverOptions {
1819
1800
  [k: string]: any;
1820
1801
  }
1821
- /**
1822
- * This interface was referenced by `ProjectSchemaJSON`'s JSON-Schema
1823
- * via the `definition` "agentTransition".
1824
- */
1825
- export interface AgentTransition1 {
1826
- valueCheck: ValueCheckNone | ValueCheckBoolean;
1827
- limit?: number;
1828
- destination: string;
1829
- }
1830
1802
  /**
1831
1803
  * This interface was referenced by `ProjectSchemaJSON`'s JSON-Schema
1832
1804
  * via the `definition` "listQueryLoaderConfig".