@takeshape/schema 11.64.0 → 11.66.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/project-schema/latest.d.ts +26 -7
- package/dist/project-schema/v3.48.0.d.ts +26 -7
- package/dist/project-schema/v3.49.0.d.ts +26 -7
- package/dist/project-schema/v3.50.0.d.ts +26 -7
- package/dist/project-schema/v3.51.0.d.ts +26 -7
- package/dist/project-schema/v3.52.0.d.ts +26 -7
- package/dist/project-schema/v3.53.0.d.ts +26 -7
- package/dist/schemas/project-schema/experimental.json +57 -5
- package/dist/validate/validate.js +5 -1
- package/examples/latest/agent-schema.json +1 -1
- package/package.json +5 -5
|
@@ -288,11 +288,7 @@ export type MemoryLocations = AgentSessionMemoryLocation[];
|
|
|
288
288
|
export type Variables = AgentVariable[];
|
|
289
289
|
export type AgentExecution = AgentExecutionGraphQL | AgentExecutionGenerate | AgentExecutionChat;
|
|
290
290
|
export type AgentAIStateInput = AgentAIStateInputArgument | AgentAIStateInputTemplate;
|
|
291
|
-
export type
|
|
292
|
-
/**
|
|
293
|
-
* Remove properties from the schema sent to the model with keys matching these minimatch glob patterns.
|
|
294
|
-
*/
|
|
295
|
-
export type RemovePropertyKeyPatterns = MinimatchPattern[];
|
|
291
|
+
export type AgentToolConfigArg = AgentToolConfigArgAgent | AgentToolConfigArgVariable;
|
|
296
292
|
export type History1 = boolean;
|
|
297
293
|
/**
|
|
298
294
|
* Maximum number of tokens to generate.
|
|
@@ -338,6 +334,11 @@ export type StructuredOutputs = boolean;
|
|
|
338
334
|
* Enable OpenAI schema format. Must be enabled if `structuredOutputs` is enabled.
|
|
339
335
|
*/
|
|
340
336
|
export type EnableOpenAISchemaFormat = boolean;
|
|
337
|
+
export type MinimatchPattern = string;
|
|
338
|
+
/**
|
|
339
|
+
* Remove properties from the schema sent to the model with keys matching these minimatch glob patterns.
|
|
340
|
+
*/
|
|
341
|
+
export type RemovePropertyKeyPatterns = MinimatchPattern[];
|
|
341
342
|
export type AgentStateSessionMemoryLocation = AgentStateSessionMemoryLocationArtifact | AgentStateSessionMemoryLocationStaticValue;
|
|
342
343
|
export type AgentStateSessionMemory = AgentStateSessionMemoryLocation[];
|
|
343
344
|
export type GuardID = string;
|
|
@@ -1816,10 +1817,28 @@ export interface AgentAIStateInputTemplate {
|
|
|
1816
1817
|
inputTemplate: string;
|
|
1817
1818
|
}
|
|
1818
1819
|
export interface AgentToolConfig {
|
|
1819
|
-
description?: string;
|
|
1820
1820
|
ref: string;
|
|
1821
|
+
description?: string;
|
|
1822
|
+
args?: AgentToolConfigArg[];
|
|
1821
1823
|
selectionSet?: string;
|
|
1822
|
-
|
|
1824
|
+
}
|
|
1825
|
+
export interface AgentToolConfigArgAgent {
|
|
1826
|
+
type: 'agent';
|
|
1827
|
+
/**
|
|
1828
|
+
* The argument name that will be exposed by the tool for the LLM to use.
|
|
1829
|
+
*/
|
|
1830
|
+
argName: string;
|
|
1831
|
+
}
|
|
1832
|
+
export interface AgentToolConfigArgVariable {
|
|
1833
|
+
type: 'variable';
|
|
1834
|
+
/**
|
|
1835
|
+
* Name of argument to pass value to. This prevents the LLM from setting the argument.
|
|
1836
|
+
*/
|
|
1837
|
+
argName: string;
|
|
1838
|
+
/**
|
|
1839
|
+
* Name of variable to pull value from.
|
|
1840
|
+
*/
|
|
1841
|
+
variableName: string;
|
|
1823
1842
|
}
|
|
1824
1843
|
export interface AgentGenerateOptions {
|
|
1825
1844
|
history?: History1;
|
|
@@ -267,11 +267,7 @@ export type MemoryLocationsV3_48_0 = AgentSessionMemoryLocationV3_48_0[];
|
|
|
267
267
|
export type VariablesV3_48_0 = AgentVariableV3_48_0[];
|
|
268
268
|
export type AgentExecutionV3_48_0 = AgentExecutionGraphQLV3_48_0 | AgentExecutionGenerateV3_48_0 | AgentExecutionChatV3_48_0;
|
|
269
269
|
export type AgentAIStateInputV3_48_0 = AgentAIStateInputArgumentV3_48_0 | AgentAIStateInputTemplateV3_48_0;
|
|
270
|
-
export type
|
|
271
|
-
/**
|
|
272
|
-
* Remove properties from the schema sent to the model with keys matching these minimatch glob patterns.
|
|
273
|
-
*/
|
|
274
|
-
export type RemovePropertyKeyPatternsV3_48_0 = MinimatchPatternV3_48_0[];
|
|
270
|
+
export type AgentToolConfigArgV3_48_0 = AgentToolConfigArgAgentV3_48_0 | AgentToolConfigArgVariableV3_48_0;
|
|
275
271
|
export type HistoryV3_48_01 = boolean;
|
|
276
272
|
/**
|
|
277
273
|
* Maximum number of tokens to generate.
|
|
@@ -317,6 +313,11 @@ export type StructuredOutputsV3_48_0 = boolean;
|
|
|
317
313
|
* Enable OpenAI schema format. Must be enabled if `structuredOutputs` is enabled.
|
|
318
314
|
*/
|
|
319
315
|
export type EnableOpenAISchemaFormatV3_48_0 = boolean;
|
|
316
|
+
export type MinimatchPatternV3_48_0 = string;
|
|
317
|
+
/**
|
|
318
|
+
* Remove properties from the schema sent to the model with keys matching these minimatch glob patterns.
|
|
319
|
+
*/
|
|
320
|
+
export type RemovePropertyKeyPatternsV3_48_0 = MinimatchPatternV3_48_0[];
|
|
320
321
|
export type AgentStateSessionMemoryLocationV3_48_0 = AgentStateSessionMemoryLocationArtifactV3_48_0 | AgentStateSessionMemoryLocationStaticValueV3_48_0;
|
|
321
322
|
export type AgentStateSessionMemoryV3_48_0 = AgentStateSessionMemoryLocationV3_48_0[];
|
|
322
323
|
export type GuardIDV3_48_0 = string;
|
|
@@ -1683,10 +1684,28 @@ export interface AgentAIStateInputTemplateV3_48_0 {
|
|
|
1683
1684
|
inputTemplate: string;
|
|
1684
1685
|
}
|
|
1685
1686
|
export interface AgentToolConfigV3_48_0 {
|
|
1686
|
-
description?: string;
|
|
1687
1687
|
ref: string;
|
|
1688
|
+
description?: string;
|
|
1689
|
+
args?: AgentToolConfigArgV3_48_0[];
|
|
1688
1690
|
selectionSet?: string;
|
|
1689
|
-
|
|
1691
|
+
}
|
|
1692
|
+
export interface AgentToolConfigArgAgentV3_48_0 {
|
|
1693
|
+
type: 'agent';
|
|
1694
|
+
/**
|
|
1695
|
+
* The argument name that will be exposed by the tool for the LLM to use.
|
|
1696
|
+
*/
|
|
1697
|
+
argName: string;
|
|
1698
|
+
}
|
|
1699
|
+
export interface AgentToolConfigArgVariableV3_48_0 {
|
|
1700
|
+
type: 'variable';
|
|
1701
|
+
/**
|
|
1702
|
+
* Name of argument to pass value to. This prevents the LLM from setting the argument.
|
|
1703
|
+
*/
|
|
1704
|
+
argName: string;
|
|
1705
|
+
/**
|
|
1706
|
+
* Name of variable to pull value from.
|
|
1707
|
+
*/
|
|
1708
|
+
variableName: string;
|
|
1690
1709
|
}
|
|
1691
1710
|
export interface AgentGenerateOptionsV3_48_0 {
|
|
1692
1711
|
history?: HistoryV3_48_01;
|
|
@@ -267,11 +267,7 @@ export type MemoryLocationsV3_49_0 = AgentSessionMemoryLocationV3_49_0[];
|
|
|
267
267
|
export type VariablesV3_49_0 = AgentVariableV3_49_0[];
|
|
268
268
|
export type AgentExecutionV3_49_0 = AgentExecutionGraphQLV3_49_0 | AgentExecutionGenerateV3_49_0 | AgentExecutionChatV3_49_0;
|
|
269
269
|
export type AgentAIStateInputV3_49_0 = AgentAIStateInputArgumentV3_49_0 | AgentAIStateInputTemplateV3_49_0;
|
|
270
|
-
export type
|
|
271
|
-
/**
|
|
272
|
-
* Remove properties from the schema sent to the model with keys matching these minimatch glob patterns.
|
|
273
|
-
*/
|
|
274
|
-
export type RemovePropertyKeyPatternsV3_49_0 = MinimatchPatternV3_49_0[];
|
|
270
|
+
export type AgentToolConfigArgV3_49_0 = AgentToolConfigArgAgentV3_49_0 | AgentToolConfigArgVariableV3_49_0;
|
|
275
271
|
export type HistoryV3_49_01 = boolean;
|
|
276
272
|
/**
|
|
277
273
|
* Maximum number of tokens to generate.
|
|
@@ -317,6 +313,11 @@ export type StructuredOutputsV3_49_0 = boolean;
|
|
|
317
313
|
* Enable OpenAI schema format. Must be enabled if `structuredOutputs` is enabled.
|
|
318
314
|
*/
|
|
319
315
|
export type EnableOpenAISchemaFormatV3_49_0 = boolean;
|
|
316
|
+
export type MinimatchPatternV3_49_0 = string;
|
|
317
|
+
/**
|
|
318
|
+
* Remove properties from the schema sent to the model with keys matching these minimatch glob patterns.
|
|
319
|
+
*/
|
|
320
|
+
export type RemovePropertyKeyPatternsV3_49_0 = MinimatchPatternV3_49_0[];
|
|
320
321
|
export type AgentStateSessionMemoryLocationV3_49_0 = AgentStateSessionMemoryLocationArtifactV3_49_0 | AgentStateSessionMemoryLocationStaticValueV3_49_0;
|
|
321
322
|
export type AgentStateSessionMemoryV3_49_0 = AgentStateSessionMemoryLocationV3_49_0[];
|
|
322
323
|
export type GuardIDV3_49_0 = string;
|
|
@@ -1683,10 +1684,28 @@ export interface AgentAIStateInputTemplateV3_49_0 {
|
|
|
1683
1684
|
inputTemplate: string;
|
|
1684
1685
|
}
|
|
1685
1686
|
export interface AgentToolConfigV3_49_0 {
|
|
1686
|
-
description?: string;
|
|
1687
1687
|
ref: string;
|
|
1688
|
+
description?: string;
|
|
1689
|
+
args?: AgentToolConfigArgV3_49_0[];
|
|
1688
1690
|
selectionSet?: string;
|
|
1689
|
-
|
|
1691
|
+
}
|
|
1692
|
+
export interface AgentToolConfigArgAgentV3_49_0 {
|
|
1693
|
+
type: 'agent';
|
|
1694
|
+
/**
|
|
1695
|
+
* The argument name that will be exposed by the tool for the LLM to use.
|
|
1696
|
+
*/
|
|
1697
|
+
argName: string;
|
|
1698
|
+
}
|
|
1699
|
+
export interface AgentToolConfigArgVariableV3_49_0 {
|
|
1700
|
+
type: 'variable';
|
|
1701
|
+
/**
|
|
1702
|
+
* Name of argument to pass value to. This prevents the LLM from setting the argument.
|
|
1703
|
+
*/
|
|
1704
|
+
argName: string;
|
|
1705
|
+
/**
|
|
1706
|
+
* Name of variable to pull value from.
|
|
1707
|
+
*/
|
|
1708
|
+
variableName: string;
|
|
1690
1709
|
}
|
|
1691
1710
|
export interface AgentGenerateOptionsV3_49_0 {
|
|
1692
1711
|
history?: HistoryV3_49_01;
|
|
@@ -279,11 +279,7 @@ export type MemoryLocationsV3_50_0 = AgentSessionMemoryLocationV3_50_0[];
|
|
|
279
279
|
export type VariablesV3_50_0 = AgentVariableV3_50_0[];
|
|
280
280
|
export type AgentExecutionV3_50_0 = AgentExecutionGraphQLV3_50_0 | AgentExecutionGenerateV3_50_0 | AgentExecutionChatV3_50_0;
|
|
281
281
|
export type AgentAIStateInputV3_50_0 = AgentAIStateInputArgumentV3_50_0 | AgentAIStateInputTemplateV3_50_0;
|
|
282
|
-
export type
|
|
283
|
-
/**
|
|
284
|
-
* Remove properties from the schema sent to the model with keys matching these minimatch glob patterns.
|
|
285
|
-
*/
|
|
286
|
-
export type RemovePropertyKeyPatternsV3_50_0 = MinimatchPatternV3_50_0[];
|
|
282
|
+
export type AgentToolConfigArgV3_50_0 = AgentToolConfigArgAgentV3_50_0 | AgentToolConfigArgVariableV3_50_0;
|
|
287
283
|
export type HistoryV3_50_01 = boolean;
|
|
288
284
|
/**
|
|
289
285
|
* Maximum number of tokens to generate.
|
|
@@ -329,6 +325,11 @@ export type StructuredOutputsV3_50_0 = boolean;
|
|
|
329
325
|
* Enable OpenAI schema format. Must be enabled if `structuredOutputs` is enabled.
|
|
330
326
|
*/
|
|
331
327
|
export type EnableOpenAISchemaFormatV3_50_0 = boolean;
|
|
328
|
+
export type MinimatchPatternV3_50_0 = string;
|
|
329
|
+
/**
|
|
330
|
+
* Remove properties from the schema sent to the model with keys matching these minimatch glob patterns.
|
|
331
|
+
*/
|
|
332
|
+
export type RemovePropertyKeyPatternsV3_50_0 = MinimatchPatternV3_50_0[];
|
|
332
333
|
export type AgentStateSessionMemoryLocationV3_50_0 = AgentStateSessionMemoryLocationArtifactV3_50_0 | AgentStateSessionMemoryLocationStaticValueV3_50_0;
|
|
333
334
|
export type AgentStateSessionMemoryV3_50_0 = AgentStateSessionMemoryLocationV3_50_0[];
|
|
334
335
|
export type GuardIDV3_50_0 = string;
|
|
@@ -1735,10 +1736,28 @@ export interface AgentAIStateInputTemplateV3_50_0 {
|
|
|
1735
1736
|
inputTemplate: string;
|
|
1736
1737
|
}
|
|
1737
1738
|
export interface AgentToolConfigV3_50_0 {
|
|
1738
|
-
description?: string;
|
|
1739
1739
|
ref: string;
|
|
1740
|
+
description?: string;
|
|
1741
|
+
args?: AgentToolConfigArgV3_50_0[];
|
|
1740
1742
|
selectionSet?: string;
|
|
1741
|
-
|
|
1743
|
+
}
|
|
1744
|
+
export interface AgentToolConfigArgAgentV3_50_0 {
|
|
1745
|
+
type: 'agent';
|
|
1746
|
+
/**
|
|
1747
|
+
* The argument name that will be exposed by the tool for the LLM to use.
|
|
1748
|
+
*/
|
|
1749
|
+
argName: string;
|
|
1750
|
+
}
|
|
1751
|
+
export interface AgentToolConfigArgVariableV3_50_0 {
|
|
1752
|
+
type: 'variable';
|
|
1753
|
+
/**
|
|
1754
|
+
* Name of argument to pass value to. This prevents the LLM from setting the argument.
|
|
1755
|
+
*/
|
|
1756
|
+
argName: string;
|
|
1757
|
+
/**
|
|
1758
|
+
* Name of variable to pull value from.
|
|
1759
|
+
*/
|
|
1760
|
+
variableName: string;
|
|
1742
1761
|
}
|
|
1743
1762
|
export interface AgentGenerateOptionsV3_50_0 {
|
|
1744
1763
|
history?: HistoryV3_50_01;
|
|
@@ -279,11 +279,7 @@ export type MemoryLocationsV3_51_0 = AgentSessionMemoryLocationV3_51_0[];
|
|
|
279
279
|
export type VariablesV3_51_0 = AgentVariableV3_51_0[];
|
|
280
280
|
export type AgentExecutionV3_51_0 = AgentExecutionGraphQLV3_51_0 | AgentExecutionGenerateV3_51_0 | AgentExecutionChatV3_51_0;
|
|
281
281
|
export type AgentAIStateInputV3_51_0 = AgentAIStateInputArgumentV3_51_0 | AgentAIStateInputTemplateV3_51_0;
|
|
282
|
-
export type
|
|
283
|
-
/**
|
|
284
|
-
* Remove properties from the schema sent to the model with keys matching these minimatch glob patterns.
|
|
285
|
-
*/
|
|
286
|
-
export type RemovePropertyKeyPatternsV3_51_0 = MinimatchPatternV3_51_0[];
|
|
282
|
+
export type AgentToolConfigArgV3_51_0 = AgentToolConfigArgAgentV3_51_0 | AgentToolConfigArgVariableV3_51_0;
|
|
287
283
|
export type HistoryV3_51_01 = boolean;
|
|
288
284
|
/**
|
|
289
285
|
* Maximum number of tokens to generate.
|
|
@@ -329,6 +325,11 @@ export type StructuredOutputsV3_51_0 = boolean;
|
|
|
329
325
|
* Enable OpenAI schema format. Must be enabled if `structuredOutputs` is enabled.
|
|
330
326
|
*/
|
|
331
327
|
export type EnableOpenAISchemaFormatV3_51_0 = boolean;
|
|
328
|
+
export type MinimatchPatternV3_51_0 = string;
|
|
329
|
+
/**
|
|
330
|
+
* Remove properties from the schema sent to the model with keys matching these minimatch glob patterns.
|
|
331
|
+
*/
|
|
332
|
+
export type RemovePropertyKeyPatternsV3_51_0 = MinimatchPatternV3_51_0[];
|
|
332
333
|
export type AgentStateSessionMemoryLocationV3_51_0 = AgentStateSessionMemoryLocationArtifactV3_51_0 | AgentStateSessionMemoryLocationStaticValueV3_51_0;
|
|
333
334
|
export type AgentStateSessionMemoryV3_51_0 = AgentStateSessionMemoryLocationV3_51_0[];
|
|
334
335
|
export type GuardIDV3_51_0 = string;
|
|
@@ -1735,10 +1736,28 @@ export interface AgentAIStateInputTemplateV3_51_0 {
|
|
|
1735
1736
|
inputTemplate: string;
|
|
1736
1737
|
}
|
|
1737
1738
|
export interface AgentToolConfigV3_51_0 {
|
|
1738
|
-
description?: string;
|
|
1739
1739
|
ref: string;
|
|
1740
|
+
description?: string;
|
|
1741
|
+
args?: AgentToolConfigArgV3_51_0[];
|
|
1740
1742
|
selectionSet?: string;
|
|
1741
|
-
|
|
1743
|
+
}
|
|
1744
|
+
export interface AgentToolConfigArgAgentV3_51_0 {
|
|
1745
|
+
type: 'agent';
|
|
1746
|
+
/**
|
|
1747
|
+
* The argument name that will be exposed by the tool for the LLM to use.
|
|
1748
|
+
*/
|
|
1749
|
+
argName: string;
|
|
1750
|
+
}
|
|
1751
|
+
export interface AgentToolConfigArgVariableV3_51_0 {
|
|
1752
|
+
type: 'variable';
|
|
1753
|
+
/**
|
|
1754
|
+
* Name of argument to pass value to. This prevents the LLM from setting the argument.
|
|
1755
|
+
*/
|
|
1756
|
+
argName: string;
|
|
1757
|
+
/**
|
|
1758
|
+
* Name of variable to pull value from.
|
|
1759
|
+
*/
|
|
1760
|
+
variableName: string;
|
|
1742
1761
|
}
|
|
1743
1762
|
export interface AgentGenerateOptionsV3_51_0 {
|
|
1744
1763
|
history?: HistoryV3_51_01;
|
|
@@ -279,11 +279,7 @@ export type MemoryLocationsV3_52_0 = AgentSessionMemoryLocationV3_52_0[];
|
|
|
279
279
|
export type VariablesV3_52_0 = AgentVariableV3_52_0[];
|
|
280
280
|
export type AgentExecutionV3_52_0 = AgentExecutionGraphQLV3_52_0 | AgentExecutionGenerateV3_52_0 | AgentExecutionChatV3_52_0;
|
|
281
281
|
export type AgentAIStateInputV3_52_0 = AgentAIStateInputArgumentV3_52_0 | AgentAIStateInputTemplateV3_52_0;
|
|
282
|
-
export type
|
|
283
|
-
/**
|
|
284
|
-
* Remove properties from the schema sent to the model with keys matching these minimatch glob patterns.
|
|
285
|
-
*/
|
|
286
|
-
export type RemovePropertyKeyPatternsV3_52_0 = MinimatchPatternV3_52_0[];
|
|
282
|
+
export type AgentToolConfigArgV3_52_0 = AgentToolConfigArgAgentV3_52_0 | AgentToolConfigArgVariableV3_52_0;
|
|
287
283
|
export type HistoryV3_52_01 = boolean;
|
|
288
284
|
/**
|
|
289
285
|
* Maximum number of tokens to generate.
|
|
@@ -329,6 +325,11 @@ export type StructuredOutputsV3_52_0 = boolean;
|
|
|
329
325
|
* Enable OpenAI schema format. Must be enabled if `structuredOutputs` is enabled.
|
|
330
326
|
*/
|
|
331
327
|
export type EnableOpenAISchemaFormatV3_52_0 = boolean;
|
|
328
|
+
export type MinimatchPatternV3_52_0 = string;
|
|
329
|
+
/**
|
|
330
|
+
* Remove properties from the schema sent to the model with keys matching these minimatch glob patterns.
|
|
331
|
+
*/
|
|
332
|
+
export type RemovePropertyKeyPatternsV3_52_0 = MinimatchPatternV3_52_0[];
|
|
332
333
|
export type AgentStateSessionMemoryLocationV3_52_0 = AgentStateSessionMemoryLocationArtifactV3_52_0 | AgentStateSessionMemoryLocationStaticValueV3_52_0;
|
|
333
334
|
export type AgentStateSessionMemoryV3_52_0 = AgentStateSessionMemoryLocationV3_52_0[];
|
|
334
335
|
export type GuardIDV3_52_0 = string;
|
|
@@ -1735,10 +1736,28 @@ export interface AgentAIStateInputTemplateV3_52_0 {
|
|
|
1735
1736
|
inputTemplate: string;
|
|
1736
1737
|
}
|
|
1737
1738
|
export interface AgentToolConfigV3_52_0 {
|
|
1738
|
-
description?: string;
|
|
1739
1739
|
ref: string;
|
|
1740
|
+
description?: string;
|
|
1741
|
+
args?: AgentToolConfigArgV3_52_0[];
|
|
1740
1742
|
selectionSet?: string;
|
|
1741
|
-
|
|
1743
|
+
}
|
|
1744
|
+
export interface AgentToolConfigArgAgentV3_52_0 {
|
|
1745
|
+
type: 'agent';
|
|
1746
|
+
/**
|
|
1747
|
+
* The argument name that will be exposed by the tool for the LLM to use.
|
|
1748
|
+
*/
|
|
1749
|
+
argName: string;
|
|
1750
|
+
}
|
|
1751
|
+
export interface AgentToolConfigArgVariableV3_52_0 {
|
|
1752
|
+
type: 'variable';
|
|
1753
|
+
/**
|
|
1754
|
+
* Name of argument to pass value to. This prevents the LLM from setting the argument.
|
|
1755
|
+
*/
|
|
1756
|
+
argName: string;
|
|
1757
|
+
/**
|
|
1758
|
+
* Name of variable to pull value from.
|
|
1759
|
+
*/
|
|
1760
|
+
variableName: string;
|
|
1742
1761
|
}
|
|
1743
1762
|
export interface AgentGenerateOptionsV3_52_0 {
|
|
1744
1763
|
history?: HistoryV3_52_01;
|
|
@@ -288,11 +288,7 @@ export type MemoryLocationsV3_53_0 = AgentSessionMemoryLocationV3_53_0[];
|
|
|
288
288
|
export type VariablesV3_53_0 = AgentVariableV3_53_0[];
|
|
289
289
|
export type AgentExecutionV3_53_0 = AgentExecutionGraphQLV3_53_0 | AgentExecutionGenerateV3_53_0 | AgentExecutionChatV3_53_0;
|
|
290
290
|
export type AgentAIStateInputV3_53_0 = AgentAIStateInputArgumentV3_53_0 | AgentAIStateInputTemplateV3_53_0;
|
|
291
|
-
export type
|
|
292
|
-
/**
|
|
293
|
-
* Remove properties from the schema sent to the model with keys matching these minimatch glob patterns.
|
|
294
|
-
*/
|
|
295
|
-
export type RemovePropertyKeyPatternsV3_53_0 = MinimatchPatternV3_53_0[];
|
|
291
|
+
export type AgentToolConfigArgV3_53_0 = AgentToolConfigArgAgentV3_53_0 | AgentToolConfigArgVariableV3_53_0;
|
|
296
292
|
export type HistoryV3_53_01 = boolean;
|
|
297
293
|
/**
|
|
298
294
|
* Maximum number of tokens to generate.
|
|
@@ -338,6 +334,11 @@ export type StructuredOutputsV3_53_0 = boolean;
|
|
|
338
334
|
* Enable OpenAI schema format. Must be enabled if `structuredOutputs` is enabled.
|
|
339
335
|
*/
|
|
340
336
|
export type EnableOpenAISchemaFormatV3_53_0 = boolean;
|
|
337
|
+
export type MinimatchPatternV3_53_0 = string;
|
|
338
|
+
/**
|
|
339
|
+
* Remove properties from the schema sent to the model with keys matching these minimatch glob patterns.
|
|
340
|
+
*/
|
|
341
|
+
export type RemovePropertyKeyPatternsV3_53_0 = MinimatchPatternV3_53_0[];
|
|
341
342
|
export type AgentStateSessionMemoryLocationV3_53_0 = AgentStateSessionMemoryLocationArtifactV3_53_0 | AgentStateSessionMemoryLocationStaticValueV3_53_0;
|
|
342
343
|
export type AgentStateSessionMemoryV3_53_0 = AgentStateSessionMemoryLocationV3_53_0[];
|
|
343
344
|
export type GuardIDV3_53_0 = string;
|
|
@@ -1816,10 +1817,28 @@ export interface AgentAIStateInputTemplateV3_53_0 {
|
|
|
1816
1817
|
inputTemplate: string;
|
|
1817
1818
|
}
|
|
1818
1819
|
export interface AgentToolConfigV3_53_0 {
|
|
1819
|
-
description?: string;
|
|
1820
1820
|
ref: string;
|
|
1821
|
+
description?: string;
|
|
1822
|
+
args?: AgentToolConfigArgV3_53_0[];
|
|
1821
1823
|
selectionSet?: string;
|
|
1822
|
-
|
|
1824
|
+
}
|
|
1825
|
+
export interface AgentToolConfigArgAgentV3_53_0 {
|
|
1826
|
+
type: 'agent';
|
|
1827
|
+
/**
|
|
1828
|
+
* The argument name that will be exposed by the tool for the LLM to use.
|
|
1829
|
+
*/
|
|
1830
|
+
argName: string;
|
|
1831
|
+
}
|
|
1832
|
+
export interface AgentToolConfigArgVariableV3_53_0 {
|
|
1833
|
+
type: 'variable';
|
|
1834
|
+
/**
|
|
1835
|
+
* Name of argument to pass value to. This prevents the LLM from setting the argument.
|
|
1836
|
+
*/
|
|
1837
|
+
argName: string;
|
|
1838
|
+
/**
|
|
1839
|
+
* Name of variable to pull value from.
|
|
1840
|
+
*/
|
|
1841
|
+
variableName: string;
|
|
1823
1842
|
}
|
|
1824
1843
|
export interface AgentGenerateOptionsV3_53_0 {
|
|
1825
1844
|
history?: HistoryV3_53_01;
|
|
@@ -477,22 +477,74 @@
|
|
|
477
477
|
"title": "AgentToolConfig",
|
|
478
478
|
"type": "object",
|
|
479
479
|
"properties": {
|
|
480
|
-
"
|
|
480
|
+
"ref": {
|
|
481
481
|
"type": "string"
|
|
482
482
|
},
|
|
483
|
-
"
|
|
483
|
+
"description": {
|
|
484
484
|
"type": "string"
|
|
485
485
|
},
|
|
486
|
+
"args": {
|
|
487
|
+
"type": "array",
|
|
488
|
+
"items": {
|
|
489
|
+
"$ref": "#/definitions/agentToolConfigArg"
|
|
490
|
+
}
|
|
491
|
+
},
|
|
486
492
|
"selectionSet": {
|
|
487
493
|
"type": "string"
|
|
488
|
-
},
|
|
489
|
-
"removePropertyKeyPatterns": {
|
|
490
|
-
"$ref": "#/definitions/removePropertyKeyPatterns"
|
|
491
494
|
}
|
|
492
495
|
},
|
|
493
496
|
"required": ["ref"],
|
|
494
497
|
"additionalProperties": false
|
|
495
498
|
},
|
|
499
|
+
"agentToolConfigArg": {
|
|
500
|
+
"title": "Agent Tool Config Arg",
|
|
501
|
+
"type": "object",
|
|
502
|
+
"discriminator": {
|
|
503
|
+
"propertyName": "type"
|
|
504
|
+
},
|
|
505
|
+
"oneOf": [
|
|
506
|
+
{
|
|
507
|
+
"$ref": "#/definitions/agentToolConfigArgAgent"
|
|
508
|
+
},
|
|
509
|
+
{
|
|
510
|
+
"$ref": "#/definitions/agentToolConfigArgVariable"
|
|
511
|
+
}
|
|
512
|
+
]
|
|
513
|
+
},
|
|
514
|
+
"agentToolConfigArgAgent": {
|
|
515
|
+
"title": "Agent Tool Config Arg Agent",
|
|
516
|
+
"type": "object",
|
|
517
|
+
"properties": {
|
|
518
|
+
"type": {
|
|
519
|
+
"enum": ["agent"]
|
|
520
|
+
},
|
|
521
|
+
"argName": {
|
|
522
|
+
"type": "string",
|
|
523
|
+
"description": "The argument name that will be exposed by the tool for the LLM to use."
|
|
524
|
+
}
|
|
525
|
+
},
|
|
526
|
+
"required": ["type", "argName"],
|
|
527
|
+
"additionalProperties": false
|
|
528
|
+
},
|
|
529
|
+
"agentToolConfigArgVariable": {
|
|
530
|
+
"title": "Agent Tool Config Arg Variable",
|
|
531
|
+
"type": "object",
|
|
532
|
+
"properties": {
|
|
533
|
+
"type": {
|
|
534
|
+
"enum": ["variable"]
|
|
535
|
+
},
|
|
536
|
+
"argName": {
|
|
537
|
+
"type": "string",
|
|
538
|
+
"description": "Name of argument to pass value to. This prevents the LLM from setting the argument."
|
|
539
|
+
},
|
|
540
|
+
"variableName": {
|
|
541
|
+
"type": "string",
|
|
542
|
+
"description": "Name of variable to pull value from."
|
|
543
|
+
}
|
|
544
|
+
},
|
|
545
|
+
"required": ["type", "argName", "variableName"],
|
|
546
|
+
"additionalProperties": false
|
|
547
|
+
},
|
|
496
548
|
"agentExecutionGenerate": {
|
|
497
549
|
"title": "Agent Execution Generate",
|
|
498
550
|
"type": "object",
|
|
@@ -22,7 +22,7 @@ import { isLatestProjectSchemaJSON } from "../project-schema/index.js";
|
|
|
22
22
|
import { atRefToRefItem, createGetNamespace, getRefShapeName, parsePropertyRef, propertyRefItemToPath, propertyRefItemToResolverPath, refItemToAtRef, refItemToNamespacedShapeName, refItemToShape } from "../refs.js";
|
|
23
23
|
import { getRelationship } from "../relationships.js";
|
|
24
24
|
import { scalars } from "../scalars.js";
|
|
25
|
-
import { getAllRefs } from "../schema-util.js";
|
|
25
|
+
import { getAllRefs, isBuiltinMutation, isBuiltinQuery } from "../schema-util.js";
|
|
26
26
|
import authSchemas from '../schemas/auth-schemas.json' with { type: 'json' };
|
|
27
27
|
import { allProjectSchemas } from "../schemas/index.js";
|
|
28
28
|
import { isValidTemplate } from "../template-shapes/index.js";
|
|
@@ -163,6 +163,10 @@ const validateAIToolConfig = (projectSchema, getNamespace, tool, basePath) => {
|
|
|
163
163
|
if (parsed.serviceId !== 'local') {
|
|
164
164
|
return;
|
|
165
165
|
}
|
|
166
|
+
if ((parsed.shapeName === 'Query' && isBuiltinQuery(parsed.propertyName)) ||
|
|
167
|
+
(parsed.shapeName === 'Mutation' && isBuiltinMutation(parsed.propertyName))) {
|
|
168
|
+
return;
|
|
169
|
+
}
|
|
166
170
|
const propertyPath = propertyRefItemToPath(getNamespace, parsed);
|
|
167
171
|
if (propertyPath[0] !== 'queries' && propertyPath[0] !== 'mutations') {
|
|
168
172
|
return {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@takeshape/schema",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.66.0",
|
|
4
4
|
"description": "TakeShape Schema",
|
|
5
5
|
"homepage": "https://www.takeshape.io",
|
|
6
6
|
"repository": {
|
|
@@ -56,9 +56,9 @@
|
|
|
56
56
|
"p-reduce": "^2.1.0",
|
|
57
57
|
"semver": "^7.3.2",
|
|
58
58
|
"tiny-invariant": "^1.2.0",
|
|
59
|
-
"@takeshape/errors": "11.
|
|
60
|
-
"@takeshape/
|
|
61
|
-
"@takeshape/
|
|
59
|
+
"@takeshape/errors": "11.66.0",
|
|
60
|
+
"@takeshape/util": "11.66.0",
|
|
61
|
+
"@takeshape/json-schema": "11.66.0"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
64
|
"@takeshape/json-schema-to-typescript": "^11.0.0",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"glob": "^7.1.6",
|
|
74
74
|
"meow": "^9.0.0",
|
|
75
75
|
"shortid": "^2.2.15",
|
|
76
|
-
"@takeshape/infra": "11.
|
|
76
|
+
"@takeshape/infra": "11.66.0"
|
|
77
77
|
},
|
|
78
78
|
"engines": {
|
|
79
79
|
"node": ">=20"
|