@takeshape/schema 11.102.4 → 11.103.3
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/agents.d.ts +18 -2
- package/dist/agents.js +159 -38
- package/dist/builtin-schema.js +85 -94
- package/dist/migration/index.d.ts +1 -0
- package/dist/migration/index.js +3 -1
- package/dist/migration/to/v3.56.0.d.ts +4 -0
- package/dist/migration/to/v3.56.0.js +10 -0
- package/dist/models/project-schema.d.ts +1 -0
- package/dist/models/project-schema.js +4 -1
- package/dist/models/query.js +1 -1
- package/dist/models/types.d.ts +1 -0
- package/dist/project-schema/index.d.ts +4 -1
- package/dist/project-schema/index.js +2 -1
- package/dist/project-schema/latest.d.ts +42 -18
- package/dist/project-schema/migrate.js +4 -1
- package/dist/project-schema/v3.48.0.d.ts +5 -8
- package/dist/project-schema/v3.49.0.d.ts +5 -8
- package/dist/project-schema/v3.50.0.d.ts +6 -9
- package/dist/project-schema/v3.51.0.d.ts +6 -9
- package/dist/project-schema/v3.52.0.d.ts +6 -9
- package/dist/project-schema/v3.53.0.d.ts +6 -9
- package/dist/project-schema/v3.54.0.d.ts +6 -9
- package/dist/project-schema/v3.55.0.d.ts +6 -9
- package/dist/project-schema/v3.56.0.d.ts +2400 -0
- package/dist/project-schema/v3.56.0.js +7 -0
- package/dist/resolvers/ai/abort-agent-message-args.d.ts +16 -0
- package/dist/resolvers/ai/abort-agent-message-args.js +13 -0
- package/dist/resolvers/ai/abort-agent-message-response.d.ts +26 -0
- package/dist/resolvers/ai/abort-agent-message-response.js +19 -0
- package/dist/resolvers/ai/agent-chat-args.d.ts +17 -0
- package/dist/resolvers/ai/agent-chat-args.js +15 -0
- package/dist/resolvers/ai/agent-chat-payload.d.ts +35 -0
- package/dist/resolvers/ai/agent-chat-payload.js +27 -0
- package/dist/resolvers/ai/agent-chat-response.d.ts +136 -0
- package/dist/resolvers/ai/agent-chat-response.js +17 -0
- package/dist/resolvers/ai/agent-generate-args.d.ts +17 -0
- package/dist/resolvers/ai/agent-generate-args.js +15 -0
- package/dist/resolvers/ai/agent-message-payload.d.ts +84 -0
- package/dist/resolvers/ai/agent-message-payload.js +57 -0
- package/dist/resolvers/ai/agent-run-mode.d.ts +7 -0
- package/dist/resolvers/ai/agent-run-mode.js +10 -0
- package/dist/resolvers/ai/agent-session-payload.d.ts +67 -0
- package/dist/resolvers/ai/agent-session-payload.js +71 -0
- package/dist/resolvers/ai/constants.d.ts +8 -0
- package/dist/resolvers/ai/constants.js +8 -0
- package/dist/resolvers/ai/create-agent-session-response.d.ts +75 -0
- package/dist/resolvers/ai/create-agent-session-response.js +14 -0
- package/dist/resolvers/ai/embedding-search.d.ts +3 -3
- package/dist/resolvers/ai/embedding-search.js +2 -2
- package/dist/resolvers/ai/get-agent-message-args.d.ts +16 -0
- package/dist/resolvers/ai/get-agent-message-args.js +13 -0
- package/dist/resolvers/ai/get-agent-message-response.d.ts +125 -0
- package/dist/resolvers/ai/get-agent-message-response.js +29 -0
- package/dist/resolvers/ai/inspect-agent-args.d.ts +16 -0
- package/dist/resolvers/ai/inspect-agent-args.js +13 -0
- package/dist/resolvers/ai/inspect-agent-response.d.ts +74 -0
- package/dist/resolvers/ai/inspect-agent-response.js +38 -0
- package/dist/resolvers/ai/send-agent-message-args.d.ts +39 -0
- package/dist/resolvers/ai/send-agent-message-args.js +32 -0
- package/dist/resolvers/ai/send-agent-message-response.d.ts +79 -0
- package/dist/resolvers/ai/send-agent-message-response.js +21 -0
- package/dist/resolvers/takeshape/assets/asset-image-meta.d.ts +2 -0
- package/dist/resolvers/takeshape/assets/asset-image-meta.js +3 -0
- package/dist/resolvers/takeshape/assets/asset-image-params.d.ts +2 -0
- package/dist/resolvers/takeshape/assets/asset-image-params.js +3 -0
- package/dist/resolvers/takeshape/assets/asset-image.d.ts +2 -0
- package/dist/resolvers/takeshape/assets/asset-image.js +3 -0
- package/dist/resolvers/takeshape/assets/asset.d.ts +3 -1
- package/dist/resolvers/takeshape/assets/asset.js +3 -1
- package/dist/resolvers/takeshape/builtins/constants.d.ts +1 -0
- package/dist/resolvers/takeshape/builtins/constants.js +1 -0
- package/dist/schema-util.d.ts +2 -2
- package/dist/schema-util.js +1 -1
- package/dist/schemas/index.d.ts +2 -2
- package/dist/schemas/index.js +4 -2
- package/dist/schemas/project-schema/experimental.json +73 -13
- package/dist/schemas/project-schema/latest.json +14 -2
- package/dist/schemas/project-schema/v3.56.0.json +3527 -0
- package/dist/schemas/project-schema.json +3 -0
- package/dist/util/has-arg.js +2 -2
- package/examples/latest/agent-schema.json +13 -5
- package/examples/latest/all-fields-shapes-inline.json +1 -1
- package/examples/latest/all-fields-shapes.json +1 -1
- package/examples/latest/betzino.json +1 -1
- package/examples/latest/blog-schema.json +1 -1
- package/examples/latest/brewery-schema.json +1 -1
- package/examples/latest/clear-cache-schema.json +1 -1
- package/examples/latest/complex-project-schema.json +1 -1
- package/examples/latest/complex-schema.json +1 -1
- package/examples/latest/edit-schema.json +1 -1
- package/examples/latest/fabric-ecommerce.json +1 -1
- package/examples/latest/frank-and-fred-schema.json +1 -1
- package/examples/latest/klirr-schema.json +1 -1
- package/examples/latest/layers/rick-and-morty-layer.json +1 -1
- package/examples/latest/layers/shopify-layer-2023-01.json +1 -1
- package/examples/latest/layers/shopify-storefront-2023-04.json +1 -1
- package/examples/latest/layers/wordpress-2024-01.json +1 -1
- package/examples/latest/massive-schema.json +1 -1
- package/examples/latest/mill-components-schema.json +1 -1
- package/examples/latest/nested-shape-arrays.json +1 -1
- package/examples/latest/one-earth.json +1 -1
- package/examples/latest/pet-oneof-array.json +1 -1
- package/examples/latest/post-schema.json +1 -1
- package/examples/latest/pruned-shopify-product-schema.json +1 -1
- package/examples/latest/rag-example.json +1 -1
- package/examples/latest/real-world-schema.json +1 -1
- package/examples/latest/recursive-repeater-schema.json +1 -1
- package/examples/latest/recursive-schema.json +1 -1
- package/examples/latest/rick-and-morty-ast.json +1 -1
- package/examples/latest/rick-and-morty-graphql.json +1 -1
- package/examples/latest/rick-and-morty-rest.json +1 -1
- package/examples/latest/rick-and-morty-user-schema.json +1 -1
- package/examples/latest/rick-and-morty-with-indexing.json +1 -1
- package/examples/latest/schema-where-filter.json +1 -1
- package/examples/latest/schema-with-repeater-draftjs.json +1 -1
- package/examples/latest/schema-with-rick-and-morty.json +1 -1
- package/examples/latest/shape-books-v3_2_0.json +1 -1
- package/examples/latest/shape-books.json +1 -1
- package/examples/latest/shape-editor-schema-edited.json +1 -1
- package/examples/latest/shape-editor-schema-initial.json +1 -1
- package/examples/latest/shapedb-crud-every-prop-type.json +1 -1
- package/examples/latest/shopify-lookbook.json +1 -1
- package/examples/latest/shopify-product-2022-07.json +1 -1
- package/examples/latest/shopify-product-2023-04.json +1 -1
- package/examples/latest/shopify-store-with-widget.json +1 -1
- package/examples/latest/stripe-product-runtime-schema.json +1 -1
- package/examples/latest/stripe-starter-resolved.json +1 -1
- package/examples/latest/user-schema-no-required.json +1 -1
- package/examples/latest/user-schema-with-defaults.json +1 -1
- package/examples/latest/valvoline-ai-demo.json +1 -1
- package/examples/latest/vector-search-schema.json +1 -1
- package/package.json +6 -5
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import type { FromSchema } from 'json-schema-to-ts';
|
|
2
|
+
export declare const schema: {
|
|
3
|
+
readonly type: "object";
|
|
4
|
+
readonly properties: {
|
|
5
|
+
readonly messageId: {
|
|
6
|
+
readonly type: "string";
|
|
7
|
+
readonly description: "The unique identifier for the agent run response message.";
|
|
8
|
+
};
|
|
9
|
+
readonly session: {
|
|
10
|
+
readonly type: "object";
|
|
11
|
+
readonly properties: {
|
|
12
|
+
readonly id: {
|
|
13
|
+
readonly type: "string";
|
|
14
|
+
readonly description: "The unique identifier for the agent session.";
|
|
15
|
+
};
|
|
16
|
+
readonly agentName: {
|
|
17
|
+
readonly type: "string";
|
|
18
|
+
readonly description: "The name of the agent associated with this session.";
|
|
19
|
+
};
|
|
20
|
+
readonly projectId: {
|
|
21
|
+
readonly type: "string";
|
|
22
|
+
readonly description: "The ID of the project to which this agent session belongs.";
|
|
23
|
+
};
|
|
24
|
+
readonly schemaId: {
|
|
25
|
+
readonly type: "string";
|
|
26
|
+
readonly description: "The schema ID associated with the agent session, typically in the format \"production~projectId\".";
|
|
27
|
+
};
|
|
28
|
+
readonly done: {
|
|
29
|
+
readonly type: "boolean";
|
|
30
|
+
readonly description: "Indicates whether the agent session is completed.";
|
|
31
|
+
};
|
|
32
|
+
readonly suspended: {
|
|
33
|
+
readonly type: "boolean";
|
|
34
|
+
readonly description: "Indicates whether the agent session is suspended.";
|
|
35
|
+
};
|
|
36
|
+
readonly previousStateId: {
|
|
37
|
+
readonly type: "string";
|
|
38
|
+
readonly description: "The ID of the previous state in the agent session, if any.";
|
|
39
|
+
};
|
|
40
|
+
readonly currentStateId: {
|
|
41
|
+
readonly type: "string";
|
|
42
|
+
readonly description: "The ID of the current state in the agent session.";
|
|
43
|
+
};
|
|
44
|
+
readonly chatSessionIds: {
|
|
45
|
+
readonly type: "object";
|
|
46
|
+
readonly description: "A mapping of chat session IDs to their corresponding state IDs.";
|
|
47
|
+
};
|
|
48
|
+
readonly sessionMemory: {
|
|
49
|
+
readonly type: "object";
|
|
50
|
+
readonly description: "Memory associated with the agent session, which can be used to store stateful information.";
|
|
51
|
+
};
|
|
52
|
+
readonly stateOutputs: {
|
|
53
|
+
readonly type: "object";
|
|
54
|
+
readonly description: "Outputs from the states in the agent session, keyed by state ID.";
|
|
55
|
+
};
|
|
56
|
+
readonly currentValue: {
|
|
57
|
+
readonly type: "object";
|
|
58
|
+
readonly description: "The current value of the agent session, which may be updated as the session progresses.";
|
|
59
|
+
};
|
|
60
|
+
readonly hasAgentHistory: {
|
|
61
|
+
readonly type: "boolean";
|
|
62
|
+
readonly description: "Indicates whether the agent session has an associated history of agent responses.";
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
readonly required: ["id", "agentName", "done", "currentStateId", "chatSessionIds", "sessionMemory", "stateOutputs", "projectId", "schemaId"];
|
|
66
|
+
readonly additionalProperties: false;
|
|
67
|
+
};
|
|
68
|
+
readonly runMode: {
|
|
69
|
+
readonly enum: ["BACKGROUND", "IMMEDIATE"];
|
|
70
|
+
readonly description: "Indicates how the agent message was run";
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
readonly required: ["messageId", "session", "runMode"];
|
|
74
|
+
readonly additionalProperties: true;
|
|
75
|
+
};
|
|
76
|
+
export type SendAgentMessageResponse<Output = unknown> = FromSchema<typeof schema> & {
|
|
77
|
+
output?: Output;
|
|
78
|
+
};
|
|
79
|
+
export declare const validate: import("ajv").ValidateFunction<SendAgentMessageResponse<unknown>>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { createTypedValidator } from '@takeshape/json-schema';
|
|
2
|
+
import * as agentSessionPayload from "./agent-session-payload.js";
|
|
3
|
+
export const schema = {
|
|
4
|
+
type: 'object',
|
|
5
|
+
properties: {
|
|
6
|
+
messageId: {
|
|
7
|
+
type: 'string',
|
|
8
|
+
description: 'The unique identifier for the agent run response message.'
|
|
9
|
+
},
|
|
10
|
+
session: {
|
|
11
|
+
...agentSessionPayload.schema
|
|
12
|
+
},
|
|
13
|
+
runMode: {
|
|
14
|
+
enum: ['BACKGROUND', 'IMMEDIATE'],
|
|
15
|
+
description: 'Indicates how the agent message was run'
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
required: ['messageId', 'session', 'runMode'],
|
|
19
|
+
additionalProperties: true
|
|
20
|
+
};
|
|
21
|
+
export const validate = createTypedValidator(schema);
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { createTypedValidator } from '@takeshape/json-schema';
|
|
2
|
+
import { ASSET_IMAGE_META_SHAPE_ID, ASSET_IMAGE_META_SHAPE_NAME } from "./constants.js";
|
|
3
|
+
export const shapeName = ASSET_IMAGE_META_SHAPE_NAME;
|
|
4
|
+
export const shapeId = ASSET_IMAGE_META_SHAPE_ID;
|
|
2
5
|
// Example imgix metadata
|
|
3
6
|
// {
|
|
4
7
|
// Orientation: 0,
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { createTypedValidator } from '@takeshape/json-schema';
|
|
2
|
+
import { ASSET_IMAGE_PARAMS_SHAPE_ID, ASSET_IMAGE_PARAMS_SHAPE_NAME } from "./constants.js";
|
|
3
|
+
export const shapeName = ASSET_IMAGE_PARAMS_SHAPE_NAME;
|
|
4
|
+
export const shapeId = ASSET_IMAGE_PARAMS_SHAPE_ID;
|
|
2
5
|
// Imgix Rendering API parameters schema
|
|
3
6
|
// Reference: https://docs.imgix.com/apis/rendering
|
|
4
7
|
export const schema = {
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { createTypedValidator } from '@takeshape/json-schema';
|
|
2
|
+
import { ASSET_IMAGE_SHAPE_ID, ASSET_IMAGE_SHAPE_NAME } from "./constants.js";
|
|
3
|
+
export const shapeName = ASSET_IMAGE_SHAPE_NAME;
|
|
4
|
+
export const shapeId = ASSET_IMAGE_SHAPE_ID;
|
|
2
5
|
export const schema = {
|
|
3
6
|
type: 'object',
|
|
4
7
|
properties: {
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import type { FromSchema } from 'json-schema-to-ts';
|
|
2
|
+
export declare const shapeName = "Asset";
|
|
3
|
+
export declare const shapeId = "ASSET";
|
|
2
4
|
export declare const schema: {
|
|
3
5
|
readonly type: "object";
|
|
4
6
|
readonly properties: {
|
|
@@ -104,8 +106,8 @@ export declare const schema: {
|
|
|
104
106
|
export type Asset = FromSchema<typeof schema>;
|
|
105
107
|
export declare const validate: import("ajv").ValidateFunction<{
|
|
106
108
|
[x: string]: unknown;
|
|
107
|
-
description?: string | undefined;
|
|
108
109
|
title?: string | undefined;
|
|
110
|
+
description?: string | undefined;
|
|
109
111
|
caption?: {
|
|
110
112
|
[x: string]: unknown;
|
|
111
113
|
} | undefined;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { createTypedValidator } from '@takeshape/json-schema';
|
|
2
|
-
import { ASSET_IMAGE_META_SHAPE_NAME, ASSET_IMAGE_PARAMS_SHAPE_NAME, ASSET_IMAGE_SHAPE_NAME } from "./constants.js";
|
|
2
|
+
import { ASSET_IMAGE_META_SHAPE_NAME, ASSET_IMAGE_PARAMS_SHAPE_NAME, ASSET_IMAGE_SHAPE_NAME, ASSET_SHAPE_ID, ASSET_SHAPE_NAME } from "./constants.js";
|
|
3
|
+
export const shapeName = ASSET_SHAPE_NAME;
|
|
4
|
+
export const shapeId = ASSET_SHAPE_ID;
|
|
3
5
|
export const schema = {
|
|
4
6
|
type: 'object',
|
|
5
7
|
properties: {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const JSON_SHAPE_NAME = "JSON";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const JSON_SHAPE_NAME = 'JSON';
|
package/dist/schema-util.d.ts
CHANGED
|
@@ -199,7 +199,7 @@ export declare function filterGraphQLServiceMap(serviceMap: ServiceMap): Map<str
|
|
|
199
199
|
* Creates a schema property list chainable fn, allowing you to manipulate and
|
|
200
200
|
* iterate the properties in a schema.
|
|
201
201
|
*/
|
|
202
|
-
export declare const createSchemaPropertyList: import("lodash").CurriedFunction2<ServicesShapesContext,
|
|
202
|
+
export declare const createSchemaPropertyList: import("lodash").CurriedFunction2<ServicesShapesContext, PropertySchema | ShapeJSON, {
|
|
203
203
|
_propertyIterator: Map<string, PropertySchema>;
|
|
204
204
|
orderBy: (iteratees?: ((n: SchemaPropertyNode) => string)[], orders?: ("asc" | "desc")[]) => /*elided*/ any;
|
|
205
205
|
sortWith: (comparator?: (a: SchemaPropertyNode, b: SchemaPropertyNode) => number) => /*elided*/ any;
|
|
@@ -226,7 +226,7 @@ export type { SchemaPropertyAccessor };
|
|
|
226
226
|
* Creates a schema property accessor, allowing you to safely access schema
|
|
227
227
|
* properties.
|
|
228
228
|
*/
|
|
229
|
-
export declare const createSchemaPropertyAccessor: import("lodash").CurriedFunction2<ServicesShapesContext,
|
|
229
|
+
export declare const createSchemaPropertyAccessor: import("lodash").CurriedFunction2<ServicesShapesContext, PropertySchema | ShapeJSON, SchemaPropertyAccessor>;
|
|
230
230
|
export type QueryMutationSlice = Pick<ProjectSchemaJSON, 'queries' | 'mutations'>;
|
|
231
231
|
/**
|
|
232
232
|
* Find the query in the schema that corresponds to the given shape and resolver.
|
package/dist/schema-util.js
CHANGED
|
@@ -760,7 +760,7 @@ export function getAllRefsInQuery(projectSchema, queryPath, query, predicate) {
|
|
|
760
760
|
addRef(refItems, getArgsReferenceWithPath(projectSchema, query, queryPath), predicate);
|
|
761
761
|
}
|
|
762
762
|
if (query.args && typeof query.args === 'object') {
|
|
763
|
-
visitSchemaProperties(
|
|
763
|
+
visitSchemaProperties(query.args, [...queryPath, 'args'], propertyVisitor);
|
|
764
764
|
}
|
|
765
765
|
if (query.shape) {
|
|
766
766
|
const { isArray, ref } = parseReturnShape(projectSchema, query.shape);
|
package/dist/schemas/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const CURRENT_SCHEMA_VERSION = "3.
|
|
1
|
+
export declare const CURRENT_SCHEMA_VERSION = "3.56.0";
|
|
2
2
|
export { default as anyProjectSchema } from './project-schema.json';
|
|
3
|
-
export { default as latestSchemaJson } from './project-schema/v3.
|
|
3
|
+
export { default as latestSchemaJson } from './project-schema/v3.56.0.json';
|
|
4
4
|
export declare const allProjectSchemas: any[];
|
package/dist/schemas/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// This file is generated by "pnpm json2ts"
|
|
2
|
-
export const CURRENT_SCHEMA_VERSION = '3.
|
|
2
|
+
export const CURRENT_SCHEMA_VERSION = '3.56.0';
|
|
3
3
|
export { default as anyProjectSchema } from './project-schema.json' with { type: 'json' };
|
|
4
|
-
export { default as latestSchemaJson } from './project-schema/v3.
|
|
4
|
+
export { default as latestSchemaJson } from './project-schema/v3.56.0.json' with { type: 'json' };
|
|
5
5
|
import experimentalSchemaJson from './project-schema/experimental.json' with { type: 'json' };
|
|
6
6
|
import metaSchemaV1_0_0 from './project-schema/meta-schema-v1.0.0.json' with { type: 'json' };
|
|
7
7
|
import projectSchemaV1_0_0 from './project-schema/v1.0.0.json' with { type: 'json' };
|
|
@@ -79,6 +79,7 @@ import projectSchemaV3_52_0 from './project-schema/v3.52.0.json' with { type: 'j
|
|
|
79
79
|
import projectSchemaV3_53_0 from './project-schema/v3.53.0.json' with { type: 'json' };
|
|
80
80
|
import projectSchemaV3_54_0 from './project-schema/v3.54.0.json' with { type: 'json' };
|
|
81
81
|
import projectSchemaV3_55_0 from './project-schema/v3.55.0.json' with { type: 'json' };
|
|
82
|
+
import projectSchemaV3_56_0 from './project-schema/v3.56.0.json' with { type: 'json' };
|
|
82
83
|
import projectSchemaV4_0_0 from './project-schema/v4.0.0.json' with { type: 'json' };
|
|
83
84
|
export const allProjectSchemas = [
|
|
84
85
|
experimentalSchemaJson,
|
|
@@ -158,5 +159,6 @@ export const allProjectSchemas = [
|
|
|
158
159
|
projectSchemaV3_53_0,
|
|
159
160
|
projectSchemaV3_54_0,
|
|
160
161
|
projectSchemaV3_55_0,
|
|
162
|
+
projectSchemaV3_56_0,
|
|
161
163
|
projectSchemaV4_0_0
|
|
162
164
|
];
|
|
@@ -736,11 +736,6 @@
|
|
|
736
736
|
"title": "Agent State Session Memory",
|
|
737
737
|
"type": "array",
|
|
738
738
|
"items": {
|
|
739
|
-
"default": {
|
|
740
|
-
"condition": {
|
|
741
|
-
"type": "none"
|
|
742
|
-
}
|
|
743
|
-
},
|
|
744
739
|
"$ref": "#/definitions/agentStateSessionMemoryAssignment"
|
|
745
740
|
}
|
|
746
741
|
},
|
|
@@ -772,11 +767,6 @@
|
|
|
772
767
|
"title": "Agent State Session Memory",
|
|
773
768
|
"type": "array",
|
|
774
769
|
"items": {
|
|
775
|
-
"default": {
|
|
776
|
-
"condition": {
|
|
777
|
-
"type": "none"
|
|
778
|
-
}
|
|
779
|
-
},
|
|
780
770
|
"$ref": "#/definitions/agentStateSessionMemoryAssignment"
|
|
781
771
|
}
|
|
782
772
|
},
|
|
@@ -838,7 +828,7 @@
|
|
|
838
828
|
"additionalProperties": false
|
|
839
829
|
},
|
|
840
830
|
"aiRunAgentResolver": {
|
|
841
|
-
"title": "
|
|
831
|
+
"title": "AISendAgentMessageResolver",
|
|
842
832
|
"type": "object",
|
|
843
833
|
"properties": {
|
|
844
834
|
"id": {
|
|
@@ -849,7 +839,55 @@
|
|
|
849
839
|
"title": "AI Resolver Name",
|
|
850
840
|
"type": "string",
|
|
851
841
|
"description": "Name of the resolver function.",
|
|
852
|
-
"enum": ["ai:
|
|
842
|
+
"enum": ["ai:sendAgentMessage"]
|
|
843
|
+
},
|
|
844
|
+
"agentName": {
|
|
845
|
+
"type": "string",
|
|
846
|
+
"pattern": "^[0-9A-Za-z_]+$"
|
|
847
|
+
},
|
|
848
|
+
"inputName": {
|
|
849
|
+
"type": "string",
|
|
850
|
+
"pattern": "^[0-9A-Za-z_]+$"
|
|
851
|
+
}
|
|
852
|
+
},
|
|
853
|
+
"required": ["name", "agentName", "inputName"],
|
|
854
|
+
"additionalProperties": false
|
|
855
|
+
},
|
|
856
|
+
"aiGetAgentMessageResolver": {
|
|
857
|
+
"title": "AIGetAgentMessageResolver",
|
|
858
|
+
"type": "object",
|
|
859
|
+
"properties": {
|
|
860
|
+
"id": {
|
|
861
|
+
"type": "string",
|
|
862
|
+
"pattern": "^(?=[a-zA-Z])[-_a-zA-Z0-9]+$"
|
|
863
|
+
},
|
|
864
|
+
"name": {
|
|
865
|
+
"title": "AI Resolver Name",
|
|
866
|
+
"type": "string",
|
|
867
|
+
"description": "Name of the resolver function.",
|
|
868
|
+
"enum": ["ai:getAgentMessage"]
|
|
869
|
+
},
|
|
870
|
+
"agentName": {
|
|
871
|
+
"type": "string",
|
|
872
|
+
"pattern": "^[0-9A-Za-z_]+$"
|
|
873
|
+
}
|
|
874
|
+
},
|
|
875
|
+
"required": ["name", "agentName"],
|
|
876
|
+
"additionalProperties": false
|
|
877
|
+
},
|
|
878
|
+
"aiAbortAgentMessageResolver": {
|
|
879
|
+
"title": "AIAbortAgentMessageResolver",
|
|
880
|
+
"type": "object",
|
|
881
|
+
"properties": {
|
|
882
|
+
"id": {
|
|
883
|
+
"type": "string",
|
|
884
|
+
"pattern": "^(?=[a-zA-Z])[-_a-zA-Z0-9]+$"
|
|
885
|
+
},
|
|
886
|
+
"name": {
|
|
887
|
+
"title": "AI Resolver Name",
|
|
888
|
+
"type": "string",
|
|
889
|
+
"description": "Name of the resolver function.",
|
|
890
|
+
"enum": ["ai:abortAgentMessage"]
|
|
853
891
|
},
|
|
854
892
|
"agentName": {
|
|
855
893
|
"type": "string",
|
|
@@ -1193,7 +1231,29 @@
|
|
|
1193
1231
|
"title": "AI Resolver Name",
|
|
1194
1232
|
"type": "string",
|
|
1195
1233
|
"description": "Name of the resolver function.",
|
|
1196
|
-
"enum": ["ai:
|
|
1234
|
+
"enum": ["ai:inspectAgent"]
|
|
1235
|
+
},
|
|
1236
|
+
"agentName": {
|
|
1237
|
+
"type": "string",
|
|
1238
|
+
"pattern": "^[0-9A-Za-z_]+$"
|
|
1239
|
+
}
|
|
1240
|
+
},
|
|
1241
|
+
"required": ["name", "agentName"],
|
|
1242
|
+
"additionalProperties": false
|
|
1243
|
+
},
|
|
1244
|
+
"aiCreateAgentSessionResolver": {
|
|
1245
|
+
"title": "AICreateAgentSessionResolver",
|
|
1246
|
+
"type": "object",
|
|
1247
|
+
"properties": {
|
|
1248
|
+
"id": {
|
|
1249
|
+
"type": "string",
|
|
1250
|
+
"pattern": "^(?=[a-zA-Z])[-_a-zA-Z0-9]+$"
|
|
1251
|
+
},
|
|
1252
|
+
"name": {
|
|
1253
|
+
"title": "AI Resolver Name",
|
|
1254
|
+
"type": "string",
|
|
1255
|
+
"description": "Name of the resolver function.",
|
|
1256
|
+
"enum": ["ai:createAgentSession"]
|
|
1197
1257
|
},
|
|
1198
1258
|
"agentName": {
|
|
1199
1259
|
"type": "string",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"$id": "https://schema.takeshape.io/project-schema/v3.
|
|
3
|
+
"$id": "https://schema.takeshape.io/project-schema/v3.56.0#",
|
|
4
4
|
"title": "Project Schema JSON",
|
|
5
5
|
"definitions": {
|
|
6
6
|
"schemaArray": {
|
|
@@ -316,6 +316,9 @@
|
|
|
316
316
|
},
|
|
317
317
|
{
|
|
318
318
|
"$ref": "#/definitions/objectSchema"
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
"$ref": "#/definitions/extendsSchema"
|
|
319
322
|
}
|
|
320
323
|
]
|
|
321
324
|
},
|
|
@@ -940,6 +943,15 @@
|
|
|
940
943
|
},
|
|
941
944
|
{
|
|
942
945
|
"$ref": "https://schema.takeshape.io/project-schema/experimental#/definitions/aiInspectAgentResolver"
|
|
946
|
+
},
|
|
947
|
+
{
|
|
948
|
+
"$ref": "https://schema.takeshape.io/project-schema/experimental#/definitions/aiCreateAgentSessionResolver"
|
|
949
|
+
},
|
|
950
|
+
{
|
|
951
|
+
"$ref": "https://schema.takeshape.io/project-schema/experimental#/definitions/aiGetAgentMessageResolver"
|
|
952
|
+
},
|
|
953
|
+
{
|
|
954
|
+
"$ref": "https://schema.takeshape.io/project-schema/experimental#/definitions/aiAbortAgentMessageResolver"
|
|
943
955
|
}
|
|
944
956
|
]
|
|
945
957
|
},
|
|
@@ -3442,7 +3454,7 @@
|
|
|
3442
3454
|
},
|
|
3443
3455
|
"schemaVersion": {
|
|
3444
3456
|
"type": "string",
|
|
3445
|
-
"enum": ["3.
|
|
3457
|
+
"enum": ["3.56.0"],
|
|
3446
3458
|
"description": "The version of the schema format your project is using. We increase the version as we make breaking changes to the schema format."
|
|
3447
3459
|
},
|
|
3448
3460
|
"projectId": {
|