@takeshape/schema 11.98.5 → 11.99.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/agents.d.ts +13 -7
- package/dist/agents.js +78 -65
- package/dist/builtin-schema.js +12 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/models/agent.d.ts +3 -0
- package/dist/models/agent.js +29 -0
- package/dist/models/project-schema.d.ts +17 -0
- package/dist/models/project-schema.js +112 -0
- package/dist/models/query.d.ts +2 -8
- package/dist/models/query.js +16 -4
- package/dist/models/runtime-schema.d.ts +3 -7
- package/dist/models/runtime-schema.js +9 -86
- package/dist/models/shape.d.ts +2 -10
- package/dist/models/shape.js +7 -4
- package/dist/models/types.d.ts +28 -4
- package/dist/models/user-schema.d.ts +7 -0
- package/dist/models/user-schema.js +9 -0
- package/dist/project-schema/latest.d.ts +33 -38
- package/dist/project-schema/v3.48.0.d.ts +33 -38
- package/dist/project-schema/v3.49.0.d.ts +33 -38
- package/dist/project-schema/v3.50.0.d.ts +33 -38
- package/dist/project-schema/v3.51.0.d.ts +33 -38
- package/dist/project-schema/v3.52.0.d.ts +33 -38
- package/dist/project-schema/v3.53.0.d.ts +33 -38
- package/dist/project-schema/v3.54.0.d.ts +33 -38
- package/dist/project-schema/v3.55.0.d.ts +33 -38
- package/dist/resolvers/takeshape/assets/asset-image-params.d.ts +1 -1
- package/dist/schema-util.d.ts +5 -4
- package/dist/schema-util.js +43 -3
- package/dist/schemas/project-schema/experimental.json +101 -131
- package/dist/util/mcp.d.ts +1 -0
- package/dist/util/mcp.js +1 -1
- package/dist/validate/ai.d.ts +6 -0
- package/dist/validate/ai.js +183 -0
- package/dist/validate/types.d.ts +1 -0
- package/dist/validate/types.js +1 -0
- package/dist/validate/util.d.ts +3 -0
- package/dist/validate/util.js +28 -0
- package/dist/validate/validate.d.ts +1 -0
- package/dist/validate/validate.js +14 -164
- package/examples/latest/agent-schema.json +24 -10
- package/examples/source/agent-schema.json +23 -9
- package/package.json +5 -5
package/dist/models/types.d.ts
CHANGED
|
@@ -1,8 +1,32 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
3
|
-
|
|
4
|
-
export interface ReferenceResolver {
|
|
1
|
+
import type { AgentJSON, ObjectSchema, ProjectSchemaJSON, PropertySchema, QueryJSON, ShapeJSON } from '../project-schema/index.ts';
|
|
2
|
+
import type { RefItem } from '../refs.ts';
|
|
3
|
+
export interface ProjectSchema {
|
|
5
4
|
getShape(shapeRef: string): Shape | undefined;
|
|
6
5
|
getQuery(queryRef: string): Query | undefined;
|
|
6
|
+
getLocalQueries(): Query[];
|
|
7
|
+
getLocalMutations(): Query[];
|
|
7
8
|
dereferenceSchema(propertySchema: PropertySchema): PropertySchema;
|
|
9
|
+
getAgent(name: string): Agent | undefined;
|
|
10
|
+
getAgents(): Agent[];
|
|
11
|
+
json: ProjectSchemaJSON;
|
|
12
|
+
}
|
|
13
|
+
export interface Shape {
|
|
14
|
+
name: string;
|
|
15
|
+
ref: string;
|
|
16
|
+
refItem: RefItem;
|
|
17
|
+
json: ShapeJSON;
|
|
18
|
+
getObjectSchema(): ObjectSchema | undefined;
|
|
19
|
+
}
|
|
20
|
+
export interface Query {
|
|
21
|
+
name: string;
|
|
22
|
+
type: 'query' | 'mutation';
|
|
23
|
+
ref: string;
|
|
24
|
+
argsSchema: ObjectSchema | undefined;
|
|
25
|
+
json: QueryJSON;
|
|
26
|
+
}
|
|
27
|
+
export interface Agent {
|
|
28
|
+
name: string;
|
|
29
|
+
json: AgentJSON;
|
|
30
|
+
getQueries(): Query[];
|
|
31
|
+
getMutations(): Query[];
|
|
8
32
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ProjectSchemaJSON } from '../project-schema/index.ts';
|
|
2
|
+
import type { ServiceLayers } from '../types/types.ts';
|
|
3
|
+
import { ProjectSchemaImpl } from './project-schema.ts';
|
|
4
|
+
export declare class UserSchema extends ProjectSchemaImpl {
|
|
5
|
+
private constructor();
|
|
6
|
+
static fromJson(runtimeSchema: ProjectSchemaJSON, layers: ServiceLayers): UserSchema;
|
|
7
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ProjectSchemaImpl } from "./project-schema.js";
|
|
2
|
+
export class UserSchema extends ProjectSchemaImpl {
|
|
3
|
+
constructor(userSchema, layers = {}) {
|
|
4
|
+
super(userSchema, layers);
|
|
5
|
+
}
|
|
6
|
+
static fromJson(runtimeSchema, layers) {
|
|
7
|
+
return new UserSchema(runtimeSchema, layers);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
@@ -287,9 +287,9 @@ export type CacheTriggerConfig = CacheScheduleTriggerConfig | CacheWebhookTrigge
|
|
|
287
287
|
* via the `definition` "shapeSchema".
|
|
288
288
|
*/
|
|
289
289
|
export type ShapeSchema = ShapeSchemaAllOf | ShapeSchemaExtends | ShapeSchemaOneOf | ShapeSchemaEnum | ObjectSchema | ShapeSchemaAny;
|
|
290
|
-
export type
|
|
290
|
+
export type AgentAPIInput = AgentAPIMutationInput;
|
|
291
291
|
export type InteractionTimeoutMilliseconds = number;
|
|
292
|
-
export type
|
|
292
|
+
export type AgentStateSessionMemory = AgentStateSessionMemoryAssignment[];
|
|
293
293
|
export type Variables = AgentVariable[];
|
|
294
294
|
export type AgentExecution = AgentExecutionGraphQL | AgentExecutionGenerate | AgentExecutionChat;
|
|
295
295
|
export type AgentAIStateInput = AgentAIStateInputArgument | AgentAIStateInputTemplate;
|
|
@@ -360,8 +360,11 @@ export type RemovePropertyKeyPatterns = MinimatchPattern[];
|
|
|
360
360
|
* Remove Markdown formatting from the LLM response
|
|
361
361
|
*/
|
|
362
362
|
export type StripMarkdown = boolean;
|
|
363
|
-
|
|
364
|
-
|
|
363
|
+
/**
|
|
364
|
+
* These steps are evaluated in order until a destination is found.
|
|
365
|
+
*/
|
|
366
|
+
export type AgentTransition = AgentTransitionImmediate | AgentTransitionSuspend;
|
|
367
|
+
export type AgentStateSessionMemory1 = AgentStateSessionMemoryAssignment1[];
|
|
365
368
|
export type GuardID = string;
|
|
366
369
|
export type Variables1 = AgentVariable[];
|
|
367
370
|
export type HistoryStrategyTransform = HistoryStrategyTransformNone | HistoryStrategyTransformReplace | HistoryStrategyTransformSummarize;
|
|
@@ -1770,21 +1773,14 @@ export interface AgentJSON {
|
|
|
1770
1773
|
guards?: AgentGuard[];
|
|
1771
1774
|
historyStrategies?: HistoryStrategyMap;
|
|
1772
1775
|
}
|
|
1773
|
-
export interface
|
|
1774
|
-
|
|
1775
|
-
interactionTimeout?: InteractionTimeoutMilliseconds;
|
|
1776
|
-
arguments?: AgentAPIArgument[];
|
|
1777
|
-
}
|
|
1778
|
-
export interface AgentAPIArgument {
|
|
1779
|
-
argName: string;
|
|
1780
|
-
argDescription?: string;
|
|
1781
|
-
argType: 'boolean' | 'integer' | 'number' | 'string' | 'sessionId';
|
|
1782
|
-
required?: boolean;
|
|
1776
|
+
export interface AgentAPI {
|
|
1777
|
+
inputs: AgentAPIInput[];
|
|
1783
1778
|
}
|
|
1784
|
-
export interface
|
|
1785
|
-
type: '
|
|
1786
|
-
|
|
1787
|
-
|
|
1779
|
+
export interface AgentAPIMutationInput {
|
|
1780
|
+
type: 'mutation';
|
|
1781
|
+
name: string;
|
|
1782
|
+
args: string;
|
|
1783
|
+
interactionTimeout?: InteractionTimeoutMilliseconds;
|
|
1788
1784
|
}
|
|
1789
1785
|
export interface AgentMemory {
|
|
1790
1786
|
sessionMemory: AgentSessionMemory;
|
|
@@ -1796,18 +1792,21 @@ export interface AgentSessionMemory {
|
|
|
1796
1792
|
* Configuration for the start of an agent's execution
|
|
1797
1793
|
*/
|
|
1798
1794
|
export interface AgentStart {
|
|
1799
|
-
transition:
|
|
1795
|
+
transition: AgentTransitionSuspend[];
|
|
1800
1796
|
}
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
*/
|
|
1804
|
-
export interface AgentTransitionStep {
|
|
1797
|
+
export interface AgentTransitionSuspend {
|
|
1798
|
+
type: 'suspend';
|
|
1805
1799
|
destination: string;
|
|
1806
|
-
|
|
1800
|
+
input: string;
|
|
1807
1801
|
condition?: string;
|
|
1808
1802
|
limit?: number;
|
|
1803
|
+
sessionMemory?: AgentStateSessionMemory;
|
|
1809
1804
|
historyStrategy?: string;
|
|
1810
1805
|
}
|
|
1806
|
+
export interface AgentStateSessionMemoryAssignment {
|
|
1807
|
+
memoryPath?: string;
|
|
1808
|
+
expression: string;
|
|
1809
|
+
}
|
|
1811
1810
|
/**
|
|
1812
1811
|
* States that are traversed during the execution of an agent.
|
|
1813
1812
|
*/
|
|
@@ -1824,8 +1823,7 @@ export interface AgentState {
|
|
|
1824
1823
|
name: string;
|
|
1825
1824
|
variables?: Variables;
|
|
1826
1825
|
execution: AgentExecution;
|
|
1827
|
-
|
|
1828
|
-
transition?: AgentTransitionStep[];
|
|
1826
|
+
transition?: AgentTransition[];
|
|
1829
1827
|
}
|
|
1830
1828
|
export interface AgentVariable {
|
|
1831
1829
|
name: string;
|
|
@@ -1910,20 +1908,17 @@ export interface AgentExecutionChat {
|
|
|
1910
1908
|
tools?: AgentToolConfig[];
|
|
1911
1909
|
options?: AgentGenerateOptions;
|
|
1912
1910
|
}
|
|
1913
|
-
export interface
|
|
1914
|
-
type: '
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
memoryPath?: string;
|
|
1921
|
-
artifactPath?: string;
|
|
1911
|
+
export interface AgentTransitionImmediate {
|
|
1912
|
+
type: 'immediate';
|
|
1913
|
+
destination: string;
|
|
1914
|
+
condition?: string;
|
|
1915
|
+
limit?: number;
|
|
1916
|
+
sessionMemory?: AgentStateSessionMemory1;
|
|
1917
|
+
historyStrategy?: string;
|
|
1922
1918
|
}
|
|
1923
|
-
export interface
|
|
1924
|
-
type: 'staticValue';
|
|
1919
|
+
export interface AgentStateSessionMemoryAssignment1 {
|
|
1925
1920
|
memoryPath?: string;
|
|
1926
|
-
|
|
1921
|
+
expression: string;
|
|
1927
1922
|
}
|
|
1928
1923
|
export interface AgentGuard {
|
|
1929
1924
|
guardId: GuardID;
|
|
@@ -262,9 +262,9 @@ export type CacheTriggerConfigV3_48_0 = CacheScheduleTriggerConfigV3_48_0 | Cach
|
|
|
262
262
|
* via the `definition` "shapeSchema".
|
|
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
|
-
export type
|
|
265
|
+
export type AgentAPIInputV3_48_0 = AgentAPIMutationInputV3_48_0;
|
|
266
266
|
export type InteractionTimeoutMillisecondsV3_48_0 = number;
|
|
267
|
-
export type
|
|
267
|
+
export type AgentStateSessionMemoryV3_48_0 = AgentStateSessionMemoryAssignmentV3_48_0[];
|
|
268
268
|
export type VariablesV3_48_0 = AgentVariableV3_48_0[];
|
|
269
269
|
export type AgentExecutionV3_48_0 = AgentExecutionGraphQLV3_48_0 | AgentExecutionGenerateV3_48_0 | AgentExecutionChatV3_48_0;
|
|
270
270
|
export type AgentAIStateInputV3_48_0 = AgentAIStateInputArgumentV3_48_0 | AgentAIStateInputTemplateV3_48_0;
|
|
@@ -335,8 +335,11 @@ export type RemovePropertyKeyPatternsV3_48_0 = MinimatchPatternV3_48_0[];
|
|
|
335
335
|
* Remove Markdown formatting from the LLM response
|
|
336
336
|
*/
|
|
337
337
|
export type StripMarkdownV3_48_0 = boolean;
|
|
338
|
-
|
|
339
|
-
|
|
338
|
+
/**
|
|
339
|
+
* These steps are evaluated in order until a destination is found.
|
|
340
|
+
*/
|
|
341
|
+
export type AgentTransitionV3_48_0 = AgentTransitionImmediateV3_48_0 | AgentTransitionSuspendV3_48_0;
|
|
342
|
+
export type AgentStateSessionMemoryV3_48_01 = AgentStateSessionMemoryAssignmentV3_48_01[];
|
|
340
343
|
export type GuardIDV3_48_0 = string;
|
|
341
344
|
export type VariablesV3_48_01 = AgentVariableV3_48_0[];
|
|
342
345
|
export type HistoryStrategyTransformV3_48_0 = HistoryStrategyTransformNoneV3_48_0 | HistoryStrategyTransformReplaceV3_48_0 | HistoryStrategyTransformSummarizeV3_48_0;
|
|
@@ -1618,21 +1621,14 @@ export interface AgentJSONV3_48_0 {
|
|
|
1618
1621
|
guards?: AgentGuardV3_48_0[];
|
|
1619
1622
|
historyStrategies?: HistoryStrategyMapV3_48_0;
|
|
1620
1623
|
}
|
|
1621
|
-
export interface
|
|
1622
|
-
|
|
1623
|
-
interactionTimeout?: InteractionTimeoutMillisecondsV3_48_0;
|
|
1624
|
-
arguments?: AgentAPIArgumentV3_48_0[];
|
|
1625
|
-
}
|
|
1626
|
-
export interface AgentAPIArgumentV3_48_0 {
|
|
1627
|
-
argName: string;
|
|
1628
|
-
argDescription?: string;
|
|
1629
|
-
argType: 'boolean' | 'integer' | 'number' | 'string' | 'sessionId';
|
|
1630
|
-
required?: boolean;
|
|
1624
|
+
export interface AgentAPIV3_48_0 {
|
|
1625
|
+
inputs: AgentAPIInputV3_48_0[];
|
|
1631
1626
|
}
|
|
1632
|
-
export interface
|
|
1633
|
-
type: '
|
|
1634
|
-
|
|
1635
|
-
|
|
1627
|
+
export interface AgentAPIMutationInputV3_48_0 {
|
|
1628
|
+
type: 'mutation';
|
|
1629
|
+
name: string;
|
|
1630
|
+
args: string;
|
|
1631
|
+
interactionTimeout?: InteractionTimeoutMillisecondsV3_48_0;
|
|
1636
1632
|
}
|
|
1637
1633
|
export interface AgentMemoryV3_48_0 {
|
|
1638
1634
|
sessionMemory: AgentSessionMemoryV3_48_0;
|
|
@@ -1644,18 +1640,21 @@ export interface AgentSessionMemoryV3_48_0 {
|
|
|
1644
1640
|
* Configuration for the start of an agent's execution
|
|
1645
1641
|
*/
|
|
1646
1642
|
export interface AgentStartV3_48_0 {
|
|
1647
|
-
transition:
|
|
1643
|
+
transition: AgentTransitionSuspendV3_48_0[];
|
|
1648
1644
|
}
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
*/
|
|
1652
|
-
export interface AgentTransitionStepV3_48_0 {
|
|
1645
|
+
export interface AgentTransitionSuspendV3_48_0 {
|
|
1646
|
+
type: 'suspend';
|
|
1653
1647
|
destination: string;
|
|
1654
|
-
|
|
1648
|
+
input: string;
|
|
1655
1649
|
condition?: string;
|
|
1656
1650
|
limit?: number;
|
|
1651
|
+
sessionMemory?: AgentStateSessionMemoryV3_48_0;
|
|
1657
1652
|
historyStrategy?: string;
|
|
1658
1653
|
}
|
|
1654
|
+
export interface AgentStateSessionMemoryAssignmentV3_48_0 {
|
|
1655
|
+
memoryPath?: string;
|
|
1656
|
+
expression: string;
|
|
1657
|
+
}
|
|
1659
1658
|
/**
|
|
1660
1659
|
* States that are traversed during the execution of an agent.
|
|
1661
1660
|
*/
|
|
@@ -1672,8 +1671,7 @@ export interface AgentStateV3_48_0 {
|
|
|
1672
1671
|
name: string;
|
|
1673
1672
|
variables?: VariablesV3_48_0;
|
|
1674
1673
|
execution: AgentExecutionV3_48_0;
|
|
1675
|
-
|
|
1676
|
-
transition?: AgentTransitionStepV3_48_0[];
|
|
1674
|
+
transition?: AgentTransitionV3_48_0[];
|
|
1677
1675
|
}
|
|
1678
1676
|
export interface AgentVariableV3_48_0 {
|
|
1679
1677
|
name: string;
|
|
@@ -1758,20 +1756,17 @@ export interface AgentExecutionChatV3_48_0 {
|
|
|
1758
1756
|
tools?: AgentToolConfigV3_48_0[];
|
|
1759
1757
|
options?: AgentGenerateOptionsV3_48_0;
|
|
1760
1758
|
}
|
|
1761
|
-
export interface
|
|
1762
|
-
type: '
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
memoryPath?: string;
|
|
1769
|
-
artifactPath?: string;
|
|
1759
|
+
export interface AgentTransitionImmediateV3_48_0 {
|
|
1760
|
+
type: 'immediate';
|
|
1761
|
+
destination: string;
|
|
1762
|
+
condition?: string;
|
|
1763
|
+
limit?: number;
|
|
1764
|
+
sessionMemory?: AgentStateSessionMemoryV3_48_01;
|
|
1765
|
+
historyStrategy?: string;
|
|
1770
1766
|
}
|
|
1771
|
-
export interface
|
|
1772
|
-
type: 'staticValue';
|
|
1767
|
+
export interface AgentStateSessionMemoryAssignmentV3_48_01 {
|
|
1773
1768
|
memoryPath?: string;
|
|
1774
|
-
|
|
1769
|
+
expression: string;
|
|
1775
1770
|
}
|
|
1776
1771
|
export interface AgentGuardV3_48_0 {
|
|
1777
1772
|
guardId: GuardIDV3_48_0;
|
|
@@ -262,9 +262,9 @@ export type CacheTriggerConfigV3_49_0 = CacheScheduleTriggerConfigV3_49_0 | Cach
|
|
|
262
262
|
* via the `definition` "shapeSchema".
|
|
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
|
-
export type
|
|
265
|
+
export type AgentAPIInputV3_49_0 = AgentAPIMutationInputV3_49_0;
|
|
266
266
|
export type InteractionTimeoutMillisecondsV3_49_0 = number;
|
|
267
|
-
export type
|
|
267
|
+
export type AgentStateSessionMemoryV3_49_0 = AgentStateSessionMemoryAssignmentV3_49_0[];
|
|
268
268
|
export type VariablesV3_49_0 = AgentVariableV3_49_0[];
|
|
269
269
|
export type AgentExecutionV3_49_0 = AgentExecutionGraphQLV3_49_0 | AgentExecutionGenerateV3_49_0 | AgentExecutionChatV3_49_0;
|
|
270
270
|
export type AgentAIStateInputV3_49_0 = AgentAIStateInputArgumentV3_49_0 | AgentAIStateInputTemplateV3_49_0;
|
|
@@ -335,8 +335,11 @@ export type RemovePropertyKeyPatternsV3_49_0 = MinimatchPatternV3_49_0[];
|
|
|
335
335
|
* Remove Markdown formatting from the LLM response
|
|
336
336
|
*/
|
|
337
337
|
export type StripMarkdownV3_49_0 = boolean;
|
|
338
|
-
|
|
339
|
-
|
|
338
|
+
/**
|
|
339
|
+
* These steps are evaluated in order until a destination is found.
|
|
340
|
+
*/
|
|
341
|
+
export type AgentTransitionV3_49_0 = AgentTransitionImmediateV3_49_0 | AgentTransitionSuspendV3_49_0;
|
|
342
|
+
export type AgentStateSessionMemoryV3_49_01 = AgentStateSessionMemoryAssignmentV3_49_01[];
|
|
340
343
|
export type GuardIDV3_49_0 = string;
|
|
341
344
|
export type VariablesV3_49_01 = AgentVariableV3_49_0[];
|
|
342
345
|
export type HistoryStrategyTransformV3_49_0 = HistoryStrategyTransformNoneV3_49_0 | HistoryStrategyTransformReplaceV3_49_0 | HistoryStrategyTransformSummarizeV3_49_0;
|
|
@@ -1618,21 +1621,14 @@ export interface AgentJSONV3_49_0 {
|
|
|
1618
1621
|
guards?: AgentGuardV3_49_0[];
|
|
1619
1622
|
historyStrategies?: HistoryStrategyMapV3_49_0;
|
|
1620
1623
|
}
|
|
1621
|
-
export interface
|
|
1622
|
-
|
|
1623
|
-
interactionTimeout?: InteractionTimeoutMillisecondsV3_49_0;
|
|
1624
|
-
arguments?: AgentAPIArgumentV3_49_0[];
|
|
1625
|
-
}
|
|
1626
|
-
export interface AgentAPIArgumentV3_49_0 {
|
|
1627
|
-
argName: string;
|
|
1628
|
-
argDescription?: string;
|
|
1629
|
-
argType: 'boolean' | 'integer' | 'number' | 'string' | 'sessionId';
|
|
1630
|
-
required?: boolean;
|
|
1624
|
+
export interface AgentAPIV3_49_0 {
|
|
1625
|
+
inputs: AgentAPIInputV3_49_0[];
|
|
1631
1626
|
}
|
|
1632
|
-
export interface
|
|
1633
|
-
type: '
|
|
1634
|
-
|
|
1635
|
-
|
|
1627
|
+
export interface AgentAPIMutationInputV3_49_0 {
|
|
1628
|
+
type: 'mutation';
|
|
1629
|
+
name: string;
|
|
1630
|
+
args: string;
|
|
1631
|
+
interactionTimeout?: InteractionTimeoutMillisecondsV3_49_0;
|
|
1636
1632
|
}
|
|
1637
1633
|
export interface AgentMemoryV3_49_0 {
|
|
1638
1634
|
sessionMemory: AgentSessionMemoryV3_49_0;
|
|
@@ -1644,18 +1640,21 @@ export interface AgentSessionMemoryV3_49_0 {
|
|
|
1644
1640
|
* Configuration for the start of an agent's execution
|
|
1645
1641
|
*/
|
|
1646
1642
|
export interface AgentStartV3_49_0 {
|
|
1647
|
-
transition:
|
|
1643
|
+
transition: AgentTransitionSuspendV3_49_0[];
|
|
1648
1644
|
}
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
*/
|
|
1652
|
-
export interface AgentTransitionStepV3_49_0 {
|
|
1645
|
+
export interface AgentTransitionSuspendV3_49_0 {
|
|
1646
|
+
type: 'suspend';
|
|
1653
1647
|
destination: string;
|
|
1654
|
-
|
|
1648
|
+
input: string;
|
|
1655
1649
|
condition?: string;
|
|
1656
1650
|
limit?: number;
|
|
1651
|
+
sessionMemory?: AgentStateSessionMemoryV3_49_0;
|
|
1657
1652
|
historyStrategy?: string;
|
|
1658
1653
|
}
|
|
1654
|
+
export interface AgentStateSessionMemoryAssignmentV3_49_0 {
|
|
1655
|
+
memoryPath?: string;
|
|
1656
|
+
expression: string;
|
|
1657
|
+
}
|
|
1659
1658
|
/**
|
|
1660
1659
|
* States that are traversed during the execution of an agent.
|
|
1661
1660
|
*/
|
|
@@ -1672,8 +1671,7 @@ export interface AgentStateV3_49_0 {
|
|
|
1672
1671
|
name: string;
|
|
1673
1672
|
variables?: VariablesV3_49_0;
|
|
1674
1673
|
execution: AgentExecutionV3_49_0;
|
|
1675
|
-
|
|
1676
|
-
transition?: AgentTransitionStepV3_49_0[];
|
|
1674
|
+
transition?: AgentTransitionV3_49_0[];
|
|
1677
1675
|
}
|
|
1678
1676
|
export interface AgentVariableV3_49_0 {
|
|
1679
1677
|
name: string;
|
|
@@ -1758,20 +1756,17 @@ export interface AgentExecutionChatV3_49_0 {
|
|
|
1758
1756
|
tools?: AgentToolConfigV3_49_0[];
|
|
1759
1757
|
options?: AgentGenerateOptionsV3_49_0;
|
|
1760
1758
|
}
|
|
1761
|
-
export interface
|
|
1762
|
-
type: '
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
memoryPath?: string;
|
|
1769
|
-
artifactPath?: string;
|
|
1759
|
+
export interface AgentTransitionImmediateV3_49_0 {
|
|
1760
|
+
type: 'immediate';
|
|
1761
|
+
destination: string;
|
|
1762
|
+
condition?: string;
|
|
1763
|
+
limit?: number;
|
|
1764
|
+
sessionMemory?: AgentStateSessionMemoryV3_49_01;
|
|
1765
|
+
historyStrategy?: string;
|
|
1770
1766
|
}
|
|
1771
|
-
export interface
|
|
1772
|
-
type: 'staticValue';
|
|
1767
|
+
export interface AgentStateSessionMemoryAssignmentV3_49_01 {
|
|
1773
1768
|
memoryPath?: string;
|
|
1774
|
-
|
|
1769
|
+
expression: string;
|
|
1775
1770
|
}
|
|
1776
1771
|
export interface AgentGuardV3_49_0 {
|
|
1777
1772
|
guardId: GuardIDV3_49_0;
|
|
@@ -274,9 +274,9 @@ export type CacheTriggerConfigV3_50_0 = CacheScheduleTriggerConfigV3_50_0 | Cach
|
|
|
274
274
|
* via the `definition` "shapeSchema".
|
|
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
|
-
export type
|
|
277
|
+
export type AgentAPIInputV3_50_0 = AgentAPIMutationInputV3_50_0;
|
|
278
278
|
export type InteractionTimeoutMillisecondsV3_50_0 = number;
|
|
279
|
-
export type
|
|
279
|
+
export type AgentStateSessionMemoryV3_50_0 = AgentStateSessionMemoryAssignmentV3_50_0[];
|
|
280
280
|
export type VariablesV3_50_0 = AgentVariableV3_50_0[];
|
|
281
281
|
export type AgentExecutionV3_50_0 = AgentExecutionGraphQLV3_50_0 | AgentExecutionGenerateV3_50_0 | AgentExecutionChatV3_50_0;
|
|
282
282
|
export type AgentAIStateInputV3_50_0 = AgentAIStateInputArgumentV3_50_0 | AgentAIStateInputTemplateV3_50_0;
|
|
@@ -347,8 +347,11 @@ export type RemovePropertyKeyPatternsV3_50_0 = MinimatchPatternV3_50_0[];
|
|
|
347
347
|
* Remove Markdown formatting from the LLM response
|
|
348
348
|
*/
|
|
349
349
|
export type StripMarkdownV3_50_0 = boolean;
|
|
350
|
-
|
|
351
|
-
|
|
350
|
+
/**
|
|
351
|
+
* These steps are evaluated in order until a destination is found.
|
|
352
|
+
*/
|
|
353
|
+
export type AgentTransitionV3_50_0 = AgentTransitionImmediateV3_50_0 | AgentTransitionSuspendV3_50_0;
|
|
354
|
+
export type AgentStateSessionMemoryV3_50_01 = AgentStateSessionMemoryAssignmentV3_50_01[];
|
|
352
355
|
export type GuardIDV3_50_0 = string;
|
|
353
356
|
export type VariablesV3_50_01 = AgentVariableV3_50_0[];
|
|
354
357
|
export type HistoryStrategyTransformV3_50_0 = HistoryStrategyTransformNoneV3_50_0 | HistoryStrategyTransformReplaceV3_50_0 | HistoryStrategyTransformSummarizeV3_50_0;
|
|
@@ -1670,21 +1673,14 @@ export interface AgentJSONV3_50_0 {
|
|
|
1670
1673
|
guards?: AgentGuardV3_50_0[];
|
|
1671
1674
|
historyStrategies?: HistoryStrategyMapV3_50_0;
|
|
1672
1675
|
}
|
|
1673
|
-
export interface
|
|
1674
|
-
|
|
1675
|
-
interactionTimeout?: InteractionTimeoutMillisecondsV3_50_0;
|
|
1676
|
-
arguments?: AgentAPIArgumentV3_50_0[];
|
|
1677
|
-
}
|
|
1678
|
-
export interface AgentAPIArgumentV3_50_0 {
|
|
1679
|
-
argName: string;
|
|
1680
|
-
argDescription?: string;
|
|
1681
|
-
argType: 'boolean' | 'integer' | 'number' | 'string' | 'sessionId';
|
|
1682
|
-
required?: boolean;
|
|
1676
|
+
export interface AgentAPIV3_50_0 {
|
|
1677
|
+
inputs: AgentAPIInputV3_50_0[];
|
|
1683
1678
|
}
|
|
1684
|
-
export interface
|
|
1685
|
-
type: '
|
|
1686
|
-
|
|
1687
|
-
|
|
1679
|
+
export interface AgentAPIMutationInputV3_50_0 {
|
|
1680
|
+
type: 'mutation';
|
|
1681
|
+
name: string;
|
|
1682
|
+
args: string;
|
|
1683
|
+
interactionTimeout?: InteractionTimeoutMillisecondsV3_50_0;
|
|
1688
1684
|
}
|
|
1689
1685
|
export interface AgentMemoryV3_50_0 {
|
|
1690
1686
|
sessionMemory: AgentSessionMemoryV3_50_0;
|
|
@@ -1696,18 +1692,21 @@ export interface AgentSessionMemoryV3_50_0 {
|
|
|
1696
1692
|
* Configuration for the start of an agent's execution
|
|
1697
1693
|
*/
|
|
1698
1694
|
export interface AgentStartV3_50_0 {
|
|
1699
|
-
transition:
|
|
1695
|
+
transition: AgentTransitionSuspendV3_50_0[];
|
|
1700
1696
|
}
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
*/
|
|
1704
|
-
export interface AgentTransitionStepV3_50_0 {
|
|
1697
|
+
export interface AgentTransitionSuspendV3_50_0 {
|
|
1698
|
+
type: 'suspend';
|
|
1705
1699
|
destination: string;
|
|
1706
|
-
|
|
1700
|
+
input: string;
|
|
1707
1701
|
condition?: string;
|
|
1708
1702
|
limit?: number;
|
|
1703
|
+
sessionMemory?: AgentStateSessionMemoryV3_50_0;
|
|
1709
1704
|
historyStrategy?: string;
|
|
1710
1705
|
}
|
|
1706
|
+
export interface AgentStateSessionMemoryAssignmentV3_50_0 {
|
|
1707
|
+
memoryPath?: string;
|
|
1708
|
+
expression: string;
|
|
1709
|
+
}
|
|
1711
1710
|
/**
|
|
1712
1711
|
* States that are traversed during the execution of an agent.
|
|
1713
1712
|
*/
|
|
@@ -1724,8 +1723,7 @@ export interface AgentStateV3_50_0 {
|
|
|
1724
1723
|
name: string;
|
|
1725
1724
|
variables?: VariablesV3_50_0;
|
|
1726
1725
|
execution: AgentExecutionV3_50_0;
|
|
1727
|
-
|
|
1728
|
-
transition?: AgentTransitionStepV3_50_0[];
|
|
1726
|
+
transition?: AgentTransitionV3_50_0[];
|
|
1729
1727
|
}
|
|
1730
1728
|
export interface AgentVariableV3_50_0 {
|
|
1731
1729
|
name: string;
|
|
@@ -1810,20 +1808,17 @@ export interface AgentExecutionChatV3_50_0 {
|
|
|
1810
1808
|
tools?: AgentToolConfigV3_50_0[];
|
|
1811
1809
|
options?: AgentGenerateOptionsV3_50_0;
|
|
1812
1810
|
}
|
|
1813
|
-
export interface
|
|
1814
|
-
type: '
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
memoryPath?: string;
|
|
1821
|
-
artifactPath?: string;
|
|
1811
|
+
export interface AgentTransitionImmediateV3_50_0 {
|
|
1812
|
+
type: 'immediate';
|
|
1813
|
+
destination: string;
|
|
1814
|
+
condition?: string;
|
|
1815
|
+
limit?: number;
|
|
1816
|
+
sessionMemory?: AgentStateSessionMemoryV3_50_01;
|
|
1817
|
+
historyStrategy?: string;
|
|
1822
1818
|
}
|
|
1823
|
-
export interface
|
|
1824
|
-
type: 'staticValue';
|
|
1819
|
+
export interface AgentStateSessionMemoryAssignmentV3_50_01 {
|
|
1825
1820
|
memoryPath?: string;
|
|
1826
|
-
|
|
1821
|
+
expression: string;
|
|
1827
1822
|
}
|
|
1828
1823
|
export interface AgentGuardV3_50_0 {
|
|
1829
1824
|
guardId: GuardIDV3_50_0;
|
|
@@ -274,9 +274,9 @@ export type CacheTriggerConfigV3_51_0 = CacheScheduleTriggerConfigV3_51_0 | Cach
|
|
|
274
274
|
* via the `definition` "shapeSchema".
|
|
275
275
|
*/
|
|
276
276
|
export type ShapeSchemaV3_51_0 = ShapeSchemaAllOfV3_51_0 | ShapeSchemaExtendsV3_51_0 | ShapeSchemaOneOfV3_51_0 | ShapeSchemaEnumV3_51_0 | ObjectSchemaV3_51_0 | ShapeSchemaAnyV3_51_0;
|
|
277
|
-
export type
|
|
277
|
+
export type AgentAPIInputV3_51_0 = AgentAPIMutationInputV3_51_0;
|
|
278
278
|
export type InteractionTimeoutMillisecondsV3_51_0 = number;
|
|
279
|
-
export type
|
|
279
|
+
export type AgentStateSessionMemoryV3_51_0 = AgentStateSessionMemoryAssignmentV3_51_0[];
|
|
280
280
|
export type VariablesV3_51_0 = AgentVariableV3_51_0[];
|
|
281
281
|
export type AgentExecutionV3_51_0 = AgentExecutionGraphQLV3_51_0 | AgentExecutionGenerateV3_51_0 | AgentExecutionChatV3_51_0;
|
|
282
282
|
export type AgentAIStateInputV3_51_0 = AgentAIStateInputArgumentV3_51_0 | AgentAIStateInputTemplateV3_51_0;
|
|
@@ -347,8 +347,11 @@ export type RemovePropertyKeyPatternsV3_51_0 = MinimatchPatternV3_51_0[];
|
|
|
347
347
|
* Remove Markdown formatting from the LLM response
|
|
348
348
|
*/
|
|
349
349
|
export type StripMarkdownV3_51_0 = boolean;
|
|
350
|
-
|
|
351
|
-
|
|
350
|
+
/**
|
|
351
|
+
* These steps are evaluated in order until a destination is found.
|
|
352
|
+
*/
|
|
353
|
+
export type AgentTransitionV3_51_0 = AgentTransitionImmediateV3_51_0 | AgentTransitionSuspendV3_51_0;
|
|
354
|
+
export type AgentStateSessionMemoryV3_51_01 = AgentStateSessionMemoryAssignmentV3_51_01[];
|
|
352
355
|
export type GuardIDV3_51_0 = string;
|
|
353
356
|
export type VariablesV3_51_01 = AgentVariableV3_51_0[];
|
|
354
357
|
export type HistoryStrategyTransformV3_51_0 = HistoryStrategyTransformNoneV3_51_0 | HistoryStrategyTransformReplaceV3_51_0 | HistoryStrategyTransformSummarizeV3_51_0;
|
|
@@ -1670,21 +1673,14 @@ export interface AgentJSONV3_51_0 {
|
|
|
1670
1673
|
guards?: AgentGuardV3_51_0[];
|
|
1671
1674
|
historyStrategies?: HistoryStrategyMapV3_51_0;
|
|
1672
1675
|
}
|
|
1673
|
-
export interface
|
|
1674
|
-
|
|
1675
|
-
interactionTimeout?: InteractionTimeoutMillisecondsV3_51_0;
|
|
1676
|
-
arguments?: AgentAPIArgumentV3_51_0[];
|
|
1677
|
-
}
|
|
1678
|
-
export interface AgentAPIArgumentV3_51_0 {
|
|
1679
|
-
argName: string;
|
|
1680
|
-
argDescription?: string;
|
|
1681
|
-
argType: 'boolean' | 'integer' | 'number' | 'string' | 'sessionId';
|
|
1682
|
-
required?: boolean;
|
|
1676
|
+
export interface AgentAPIV3_51_0 {
|
|
1677
|
+
inputs: AgentAPIInputV3_51_0[];
|
|
1683
1678
|
}
|
|
1684
|
-
export interface
|
|
1685
|
-
type: '
|
|
1686
|
-
|
|
1687
|
-
|
|
1679
|
+
export interface AgentAPIMutationInputV3_51_0 {
|
|
1680
|
+
type: 'mutation';
|
|
1681
|
+
name: string;
|
|
1682
|
+
args: string;
|
|
1683
|
+
interactionTimeout?: InteractionTimeoutMillisecondsV3_51_0;
|
|
1688
1684
|
}
|
|
1689
1685
|
export interface AgentMemoryV3_51_0 {
|
|
1690
1686
|
sessionMemory: AgentSessionMemoryV3_51_0;
|
|
@@ -1696,18 +1692,21 @@ export interface AgentSessionMemoryV3_51_0 {
|
|
|
1696
1692
|
* Configuration for the start of an agent's execution
|
|
1697
1693
|
*/
|
|
1698
1694
|
export interface AgentStartV3_51_0 {
|
|
1699
|
-
transition:
|
|
1695
|
+
transition: AgentTransitionSuspendV3_51_0[];
|
|
1700
1696
|
}
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
*/
|
|
1704
|
-
export interface AgentTransitionStepV3_51_0 {
|
|
1697
|
+
export interface AgentTransitionSuspendV3_51_0 {
|
|
1698
|
+
type: 'suspend';
|
|
1705
1699
|
destination: string;
|
|
1706
|
-
|
|
1700
|
+
input: string;
|
|
1707
1701
|
condition?: string;
|
|
1708
1702
|
limit?: number;
|
|
1703
|
+
sessionMemory?: AgentStateSessionMemoryV3_51_0;
|
|
1709
1704
|
historyStrategy?: string;
|
|
1710
1705
|
}
|
|
1706
|
+
export interface AgentStateSessionMemoryAssignmentV3_51_0 {
|
|
1707
|
+
memoryPath?: string;
|
|
1708
|
+
expression: string;
|
|
1709
|
+
}
|
|
1711
1710
|
/**
|
|
1712
1711
|
* States that are traversed during the execution of an agent.
|
|
1713
1712
|
*/
|
|
@@ -1724,8 +1723,7 @@ export interface AgentStateV3_51_0 {
|
|
|
1724
1723
|
name: string;
|
|
1725
1724
|
variables?: VariablesV3_51_0;
|
|
1726
1725
|
execution: AgentExecutionV3_51_0;
|
|
1727
|
-
|
|
1728
|
-
transition?: AgentTransitionStepV3_51_0[];
|
|
1726
|
+
transition?: AgentTransitionV3_51_0[];
|
|
1729
1727
|
}
|
|
1730
1728
|
export interface AgentVariableV3_51_0 {
|
|
1731
1729
|
name: string;
|
|
@@ -1810,20 +1808,17 @@ export interface AgentExecutionChatV3_51_0 {
|
|
|
1810
1808
|
tools?: AgentToolConfigV3_51_0[];
|
|
1811
1809
|
options?: AgentGenerateOptionsV3_51_0;
|
|
1812
1810
|
}
|
|
1813
|
-
export interface
|
|
1814
|
-
type: '
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
memoryPath?: string;
|
|
1821
|
-
artifactPath?: string;
|
|
1811
|
+
export interface AgentTransitionImmediateV3_51_0 {
|
|
1812
|
+
type: 'immediate';
|
|
1813
|
+
destination: string;
|
|
1814
|
+
condition?: string;
|
|
1815
|
+
limit?: number;
|
|
1816
|
+
sessionMemory?: AgentStateSessionMemoryV3_51_01;
|
|
1817
|
+
historyStrategy?: string;
|
|
1822
1818
|
}
|
|
1823
|
-
export interface
|
|
1824
|
-
type: 'staticValue';
|
|
1819
|
+
export interface AgentStateSessionMemoryAssignmentV3_51_01 {
|
|
1825
1820
|
memoryPath?: string;
|
|
1826
|
-
|
|
1821
|
+
expression: string;
|
|
1827
1822
|
}
|
|
1828
1823
|
export interface AgentGuardV3_51_0 {
|
|
1829
1824
|
guardId: GuardIDV3_51_0;
|