@takeshape/schema 11.80.0 → 11.80.2
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 +8 -0
- package/dist/project-schema/v3.48.0.d.ts +8 -0
- package/dist/project-schema/v3.49.0.d.ts +8 -0
- package/dist/project-schema/v3.50.0.d.ts +8 -0
- package/dist/project-schema/v3.51.0.d.ts +8 -0
- package/dist/project-schema/v3.52.0.d.ts +8 -0
- package/dist/project-schema/v3.53.0.d.ts +8 -0
- package/dist/project-schema/v3.54.0.d.ts +12 -0
- package/dist/schemas/project-schema/experimental.json +14 -0
- package/package.json +5 -5
|
@@ -1732,6 +1732,7 @@ export interface ShapeSchemaAny {
|
|
|
1732
1732
|
export interface AIExperimental {
|
|
1733
1733
|
agents?: AgentMap;
|
|
1734
1734
|
guards?: GuardMap;
|
|
1735
|
+
tools?: ToolMap;
|
|
1735
1736
|
}
|
|
1736
1737
|
export interface AgentMap {
|
|
1737
1738
|
[k: string]: AgentJSON;
|
|
@@ -1844,6 +1845,10 @@ export interface AgentAIStateInputTemplate {
|
|
|
1844
1845
|
type: 'template';
|
|
1845
1846
|
inputTemplate: string;
|
|
1846
1847
|
}
|
|
1848
|
+
/**
|
|
1849
|
+
* This interface was referenced by `ToolMap`'s JSON-Schema definition
|
|
1850
|
+
* via the `patternProperty` "^[0-9A-Za-z_]+$".
|
|
1851
|
+
*/
|
|
1847
1852
|
export interface AgentToolConfig {
|
|
1848
1853
|
ref: string;
|
|
1849
1854
|
description?: string;
|
|
@@ -1985,6 +1990,9 @@ export interface SensitiveInformationPolicy {
|
|
|
1985
1990
|
export interface ContextualGroundingPolicy {
|
|
1986
1991
|
filtersConfig: Filter1;
|
|
1987
1992
|
}
|
|
1993
|
+
export interface ToolMap {
|
|
1994
|
+
[k: string]: AgentToolConfig;
|
|
1995
|
+
}
|
|
1988
1996
|
/**
|
|
1989
1997
|
* This interface was referenced by `ProjectSchemaJSON`'s JSON-Schema
|
|
1990
1998
|
* via the `definition` "formMap".
|
|
@@ -1580,6 +1580,7 @@ export interface ShapeSchemaAnyV3_48_0 {
|
|
|
1580
1580
|
export interface AIExperimentalV3_48_0 {
|
|
1581
1581
|
agents?: AgentMapV3_48_0;
|
|
1582
1582
|
guards?: GuardMapV3_48_0;
|
|
1583
|
+
tools?: ToolMapV3_48_0;
|
|
1583
1584
|
}
|
|
1584
1585
|
export interface AgentMapV3_48_0 {
|
|
1585
1586
|
[k: string]: AgentJSONV3_48_0;
|
|
@@ -1692,6 +1693,10 @@ export interface AgentAIStateInputTemplateV3_48_0 {
|
|
|
1692
1693
|
type: 'template';
|
|
1693
1694
|
inputTemplate: string;
|
|
1694
1695
|
}
|
|
1696
|
+
/**
|
|
1697
|
+
* This interface was referenced by `ToolMapV3_48_0`'s JSON-Schema definition
|
|
1698
|
+
* via the `patternProperty` "^[0-9A-Za-z_]+$".
|
|
1699
|
+
*/
|
|
1695
1700
|
export interface AgentToolConfigV3_48_0 {
|
|
1696
1701
|
ref: string;
|
|
1697
1702
|
description?: string;
|
|
@@ -1833,6 +1838,9 @@ export interface SensitiveInformationPolicyV3_48_0 {
|
|
|
1833
1838
|
export interface ContextualGroundingPolicyV3_48_0 {
|
|
1834
1839
|
filtersConfig: FilterV3_48_01;
|
|
1835
1840
|
}
|
|
1841
|
+
export interface ToolMapV3_48_0 {
|
|
1842
|
+
[k: string]: AgentToolConfigV3_48_0;
|
|
1843
|
+
}
|
|
1836
1844
|
/**
|
|
1837
1845
|
* This interface was referenced by `ProjectSchemaJSONV3_48_0`'s JSON-Schema
|
|
1838
1846
|
* via the `definition` "formMap".
|
|
@@ -1580,6 +1580,7 @@ export interface ShapeSchemaAnyV3_49_0 {
|
|
|
1580
1580
|
export interface AIExperimentalV3_49_0 {
|
|
1581
1581
|
agents?: AgentMapV3_49_0;
|
|
1582
1582
|
guards?: GuardMapV3_49_0;
|
|
1583
|
+
tools?: ToolMapV3_49_0;
|
|
1583
1584
|
}
|
|
1584
1585
|
export interface AgentMapV3_49_0 {
|
|
1585
1586
|
[k: string]: AgentJSONV3_49_0;
|
|
@@ -1692,6 +1693,10 @@ export interface AgentAIStateInputTemplateV3_49_0 {
|
|
|
1692
1693
|
type: 'template';
|
|
1693
1694
|
inputTemplate: string;
|
|
1694
1695
|
}
|
|
1696
|
+
/**
|
|
1697
|
+
* This interface was referenced by `ToolMapV3_49_0`'s JSON-Schema definition
|
|
1698
|
+
* via the `patternProperty` "^[0-9A-Za-z_]+$".
|
|
1699
|
+
*/
|
|
1695
1700
|
export interface AgentToolConfigV3_49_0 {
|
|
1696
1701
|
ref: string;
|
|
1697
1702
|
description?: string;
|
|
@@ -1833,6 +1838,9 @@ export interface SensitiveInformationPolicyV3_49_0 {
|
|
|
1833
1838
|
export interface ContextualGroundingPolicyV3_49_0 {
|
|
1834
1839
|
filtersConfig: FilterV3_49_01;
|
|
1835
1840
|
}
|
|
1841
|
+
export interface ToolMapV3_49_0 {
|
|
1842
|
+
[k: string]: AgentToolConfigV3_49_0;
|
|
1843
|
+
}
|
|
1836
1844
|
/**
|
|
1837
1845
|
* This interface was referenced by `ProjectSchemaJSONV3_49_0`'s JSON-Schema
|
|
1838
1846
|
* via the `definition` "formMap".
|
|
@@ -1632,6 +1632,7 @@ export interface ShapeSchemaAnyV3_50_0 {
|
|
|
1632
1632
|
export interface AIExperimentalV3_50_0 {
|
|
1633
1633
|
agents?: AgentMapV3_50_0;
|
|
1634
1634
|
guards?: GuardMapV3_50_0;
|
|
1635
|
+
tools?: ToolMapV3_50_0;
|
|
1635
1636
|
}
|
|
1636
1637
|
export interface AgentMapV3_50_0 {
|
|
1637
1638
|
[k: string]: AgentJSONV3_50_0;
|
|
@@ -1744,6 +1745,10 @@ export interface AgentAIStateInputTemplateV3_50_0 {
|
|
|
1744
1745
|
type: 'template';
|
|
1745
1746
|
inputTemplate: string;
|
|
1746
1747
|
}
|
|
1748
|
+
/**
|
|
1749
|
+
* This interface was referenced by `ToolMapV3_50_0`'s JSON-Schema definition
|
|
1750
|
+
* via the `patternProperty` "^[0-9A-Za-z_]+$".
|
|
1751
|
+
*/
|
|
1747
1752
|
export interface AgentToolConfigV3_50_0 {
|
|
1748
1753
|
ref: string;
|
|
1749
1754
|
description?: string;
|
|
@@ -1885,6 +1890,9 @@ export interface SensitiveInformationPolicyV3_50_0 {
|
|
|
1885
1890
|
export interface ContextualGroundingPolicyV3_50_0 {
|
|
1886
1891
|
filtersConfig: FilterV3_50_01;
|
|
1887
1892
|
}
|
|
1893
|
+
export interface ToolMapV3_50_0 {
|
|
1894
|
+
[k: string]: AgentToolConfigV3_50_0;
|
|
1895
|
+
}
|
|
1888
1896
|
/**
|
|
1889
1897
|
* This interface was referenced by `ProjectSchemaJSONV3_50_0`'s JSON-Schema
|
|
1890
1898
|
* via the `definition` "formMap".
|
|
@@ -1632,6 +1632,7 @@ export interface ShapeSchemaAnyV3_51_0 {
|
|
|
1632
1632
|
export interface AIExperimentalV3_51_0 {
|
|
1633
1633
|
agents?: AgentMapV3_51_0;
|
|
1634
1634
|
guards?: GuardMapV3_51_0;
|
|
1635
|
+
tools?: ToolMapV3_51_0;
|
|
1635
1636
|
}
|
|
1636
1637
|
export interface AgentMapV3_51_0 {
|
|
1637
1638
|
[k: string]: AgentJSONV3_51_0;
|
|
@@ -1744,6 +1745,10 @@ export interface AgentAIStateInputTemplateV3_51_0 {
|
|
|
1744
1745
|
type: 'template';
|
|
1745
1746
|
inputTemplate: string;
|
|
1746
1747
|
}
|
|
1748
|
+
/**
|
|
1749
|
+
* This interface was referenced by `ToolMapV3_51_0`'s JSON-Schema definition
|
|
1750
|
+
* via the `patternProperty` "^[0-9A-Za-z_]+$".
|
|
1751
|
+
*/
|
|
1747
1752
|
export interface AgentToolConfigV3_51_0 {
|
|
1748
1753
|
ref: string;
|
|
1749
1754
|
description?: string;
|
|
@@ -1885,6 +1890,9 @@ export interface SensitiveInformationPolicyV3_51_0 {
|
|
|
1885
1890
|
export interface ContextualGroundingPolicyV3_51_0 {
|
|
1886
1891
|
filtersConfig: FilterV3_51_01;
|
|
1887
1892
|
}
|
|
1893
|
+
export interface ToolMapV3_51_0 {
|
|
1894
|
+
[k: string]: AgentToolConfigV3_51_0;
|
|
1895
|
+
}
|
|
1888
1896
|
/**
|
|
1889
1897
|
* This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
|
|
1890
1898
|
* via the `definition` "formMap".
|
|
@@ -1632,6 +1632,7 @@ export interface ShapeSchemaAnyV3_52_0 {
|
|
|
1632
1632
|
export interface AIExperimentalV3_52_0 {
|
|
1633
1633
|
agents?: AgentMapV3_52_0;
|
|
1634
1634
|
guards?: GuardMapV3_52_0;
|
|
1635
|
+
tools?: ToolMapV3_52_0;
|
|
1635
1636
|
}
|
|
1636
1637
|
export interface AgentMapV3_52_0 {
|
|
1637
1638
|
[k: string]: AgentJSONV3_52_0;
|
|
@@ -1744,6 +1745,10 @@ export interface AgentAIStateInputTemplateV3_52_0 {
|
|
|
1744
1745
|
type: 'template';
|
|
1745
1746
|
inputTemplate: string;
|
|
1746
1747
|
}
|
|
1748
|
+
/**
|
|
1749
|
+
* This interface was referenced by `ToolMapV3_52_0`'s JSON-Schema definition
|
|
1750
|
+
* via the `patternProperty` "^[0-9A-Za-z_]+$".
|
|
1751
|
+
*/
|
|
1747
1752
|
export interface AgentToolConfigV3_52_0 {
|
|
1748
1753
|
ref: string;
|
|
1749
1754
|
description?: string;
|
|
@@ -1885,6 +1890,9 @@ export interface SensitiveInformationPolicyV3_52_0 {
|
|
|
1885
1890
|
export interface ContextualGroundingPolicyV3_52_0 {
|
|
1886
1891
|
filtersConfig: FilterV3_52_01;
|
|
1887
1892
|
}
|
|
1893
|
+
export interface ToolMapV3_52_0 {
|
|
1894
|
+
[k: string]: AgentToolConfigV3_52_0;
|
|
1895
|
+
}
|
|
1888
1896
|
/**
|
|
1889
1897
|
* This interface was referenced by `ProjectSchemaJSONV3_52_0`'s JSON-Schema
|
|
1890
1898
|
* via the `definition` "formMap".
|
|
@@ -1713,6 +1713,7 @@ export interface ShapeSchemaAnyV3_53_0 {
|
|
|
1713
1713
|
export interface AIExperimentalV3_53_0 {
|
|
1714
1714
|
agents?: AgentMapV3_53_0;
|
|
1715
1715
|
guards?: GuardMapV3_53_0;
|
|
1716
|
+
tools?: ToolMapV3_53_0;
|
|
1716
1717
|
}
|
|
1717
1718
|
export interface AgentMapV3_53_0 {
|
|
1718
1719
|
[k: string]: AgentJSONV3_53_0;
|
|
@@ -1825,6 +1826,10 @@ export interface AgentAIStateInputTemplateV3_53_0 {
|
|
|
1825
1826
|
type: 'template';
|
|
1826
1827
|
inputTemplate: string;
|
|
1827
1828
|
}
|
|
1829
|
+
/**
|
|
1830
|
+
* This interface was referenced by `ToolMapV3_53_0`'s JSON-Schema definition
|
|
1831
|
+
* via the `patternProperty` "^[0-9A-Za-z_]+$".
|
|
1832
|
+
*/
|
|
1828
1833
|
export interface AgentToolConfigV3_53_0 {
|
|
1829
1834
|
ref: string;
|
|
1830
1835
|
description?: string;
|
|
@@ -1966,6 +1971,9 @@ export interface SensitiveInformationPolicyV3_53_0 {
|
|
|
1966
1971
|
export interface ContextualGroundingPolicyV3_53_0 {
|
|
1967
1972
|
filtersConfig: FilterV3_53_01;
|
|
1968
1973
|
}
|
|
1974
|
+
export interface ToolMapV3_53_0 {
|
|
1975
|
+
[k: string]: AgentToolConfigV3_53_0;
|
|
1976
|
+
}
|
|
1969
1977
|
/**
|
|
1970
1978
|
* This interface was referenced by `ProjectSchemaJSONV3_53_0`'s JSON-Schema
|
|
1971
1979
|
* via the `definition` "formMap".
|
|
@@ -288,6 +288,8 @@ export type CacheTriggerConfigV3_54_0 = CacheScheduleTriggerConfigV3_54_0 | Cach
|
|
|
288
288
|
*/
|
|
289
289
|
export type ShapeSchemaV3_54_0 = ShapeSchemaAllOfV3_54_0 | ShapeSchemaExtendsV3_54_0 | ShapeSchemaOneOfV3_54_0 | ShapeSchemaEnumV3_54_0 | ObjectSchemaV3_54_0 | ShapeSchemaAnyV3_54_0;
|
|
290
290
|
export type AgentAPIV3_54_0 = AgentAPIChatV3_54_0 | AgentAPIGenerateV3_54_0;
|
|
291
|
+
export type InteractionTimeoutMillisecondsV3_54_0 = number;
|
|
292
|
+
export type InteractionTimeoutMillisecondsV3_54_01 = number;
|
|
291
293
|
export type MemoryLocationsV3_54_0 = AgentSessionMemoryLocationV3_54_0[];
|
|
292
294
|
export type VariablesV3_54_0 = AgentVariableV3_54_0[];
|
|
293
295
|
export type AgentExecutionV3_54_0 = AgentExecutionGraphQLV3_54_0 | AgentExecutionGenerateV3_54_0 | AgentExecutionChatV3_54_0;
|
|
@@ -1730,6 +1732,7 @@ export interface ShapeSchemaAnyV3_54_0 {
|
|
|
1730
1732
|
export interface AIExperimentalV3_54_0 {
|
|
1731
1733
|
agents?: AgentMapV3_54_0;
|
|
1732
1734
|
guards?: GuardMapV3_54_0;
|
|
1735
|
+
tools?: ToolMapV3_54_0;
|
|
1733
1736
|
}
|
|
1734
1737
|
export interface AgentMapV3_54_0 {
|
|
1735
1738
|
[k: string]: AgentJSONV3_54_0;
|
|
@@ -1751,6 +1754,7 @@ export interface AgentJSONV3_54_0 {
|
|
|
1751
1754
|
}
|
|
1752
1755
|
export interface AgentAPIChatV3_54_0 {
|
|
1753
1756
|
type: 'chat';
|
|
1757
|
+
interactionTimeout?: InteractionTimeoutMillisecondsV3_54_0;
|
|
1754
1758
|
arguments?: AgentAPIArgumentV3_54_0[];
|
|
1755
1759
|
}
|
|
1756
1760
|
export interface AgentAPIArgumentV3_54_0 {
|
|
@@ -1761,6 +1765,7 @@ export interface AgentAPIArgumentV3_54_0 {
|
|
|
1761
1765
|
}
|
|
1762
1766
|
export interface AgentAPIGenerateV3_54_0 {
|
|
1763
1767
|
type: 'generate';
|
|
1768
|
+
interactionTimeout?: InteractionTimeoutMillisecondsV3_54_01;
|
|
1764
1769
|
arguments?: AgentAPIArgumentV3_54_0[];
|
|
1765
1770
|
}
|
|
1766
1771
|
export interface AgentMemoryV3_54_0 {
|
|
@@ -1840,6 +1845,10 @@ export interface AgentAIStateInputTemplateV3_54_0 {
|
|
|
1840
1845
|
type: 'template';
|
|
1841
1846
|
inputTemplate: string;
|
|
1842
1847
|
}
|
|
1848
|
+
/**
|
|
1849
|
+
* This interface was referenced by `ToolMapV3_54_0`'s JSON-Schema definition
|
|
1850
|
+
* via the `patternProperty` "^[0-9A-Za-z_]+$".
|
|
1851
|
+
*/
|
|
1843
1852
|
export interface AgentToolConfigV3_54_0 {
|
|
1844
1853
|
ref: string;
|
|
1845
1854
|
description?: string;
|
|
@@ -1981,6 +1990,9 @@ export interface SensitiveInformationPolicyV3_54_0 {
|
|
|
1981
1990
|
export interface ContextualGroundingPolicyV3_54_0 {
|
|
1982
1991
|
filtersConfig: FilterV3_54_01;
|
|
1983
1992
|
}
|
|
1993
|
+
export interface ToolMapV3_54_0 {
|
|
1994
|
+
[k: string]: AgentToolConfigV3_54_0;
|
|
1995
|
+
}
|
|
1984
1996
|
/**
|
|
1985
1997
|
* This interface was referenced by `ProjectSchemaJSONV3_54_0`'s JSON-Schema
|
|
1986
1998
|
* via the `definition` "formMap".
|
|
@@ -736,6 +736,16 @@
|
|
|
736
736
|
},
|
|
737
737
|
"additionalProperties": false
|
|
738
738
|
},
|
|
739
|
+
"toolMap": {
|
|
740
|
+
"title": "Tool Map",
|
|
741
|
+
"type": "object",
|
|
742
|
+
"patternProperties": {
|
|
743
|
+
"^[0-9A-Za-z_]+$": {
|
|
744
|
+
"$ref": "#/definitions/agentToolConfig"
|
|
745
|
+
}
|
|
746
|
+
},
|
|
747
|
+
"additionalProperties": false
|
|
748
|
+
},
|
|
739
749
|
"aiExperimental": {
|
|
740
750
|
"title": "AI Experimental",
|
|
741
751
|
"type": "object",
|
|
@@ -747,6 +757,10 @@
|
|
|
747
757
|
"guards": {
|
|
748
758
|
"$ref": "#/definitions/guardMap",
|
|
749
759
|
"description": "A Guard is a configuration for an AI guardrail that can check inputs and outputs and provide safety and compliance."
|
|
760
|
+
},
|
|
761
|
+
"tools": {
|
|
762
|
+
"$ref": "#/definitions/toolMap",
|
|
763
|
+
"description": "A Tool is a configuration for an AI tool which can query or mutate data."
|
|
750
764
|
}
|
|
751
765
|
},
|
|
752
766
|
"additionalProperties": false
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@takeshape/schema",
|
|
3
|
-
"version": "11.80.
|
|
3
|
+
"version": "11.80.2",
|
|
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.80.
|
|
61
|
-
"@takeshape/util": "11.80.
|
|
62
|
-
"@takeshape/json-schema": "11.80.
|
|
60
|
+
"@takeshape/errors": "11.80.2",
|
|
61
|
+
"@takeshape/util": "11.80.2",
|
|
62
|
+
"@takeshape/json-schema": "11.80.2"
|
|
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.80.
|
|
79
|
+
"@takeshape/infra": "11.80.2"
|
|
80
80
|
},
|
|
81
81
|
"engines": {
|
|
82
82
|
"node": ">=20"
|