@takeshape/schema 11.76.5 → 11.78.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.
@@ -288,6 +288,8 @@ export type CacheTriggerConfig = CacheScheduleTriggerConfig | CacheWebhookTrigge
288
288
  */
289
289
  export type ShapeSchema = ShapeSchemaAllOf | ShapeSchemaExtends | ShapeSchemaOneOf | ShapeSchemaEnum | ObjectSchema | ShapeSchemaAny;
290
290
  export type AgentAPI = AgentAPIChat | AgentAPIGenerate;
291
+ export type InteractionTimeoutMilliseconds = number;
292
+ export type InteractionTimeoutMilliseconds1 = number;
291
293
  export type MemoryLocations = AgentSessionMemoryLocation[];
292
294
  export type Variables = AgentVariable[];
293
295
  export type AgentExecution = AgentExecutionGraphQL | AgentExecutionGenerate | AgentExecutionChat;
@@ -295,7 +297,7 @@ export type AgentAIStateInput = AgentAIStateInputArgument | AgentAIStateInputTem
295
297
  export type AgentToolConfigArg = AgentToolConfigArgAgent | AgentToolConfigArgVariable;
296
298
  export type History1 = boolean;
297
299
  /**
298
- * Maximum number of tokens to generate.
300
+ * Maximum number of tokens to generate. Defaults to 1024
299
301
  */
300
302
  export type MaximumTokens1 = number;
301
303
  /**
@@ -1751,6 +1753,7 @@ export interface AgentJSON {
1751
1753
  }
1752
1754
  export interface AgentAPIChat {
1753
1755
  type: 'chat';
1756
+ interactionTimeout?: InteractionTimeoutMilliseconds;
1754
1757
  arguments?: AgentAPIArgument[];
1755
1758
  }
1756
1759
  export interface AgentAPIArgument {
@@ -1761,6 +1764,7 @@ export interface AgentAPIArgument {
1761
1764
  }
1762
1765
  export interface AgentAPIGenerate {
1763
1766
  type: 'generate';
1767
+ interactionTimeout?: InteractionTimeoutMilliseconds1;
1764
1768
  arguments?: AgentAPIArgument[];
1765
1769
  }
1766
1770
  export interface AgentMemory {
@@ -263,6 +263,8 @@ export type CacheTriggerConfigV3_48_0 = CacheScheduleTriggerConfigV3_48_0 | Cach
263
263
  */
264
264
  export type ShapeSchemaV3_48_0 = ShapeSchemaAllOfV3_48_0 | ShapeSchemaExtendsV3_48_0 | ShapeSchemaOneOfV3_48_0 | ShapeSchemaEnumV3_48_0 | ObjectSchemaV3_48_0 | ShapeSchemaAnyV3_48_0;
265
265
  export type AgentAPIV3_48_0 = AgentAPIChatV3_48_0 | AgentAPIGenerateV3_48_0;
266
+ export type InteractionTimeoutMillisecondsV3_48_0 = number;
267
+ export type InteractionTimeoutMillisecondsV3_48_01 = number;
266
268
  export type MemoryLocationsV3_48_0 = AgentSessionMemoryLocationV3_48_0[];
267
269
  export type VariablesV3_48_0 = AgentVariableV3_48_0[];
268
270
  export type AgentExecutionV3_48_0 = AgentExecutionGraphQLV3_48_0 | AgentExecutionGenerateV3_48_0 | AgentExecutionChatV3_48_0;
@@ -270,7 +272,7 @@ export type AgentAIStateInputV3_48_0 = AgentAIStateInputArgumentV3_48_0 | AgentA
270
272
  export type AgentToolConfigArgV3_48_0 = AgentToolConfigArgAgentV3_48_0 | AgentToolConfigArgVariableV3_48_0;
271
273
  export type HistoryV3_48_01 = boolean;
272
274
  /**
273
- * Maximum number of tokens to generate.
275
+ * Maximum number of tokens to generate. Defaults to 1024
274
276
  */
275
277
  export type MaximumTokensV3_48_01 = number;
276
278
  /**
@@ -1599,6 +1601,7 @@ export interface AgentJSONV3_48_0 {
1599
1601
  }
1600
1602
  export interface AgentAPIChatV3_48_0 {
1601
1603
  type: 'chat';
1604
+ interactionTimeout?: InteractionTimeoutMillisecondsV3_48_0;
1602
1605
  arguments?: AgentAPIArgumentV3_48_0[];
1603
1606
  }
1604
1607
  export interface AgentAPIArgumentV3_48_0 {
@@ -1609,6 +1612,7 @@ export interface AgentAPIArgumentV3_48_0 {
1609
1612
  }
1610
1613
  export interface AgentAPIGenerateV3_48_0 {
1611
1614
  type: 'generate';
1615
+ interactionTimeout?: InteractionTimeoutMillisecondsV3_48_01;
1612
1616
  arguments?: AgentAPIArgumentV3_48_0[];
1613
1617
  }
1614
1618
  export interface AgentMemoryV3_48_0 {
@@ -263,6 +263,8 @@ export type CacheTriggerConfigV3_49_0 = CacheScheduleTriggerConfigV3_49_0 | Cach
263
263
  */
264
264
  export type ShapeSchemaV3_49_0 = ShapeSchemaAllOfV3_49_0 | ShapeSchemaExtendsV3_49_0 | ShapeSchemaOneOfV3_49_0 | ShapeSchemaEnumV3_49_0 | ObjectSchemaV3_49_0 | ShapeSchemaAnyV3_49_0;
265
265
  export type AgentAPIV3_49_0 = AgentAPIChatV3_49_0 | AgentAPIGenerateV3_49_0;
266
+ export type InteractionTimeoutMillisecondsV3_49_0 = number;
267
+ export type InteractionTimeoutMillisecondsV3_49_01 = number;
266
268
  export type MemoryLocationsV3_49_0 = AgentSessionMemoryLocationV3_49_0[];
267
269
  export type VariablesV3_49_0 = AgentVariableV3_49_0[];
268
270
  export type AgentExecutionV3_49_0 = AgentExecutionGraphQLV3_49_0 | AgentExecutionGenerateV3_49_0 | AgentExecutionChatV3_49_0;
@@ -270,7 +272,7 @@ export type AgentAIStateInputV3_49_0 = AgentAIStateInputArgumentV3_49_0 | AgentA
270
272
  export type AgentToolConfigArgV3_49_0 = AgentToolConfigArgAgentV3_49_0 | AgentToolConfigArgVariableV3_49_0;
271
273
  export type HistoryV3_49_01 = boolean;
272
274
  /**
273
- * Maximum number of tokens to generate.
275
+ * Maximum number of tokens to generate. Defaults to 1024
274
276
  */
275
277
  export type MaximumTokensV3_49_01 = number;
276
278
  /**
@@ -1599,6 +1601,7 @@ export interface AgentJSONV3_49_0 {
1599
1601
  }
1600
1602
  export interface AgentAPIChatV3_49_0 {
1601
1603
  type: 'chat';
1604
+ interactionTimeout?: InteractionTimeoutMillisecondsV3_49_0;
1602
1605
  arguments?: AgentAPIArgumentV3_49_0[];
1603
1606
  }
1604
1607
  export interface AgentAPIArgumentV3_49_0 {
@@ -1609,6 +1612,7 @@ export interface AgentAPIArgumentV3_49_0 {
1609
1612
  }
1610
1613
  export interface AgentAPIGenerateV3_49_0 {
1611
1614
  type: 'generate';
1615
+ interactionTimeout?: InteractionTimeoutMillisecondsV3_49_01;
1612
1616
  arguments?: AgentAPIArgumentV3_49_0[];
1613
1617
  }
1614
1618
  export interface AgentMemoryV3_49_0 {
@@ -275,6 +275,8 @@ export type CacheTriggerConfigV3_50_0 = CacheScheduleTriggerConfigV3_50_0 | Cach
275
275
  */
276
276
  export type ShapeSchemaV3_50_0 = ShapeSchemaAllOfV3_50_0 | ShapeSchemaExtendsV3_50_0 | ShapeSchemaOneOfV3_50_0 | ShapeSchemaEnumV3_50_0 | ObjectSchemaV3_50_0 | ShapeSchemaAnyV3_50_0;
277
277
  export type AgentAPIV3_50_0 = AgentAPIChatV3_50_0 | AgentAPIGenerateV3_50_0;
278
+ export type InteractionTimeoutMillisecondsV3_50_0 = number;
279
+ export type InteractionTimeoutMillisecondsV3_50_01 = number;
278
280
  export type MemoryLocationsV3_50_0 = AgentSessionMemoryLocationV3_50_0[];
279
281
  export type VariablesV3_50_0 = AgentVariableV3_50_0[];
280
282
  export type AgentExecutionV3_50_0 = AgentExecutionGraphQLV3_50_0 | AgentExecutionGenerateV3_50_0 | AgentExecutionChatV3_50_0;
@@ -282,7 +284,7 @@ export type AgentAIStateInputV3_50_0 = AgentAIStateInputArgumentV3_50_0 | AgentA
282
284
  export type AgentToolConfigArgV3_50_0 = AgentToolConfigArgAgentV3_50_0 | AgentToolConfigArgVariableV3_50_0;
283
285
  export type HistoryV3_50_01 = boolean;
284
286
  /**
285
- * Maximum number of tokens to generate.
287
+ * Maximum number of tokens to generate. Defaults to 1024
286
288
  */
287
289
  export type MaximumTokensV3_50_01 = number;
288
290
  /**
@@ -1651,6 +1653,7 @@ export interface AgentJSONV3_50_0 {
1651
1653
  }
1652
1654
  export interface AgentAPIChatV3_50_0 {
1653
1655
  type: 'chat';
1656
+ interactionTimeout?: InteractionTimeoutMillisecondsV3_50_0;
1654
1657
  arguments?: AgentAPIArgumentV3_50_0[];
1655
1658
  }
1656
1659
  export interface AgentAPIArgumentV3_50_0 {
@@ -1661,6 +1664,7 @@ export interface AgentAPIArgumentV3_50_0 {
1661
1664
  }
1662
1665
  export interface AgentAPIGenerateV3_50_0 {
1663
1666
  type: 'generate';
1667
+ interactionTimeout?: InteractionTimeoutMillisecondsV3_50_01;
1664
1668
  arguments?: AgentAPIArgumentV3_50_0[];
1665
1669
  }
1666
1670
  export interface AgentMemoryV3_50_0 {
@@ -275,6 +275,8 @@ export type CacheTriggerConfigV3_51_0 = CacheScheduleTriggerConfigV3_51_0 | Cach
275
275
  */
276
276
  export type ShapeSchemaV3_51_0 = ShapeSchemaAllOfV3_51_0 | ShapeSchemaExtendsV3_51_0 | ShapeSchemaOneOfV3_51_0 | ShapeSchemaEnumV3_51_0 | ObjectSchemaV3_51_0 | ShapeSchemaAnyV3_51_0;
277
277
  export type AgentAPIV3_51_0 = AgentAPIChatV3_51_0 | AgentAPIGenerateV3_51_0;
278
+ export type InteractionTimeoutMillisecondsV3_51_0 = number;
279
+ export type InteractionTimeoutMillisecondsV3_51_01 = number;
278
280
  export type MemoryLocationsV3_51_0 = AgentSessionMemoryLocationV3_51_0[];
279
281
  export type VariablesV3_51_0 = AgentVariableV3_51_0[];
280
282
  export type AgentExecutionV3_51_0 = AgentExecutionGraphQLV3_51_0 | AgentExecutionGenerateV3_51_0 | AgentExecutionChatV3_51_0;
@@ -282,7 +284,7 @@ export type AgentAIStateInputV3_51_0 = AgentAIStateInputArgumentV3_51_0 | AgentA
282
284
  export type AgentToolConfigArgV3_51_0 = AgentToolConfigArgAgentV3_51_0 | AgentToolConfigArgVariableV3_51_0;
283
285
  export type HistoryV3_51_01 = boolean;
284
286
  /**
285
- * Maximum number of tokens to generate.
287
+ * Maximum number of tokens to generate. Defaults to 1024
286
288
  */
287
289
  export type MaximumTokensV3_51_01 = number;
288
290
  /**
@@ -1651,6 +1653,7 @@ export interface AgentJSONV3_51_0 {
1651
1653
  }
1652
1654
  export interface AgentAPIChatV3_51_0 {
1653
1655
  type: 'chat';
1656
+ interactionTimeout?: InteractionTimeoutMillisecondsV3_51_0;
1654
1657
  arguments?: AgentAPIArgumentV3_51_0[];
1655
1658
  }
1656
1659
  export interface AgentAPIArgumentV3_51_0 {
@@ -1661,6 +1664,7 @@ export interface AgentAPIArgumentV3_51_0 {
1661
1664
  }
1662
1665
  export interface AgentAPIGenerateV3_51_0 {
1663
1666
  type: 'generate';
1667
+ interactionTimeout?: InteractionTimeoutMillisecondsV3_51_01;
1664
1668
  arguments?: AgentAPIArgumentV3_51_0[];
1665
1669
  }
1666
1670
  export interface AgentMemoryV3_51_0 {
@@ -275,6 +275,8 @@ export type CacheTriggerConfigV3_52_0 = CacheScheduleTriggerConfigV3_52_0 | Cach
275
275
  */
276
276
  export type ShapeSchemaV3_52_0 = ShapeSchemaAllOfV3_52_0 | ShapeSchemaExtendsV3_52_0 | ShapeSchemaOneOfV3_52_0 | ShapeSchemaEnumV3_52_0 | ObjectSchemaV3_52_0 | ShapeSchemaAnyV3_52_0;
277
277
  export type AgentAPIV3_52_0 = AgentAPIChatV3_52_0 | AgentAPIGenerateV3_52_0;
278
+ export type InteractionTimeoutMillisecondsV3_52_0 = number;
279
+ export type InteractionTimeoutMillisecondsV3_52_01 = number;
278
280
  export type MemoryLocationsV3_52_0 = AgentSessionMemoryLocationV3_52_0[];
279
281
  export type VariablesV3_52_0 = AgentVariableV3_52_0[];
280
282
  export type AgentExecutionV3_52_0 = AgentExecutionGraphQLV3_52_0 | AgentExecutionGenerateV3_52_0 | AgentExecutionChatV3_52_0;
@@ -282,7 +284,7 @@ export type AgentAIStateInputV3_52_0 = AgentAIStateInputArgumentV3_52_0 | AgentA
282
284
  export type AgentToolConfigArgV3_52_0 = AgentToolConfigArgAgentV3_52_0 | AgentToolConfigArgVariableV3_52_0;
283
285
  export type HistoryV3_52_01 = boolean;
284
286
  /**
285
- * Maximum number of tokens to generate.
287
+ * Maximum number of tokens to generate. Defaults to 1024
286
288
  */
287
289
  export type MaximumTokensV3_52_01 = number;
288
290
  /**
@@ -1651,6 +1653,7 @@ export interface AgentJSONV3_52_0 {
1651
1653
  }
1652
1654
  export interface AgentAPIChatV3_52_0 {
1653
1655
  type: 'chat';
1656
+ interactionTimeout?: InteractionTimeoutMillisecondsV3_52_0;
1654
1657
  arguments?: AgentAPIArgumentV3_52_0[];
1655
1658
  }
1656
1659
  export interface AgentAPIArgumentV3_52_0 {
@@ -1661,6 +1664,7 @@ export interface AgentAPIArgumentV3_52_0 {
1661
1664
  }
1662
1665
  export interface AgentAPIGenerateV3_52_0 {
1663
1666
  type: 'generate';
1667
+ interactionTimeout?: InteractionTimeoutMillisecondsV3_52_01;
1664
1668
  arguments?: AgentAPIArgumentV3_52_0[];
1665
1669
  }
1666
1670
  export interface AgentMemoryV3_52_0 {
@@ -284,6 +284,8 @@ export type CacheTriggerConfigV3_53_0 = CacheScheduleTriggerConfigV3_53_0 | Cach
284
284
  */
285
285
  export type ShapeSchemaV3_53_0 = ShapeSchemaAllOfV3_53_0 | ShapeSchemaExtendsV3_53_0 | ShapeSchemaOneOfV3_53_0 | ShapeSchemaEnumV3_53_0 | ObjectSchemaV3_53_0 | ShapeSchemaAnyV3_53_0;
286
286
  export type AgentAPIV3_53_0 = AgentAPIChatV3_53_0 | AgentAPIGenerateV3_53_0;
287
+ export type InteractionTimeoutMillisecondsV3_53_0 = number;
288
+ export type InteractionTimeoutMillisecondsV3_53_01 = number;
287
289
  export type MemoryLocationsV3_53_0 = AgentSessionMemoryLocationV3_53_0[];
288
290
  export type VariablesV3_53_0 = AgentVariableV3_53_0[];
289
291
  export type AgentExecutionV3_53_0 = AgentExecutionGraphQLV3_53_0 | AgentExecutionGenerateV3_53_0 | AgentExecutionChatV3_53_0;
@@ -291,7 +293,7 @@ export type AgentAIStateInputV3_53_0 = AgentAIStateInputArgumentV3_53_0 | AgentA
291
293
  export type AgentToolConfigArgV3_53_0 = AgentToolConfigArgAgentV3_53_0 | AgentToolConfigArgVariableV3_53_0;
292
294
  export type HistoryV3_53_01 = boolean;
293
295
  /**
294
- * Maximum number of tokens to generate.
296
+ * Maximum number of tokens to generate. Defaults to 1024
295
297
  */
296
298
  export type MaximumTokensV3_53_01 = number;
297
299
  /**
@@ -1732,6 +1734,7 @@ export interface AgentJSONV3_53_0 {
1732
1734
  }
1733
1735
  export interface AgentAPIChatV3_53_0 {
1734
1736
  type: 'chat';
1737
+ interactionTimeout?: InteractionTimeoutMillisecondsV3_53_0;
1735
1738
  arguments?: AgentAPIArgumentV3_53_0[];
1736
1739
  }
1737
1740
  export interface AgentAPIArgumentV3_53_0 {
@@ -1742,6 +1745,7 @@ export interface AgentAPIArgumentV3_53_0 {
1742
1745
  }
1743
1746
  export interface AgentAPIGenerateV3_53_0 {
1744
1747
  type: 'generate';
1748
+ interactionTimeout?: InteractionTimeoutMillisecondsV3_53_01;
1745
1749
  arguments?: AgentAPIArgumentV3_53_0[];
1746
1750
  }
1747
1751
  export interface AgentMemoryV3_53_0 {
@@ -295,7 +295,7 @@ export type AgentAIStateInputV3_54_0 = AgentAIStateInputArgumentV3_54_0 | AgentA
295
295
  export type AgentToolConfigArgV3_54_0 = AgentToolConfigArgAgentV3_54_0 | AgentToolConfigArgVariableV3_54_0;
296
296
  export type HistoryV3_54_01 = boolean;
297
297
  /**
298
- * Maximum number of tokens to generate.
298
+ * Maximum number of tokens to generate. Defaults to 1024
299
299
  */
300
300
  export type MaximumTokensV3_54_01 = number;
301
301
  /**
@@ -56,6 +56,10 @@
56
56
  "type": {
57
57
  "enum": ["chat"]
58
58
  },
59
+ "interactionTimeout": {
60
+ "title": "Interaction Timeout (milliseconds)",
61
+ "type": "integer"
62
+ },
59
63
  "arguments": {
60
64
  "type": "array",
61
65
  "items": {
@@ -73,6 +77,10 @@
73
77
  "type": {
74
78
  "enum": ["generate"]
75
79
  },
80
+ "interactionTimeout": {
81
+ "title": "Interaction Timeout (milliseconds)",
82
+ "type": "integer"
83
+ },
76
84
  "arguments": {
77
85
  "type": "array",
78
86
  "items": {
@@ -396,7 +404,7 @@
396
404
  "maxTokens": {
397
405
  "type": "integer",
398
406
  "title": "Maximum Tokens",
399
- "description": "Maximum number of tokens to generate."
407
+ "description": "Maximum number of tokens to generate. Defaults to 1024"
400
408
  },
401
409
  "temperature": {
402
410
  "type": "number",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@takeshape/schema",
3
- "version": "11.76.5",
3
+ "version": "11.78.0",
4
4
  "description": "TakeShape Schema",
5
5
  "homepage": "https://www.takeshape.io",
6
6
  "repository": {
@@ -57,9 +57,9 @@
57
57
  "p-reduce": "^2.1.0",
58
58
  "semver": "^7.3.2",
59
59
  "tiny-invariant": "^1.2.0",
60
- "@takeshape/errors": "11.76.5",
61
- "@takeshape/util": "11.76.5",
62
- "@takeshape/json-schema": "11.76.5"
60
+ "@takeshape/errors": "11.78.0",
61
+ "@takeshape/json-schema": "11.78.0",
62
+ "@takeshape/util": "11.78.0"
63
63
  },
64
64
  "devDependencies": {
65
65
  "@takeshape/json-schema-to-typescript": "^11.0.0",
@@ -76,7 +76,7 @@
76
76
  "json-schema-to-ts": "^3.1.1",
77
77
  "meow": "^9.0.0",
78
78
  "shortid": "^2.2.15",
79
- "@takeshape/infra": "11.76.5"
79
+ "@takeshape/infra": "11.78.0"
80
80
  },
81
81
  "engines": {
82
82
  "node": ">=20"