@sprucelabs/spruce-core-schemas 41.2.1 → 41.3.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.
@@ -0,0 +1,3 @@
1
+ import { SpruceSchemas } from '../../core.schemas.types';
2
+ declare const agentSchema: SpruceSchemas.Spruce.v2020_07_22.AgentSchema;
3
+ export default agentSchema;
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const schema_1 = require("@sprucelabs/schema");
7
+ const agentSource_schema_1 = __importDefault(require("./agentSource.schema"));
8
+ const agentSchema = {
9
+ id: 'agent',
10
+ version: 'v2020_07_22',
11
+ namespace: 'Spruce',
12
+ name: 'Agent',
13
+ moduleToImportFromWhenRemote: '@sprucelabs/spruce-core-schemas',
14
+ fields: {
15
+ /** . */
16
+ 'id': {
17
+ type: 'id',
18
+ isRequired: true,
19
+ options: undefined
20
+ },
21
+ /** . */
22
+ 'name': {
23
+ type: 'text',
24
+ isRequired: true,
25
+ options: undefined
26
+ },
27
+ /** . */
28
+ 'systemPrompt': {
29
+ type: 'text',
30
+ isRequired: true,
31
+ options: undefined
32
+ },
33
+ /** . */
34
+ 'source': {
35
+ type: 'schema',
36
+ options: { schema: agentSource_schema_1.default, }
37
+ },
38
+ }
39
+ };
40
+ schema_1.SchemaRegistry.getInstance().trackSchema(agentSchema);
41
+ exports.default = agentSchema;
@@ -0,0 +1,3 @@
1
+ import { SpruceSchemas } from '../../core.schemas.types';
2
+ declare const agentSourceSchema: SpruceSchemas.Spruce.v2020_07_22.AgentSourceSchema;
3
+ export default agentSourceSchema;
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const schema_1 = require("@sprucelabs/schema");
4
+ const agentSourceSchema = {
5
+ id: 'agentSource',
6
+ version: 'v2020_07_22',
7
+ namespace: 'Spruce',
8
+ name: '',
9
+ moduleToImportFromWhenRemote: '@sprucelabs/spruce-core-schemas',
10
+ fields: {
11
+ /** . */
12
+ 'personId': {
13
+ type: 'id',
14
+ options: undefined
15
+ },
16
+ /** . */
17
+ 'skillId': {
18
+ type: 'id',
19
+ options: undefined
20
+ },
21
+ }
22
+ };
23
+ schema_1.SchemaRegistry.getInstance().trackSchema(agentSourceSchema);
24
+ exports.default = agentSourceSchema;