@takeshape/schema 11.133.4 → 11.142.5
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 +2 -4
- package/dist/agents.js +99 -98
- package/dist/builtin-schema.js +66 -16
- package/dist/layers/refs.d.ts +1 -1
- package/dist/models/project-schema.d.ts +2 -2
- package/dist/models/project-schema.js +7 -3
- package/dist/models/types.d.ts +4 -1
- package/dist/project-schema/latest.d.ts +6 -0
- package/dist/project-schema/v3.59.0.d.ts +6 -0
- package/dist/refs.d.ts +1 -1
- package/dist/resolvers/ai/abort-agent-message-response.d.ts +18 -5
- package/dist/resolvers/ai/abort-agent-message-response.js +4 -4
- package/dist/resolvers/ai/agent-chat-args.js +1 -2
- package/dist/resolvers/ai/agent-chat-payload.js +1 -2
- package/dist/resolvers/ai/agent-chat-response.d.ts +169 -37
- package/dist/resolvers/ai/agent-chat-response.js +11 -7
- package/dist/resolvers/ai/agent-generate-args.js +1 -2
- package/dist/resolvers/ai/agent-message-input.d.ts +73 -0
- package/dist/resolvers/ai/agent-message-input.js +39 -0
- package/dist/resolvers/ai/agent-message-output.d.ts +169 -0
- package/dist/resolvers/ai/agent-message-output.js +77 -0
- package/dist/resolvers/ai/agent-message-payload.d.ts +187 -73
- package/dist/resolvers/ai/agent-message-payload.js +20 -72
- package/dist/resolvers/ai/agent-run-mode.js +1 -2
- package/dist/resolvers/ai/agent-session-payload.d.ts +415 -5
- package/dist/resolvers/ai/agent-session-payload.js +83 -2
- package/dist/resolvers/ai/create-agent-session-response.d.ts +126 -23
- package/dist/resolvers/ai/create-agent-session-response.js +6 -11
- package/dist/resolvers/ai/get-agent-message-response.d.ts +592 -18
- package/dist/resolvers/ai/get-agent-message-response.js +43 -9
- package/dist/resolvers/ai/inspect-agent-response.d.ts +479 -70
- package/dist/resolvers/ai/inspect-agent-response.js +30 -19
- package/dist/resolvers/ai/send-agent-feedback-args.js +1 -2
- package/dist/resolvers/ai/send-agent-message-args.d.ts +8 -8
- package/dist/resolvers/ai/send-agent-message-args.js +2 -2
- package/dist/resolvers/ai/send-agent-message-response.d.ts +257 -4
- package/dist/resolvers/ai/send-agent-message-response.js +32 -2
- package/dist/resolvers/ai/types.d.ts +6 -0
- package/dist/resolvers/ai/types.js +1 -0
- package/dist/resolvers/takeshape/assets/asset.d.ts +1 -1
- package/dist/schemas/project-schema/latest.json +15 -0
- package/dist/schemas/project-schema/v3.59.0.json +15 -0
- package/package.json +12 -8
- package/dist/resolvers/ai/constants.d.ts +0 -9
- package/dist/resolvers/ai/constants.js +0 -9
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import upperFirst from 'lodash/upperFirst.js';
|
|
2
|
+
import * as agentMessagePayload from "./agent-message-payload.js";
|
|
3
3
|
import * as agentSessionPayload from "./agent-session-payload.js";
|
|
4
|
-
import { AI_AGENT_INSPECT_RESPONSE_SHAPE_NAME } from "./constants.js";
|
|
5
|
-
export const shapeName = AI_AGENT_INSPECT_RESPONSE_SHAPE_NAME;
|
|
6
4
|
export const schema = {
|
|
7
|
-
|
|
5
|
+
type: 'object',
|
|
8
6
|
properties: {
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
session: {
|
|
8
|
+
...agentSessionPayload.schema
|
|
9
|
+
},
|
|
10
|
+
history: {
|
|
11
11
|
type: 'array',
|
|
12
12
|
items: {
|
|
13
13
|
type: 'object'
|
|
@@ -17,21 +17,32 @@ export const schema = {
|
|
|
17
17
|
messages: {
|
|
18
18
|
type: 'array',
|
|
19
19
|
items: {
|
|
20
|
-
|
|
20
|
+
...agentMessagePayload.schema
|
|
21
21
|
},
|
|
22
22
|
description: 'A list of messages exchanged in the agent session, which may include user inputs and agent responses.'
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
|
-
required: [
|
|
26
|
-
'id',
|
|
27
|
-
'agentName',
|
|
28
|
-
'done',
|
|
29
|
-
'currentStateId',
|
|
30
|
-
'chatSessionIds',
|
|
31
|
-
'sessionMemory',
|
|
32
|
-
'agentHistory',
|
|
33
|
-
'messages'
|
|
34
|
-
],
|
|
25
|
+
required: ['history', 'session', 'messages'],
|
|
35
26
|
additionalProperties: false
|
|
36
27
|
};
|
|
37
|
-
export
|
|
28
|
+
export function createUserShapeSchema() {
|
|
29
|
+
return {
|
|
30
|
+
...schema,
|
|
31
|
+
properties: {
|
|
32
|
+
...schema.properties,
|
|
33
|
+
session: {
|
|
34
|
+
'@ref': agentSessionPayload.shapeName
|
|
35
|
+
},
|
|
36
|
+
messages: {
|
|
37
|
+
...schema.properties.messages,
|
|
38
|
+
items: {
|
|
39
|
+
'@ref': agentMessagePayload.shapeName
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
additionalProperties: false
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
export function createUserShapeName(agentName) {
|
|
47
|
+
return `${upperFirst(agentName)}InspectAgentResponse`;
|
|
48
|
+
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { createTypedValidator } from '@takeshape/json-schema';
|
|
2
2
|
import * as agentMessagePayload from "./agent-message-payload.js";
|
|
3
|
-
|
|
4
|
-
export const shapeName = AI_AGENT_SEND_AGENT_FEEDBACK_SHAPE_NAME;
|
|
3
|
+
export const shapeName = 'TSSendAgentFeedback';
|
|
5
4
|
export const schema = {
|
|
6
5
|
type: 'object',
|
|
7
6
|
properties: {
|
|
@@ -19,7 +19,14 @@ export declare const schema: {
|
|
|
19
19
|
readonly required: [];
|
|
20
20
|
readonly additionalProperties: true;
|
|
21
21
|
};
|
|
22
|
-
export
|
|
22
|
+
export type SendAgentMessageArgs = FromSchema<typeof schema>;
|
|
23
|
+
export declare const validate: import("ajv").ValidateFunction<{
|
|
24
|
+
[x: string]: unknown;
|
|
25
|
+
sessionId?: string | undefined;
|
|
26
|
+
token?: string | undefined;
|
|
27
|
+
runMode: "BACKGROUND" | "IMMEDIATE" | "ALLOW_BACKGROUND";
|
|
28
|
+
}>;
|
|
29
|
+
export declare const shapeSchema: {
|
|
23
30
|
readonly properties: {
|
|
24
31
|
readonly runMode: {
|
|
25
32
|
readonly '@ref': "TSAgentRunMode";
|
|
@@ -39,10 +46,3 @@ export declare const propertySchema: {
|
|
|
39
46
|
readonly additionalProperties: false;
|
|
40
47
|
readonly type: "object";
|
|
41
48
|
};
|
|
42
|
-
export type SendAgentMessageArgs = FromSchema<typeof schema>;
|
|
43
|
-
export declare const validate: import("ajv").ValidateFunction<{
|
|
44
|
-
[x: string]: unknown;
|
|
45
|
-
sessionId?: string | undefined;
|
|
46
|
-
token?: string | undefined;
|
|
47
|
-
runMode: "BACKGROUND" | "IMMEDIATE" | "ALLOW_BACKGROUND";
|
|
48
|
-
}>;
|
|
@@ -21,7 +21,8 @@ export const schema = {
|
|
|
21
21
|
required: [],
|
|
22
22
|
additionalProperties: true
|
|
23
23
|
};
|
|
24
|
-
export const
|
|
24
|
+
export const validate = createTypedValidator(schema);
|
|
25
|
+
export const shapeSchema = {
|
|
25
26
|
...schema,
|
|
26
27
|
properties: {
|
|
27
28
|
...schema.properties,
|
|
@@ -33,4 +34,3 @@ export const propertySchema = {
|
|
|
33
34
|
required: [],
|
|
34
35
|
additionalProperties: false
|
|
35
36
|
};
|
|
36
|
-
export const validate = createTypedValidator(schema);
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
+
import type { RemoveIndex } from '@takeshape/util';
|
|
1
2
|
import type { FromSchema } from 'json-schema-to-ts';
|
|
3
|
+
import type { PropertySchema } from '../../project-schema/latest.ts';
|
|
4
|
+
import * as agentSessionPayload from './agent-session-payload.ts';
|
|
5
|
+
import type { CreateShapeSchemaParams } from './types.ts';
|
|
2
6
|
export declare const schema: {
|
|
3
7
|
readonly type: "object";
|
|
4
8
|
readonly properties: {
|
|
@@ -6,8 +10,116 @@ export declare const schema: {
|
|
|
6
10
|
readonly type: "string";
|
|
7
11
|
readonly description: "The unique identifier for the agent run response message.";
|
|
8
12
|
};
|
|
13
|
+
readonly input: {
|
|
14
|
+
readonly title: "TSAgentMessageInput";
|
|
15
|
+
readonly description: "The input schema for agent messages.";
|
|
16
|
+
readonly discriminator: {
|
|
17
|
+
readonly propertyName: "type";
|
|
18
|
+
};
|
|
19
|
+
readonly oneOf: [{
|
|
20
|
+
readonly title: "TSAgentMessageUnknownInput";
|
|
21
|
+
readonly type: "object";
|
|
22
|
+
readonly properties: {
|
|
23
|
+
readonly type: {
|
|
24
|
+
readonly const: "unknown";
|
|
25
|
+
};
|
|
26
|
+
readonly data: {};
|
|
27
|
+
};
|
|
28
|
+
readonly required: ["type", "data"];
|
|
29
|
+
readonly additionalProperties: false;
|
|
30
|
+
}, {
|
|
31
|
+
readonly title: "TSAgentMessageStringInput";
|
|
32
|
+
readonly type: "object";
|
|
33
|
+
readonly properties: {
|
|
34
|
+
readonly type: {
|
|
35
|
+
readonly const: "string";
|
|
36
|
+
};
|
|
37
|
+
readonly content: {
|
|
38
|
+
readonly type: "string";
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
readonly required: ["type", "content"];
|
|
42
|
+
readonly additionalProperties: false;
|
|
43
|
+
}];
|
|
44
|
+
};
|
|
45
|
+
readonly output: {
|
|
46
|
+
readonly title: "TSAgentMessageOutput";
|
|
47
|
+
readonly description: "The output schema for agent messages.";
|
|
48
|
+
readonly discriminator: {
|
|
49
|
+
readonly propertyName: "type";
|
|
50
|
+
};
|
|
51
|
+
readonly oneOf: [{
|
|
52
|
+
readonly title: "TSAgentGenerateStateOutput";
|
|
53
|
+
readonly type: "object";
|
|
54
|
+
readonly properties: {
|
|
55
|
+
readonly type: {
|
|
56
|
+
readonly const: "generate";
|
|
57
|
+
};
|
|
58
|
+
readonly data: {};
|
|
59
|
+
};
|
|
60
|
+
readonly required: ["type", "data"];
|
|
61
|
+
readonly additionalProperties: false;
|
|
62
|
+
}, {
|
|
63
|
+
readonly title: "TSAgentGraphQLStateOutput";
|
|
64
|
+
readonly type: "object";
|
|
65
|
+
readonly properties: {
|
|
66
|
+
readonly type: {
|
|
67
|
+
readonly const: "graphql";
|
|
68
|
+
};
|
|
69
|
+
readonly data: {};
|
|
70
|
+
};
|
|
71
|
+
readonly required: ["type", "data"];
|
|
72
|
+
readonly additionalProperties: false;
|
|
73
|
+
}, {
|
|
74
|
+
readonly title: "TSAgentChatStateOutput";
|
|
75
|
+
readonly type: "object";
|
|
76
|
+
readonly properties: {
|
|
77
|
+
readonly type: {
|
|
78
|
+
readonly const: "chat";
|
|
79
|
+
};
|
|
80
|
+
readonly data: {
|
|
81
|
+
readonly type: "object";
|
|
82
|
+
readonly properties: {
|
|
83
|
+
readonly content: {
|
|
84
|
+
readonly type: "string";
|
|
85
|
+
};
|
|
86
|
+
readonly artifact: {
|
|
87
|
+
readonly type: "object";
|
|
88
|
+
};
|
|
89
|
+
readonly references: {
|
|
90
|
+
readonly type: "array";
|
|
91
|
+
readonly items: {
|
|
92
|
+
readonly type: "object";
|
|
93
|
+
readonly properties: {
|
|
94
|
+
readonly _tid: {
|
|
95
|
+
readonly type: "string";
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
readonly required: ["_tid"];
|
|
99
|
+
readonly additionalProperties: false;
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
readonly required: ["content", "references"];
|
|
104
|
+
readonly additionalProperties: false;
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
readonly required: ["type", "data"];
|
|
108
|
+
readonly additionalProperties: false;
|
|
109
|
+
}, {
|
|
110
|
+
readonly title: "TSAgentUnknownStateOutput";
|
|
111
|
+
readonly type: "object";
|
|
112
|
+
readonly properties: {
|
|
113
|
+
readonly type: {
|
|
114
|
+
readonly const: "unknown";
|
|
115
|
+
};
|
|
116
|
+
readonly data: {};
|
|
117
|
+
};
|
|
118
|
+
readonly required: ["type", "data"];
|
|
119
|
+
readonly additionalProperties: false;
|
|
120
|
+
}];
|
|
121
|
+
};
|
|
9
122
|
readonly session: {
|
|
10
|
-
readonly type: "object";
|
|
11
123
|
readonly properties: {
|
|
12
124
|
readonly id: {
|
|
13
125
|
readonly type: "string";
|
|
@@ -82,9 +194,124 @@ export declare const schema: {
|
|
|
82
194
|
readonly type: "integer";
|
|
83
195
|
};
|
|
84
196
|
};
|
|
197
|
+
readonly firstMessageInput: {
|
|
198
|
+
readonly title: "TSAgentMessageInput";
|
|
199
|
+
readonly description: "The input schema for agent messages.";
|
|
200
|
+
readonly discriminator: {
|
|
201
|
+
readonly propertyName: "type";
|
|
202
|
+
};
|
|
203
|
+
readonly oneOf: [{
|
|
204
|
+
readonly title: "TSAgentMessageUnknownInput";
|
|
205
|
+
readonly type: "object";
|
|
206
|
+
readonly properties: {
|
|
207
|
+
readonly type: {
|
|
208
|
+
readonly const: "unknown";
|
|
209
|
+
};
|
|
210
|
+
readonly data: {};
|
|
211
|
+
};
|
|
212
|
+
readonly required: ["type", "data"];
|
|
213
|
+
readonly additionalProperties: false;
|
|
214
|
+
}, {
|
|
215
|
+
readonly title: "TSAgentMessageStringInput";
|
|
216
|
+
readonly type: "object";
|
|
217
|
+
readonly properties: {
|
|
218
|
+
readonly type: {
|
|
219
|
+
readonly const: "string";
|
|
220
|
+
};
|
|
221
|
+
readonly content: {
|
|
222
|
+
readonly type: "string";
|
|
223
|
+
};
|
|
224
|
+
};
|
|
225
|
+
readonly required: ["type", "content"];
|
|
226
|
+
readonly additionalProperties: false;
|
|
227
|
+
}];
|
|
228
|
+
};
|
|
229
|
+
readonly lastMessageOutput: {
|
|
230
|
+
readonly title: "TSAgentMessageOutput";
|
|
231
|
+
readonly description: "The output schema for agent messages.";
|
|
232
|
+
readonly discriminator: {
|
|
233
|
+
readonly propertyName: "type";
|
|
234
|
+
};
|
|
235
|
+
readonly oneOf: [{
|
|
236
|
+
readonly title: "TSAgentGenerateStateOutput";
|
|
237
|
+
readonly type: "object";
|
|
238
|
+
readonly properties: {
|
|
239
|
+
readonly type: {
|
|
240
|
+
readonly const: "generate";
|
|
241
|
+
};
|
|
242
|
+
readonly data: {};
|
|
243
|
+
};
|
|
244
|
+
readonly required: ["type", "data"];
|
|
245
|
+
readonly additionalProperties: false;
|
|
246
|
+
}, {
|
|
247
|
+
readonly title: "TSAgentGraphQLStateOutput";
|
|
248
|
+
readonly type: "object";
|
|
249
|
+
readonly properties: {
|
|
250
|
+
readonly type: {
|
|
251
|
+
readonly const: "graphql";
|
|
252
|
+
};
|
|
253
|
+
readonly data: {};
|
|
254
|
+
};
|
|
255
|
+
readonly required: ["type", "data"];
|
|
256
|
+
readonly additionalProperties: false;
|
|
257
|
+
}, {
|
|
258
|
+
readonly title: "TSAgentChatStateOutput";
|
|
259
|
+
readonly type: "object";
|
|
260
|
+
readonly properties: {
|
|
261
|
+
readonly type: {
|
|
262
|
+
readonly const: "chat";
|
|
263
|
+
};
|
|
264
|
+
readonly data: {
|
|
265
|
+
readonly type: "object";
|
|
266
|
+
readonly properties: {
|
|
267
|
+
readonly content: {
|
|
268
|
+
readonly type: "string";
|
|
269
|
+
};
|
|
270
|
+
readonly artifact: {
|
|
271
|
+
readonly type: "object";
|
|
272
|
+
};
|
|
273
|
+
readonly references: {
|
|
274
|
+
readonly type: "array";
|
|
275
|
+
readonly items: {
|
|
276
|
+
readonly type: "object";
|
|
277
|
+
readonly properties: {
|
|
278
|
+
readonly _tid: {
|
|
279
|
+
readonly type: "string";
|
|
280
|
+
};
|
|
281
|
+
};
|
|
282
|
+
readonly required: ["_tid"];
|
|
283
|
+
readonly additionalProperties: false;
|
|
284
|
+
};
|
|
285
|
+
};
|
|
286
|
+
};
|
|
287
|
+
readonly required: ["content", "references"];
|
|
288
|
+
readonly additionalProperties: false;
|
|
289
|
+
};
|
|
290
|
+
};
|
|
291
|
+
readonly required: ["type", "data"];
|
|
292
|
+
readonly additionalProperties: false;
|
|
293
|
+
}, {
|
|
294
|
+
readonly title: "TSAgentUnknownStateOutput";
|
|
295
|
+
readonly type: "object";
|
|
296
|
+
readonly properties: {
|
|
297
|
+
readonly type: {
|
|
298
|
+
readonly const: "unknown";
|
|
299
|
+
};
|
|
300
|
+
readonly data: {};
|
|
301
|
+
};
|
|
302
|
+
readonly required: ["type", "data"];
|
|
303
|
+
readonly additionalProperties: false;
|
|
304
|
+
}];
|
|
305
|
+
};
|
|
306
|
+
readonly totalTokens: {
|
|
307
|
+
readonly type: "number";
|
|
308
|
+
readonly description: "The total number of tokens used in the agent session.";
|
|
309
|
+
};
|
|
85
310
|
};
|
|
86
|
-
readonly required: ["id", "agentName", "createdAt", "updatedAt", "done", "currentStateId", "chatSessionIds", "sessionMemory", "projectId", "schemaId", "schemaHash"];
|
|
311
|
+
readonly required: ["id", "agentName", "createdAt", "updatedAt", "done", "currentStateId", "chatSessionIds", "sessionMemory", "hasAgentHistory", "hasFeedback", "suspend", "projectId", "schemaId", "schemaHash", "totalTokens"];
|
|
87
312
|
readonly additionalProperties: false;
|
|
313
|
+
readonly title: "TSAgentSession";
|
|
314
|
+
readonly type: "object";
|
|
88
315
|
};
|
|
89
316
|
readonly runMode: {
|
|
90
317
|
readonly enum: ["BACKGROUND", "IMMEDIATE"];
|
|
@@ -94,7 +321,33 @@ export declare const schema: {
|
|
|
94
321
|
readonly required: ["messageId", "session", "runMode"];
|
|
95
322
|
readonly additionalProperties: true;
|
|
96
323
|
};
|
|
97
|
-
export type SendAgentMessageResponse
|
|
324
|
+
export type SendAgentMessageResponse = FromSchema<typeof schema>;
|
|
325
|
+
type SendAgentMessageUserResponseBase = RemoveIndex<Pick<SendAgentMessageResponse, 'messageId' | 'input' | 'runMode'>>;
|
|
326
|
+
export type SendAgentMessageUserResponse<Output = unknown> = SendAgentMessageUserResponseBase & {
|
|
98
327
|
output?: Output;
|
|
328
|
+
session: agentSessionPayload.AgentSessionShapePayload;
|
|
329
|
+
};
|
|
330
|
+
export declare function createUserShapeSchema(params?: CreateShapeSchemaParams): {
|
|
331
|
+
properties: {
|
|
332
|
+
output: PropertySchema | import("../../project-schema/latest.ts").RefSchema;
|
|
333
|
+
input: {
|
|
334
|
+
'@ref': string;
|
|
335
|
+
};
|
|
336
|
+
session: {
|
|
337
|
+
'@ref': string;
|
|
338
|
+
};
|
|
339
|
+
messageId: {
|
|
340
|
+
readonly type: "string";
|
|
341
|
+
readonly description: "The unique identifier for the agent run response message.";
|
|
342
|
+
};
|
|
343
|
+
runMode: {
|
|
344
|
+
readonly enum: ["BACKGROUND", "IMMEDIATE"];
|
|
345
|
+
readonly description: "Indicates how the agent message was run";
|
|
346
|
+
};
|
|
347
|
+
};
|
|
348
|
+
required: string[];
|
|
349
|
+
additionalProperties: false;
|
|
350
|
+
type: "object";
|
|
99
351
|
};
|
|
100
|
-
export declare
|
|
352
|
+
export declare function createUserShapeName(agentName: string): string;
|
|
353
|
+
export {};
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import upperFirst from 'lodash/upperFirst.js';
|
|
2
|
+
import * as agentMessageInput from "./agent-message-input.js";
|
|
3
|
+
import * as agentMessageOutput from "./agent-message-output.js";
|
|
2
4
|
import * as agentSessionPayload from "./agent-session-payload.js";
|
|
3
5
|
export const schema = {
|
|
4
6
|
type: 'object',
|
|
@@ -7,6 +9,12 @@ export const schema = {
|
|
|
7
9
|
type: 'string',
|
|
8
10
|
description: 'The unique identifier for the agent run response message.'
|
|
9
11
|
},
|
|
12
|
+
input: {
|
|
13
|
+
...agentMessageInput.schema
|
|
14
|
+
},
|
|
15
|
+
output: {
|
|
16
|
+
...agentMessageOutput.schema
|
|
17
|
+
},
|
|
10
18
|
session: {
|
|
11
19
|
...agentSessionPayload.schema
|
|
12
20
|
},
|
|
@@ -18,4 +26,26 @@ export const schema = {
|
|
|
18
26
|
required: ['messageId', 'session', 'runMode'],
|
|
19
27
|
additionalProperties: true
|
|
20
28
|
};
|
|
21
|
-
export
|
|
29
|
+
export function createUserShapeSchema(params) {
|
|
30
|
+
return {
|
|
31
|
+
...schema,
|
|
32
|
+
properties: {
|
|
33
|
+
...schema.properties,
|
|
34
|
+
input: {
|
|
35
|
+
'@ref': agentMessageInput.shapeName
|
|
36
|
+
},
|
|
37
|
+
output: {
|
|
38
|
+
'@ref': agentMessageOutput.shapeName
|
|
39
|
+
},
|
|
40
|
+
session: {
|
|
41
|
+
'@ref': agentSessionPayload.shapeName
|
|
42
|
+
},
|
|
43
|
+
...params?.properties
|
|
44
|
+
},
|
|
45
|
+
required: [...schema.required, 'output'],
|
|
46
|
+
additionalProperties: false
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
export function createUserShapeName(agentName) {
|
|
50
|
+
return `${upperFirst(agentName)}SendAgentMessageResponse`;
|
|
51
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -106,8 +106,8 @@ export declare const schema: {
|
|
|
106
106
|
export type Asset = FromSchema<typeof schema>;
|
|
107
107
|
export declare const validate: import("ajv").ValidateFunction<{
|
|
108
108
|
[x: string]: unknown;
|
|
109
|
-
title?: string | undefined;
|
|
110
109
|
description?: string | undefined;
|
|
110
|
+
title?: string | undefined;
|
|
111
111
|
caption?: {
|
|
112
112
|
[x: string]: unknown;
|
|
113
113
|
} | undefined;
|
|
@@ -244,6 +244,21 @@
|
|
|
244
244
|
"title": "Shape Schema One Of",
|
|
245
245
|
"type": "object",
|
|
246
246
|
"properties": {
|
|
247
|
+
"title": {
|
|
248
|
+
"type": "string"
|
|
249
|
+
},
|
|
250
|
+
"description": {
|
|
251
|
+
"type": "string"
|
|
252
|
+
},
|
|
253
|
+
"discriminator": {
|
|
254
|
+
"type": "object",
|
|
255
|
+
"properties": {
|
|
256
|
+
"propertyName": {
|
|
257
|
+
"type": "string"
|
|
258
|
+
}
|
|
259
|
+
},
|
|
260
|
+
"required": ["propertyName"]
|
|
261
|
+
},
|
|
247
262
|
"oneOf": {
|
|
248
263
|
"$ref": "#/definitions/objectOrRefArray"
|
|
249
264
|
}
|
|
@@ -244,6 +244,21 @@
|
|
|
244
244
|
"title": "Shape Schema One Of",
|
|
245
245
|
"type": "object",
|
|
246
246
|
"properties": {
|
|
247
|
+
"title": {
|
|
248
|
+
"type": "string"
|
|
249
|
+
},
|
|
250
|
+
"description": {
|
|
251
|
+
"type": "string"
|
|
252
|
+
},
|
|
253
|
+
"discriminator": {
|
|
254
|
+
"type": "object",
|
|
255
|
+
"properties": {
|
|
256
|
+
"propertyName": {
|
|
257
|
+
"type": "string"
|
|
258
|
+
}
|
|
259
|
+
},
|
|
260
|
+
"required": ["propertyName"]
|
|
261
|
+
},
|
|
247
262
|
"oneOf": {
|
|
248
263
|
"$ref": "#/definitions/objectOrRefArray"
|
|
249
264
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@takeshape/schema",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.142.5",
|
|
4
4
|
"description": "TakeShape Schema",
|
|
5
5
|
"homepage": "https://www.takeshape.io",
|
|
6
6
|
"repository": {
|
|
@@ -52,13 +52,13 @@
|
|
|
52
52
|
"jsonpath-plus": "10.0.1",
|
|
53
53
|
"lodash": "4.17.21",
|
|
54
54
|
"minimatch": "3.1.2",
|
|
55
|
-
"p-map": "
|
|
56
|
-
"p-reduce": "
|
|
55
|
+
"p-map": "7.0.3",
|
|
56
|
+
"p-reduce": "3.0.0",
|
|
57
57
|
"semver": "7.7.2",
|
|
58
58
|
"tiny-invariant": "1.3.3",
|
|
59
|
-
"@takeshape/errors": "11.
|
|
60
|
-
"@takeshape/
|
|
61
|
-
"@takeshape/
|
|
59
|
+
"@takeshape/errors": "11.142.5",
|
|
60
|
+
"@takeshape/json-schema": "11.142.5",
|
|
61
|
+
"@takeshape/util": "11.142.5"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
64
|
"@takeshape/json-schema-to-typescript": "11.0.0",
|
|
@@ -75,12 +75,16 @@
|
|
|
75
75
|
"glob": "7.2.3",
|
|
76
76
|
"json-schema-to-ts": "3.1.1",
|
|
77
77
|
"shortid": "2.2.16",
|
|
78
|
-
"@takeshape/
|
|
79
|
-
"@takeshape/
|
|
78
|
+
"@takeshape/logger": "11.142.5",
|
|
79
|
+
"@takeshape/infra": "11.142.5"
|
|
80
80
|
},
|
|
81
81
|
"engines": {
|
|
82
82
|
"node": ">=22"
|
|
83
83
|
},
|
|
84
|
+
"publishConfig": {
|
|
85
|
+
"access": "public",
|
|
86
|
+
"provenance": false
|
|
87
|
+
},
|
|
84
88
|
"scripts": {
|
|
85
89
|
"build": "tsc --project tsconfig.build.json",
|
|
86
90
|
"postbuild": "find './src/schemas/project-schema/' -maxdepth 1 -name '*.json' -exec rsync --quiet '{}' dist/schemas/project-schema/ \\; && find './src/schemas/' -maxdepth 1 -name '*.json' -exec rsync --quiet '{}' dist/schemas/ \\;",
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export declare const AI_AGENT_SESSION_SHAPE_NAME = "TSCreateAgentSessionResponse";
|
|
2
|
-
export declare const AI_AGENT_INSPECT_RESPONSE_SHAPE_NAME = "TSInspectAgentResponse";
|
|
3
|
-
export declare const AI_AGENT_GENERATE_ARGS_SHAPE_NAME = "TSGenerateArgs";
|
|
4
|
-
export declare const AI_AGENT_CHAT_ARGS_SHAPE_NAME = "TSChatArgs";
|
|
5
|
-
export declare const AI_AGENT_CHAT_RESPONSE_SHAPE_NAME = "TSChatResponse";
|
|
6
|
-
export declare const AI_AGENT_CHAT_PAYLOAD_SHAPE_NAME = "TSChatPayload";
|
|
7
|
-
export declare const AI_AGENT_ABORT_AGENT_MESSAGE_RESPONSE_SHAPE_NAME = "TSAbortAgentMessageResponse";
|
|
8
|
-
export declare const AI_AGENT_RUN_MODE_SHAPE_NAME = "TSAgentRunMode";
|
|
9
|
-
export declare const AI_AGENT_SEND_AGENT_FEEDBACK_SHAPE_NAME = "TSSendAgentFeedback";
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export const AI_AGENT_SESSION_SHAPE_NAME = 'TSCreateAgentSessionResponse';
|
|
2
|
-
export const AI_AGENT_INSPECT_RESPONSE_SHAPE_NAME = 'TSInspectAgentResponse';
|
|
3
|
-
export const AI_AGENT_GENERATE_ARGS_SHAPE_NAME = 'TSGenerateArgs';
|
|
4
|
-
export const AI_AGENT_CHAT_ARGS_SHAPE_NAME = 'TSChatArgs';
|
|
5
|
-
export const AI_AGENT_CHAT_RESPONSE_SHAPE_NAME = 'TSChatResponse';
|
|
6
|
-
export const AI_AGENT_CHAT_PAYLOAD_SHAPE_NAME = 'TSChatPayload';
|
|
7
|
-
export const AI_AGENT_ABORT_AGENT_MESSAGE_RESPONSE_SHAPE_NAME = 'TSAbortAgentMessageResponse';
|
|
8
|
-
export const AI_AGENT_RUN_MODE_SHAPE_NAME = 'TSAgentRunMode';
|
|
9
|
-
export const AI_AGENT_SEND_AGENT_FEEDBACK_SHAPE_NAME = 'TSSendAgentFeedback';
|