@takeshape/schema 11.55.0 → 11.58.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/builtin-schema.js +31 -1
- package/dist/migration/index.d.ts +1 -0
- package/dist/migration/index.js +3 -1
- package/dist/migration/to/v3.52.0.d.ts +4 -0
- package/dist/migration/to/v3.52.0.js +10 -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 +34 -12
- package/dist/project-schema/migrate.js +4 -1
- package/dist/project-schema/v3.48.0.d.ts +32 -10
- package/dist/project-schema/v3.49.0.d.ts +32 -10
- package/dist/project-schema/v3.50.0.d.ts +32 -10
- package/dist/project-schema/v3.51.0.d.ts +33 -11
- package/dist/project-schema/v3.52.0.d.ts +2243 -0
- package/dist/project-schema/v3.52.0.js +7 -0
- package/dist/schemas/index.d.ts +2 -2
- package/dist/schemas/index.js +4 -2
- package/dist/schemas/project-schema/experimental.json +126 -3
- package/dist/schemas/project-schema/latest.json +9 -3
- package/dist/schemas/project-schema/v3.51.0.json +7 -1
- package/dist/schemas/project-schema/v3.52.0.json +3326 -0
- package/dist/schemas/project-schema.json +3 -0
- package/examples/latest/agent-schema.json +6 -1
- 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-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/examples/source/agent-schema.json +5 -0
- package/package.json +7 -8
package/dist/builtin-schema.js
CHANGED
|
@@ -361,6 +361,30 @@ export const builtInShapes = {
|
|
|
361
361
|
required: ['input']
|
|
362
362
|
}
|
|
363
363
|
},
|
|
364
|
+
TSReference: {
|
|
365
|
+
id: 'TSReference',
|
|
366
|
+
name: 'TSReference',
|
|
367
|
+
title: 'TakeShape Reference',
|
|
368
|
+
schema: {
|
|
369
|
+
type: 'object',
|
|
370
|
+
properties: {
|
|
371
|
+
_tid: {
|
|
372
|
+
type: 'string'
|
|
373
|
+
},
|
|
374
|
+
data: {
|
|
375
|
+
'@ref': 'TSSearchable',
|
|
376
|
+
'@resolver': {
|
|
377
|
+
name: 'takeshape:get',
|
|
378
|
+
service: 'takeshape',
|
|
379
|
+
args: {
|
|
380
|
+
ops: [{ path: 'tid', mapping: '$source._tid' }]
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
},
|
|
385
|
+
required: ['_tid']
|
|
386
|
+
}
|
|
387
|
+
},
|
|
364
388
|
TSChatResponse: {
|
|
365
389
|
id: 'TSChatResponse',
|
|
366
390
|
name: 'TSChatResponse',
|
|
@@ -371,7 +395,13 @@ export const builtInShapes = {
|
|
|
371
395
|
content: { type: 'string' },
|
|
372
396
|
sessionId: { type: 'string' },
|
|
373
397
|
done: { type: 'boolean' },
|
|
374
|
-
artifact: { type: 'object' }
|
|
398
|
+
artifact: { type: 'object' },
|
|
399
|
+
references: {
|
|
400
|
+
type: 'array',
|
|
401
|
+
items: {
|
|
402
|
+
'@ref': 'TSReference'
|
|
403
|
+
}
|
|
404
|
+
}
|
|
375
405
|
},
|
|
376
406
|
required: ['content']
|
|
377
407
|
}
|
|
@@ -58,6 +58,7 @@ export declare const migrateTo: {
|
|
|
58
58
|
'v3.49.0': import("./types.ts").MigrateFunction<import("../index.ts").ProjectSchemaJSONV3_48_0, import("../index.ts").ProjectSchemaJSONV3_49_0>;
|
|
59
59
|
'v3.50.0': import("./types.ts").MigrateFunction<import("../index.ts").ProjectSchemaJSONV3_49_0, import("../index.ts").ProjectSchemaJSONV3_50_0>;
|
|
60
60
|
'v3.51.0': import("./types.ts").MigrateFunction<import("../index.ts").ProjectSchemaJSONV3_50_0, import("../index.ts").ProjectSchemaJSONV3_51_0>;
|
|
61
|
+
'v3.52.0': import("./types.ts").MigrateFunction<import("../index.ts").ProjectSchemaJSONV3_51_0, import("../index.ts").ProjectSchemaJSONV3_52_0>;
|
|
61
62
|
};
|
|
62
63
|
export * from './utils.ts';
|
|
63
64
|
export declare const listTypePrefix = "PaginatedList";
|
package/dist/migration/index.js
CHANGED
|
@@ -57,6 +57,7 @@ import migrateToV3_48_0 from "./to/v3.48.0.js";
|
|
|
57
57
|
import migrateToV3_49_0 from "./to/v3.49.0.js";
|
|
58
58
|
import migrateToV3_50_0 from "./to/v3.50.0.js";
|
|
59
59
|
import migrateToV3_51_0 from "./to/v3.51.0.js";
|
|
60
|
+
import migrateToV3_52_0 from "./to/v3.52.0.js";
|
|
60
61
|
export const migrateTo = {
|
|
61
62
|
'v3.0.0': migrateToV3_0_0,
|
|
62
63
|
'v3.1.0': migrateToV3_1_0,
|
|
@@ -116,7 +117,8 @@ export const migrateTo = {
|
|
|
116
117
|
'v3.48.0': migrateToV3_48_0,
|
|
117
118
|
'v3.49.0': migrateToV3_49_0,
|
|
118
119
|
'v3.50.0': migrateToV3_50_0,
|
|
119
|
-
'v3.51.0': migrateToV3_51_0
|
|
120
|
+
'v3.51.0': migrateToV3_51_0,
|
|
121
|
+
'v3.52.0': migrateToV3_52_0
|
|
120
122
|
};
|
|
121
123
|
export * from "./utils.js";
|
|
122
124
|
export const listTypePrefix = 'PaginatedList';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ProjectSchemaJSONV3_51_0, ProjectSchemaJSONV3_52_0 } from '../../project-schema/index.ts';
|
|
2
|
+
import type { MigrateFunction } from '../types.ts';
|
|
3
|
+
declare const migrate: MigrateFunction<ProjectSchemaJSONV3_51_0, ProjectSchemaJSONV3_52_0>;
|
|
4
|
+
export default migrate;
|
|
@@ -59,6 +59,7 @@ export type * from './v3.48.0.ts';
|
|
|
59
59
|
export type * from './v3.49.0.ts';
|
|
60
60
|
export type * from './v3.50.0.ts';
|
|
61
61
|
export type * from './v3.51.0.ts';
|
|
62
|
+
export type * from './v3.52.0.ts';
|
|
62
63
|
export type * from './v4.0.0.ts';
|
|
63
64
|
import { ProjectSchemaJSONV1_0_0 } from './v1.0.0.ts';
|
|
64
65
|
import { ProjectSchemaJSONV3_0_0 } from './v3.0.0.ts';
|
|
@@ -120,9 +121,10 @@ import { ProjectSchemaJSONV3_48_0 } from './v3.48.0.ts';
|
|
|
120
121
|
import { ProjectSchemaJSONV3_49_0 } from './v3.49.0.ts';
|
|
121
122
|
import { ProjectSchemaJSONV3_50_0 } from './v3.50.0.ts';
|
|
122
123
|
import { ProjectSchemaJSONV3_51_0 } from './v3.51.0.ts';
|
|
124
|
+
import { ProjectSchemaJSONV3_52_0 } from './v3.52.0.ts';
|
|
123
125
|
import { ProjectSchemaJSONV4_0_0 } from './v4.0.0.ts';
|
|
124
126
|
import { ProjectSchemaJSON } from './latest.ts';
|
|
125
|
-
export type AnyProjectSchemaJSON = ProjectSchemaJSONV1_0_0 | ProjectSchemaJSONV3_0_0 | ProjectSchemaJSONV3_1_0 | ProjectSchemaJSONV3_2_0 | ProjectSchemaJSONV3_3_0 | ProjectSchemaJSONV3_4_0 | ProjectSchemaJSONV3_5_0 | ProjectSchemaJSONV3_5_1 | ProjectSchemaJSONV3_6_0 | ProjectSchemaJSONV3_7_0 | ProjectSchemaJSONV3_8_0 | ProjectSchemaJSONV3_9_0 | ProjectSchemaJSONV3_10_0 | ProjectSchemaJSONV3_11_0 | ProjectSchemaJSONV3_12_0 | ProjectSchemaJSONV3_12_1 | ProjectSchemaJSONV3_12_2 | ProjectSchemaJSONV3_12_3 | ProjectSchemaJSONV3_13_0 | ProjectSchemaJSONV3_14_0 | ProjectSchemaJSONV3_15_0 | ProjectSchemaJSONV3_16_0 | ProjectSchemaJSONV3_17_0 | ProjectSchemaJSONV3_17_1 | ProjectSchemaJSONV3_18_0 | ProjectSchemaJSONV3_18_1 | ProjectSchemaJSONV3_18_2 | ProjectSchemaJSONV3_19_0 | ProjectSchemaJSONV3_20_0 | ProjectSchemaJSONV3_21_0 | ProjectSchemaJSONV3_22_0 | ProjectSchemaJSONV3_23_0 | ProjectSchemaJSONV3_24_0 | ProjectSchemaJSONV3_25_0 | ProjectSchemaJSONV3_26_0 | ProjectSchemaJSONV3_27_0 | ProjectSchemaJSONV3_28_0 | ProjectSchemaJSONV3_29_0 | ProjectSchemaJSONV3_30_0 | ProjectSchemaJSONV3_31_0 | ProjectSchemaJSONV3_32_0 | ProjectSchemaJSONV3_33_0 | ProjectSchemaJSONV3_34_0 | ProjectSchemaJSONV3_35_0 | ProjectSchemaJSONV3_36_0 | ProjectSchemaJSONV3_37_0 | ProjectSchemaJSONV3_38_0 | ProjectSchemaJSONV3_39_0 | ProjectSchemaJSONV3_40_0 | ProjectSchemaJSONV3_41_0 | ProjectSchemaJSONV3_42_0 | ProjectSchemaJSONV3_43_0 | ProjectSchemaJSONV3_44_0 | ProjectSchemaJSONV3_45_0 | ProjectSchemaJSONV3_46_0 | ProjectSchemaJSONV3_47_0 | ProjectSchemaJSONV3_48_0 | ProjectSchemaJSONV3_49_0 | ProjectSchemaJSONV3_50_0 | ProjectSchemaJSONV3_51_0 | ProjectSchemaJSONV4_0_0 | ProjectSchemaJSON;
|
|
127
|
+
export type AnyProjectSchemaJSON = ProjectSchemaJSONV1_0_0 | ProjectSchemaJSONV3_0_0 | ProjectSchemaJSONV3_1_0 | ProjectSchemaJSONV3_2_0 | ProjectSchemaJSONV3_3_0 | ProjectSchemaJSONV3_4_0 | ProjectSchemaJSONV3_5_0 | ProjectSchemaJSONV3_5_1 | ProjectSchemaJSONV3_6_0 | ProjectSchemaJSONV3_7_0 | ProjectSchemaJSONV3_8_0 | ProjectSchemaJSONV3_9_0 | ProjectSchemaJSONV3_10_0 | ProjectSchemaJSONV3_11_0 | ProjectSchemaJSONV3_12_0 | ProjectSchemaJSONV3_12_1 | ProjectSchemaJSONV3_12_2 | ProjectSchemaJSONV3_12_3 | ProjectSchemaJSONV3_13_0 | ProjectSchemaJSONV3_14_0 | ProjectSchemaJSONV3_15_0 | ProjectSchemaJSONV3_16_0 | ProjectSchemaJSONV3_17_0 | ProjectSchemaJSONV3_17_1 | ProjectSchemaJSONV3_18_0 | ProjectSchemaJSONV3_18_1 | ProjectSchemaJSONV3_18_2 | ProjectSchemaJSONV3_19_0 | ProjectSchemaJSONV3_20_0 | ProjectSchemaJSONV3_21_0 | ProjectSchemaJSONV3_22_0 | ProjectSchemaJSONV3_23_0 | ProjectSchemaJSONV3_24_0 | ProjectSchemaJSONV3_25_0 | ProjectSchemaJSONV3_26_0 | ProjectSchemaJSONV3_27_0 | ProjectSchemaJSONV3_28_0 | ProjectSchemaJSONV3_29_0 | ProjectSchemaJSONV3_30_0 | ProjectSchemaJSONV3_31_0 | ProjectSchemaJSONV3_32_0 | ProjectSchemaJSONV3_33_0 | ProjectSchemaJSONV3_34_0 | ProjectSchemaJSONV3_35_0 | ProjectSchemaJSONV3_36_0 | ProjectSchemaJSONV3_37_0 | ProjectSchemaJSONV3_38_0 | ProjectSchemaJSONV3_39_0 | ProjectSchemaJSONV3_40_0 | ProjectSchemaJSONV3_41_0 | ProjectSchemaJSONV3_42_0 | ProjectSchemaJSONV3_43_0 | ProjectSchemaJSONV3_44_0 | ProjectSchemaJSONV3_45_0 | ProjectSchemaJSONV3_46_0 | ProjectSchemaJSONV3_47_0 | ProjectSchemaJSONV3_48_0 | ProjectSchemaJSONV3_49_0 | ProjectSchemaJSONV3_50_0 | ProjectSchemaJSONV3_51_0 | ProjectSchemaJSONV3_52_0 | ProjectSchemaJSONV4_0_0 | ProjectSchemaJSON;
|
|
126
128
|
export declare const isProjectSchemaJSONV1_0_0: (projectSchema: AnyProjectSchemaJSON) => projectSchema is ProjectSchemaJSONV1_0_0;
|
|
127
129
|
export declare const isProjectSchemaJSONV3_0_0: (projectSchema: AnyProjectSchemaJSON) => projectSchema is ProjectSchemaJSONV3_0_0;
|
|
128
130
|
export declare const isProjectSchemaJSONV3_1_0: (projectSchema: AnyProjectSchemaJSON) => projectSchema is ProjectSchemaJSONV3_1_0;
|
|
@@ -183,5 +185,6 @@ export declare const isProjectSchemaJSONV3_48_0: (projectSchema: AnyProjectSchem
|
|
|
183
185
|
export declare const isProjectSchemaJSONV3_49_0: (projectSchema: AnyProjectSchemaJSON) => projectSchema is ProjectSchemaJSONV3_49_0;
|
|
184
186
|
export declare const isProjectSchemaJSONV3_50_0: (projectSchema: AnyProjectSchemaJSON) => projectSchema is ProjectSchemaJSONV3_50_0;
|
|
185
187
|
export declare const isProjectSchemaJSONV3_51_0: (projectSchema: AnyProjectSchemaJSON) => projectSchema is ProjectSchemaJSONV3_51_0;
|
|
188
|
+
export declare const isProjectSchemaJSONV3_52_0: (projectSchema: AnyProjectSchemaJSON) => projectSchema is ProjectSchemaJSONV3_52_0;
|
|
186
189
|
export declare const isLatestProjectSchemaJSON: (projectSchema: AnyProjectSchemaJSON) => projectSchema is ProjectSchemaJSON;
|
|
187
190
|
export declare const isProjectSchemaJSONV4_0_0: (projectSchema: AnyProjectSchemaJSON) => projectSchema is ProjectSchemaJSONV4_0_0;
|
|
@@ -71,5 +71,6 @@ export const isProjectSchemaJSONV3_48_0 = createVersionPredicate('3.48.0');
|
|
|
71
71
|
export const isProjectSchemaJSONV3_49_0 = createVersionPredicate('3.49.0');
|
|
72
72
|
export const isProjectSchemaJSONV3_50_0 = createVersionPredicate('3.50.0');
|
|
73
73
|
export const isProjectSchemaJSONV3_51_0 = createVersionPredicate('3.51.0');
|
|
74
|
-
export const
|
|
74
|
+
export const isProjectSchemaJSONV3_52_0 = createVersionPredicate('3.52.0');
|
|
75
|
+
export const isLatestProjectSchemaJSON = createVersionPredicate('3.52.0');
|
|
75
76
|
export const isProjectSchemaJSONV4_0_0 = createVersionPredicate('4.0.0');
|
|
@@ -130,7 +130,7 @@ export type DelegateResolverName = 'delegate';
|
|
|
130
130
|
/**
|
|
131
131
|
* Name of the resolver function.
|
|
132
132
|
*/
|
|
133
|
-
export type TakeshapeResolverName = 'takeshape:getUser' | 'takeshape:search' | 'takeshape:vectorSearch' | 'takeshape:queryApiIndex';
|
|
133
|
+
export type TakeshapeResolverName = 'takeshape:get' | 'takeshape:getUser' | 'takeshape:search' | 'takeshape:vectorSearch' | 'takeshape:queryApiIndex';
|
|
134
134
|
/**
|
|
135
135
|
* Name of the resolver function.
|
|
136
136
|
*/
|
|
@@ -275,7 +275,8 @@ export type CacheTriggerConfig = CacheScheduleTriggerConfig | CacheWebhookTrigge
|
|
|
275
275
|
*/
|
|
276
276
|
export type ShapeSchema = ShapeSchemaAllOf | ShapeSchemaExtends | ShapeSchemaOneOf | ShapeSchemaEnum | ObjectSchema | ShapeSchemaAny;
|
|
277
277
|
export type AgentAPI = AgentAPIChat | AgentAPIGenerate;
|
|
278
|
-
export type
|
|
278
|
+
export type MemoryLocations = AgentSessionMemoryLocation[];
|
|
279
|
+
export type AgentVariableStep = AgentVariableStepSessionMemory | AgentVariableStepGraphQLArg | AgentVariableStepStateOutput | AgentVariableStepPreviousStateOutput | AgentVariableStepStaticValue;
|
|
279
280
|
export type AgentVariableStepCondition = AgentVariableStepConditionNone | AgentVariableStepConditionSourceState;
|
|
280
281
|
export type Variables = AgentVariable[];
|
|
281
282
|
export type AgentExecution = AgentExecutionGraphQL | AgentExecutionGenerate | AgentExecutionChat;
|
|
@@ -330,6 +331,8 @@ export type StructuredOutputs = boolean;
|
|
|
330
331
|
* Enable OpenAI schema format. Must be enabled if `structuredOutputs` is enabled.
|
|
331
332
|
*/
|
|
332
333
|
export type EnableOpenAISchemaFormat = boolean;
|
|
334
|
+
export type AgentStateSessionMemoryLocation = AgentStateSessionMemoryLocationArtifact | AgentStateSessionMemoryLocationStaticValue;
|
|
335
|
+
export type AgentStateSessionMemory = AgentStateSessionMemoryLocation[];
|
|
333
336
|
export type GuardID = string;
|
|
334
337
|
/**
|
|
335
338
|
* The human-readable name of the Guard.
|
|
@@ -577,7 +580,7 @@ export interface ProjectSchemaJSON {
|
|
|
577
580
|
/**
|
|
578
581
|
* The version of the schema format your project is using. We increase the version as we make breaking changes to the schema format.
|
|
579
582
|
*/
|
|
580
|
-
schemaVersion: '3.
|
|
583
|
+
schemaVersion: '3.52.0';
|
|
581
584
|
/**
|
|
582
585
|
* The ID of the TakeShape project this schema belongs to.
|
|
583
586
|
*/
|
|
@@ -1637,6 +1640,7 @@ export interface AgentJSON {
|
|
|
1637
1640
|
description?: string;
|
|
1638
1641
|
systemPrompt?: string;
|
|
1639
1642
|
api: AgentAPI;
|
|
1643
|
+
memory?: AgentMemory;
|
|
1640
1644
|
start: AgentStart;
|
|
1641
1645
|
states: AgentStates;
|
|
1642
1646
|
guards?: AgentGuard[];
|
|
@@ -1655,6 +1659,16 @@ export interface AgentAPIGenerate {
|
|
|
1655
1659
|
type: 'generate';
|
|
1656
1660
|
arguments?: AgentAPIArgument[];
|
|
1657
1661
|
}
|
|
1662
|
+
export interface AgentMemory {
|
|
1663
|
+
sessionMemory: AgentSessionMemory;
|
|
1664
|
+
}
|
|
1665
|
+
export interface AgentSessionMemory {
|
|
1666
|
+
memoryLocations: MemoryLocations;
|
|
1667
|
+
}
|
|
1668
|
+
export interface AgentSessionMemoryLocation {
|
|
1669
|
+
key: string;
|
|
1670
|
+
shape: string;
|
|
1671
|
+
}
|
|
1658
1672
|
/**
|
|
1659
1673
|
* Configuration for the start of an agent's execution
|
|
1660
1674
|
*/
|
|
@@ -1711,6 +1725,7 @@ export interface AgentState {
|
|
|
1711
1725
|
name: string;
|
|
1712
1726
|
variables?: Variables;
|
|
1713
1727
|
execution: AgentExecution;
|
|
1728
|
+
sessionMemory?: AgentStateSessionMemory;
|
|
1714
1729
|
transition?: AgentTransitionStep[];
|
|
1715
1730
|
}
|
|
1716
1731
|
export interface AgentVariable {
|
|
@@ -1720,24 +1735,20 @@ export interface AgentVariable {
|
|
|
1720
1735
|
*/
|
|
1721
1736
|
steps: AgentVariableStep[];
|
|
1722
1737
|
}
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1738
|
+
export interface AgentVariableStepSessionMemory {
|
|
1739
|
+
type: 'sessionMemory';
|
|
1740
|
+
memoryKey: string;
|
|
1741
|
+
path?: string;
|
|
1742
|
+
}
|
|
1726
1743
|
export interface AgentVariableStepGraphQLArg {
|
|
1727
1744
|
type: 'graphqlArg';
|
|
1728
1745
|
argName: string;
|
|
1729
1746
|
}
|
|
1730
|
-
/**
|
|
1731
|
-
* An Agent Variable that provides the output of any previous state's execution.
|
|
1732
|
-
*/
|
|
1733
1747
|
export interface AgentVariableStepStateOutput {
|
|
1734
1748
|
type: 'stateOutput';
|
|
1735
1749
|
stateId: string;
|
|
1736
1750
|
path?: string;
|
|
1737
1751
|
}
|
|
1738
|
-
/**
|
|
1739
|
-
* An Agent Variable that provides the output of the previous state's execution.
|
|
1740
|
-
*/
|
|
1741
1752
|
export interface AgentVariableStepPreviousStateOutput {
|
|
1742
1753
|
type: 'previousStateOutput';
|
|
1743
1754
|
path?: string;
|
|
@@ -1781,6 +1792,7 @@ export interface AgentAIStateInputTemplate {
|
|
|
1781
1792
|
inputTemplate: string;
|
|
1782
1793
|
}
|
|
1783
1794
|
export interface AgentToolConfig {
|
|
1795
|
+
description?: string;
|
|
1784
1796
|
ref: string;
|
|
1785
1797
|
selectionSet?: string;
|
|
1786
1798
|
removePropertyKeyPatterns?: RemovePropertyKeyPatterns;
|
|
@@ -1818,6 +1830,16 @@ export interface AgentExecutionChat {
|
|
|
1818
1830
|
tools?: AgentToolConfig[];
|
|
1819
1831
|
options?: AgentGenerateOptions;
|
|
1820
1832
|
}
|
|
1833
|
+
export interface AgentStateSessionMemoryLocationArtifact {
|
|
1834
|
+
type: 'artifactValue';
|
|
1835
|
+
memoryKey: string;
|
|
1836
|
+
artifactPath?: string;
|
|
1837
|
+
}
|
|
1838
|
+
export interface AgentStateSessionMemoryLocationStaticValue {
|
|
1839
|
+
type: 'staticValue';
|
|
1840
|
+
memoryKey: string;
|
|
1841
|
+
value?: string;
|
|
1842
|
+
}
|
|
1821
1843
|
export interface AgentGuard {
|
|
1822
1844
|
guardId: GuardID;
|
|
1823
1845
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { migrateTo } from "../migration/index.js";
|
|
2
|
-
import { isProjectSchemaJSONV1_0_0, isProjectSchemaJSONV3_0_0, isProjectSchemaJSONV3_1_0, isProjectSchemaJSONV3_2_0, isProjectSchemaJSONV3_3_0, isProjectSchemaJSONV3_4_0, isProjectSchemaJSONV3_5_0, isProjectSchemaJSONV3_5_1, isProjectSchemaJSONV3_6_0, isProjectSchemaJSONV3_7_0, isProjectSchemaJSONV3_8_0, isProjectSchemaJSONV3_9_0, isProjectSchemaJSONV3_10_0, isProjectSchemaJSONV3_11_0, isProjectSchemaJSONV3_12_0, isProjectSchemaJSONV3_12_1, isProjectSchemaJSONV3_12_2, isProjectSchemaJSONV3_12_3, isProjectSchemaJSONV3_13_0, isProjectSchemaJSONV3_14_0, isProjectSchemaJSONV3_15_0, isProjectSchemaJSONV3_16_0, isProjectSchemaJSONV3_17_0, isProjectSchemaJSONV3_17_1, isProjectSchemaJSONV3_18_0, isProjectSchemaJSONV3_18_1, isProjectSchemaJSONV3_18_2, isProjectSchemaJSONV3_19_0, isProjectSchemaJSONV3_20_0, isProjectSchemaJSONV3_21_0, isProjectSchemaJSONV3_22_0, isProjectSchemaJSONV3_23_0, isProjectSchemaJSONV3_24_0, isProjectSchemaJSONV3_25_0, isProjectSchemaJSONV3_26_0, isProjectSchemaJSONV3_27_0, isProjectSchemaJSONV3_28_0, isProjectSchemaJSONV3_29_0, isProjectSchemaJSONV3_30_0, isProjectSchemaJSONV3_31_0, isProjectSchemaJSONV3_32_0, isProjectSchemaJSONV3_33_0, isProjectSchemaJSONV3_34_0, isProjectSchemaJSONV3_35_0, isProjectSchemaJSONV3_36_0, isProjectSchemaJSONV3_37_0, isProjectSchemaJSONV3_38_0, isProjectSchemaJSONV3_39_0, isProjectSchemaJSONV3_40_0, isProjectSchemaJSONV3_41_0, isProjectSchemaJSONV3_42_0, isProjectSchemaJSONV3_43_0, isProjectSchemaJSONV3_44_0, isProjectSchemaJSONV3_45_0, isProjectSchemaJSONV3_46_0, isProjectSchemaJSONV3_47_0, isProjectSchemaJSONV3_48_0, isProjectSchemaJSONV3_49_0, isProjectSchemaJSONV3_50_0, isProjectSchemaJSONV4_0_0, isLatestProjectSchemaJSON } from "./index.js";
|
|
2
|
+
import { isProjectSchemaJSONV1_0_0, isProjectSchemaJSONV3_0_0, isProjectSchemaJSONV3_1_0, isProjectSchemaJSONV3_2_0, isProjectSchemaJSONV3_3_0, isProjectSchemaJSONV3_4_0, isProjectSchemaJSONV3_5_0, isProjectSchemaJSONV3_5_1, isProjectSchemaJSONV3_6_0, isProjectSchemaJSONV3_7_0, isProjectSchemaJSONV3_8_0, isProjectSchemaJSONV3_9_0, isProjectSchemaJSONV3_10_0, isProjectSchemaJSONV3_11_0, isProjectSchemaJSONV3_12_0, isProjectSchemaJSONV3_12_1, isProjectSchemaJSONV3_12_2, isProjectSchemaJSONV3_12_3, isProjectSchemaJSONV3_13_0, isProjectSchemaJSONV3_14_0, isProjectSchemaJSONV3_15_0, isProjectSchemaJSONV3_16_0, isProjectSchemaJSONV3_17_0, isProjectSchemaJSONV3_17_1, isProjectSchemaJSONV3_18_0, isProjectSchemaJSONV3_18_1, isProjectSchemaJSONV3_18_2, isProjectSchemaJSONV3_19_0, isProjectSchemaJSONV3_20_0, isProjectSchemaJSONV3_21_0, isProjectSchemaJSONV3_22_0, isProjectSchemaJSONV3_23_0, isProjectSchemaJSONV3_24_0, isProjectSchemaJSONV3_25_0, isProjectSchemaJSONV3_26_0, isProjectSchemaJSONV3_27_0, isProjectSchemaJSONV3_28_0, isProjectSchemaJSONV3_29_0, isProjectSchemaJSONV3_30_0, isProjectSchemaJSONV3_31_0, isProjectSchemaJSONV3_32_0, isProjectSchemaJSONV3_33_0, isProjectSchemaJSONV3_34_0, isProjectSchemaJSONV3_35_0, isProjectSchemaJSONV3_36_0, isProjectSchemaJSONV3_37_0, isProjectSchemaJSONV3_38_0, isProjectSchemaJSONV3_39_0, isProjectSchemaJSONV3_40_0, isProjectSchemaJSONV3_41_0, isProjectSchemaJSONV3_42_0, isProjectSchemaJSONV3_43_0, isProjectSchemaJSONV3_44_0, isProjectSchemaJSONV3_45_0, isProjectSchemaJSONV3_46_0, isProjectSchemaJSONV3_47_0, isProjectSchemaJSONV3_48_0, isProjectSchemaJSONV3_49_0, isProjectSchemaJSONV3_50_0, isProjectSchemaJSONV3_51_0, isProjectSchemaJSONV4_0_0, isLatestProjectSchemaJSON } from "./index.js";
|
|
3
3
|
export async function migrateToLatestProjectSchema(context, projectSchema) {
|
|
4
4
|
if (isLatestProjectSchemaJSON(projectSchema)) {
|
|
5
5
|
return projectSchema;
|
|
@@ -181,6 +181,9 @@ export async function migrateToLatestProjectSchema(context, projectSchema) {
|
|
|
181
181
|
if (isProjectSchemaJSONV3_50_0(projectSchema)) {
|
|
182
182
|
projectSchema = await migrateTo['v3.51.0'](context, projectSchema);
|
|
183
183
|
}
|
|
184
|
+
if (isProjectSchemaJSONV3_51_0(projectSchema)) {
|
|
185
|
+
projectSchema = await migrateTo['v3.52.0'](context, projectSchema);
|
|
186
|
+
}
|
|
184
187
|
if (isProjectSchemaJSONV4_0_0(projectSchema)) {
|
|
185
188
|
throw new Error('You are using an unreleased schema version. Migration is not possible');
|
|
186
189
|
}
|
|
@@ -263,7 +263,8 @@ export type CacheTriggerConfigV3_48_0 = CacheScheduleTriggerConfigV3_48_0 | Cach
|
|
|
263
263
|
*/
|
|
264
264
|
export type ShapeSchemaV3_48_0 = ShapeSchemaAllOfV3_48_0 | ShapeSchemaExtendsV3_48_0 | ShapeSchemaOneOfV3_48_0 | ShapeSchemaEnumV3_48_0 | ObjectSchemaV3_48_0 | ShapeSchemaAnyV3_48_0;
|
|
265
265
|
export type AgentAPIV3_48_0 = AgentAPIChatV3_48_0 | AgentAPIGenerateV3_48_0;
|
|
266
|
-
export type
|
|
266
|
+
export type MemoryLocationsV3_48_0 = AgentSessionMemoryLocationV3_48_0[];
|
|
267
|
+
export type AgentVariableStepV3_48_0 = AgentVariableStepSessionMemoryV3_48_0 | AgentVariableStepGraphQLArgV3_48_0 | AgentVariableStepStateOutputV3_48_0 | AgentVariableStepPreviousStateOutputV3_48_0 | AgentVariableStepStaticValueV3_48_0;
|
|
267
268
|
export type AgentVariableStepConditionV3_48_0 = AgentVariableStepConditionNoneV3_48_0 | AgentVariableStepConditionSourceStateV3_48_0;
|
|
268
269
|
export type VariablesV3_48_0 = AgentVariableV3_48_0[];
|
|
269
270
|
export type AgentExecutionV3_48_0 = AgentExecutionGraphQLV3_48_0 | AgentExecutionGenerateV3_48_0 | AgentExecutionChatV3_48_0;
|
|
@@ -318,6 +319,8 @@ export type StructuredOutputsV3_48_0 = boolean;
|
|
|
318
319
|
* Enable OpenAI schema format. Must be enabled if `structuredOutputs` is enabled.
|
|
319
320
|
*/
|
|
320
321
|
export type EnableOpenAISchemaFormatV3_48_0 = boolean;
|
|
322
|
+
export type AgentStateSessionMemoryLocationV3_48_0 = AgentStateSessionMemoryLocationArtifactV3_48_0 | AgentStateSessionMemoryLocationStaticValueV3_48_0;
|
|
323
|
+
export type AgentStateSessionMemoryV3_48_0 = AgentStateSessionMemoryLocationV3_48_0[];
|
|
321
324
|
export type GuardIDV3_48_0 = string;
|
|
322
325
|
/**
|
|
323
326
|
* The human-readable name of the Guard.
|
|
@@ -1585,6 +1588,7 @@ export interface AgentJSONV3_48_0 {
|
|
|
1585
1588
|
description?: string;
|
|
1586
1589
|
systemPrompt?: string;
|
|
1587
1590
|
api: AgentAPIV3_48_0;
|
|
1591
|
+
memory?: AgentMemoryV3_48_0;
|
|
1588
1592
|
start: AgentStartV3_48_0;
|
|
1589
1593
|
states: AgentStatesV3_48_0;
|
|
1590
1594
|
guards?: AgentGuardV3_48_0[];
|
|
@@ -1603,6 +1607,16 @@ export interface AgentAPIGenerateV3_48_0 {
|
|
|
1603
1607
|
type: 'generate';
|
|
1604
1608
|
arguments?: AgentAPIArgumentV3_48_0[];
|
|
1605
1609
|
}
|
|
1610
|
+
export interface AgentMemoryV3_48_0 {
|
|
1611
|
+
sessionMemory: AgentSessionMemoryV3_48_0;
|
|
1612
|
+
}
|
|
1613
|
+
export interface AgentSessionMemoryV3_48_0 {
|
|
1614
|
+
memoryLocations: MemoryLocationsV3_48_0;
|
|
1615
|
+
}
|
|
1616
|
+
export interface AgentSessionMemoryLocationV3_48_0 {
|
|
1617
|
+
key: string;
|
|
1618
|
+
shape: string;
|
|
1619
|
+
}
|
|
1606
1620
|
/**
|
|
1607
1621
|
* Configuration for the start of an agent's execution
|
|
1608
1622
|
*/
|
|
@@ -1659,6 +1673,7 @@ export interface AgentStateV3_48_0 {
|
|
|
1659
1673
|
name: string;
|
|
1660
1674
|
variables?: VariablesV3_48_0;
|
|
1661
1675
|
execution: AgentExecutionV3_48_0;
|
|
1676
|
+
sessionMemory?: AgentStateSessionMemoryV3_48_0;
|
|
1662
1677
|
transition?: AgentTransitionStepV3_48_0[];
|
|
1663
1678
|
}
|
|
1664
1679
|
export interface AgentVariableV3_48_0 {
|
|
@@ -1668,24 +1683,20 @@ export interface AgentVariableV3_48_0 {
|
|
|
1668
1683
|
*/
|
|
1669
1684
|
steps: AgentVariableStepV3_48_0[];
|
|
1670
1685
|
}
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1686
|
+
export interface AgentVariableStepSessionMemoryV3_48_0 {
|
|
1687
|
+
type: 'sessionMemory';
|
|
1688
|
+
memoryKey: string;
|
|
1689
|
+
path?: string;
|
|
1690
|
+
}
|
|
1674
1691
|
export interface AgentVariableStepGraphQLArgV3_48_0 {
|
|
1675
1692
|
type: 'graphqlArg';
|
|
1676
1693
|
argName: string;
|
|
1677
1694
|
}
|
|
1678
|
-
/**
|
|
1679
|
-
* An Agent Variable that provides the output of any previous state's execution.
|
|
1680
|
-
*/
|
|
1681
1695
|
export interface AgentVariableStepStateOutputV3_48_0 {
|
|
1682
1696
|
type: 'stateOutput';
|
|
1683
1697
|
stateId: string;
|
|
1684
1698
|
path?: string;
|
|
1685
1699
|
}
|
|
1686
|
-
/**
|
|
1687
|
-
* An Agent Variable that provides the output of the previous state's execution.
|
|
1688
|
-
*/
|
|
1689
1700
|
export interface AgentVariableStepPreviousStateOutputV3_48_0 {
|
|
1690
1701
|
type: 'previousStateOutput';
|
|
1691
1702
|
path?: string;
|
|
@@ -1729,6 +1740,7 @@ export interface AgentAIStateInputTemplateV3_48_0 {
|
|
|
1729
1740
|
inputTemplate: string;
|
|
1730
1741
|
}
|
|
1731
1742
|
export interface AgentToolConfigV3_48_0 {
|
|
1743
|
+
description?: string;
|
|
1732
1744
|
ref: string;
|
|
1733
1745
|
selectionSet?: string;
|
|
1734
1746
|
removePropertyKeyPatterns?: RemovePropertyKeyPatternsV3_48_0;
|
|
@@ -1766,6 +1778,16 @@ export interface AgentExecutionChatV3_48_0 {
|
|
|
1766
1778
|
tools?: AgentToolConfigV3_48_0[];
|
|
1767
1779
|
options?: AgentGenerateOptionsV3_48_0;
|
|
1768
1780
|
}
|
|
1781
|
+
export interface AgentStateSessionMemoryLocationArtifactV3_48_0 {
|
|
1782
|
+
type: 'artifactValue';
|
|
1783
|
+
memoryKey: string;
|
|
1784
|
+
artifactPath?: string;
|
|
1785
|
+
}
|
|
1786
|
+
export interface AgentStateSessionMemoryLocationStaticValueV3_48_0 {
|
|
1787
|
+
type: 'staticValue';
|
|
1788
|
+
memoryKey: string;
|
|
1789
|
+
value?: string;
|
|
1790
|
+
}
|
|
1769
1791
|
export interface AgentGuardV3_48_0 {
|
|
1770
1792
|
guardId: GuardIDV3_48_0;
|
|
1771
1793
|
}
|
|
@@ -263,7 +263,8 @@ export type CacheTriggerConfigV3_49_0 = CacheScheduleTriggerConfigV3_49_0 | Cach
|
|
|
263
263
|
*/
|
|
264
264
|
export type ShapeSchemaV3_49_0 = ShapeSchemaAllOfV3_49_0 | ShapeSchemaExtendsV3_49_0 | ShapeSchemaOneOfV3_49_0 | ShapeSchemaEnumV3_49_0 | ObjectSchemaV3_49_0 | ShapeSchemaAnyV3_49_0;
|
|
265
265
|
export type AgentAPIV3_49_0 = AgentAPIChatV3_49_0 | AgentAPIGenerateV3_49_0;
|
|
266
|
-
export type
|
|
266
|
+
export type MemoryLocationsV3_49_0 = AgentSessionMemoryLocationV3_49_0[];
|
|
267
|
+
export type AgentVariableStepV3_49_0 = AgentVariableStepSessionMemoryV3_49_0 | AgentVariableStepGraphQLArgV3_49_0 | AgentVariableStepStateOutputV3_49_0 | AgentVariableStepPreviousStateOutputV3_49_0 | AgentVariableStepStaticValueV3_49_0;
|
|
267
268
|
export type AgentVariableStepConditionV3_49_0 = AgentVariableStepConditionNoneV3_49_0 | AgentVariableStepConditionSourceStateV3_49_0;
|
|
268
269
|
export type VariablesV3_49_0 = AgentVariableV3_49_0[];
|
|
269
270
|
export type AgentExecutionV3_49_0 = AgentExecutionGraphQLV3_49_0 | AgentExecutionGenerateV3_49_0 | AgentExecutionChatV3_49_0;
|
|
@@ -318,6 +319,8 @@ export type StructuredOutputsV3_49_0 = boolean;
|
|
|
318
319
|
* Enable OpenAI schema format. Must be enabled if `structuredOutputs` is enabled.
|
|
319
320
|
*/
|
|
320
321
|
export type EnableOpenAISchemaFormatV3_49_0 = boolean;
|
|
322
|
+
export type AgentStateSessionMemoryLocationV3_49_0 = AgentStateSessionMemoryLocationArtifactV3_49_0 | AgentStateSessionMemoryLocationStaticValueV3_49_0;
|
|
323
|
+
export type AgentStateSessionMemoryV3_49_0 = AgentStateSessionMemoryLocationV3_49_0[];
|
|
321
324
|
export type GuardIDV3_49_0 = string;
|
|
322
325
|
/**
|
|
323
326
|
* The human-readable name of the Guard.
|
|
@@ -1585,6 +1588,7 @@ export interface AgentJSONV3_49_0 {
|
|
|
1585
1588
|
description?: string;
|
|
1586
1589
|
systemPrompt?: string;
|
|
1587
1590
|
api: AgentAPIV3_49_0;
|
|
1591
|
+
memory?: AgentMemoryV3_49_0;
|
|
1588
1592
|
start: AgentStartV3_49_0;
|
|
1589
1593
|
states: AgentStatesV3_49_0;
|
|
1590
1594
|
guards?: AgentGuardV3_49_0[];
|
|
@@ -1603,6 +1607,16 @@ export interface AgentAPIGenerateV3_49_0 {
|
|
|
1603
1607
|
type: 'generate';
|
|
1604
1608
|
arguments?: AgentAPIArgumentV3_49_0[];
|
|
1605
1609
|
}
|
|
1610
|
+
export interface AgentMemoryV3_49_0 {
|
|
1611
|
+
sessionMemory: AgentSessionMemoryV3_49_0;
|
|
1612
|
+
}
|
|
1613
|
+
export interface AgentSessionMemoryV3_49_0 {
|
|
1614
|
+
memoryLocations: MemoryLocationsV3_49_0;
|
|
1615
|
+
}
|
|
1616
|
+
export interface AgentSessionMemoryLocationV3_49_0 {
|
|
1617
|
+
key: string;
|
|
1618
|
+
shape: string;
|
|
1619
|
+
}
|
|
1606
1620
|
/**
|
|
1607
1621
|
* Configuration for the start of an agent's execution
|
|
1608
1622
|
*/
|
|
@@ -1659,6 +1673,7 @@ export interface AgentStateV3_49_0 {
|
|
|
1659
1673
|
name: string;
|
|
1660
1674
|
variables?: VariablesV3_49_0;
|
|
1661
1675
|
execution: AgentExecutionV3_49_0;
|
|
1676
|
+
sessionMemory?: AgentStateSessionMemoryV3_49_0;
|
|
1662
1677
|
transition?: AgentTransitionStepV3_49_0[];
|
|
1663
1678
|
}
|
|
1664
1679
|
export interface AgentVariableV3_49_0 {
|
|
@@ -1668,24 +1683,20 @@ export interface AgentVariableV3_49_0 {
|
|
|
1668
1683
|
*/
|
|
1669
1684
|
steps: AgentVariableStepV3_49_0[];
|
|
1670
1685
|
}
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1686
|
+
export interface AgentVariableStepSessionMemoryV3_49_0 {
|
|
1687
|
+
type: 'sessionMemory';
|
|
1688
|
+
memoryKey: string;
|
|
1689
|
+
path?: string;
|
|
1690
|
+
}
|
|
1674
1691
|
export interface AgentVariableStepGraphQLArgV3_49_0 {
|
|
1675
1692
|
type: 'graphqlArg';
|
|
1676
1693
|
argName: string;
|
|
1677
1694
|
}
|
|
1678
|
-
/**
|
|
1679
|
-
* An Agent Variable that provides the output of any previous state's execution.
|
|
1680
|
-
*/
|
|
1681
1695
|
export interface AgentVariableStepStateOutputV3_49_0 {
|
|
1682
1696
|
type: 'stateOutput';
|
|
1683
1697
|
stateId: string;
|
|
1684
1698
|
path?: string;
|
|
1685
1699
|
}
|
|
1686
|
-
/**
|
|
1687
|
-
* An Agent Variable that provides the output of the previous state's execution.
|
|
1688
|
-
*/
|
|
1689
1700
|
export interface AgentVariableStepPreviousStateOutputV3_49_0 {
|
|
1690
1701
|
type: 'previousStateOutput';
|
|
1691
1702
|
path?: string;
|
|
@@ -1729,6 +1740,7 @@ export interface AgentAIStateInputTemplateV3_49_0 {
|
|
|
1729
1740
|
inputTemplate: string;
|
|
1730
1741
|
}
|
|
1731
1742
|
export interface AgentToolConfigV3_49_0 {
|
|
1743
|
+
description?: string;
|
|
1732
1744
|
ref: string;
|
|
1733
1745
|
selectionSet?: string;
|
|
1734
1746
|
removePropertyKeyPatterns?: RemovePropertyKeyPatternsV3_49_0;
|
|
@@ -1766,6 +1778,16 @@ export interface AgentExecutionChatV3_49_0 {
|
|
|
1766
1778
|
tools?: AgentToolConfigV3_49_0[];
|
|
1767
1779
|
options?: AgentGenerateOptionsV3_49_0;
|
|
1768
1780
|
}
|
|
1781
|
+
export interface AgentStateSessionMemoryLocationArtifactV3_49_0 {
|
|
1782
|
+
type: 'artifactValue';
|
|
1783
|
+
memoryKey: string;
|
|
1784
|
+
artifactPath?: string;
|
|
1785
|
+
}
|
|
1786
|
+
export interface AgentStateSessionMemoryLocationStaticValueV3_49_0 {
|
|
1787
|
+
type: 'staticValue';
|
|
1788
|
+
memoryKey: string;
|
|
1789
|
+
value?: string;
|
|
1790
|
+
}
|
|
1769
1791
|
export interface AgentGuardV3_49_0 {
|
|
1770
1792
|
guardId: GuardIDV3_49_0;
|
|
1771
1793
|
}
|
|
@@ -275,7 +275,8 @@ export type CacheTriggerConfigV3_50_0 = CacheScheduleTriggerConfigV3_50_0 | Cach
|
|
|
275
275
|
*/
|
|
276
276
|
export type ShapeSchemaV3_50_0 = ShapeSchemaAllOfV3_50_0 | ShapeSchemaExtendsV3_50_0 | ShapeSchemaOneOfV3_50_0 | ShapeSchemaEnumV3_50_0 | ObjectSchemaV3_50_0 | ShapeSchemaAnyV3_50_0;
|
|
277
277
|
export type AgentAPIV3_50_0 = AgentAPIChatV3_50_0 | AgentAPIGenerateV3_50_0;
|
|
278
|
-
export type
|
|
278
|
+
export type MemoryLocationsV3_50_0 = AgentSessionMemoryLocationV3_50_0[];
|
|
279
|
+
export type AgentVariableStepV3_50_0 = AgentVariableStepSessionMemoryV3_50_0 | AgentVariableStepGraphQLArgV3_50_0 | AgentVariableStepStateOutputV3_50_0 | AgentVariableStepPreviousStateOutputV3_50_0 | AgentVariableStepStaticValueV3_50_0;
|
|
279
280
|
export type AgentVariableStepConditionV3_50_0 = AgentVariableStepConditionNoneV3_50_0 | AgentVariableStepConditionSourceStateV3_50_0;
|
|
280
281
|
export type VariablesV3_50_0 = AgentVariableV3_50_0[];
|
|
281
282
|
export type AgentExecutionV3_50_0 = AgentExecutionGraphQLV3_50_0 | AgentExecutionGenerateV3_50_0 | AgentExecutionChatV3_50_0;
|
|
@@ -330,6 +331,8 @@ export type StructuredOutputsV3_50_0 = boolean;
|
|
|
330
331
|
* Enable OpenAI schema format. Must be enabled if `structuredOutputs` is enabled.
|
|
331
332
|
*/
|
|
332
333
|
export type EnableOpenAISchemaFormatV3_50_0 = boolean;
|
|
334
|
+
export type AgentStateSessionMemoryLocationV3_50_0 = AgentStateSessionMemoryLocationArtifactV3_50_0 | AgentStateSessionMemoryLocationStaticValueV3_50_0;
|
|
335
|
+
export type AgentStateSessionMemoryV3_50_0 = AgentStateSessionMemoryLocationV3_50_0[];
|
|
333
336
|
export type GuardIDV3_50_0 = string;
|
|
334
337
|
/**
|
|
335
338
|
* The human-readable name of the Guard.
|
|
@@ -1637,6 +1640,7 @@ export interface AgentJSONV3_50_0 {
|
|
|
1637
1640
|
description?: string;
|
|
1638
1641
|
systemPrompt?: string;
|
|
1639
1642
|
api: AgentAPIV3_50_0;
|
|
1643
|
+
memory?: AgentMemoryV3_50_0;
|
|
1640
1644
|
start: AgentStartV3_50_0;
|
|
1641
1645
|
states: AgentStatesV3_50_0;
|
|
1642
1646
|
guards?: AgentGuardV3_50_0[];
|
|
@@ -1655,6 +1659,16 @@ export interface AgentAPIGenerateV3_50_0 {
|
|
|
1655
1659
|
type: 'generate';
|
|
1656
1660
|
arguments?: AgentAPIArgumentV3_50_0[];
|
|
1657
1661
|
}
|
|
1662
|
+
export interface AgentMemoryV3_50_0 {
|
|
1663
|
+
sessionMemory: AgentSessionMemoryV3_50_0;
|
|
1664
|
+
}
|
|
1665
|
+
export interface AgentSessionMemoryV3_50_0 {
|
|
1666
|
+
memoryLocations: MemoryLocationsV3_50_0;
|
|
1667
|
+
}
|
|
1668
|
+
export interface AgentSessionMemoryLocationV3_50_0 {
|
|
1669
|
+
key: string;
|
|
1670
|
+
shape: string;
|
|
1671
|
+
}
|
|
1658
1672
|
/**
|
|
1659
1673
|
* Configuration for the start of an agent's execution
|
|
1660
1674
|
*/
|
|
@@ -1711,6 +1725,7 @@ export interface AgentStateV3_50_0 {
|
|
|
1711
1725
|
name: string;
|
|
1712
1726
|
variables?: VariablesV3_50_0;
|
|
1713
1727
|
execution: AgentExecutionV3_50_0;
|
|
1728
|
+
sessionMemory?: AgentStateSessionMemoryV3_50_0;
|
|
1714
1729
|
transition?: AgentTransitionStepV3_50_0[];
|
|
1715
1730
|
}
|
|
1716
1731
|
export interface AgentVariableV3_50_0 {
|
|
@@ -1720,24 +1735,20 @@ export interface AgentVariableV3_50_0 {
|
|
|
1720
1735
|
*/
|
|
1721
1736
|
steps: AgentVariableStepV3_50_0[];
|
|
1722
1737
|
}
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1738
|
+
export interface AgentVariableStepSessionMemoryV3_50_0 {
|
|
1739
|
+
type: 'sessionMemory';
|
|
1740
|
+
memoryKey: string;
|
|
1741
|
+
path?: string;
|
|
1742
|
+
}
|
|
1726
1743
|
export interface AgentVariableStepGraphQLArgV3_50_0 {
|
|
1727
1744
|
type: 'graphqlArg';
|
|
1728
1745
|
argName: string;
|
|
1729
1746
|
}
|
|
1730
|
-
/**
|
|
1731
|
-
* An Agent Variable that provides the output of any previous state's execution.
|
|
1732
|
-
*/
|
|
1733
1747
|
export interface AgentVariableStepStateOutputV3_50_0 {
|
|
1734
1748
|
type: 'stateOutput';
|
|
1735
1749
|
stateId: string;
|
|
1736
1750
|
path?: string;
|
|
1737
1751
|
}
|
|
1738
|
-
/**
|
|
1739
|
-
* An Agent Variable that provides the output of the previous state's execution.
|
|
1740
|
-
*/
|
|
1741
1752
|
export interface AgentVariableStepPreviousStateOutputV3_50_0 {
|
|
1742
1753
|
type: 'previousStateOutput';
|
|
1743
1754
|
path?: string;
|
|
@@ -1781,6 +1792,7 @@ export interface AgentAIStateInputTemplateV3_50_0 {
|
|
|
1781
1792
|
inputTemplate: string;
|
|
1782
1793
|
}
|
|
1783
1794
|
export interface AgentToolConfigV3_50_0 {
|
|
1795
|
+
description?: string;
|
|
1784
1796
|
ref: string;
|
|
1785
1797
|
selectionSet?: string;
|
|
1786
1798
|
removePropertyKeyPatterns?: RemovePropertyKeyPatternsV3_50_0;
|
|
@@ -1818,6 +1830,16 @@ export interface AgentExecutionChatV3_50_0 {
|
|
|
1818
1830
|
tools?: AgentToolConfigV3_50_0[];
|
|
1819
1831
|
options?: AgentGenerateOptionsV3_50_0;
|
|
1820
1832
|
}
|
|
1833
|
+
export interface AgentStateSessionMemoryLocationArtifactV3_50_0 {
|
|
1834
|
+
type: 'artifactValue';
|
|
1835
|
+
memoryKey: string;
|
|
1836
|
+
artifactPath?: string;
|
|
1837
|
+
}
|
|
1838
|
+
export interface AgentStateSessionMemoryLocationStaticValueV3_50_0 {
|
|
1839
|
+
type: 'staticValue';
|
|
1840
|
+
memoryKey: string;
|
|
1841
|
+
value?: string;
|
|
1842
|
+
}
|
|
1821
1843
|
export interface AgentGuardV3_50_0 {
|
|
1822
1844
|
guardId: GuardIDV3_50_0;
|
|
1823
1845
|
}
|