@takeshape/schema 11.63.3 → 11.64.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/__tests__/validate.test.js +26 -0
- package/dist/agents.d.ts +2 -1
- package/dist/agents.js +8 -4
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/models/project-schema.d.ts +2 -1
- package/dist/models/query.d.ts +2 -2
- package/dist/models/service.d.ts +2 -2
- package/dist/models/shape.d.ts +2 -2
- package/dist/models/types.d.ts +6 -0
- package/dist/models/types.js +1 -0
- package/dist/project-schema/latest.d.ts +4 -61
- package/dist/project-schema/v3.48.0.d.ts +4 -61
- package/dist/project-schema/v3.49.0.d.ts +4 -61
- package/dist/project-schema/v3.50.0.d.ts +4 -61
- package/dist/project-schema/v3.51.0.d.ts +4 -61
- package/dist/project-schema/v3.52.0.d.ts +4 -61
- package/dist/project-schema/v3.53.0.d.ts +4 -61
- package/dist/schemas/project-schema/experimental.json +4 -245
- package/dist/util/__tests__/expressions.test.d.ts +1 -0
- package/dist/util/__tests__/expressions.test.js +172 -0
- package/dist/util/expressions.d.ts +25 -0
- package/dist/util/expressions.js +323 -0
- package/dist/validate/validate.js +40 -0
- package/examples/latest/agent-schema.json +17 -40
- package/examples/source/agent-schema.json +36 -31
- package/package.json +6 -5
|
@@ -1951,4 +1951,30 @@ describe('latest', () => {
|
|
|
1951
1951
|
}
|
|
1952
1952
|
]);
|
|
1953
1953
|
});
|
|
1954
|
+
test('validateSchema - invalid expressions', async () => {
|
|
1955
|
+
const invalidSchema = agentSchema();
|
|
1956
|
+
const { bbb, ccc, ddd } = invalidSchema['ai-experimental'].agents.findDogColor.states;
|
|
1957
|
+
bbb.variables[0].steps[0].expression = ')';
|
|
1958
|
+
ccc.transition[0].condition = '(';
|
|
1959
|
+
ddd.variables[0].steps[0].condition = 'foo';
|
|
1960
|
+
const { valid, errors } = await validateSchema(validateContext, invalidSchema);
|
|
1961
|
+
expect(valid).toEqual(false);
|
|
1962
|
+
expect(errors).toEqual([
|
|
1963
|
+
{
|
|
1964
|
+
message: 'Unexpected ")" at character 0',
|
|
1965
|
+
path: ['ai-experimental', 'agents', 'findDogColor', 'states', 'bbb', 'variables', 0, 'steps', 0, 'expression'],
|
|
1966
|
+
type: 'conflict'
|
|
1967
|
+
},
|
|
1968
|
+
{
|
|
1969
|
+
message: 'Unclosed ( at character 1',
|
|
1970
|
+
path: ['ai-experimental', 'agents', 'findDogColor', 'states', 'ccc', 'transition', 0, 'expression'],
|
|
1971
|
+
type: 'conflict'
|
|
1972
|
+
},
|
|
1973
|
+
{
|
|
1974
|
+
message: 'Unknown variable "foo"',
|
|
1975
|
+
path: ['ai-experimental', 'agents', 'findDogColor', 'states', 'ddd', 'variables', 0, 'steps', 0, 'condition'],
|
|
1976
|
+
type: 'conflict'
|
|
1977
|
+
}
|
|
1978
|
+
]);
|
|
1979
|
+
});
|
|
1954
1980
|
});
|
package/dist/agents.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AgentAPIArgument, AgentJSON, Args, ProjectSchemaJSON } from './project-schema/index.ts';
|
|
1
|
+
import type { AgentAPI, AgentAPIArgument, AgentJSON, Args, ProjectSchemaJSON } from './project-schema/index.ts';
|
|
2
2
|
export declare const END_AGENT_EXECUTION = "endAgentExecution";
|
|
3
3
|
export declare const BUILT_IN_CHAT_ARGS: AgentAPIArgument[];
|
|
4
4
|
export declare const BUILT_IN_CHAT_ARG_NAMES: string[];
|
|
@@ -10,5 +10,6 @@ export declare const getAgentEndTransitions: (agent: AgentJSON, includeSuspend?:
|
|
|
10
10
|
export declare const getAgentEndStates: (agent: AgentJSON, includeSuspend?: boolean) => Set<string>;
|
|
11
11
|
export declare const getInspectAgentSessionQueryName: (agentName: string) => string;
|
|
12
12
|
export declare const removeBuiltInArgs: (args: AgentAPIArgument[]) => AgentAPIArgument[];
|
|
13
|
+
export declare function getAgentApiArgs(api: AgentAPI): AgentAPIArgument[];
|
|
13
14
|
export declare const createArgs: (agent: AgentJSON) => Args | undefined;
|
|
14
15
|
export declare function addAiQueries(projectSchema: ProjectSchemaJSON): ProjectSchemaJSON;
|
package/dist/agents.js
CHANGED
|
@@ -27,7 +27,7 @@ const transitionCanEnd = (transition, includeSuspend = false) => {
|
|
|
27
27
|
if (step.destination === END_AGENT_EXECUTION) {
|
|
28
28
|
return true;
|
|
29
29
|
}
|
|
30
|
-
if (step.condition
|
|
30
|
+
if (step.condition === undefined) {
|
|
31
31
|
return false;
|
|
32
32
|
}
|
|
33
33
|
}
|
|
@@ -54,11 +54,15 @@ export const getInspectAgentSessionQueryName = (agentName) => {
|
|
|
54
54
|
export const removeBuiltInArgs = (args) => {
|
|
55
55
|
return args.filter((arg) => !BUILT_IN_CHAT_ARG_NAMES.includes(arg.argName));
|
|
56
56
|
};
|
|
57
|
-
export
|
|
58
|
-
let apiArguments = uniqBy(
|
|
59
|
-
if (
|
|
57
|
+
export function getAgentApiArgs(api) {
|
|
58
|
+
let apiArguments = uniqBy(api.arguments ?? [], (arg) => arg.argName);
|
|
59
|
+
if (api.type === 'chat') {
|
|
60
60
|
apiArguments = removeBuiltInArgs(apiArguments).concat(BUILT_IN_CHAT_ARGS);
|
|
61
61
|
}
|
|
62
|
+
return apiArguments;
|
|
63
|
+
}
|
|
64
|
+
export const createArgs = (agent) => {
|
|
65
|
+
const apiArguments = getAgentApiArgs(agent.api);
|
|
62
66
|
return apiArguments.length > 0
|
|
63
67
|
? {
|
|
64
68
|
type: 'object',
|
package/dist/index.d.ts
CHANGED
|
@@ -34,6 +34,7 @@ export * from './unions.ts';
|
|
|
34
34
|
export * from './util/ai-tools.ts';
|
|
35
35
|
export * from './util/api-indexing.ts';
|
|
36
36
|
export * from './util/detect-cycles.ts';
|
|
37
|
+
export * from './util/expressions.ts';
|
|
37
38
|
export * from './util/find-shape-at-path.ts';
|
|
38
39
|
export * from './util/form-config.ts';
|
|
39
40
|
export * from './util/get-conflicting-properties.ts';
|
package/dist/index.js
CHANGED
|
@@ -32,6 +32,7 @@ export * from "./unions.js";
|
|
|
32
32
|
export * from "./util/ai-tools.js";
|
|
33
33
|
export * from "./util/api-indexing.js";
|
|
34
34
|
export * from "./util/detect-cycles.js";
|
|
35
|
+
export * from "./util/expressions.js";
|
|
35
36
|
export * from "./util/find-shape-at-path.js";
|
|
36
37
|
export * from "./util/form-config.js";
|
|
37
38
|
export * from "./util/get-conflicting-properties.js";
|
|
@@ -4,12 +4,13 @@ import type { SchemaWithRef } from '../types/index.ts';
|
|
|
4
4
|
import { QueryModel } from './query.ts';
|
|
5
5
|
import { ServiceConfig } from './service.ts';
|
|
6
6
|
import { ShapeModel } from './shape.ts';
|
|
7
|
+
import type { IProjectSchema } from './types.ts';
|
|
7
8
|
/**
|
|
8
9
|
* Model object representing a ProjectSchema.
|
|
9
10
|
* Intended to help make it easier to find the right utils
|
|
10
11
|
* and avoid direct schema json access where a util would be preferred.
|
|
11
12
|
*/
|
|
12
|
-
export declare class ProjectSchema {
|
|
13
|
+
export declare class ProjectSchema implements IProjectSchema {
|
|
13
14
|
private readonly _projectSchemaJSON;
|
|
14
15
|
private readonly _cache;
|
|
15
16
|
constructor(unfilteredProjectSchema: ProjectSchemaJSON);
|
package/dist/models/query.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { QueryJSON } from '../project-schema/index.ts';
|
|
2
|
-
import type {
|
|
2
|
+
import type { IProjectSchema } from './types.ts';
|
|
3
3
|
/**
|
|
4
4
|
* Create a model object representing a query or mutation.
|
|
5
5
|
*/
|
|
@@ -7,7 +7,7 @@ export declare class QueryModel {
|
|
|
7
7
|
private readonly _queryType;
|
|
8
8
|
private readonly _queryName;
|
|
9
9
|
private readonly _rawQuery;
|
|
10
|
-
constructor(projectSchemaModel:
|
|
10
|
+
constructor(projectSchemaModel: IProjectSchema, _queryType: 'query' | 'mutation', _queryName: string);
|
|
11
11
|
get queryType(): "query" | "mutation";
|
|
12
12
|
get name(): string;
|
|
13
13
|
get json(): QueryJSON;
|
package/dist/models/service.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { ServiceConfigJSON } from '../project-schema/index.ts';
|
|
2
|
-
import type {
|
|
2
|
+
import type { IProjectSchema } from './types.ts';
|
|
3
3
|
/**
|
|
4
4
|
* Create a model object representing a service configuration.
|
|
5
5
|
*/
|
|
6
6
|
export declare class ServiceConfig {
|
|
7
7
|
private readonly _serviceId;
|
|
8
8
|
private readonly _storedServiceConfig;
|
|
9
|
-
constructor(projectSchemaModel:
|
|
9
|
+
constructor(projectSchemaModel: IProjectSchema, _serviceId: string);
|
|
10
10
|
get id(): string;
|
|
11
11
|
get json(): ServiceConfigJSON;
|
|
12
12
|
}
|
package/dist/models/shape.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ShapeJSON } from '../project-schema/index.ts';
|
|
2
2
|
import { type RefItem } from '../refs.ts';
|
|
3
|
-
import type {
|
|
3
|
+
import type { IProjectSchema } from './types.ts';
|
|
4
4
|
/**
|
|
5
5
|
* Create a shape model from either a ref item or a ref string such as `rick:Character`
|
|
6
6
|
*/
|
|
@@ -9,7 +9,7 @@ export declare class ShapeModel {
|
|
|
9
9
|
private readonly _rawShape;
|
|
10
10
|
private readonly _shapeRefItem;
|
|
11
11
|
private readonly _shapeAtRef;
|
|
12
|
-
constructor(_projectSchemaModel:
|
|
12
|
+
constructor(_projectSchemaModel: IProjectSchema, refArg: RefItem | string);
|
|
13
13
|
get json(): ShapeJSON;
|
|
14
14
|
get id(): string;
|
|
15
15
|
get name(): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -285,8 +285,6 @@ export type CacheTriggerConfig = CacheScheduleTriggerConfig | CacheWebhookTrigge
|
|
|
285
285
|
export type ShapeSchema = ShapeSchemaAllOf | ShapeSchemaExtends | ShapeSchemaOneOf | ShapeSchemaEnum | ObjectSchema | ShapeSchemaAny;
|
|
286
286
|
export type AgentAPI = AgentAPIChat | AgentAPIGenerate;
|
|
287
287
|
export type MemoryLocations = AgentSessionMemoryLocation[];
|
|
288
|
-
export type AgentVariableStep = AgentVariableStepSessionMemory | AgentVariableStepGraphQLArg | AgentVariableStepStateOutput | AgentVariableStepPreviousStateOutput | AgentVariableStepStaticValue;
|
|
289
|
-
export type AgentVariableStepCondition = AgentVariableStepConditionNone | AgentVariableStepConditionSourceState;
|
|
290
288
|
export type Variables = AgentVariable[];
|
|
291
289
|
export type AgentExecution = AgentExecutionGraphQL | AgentExecutionGenerate | AgentExecutionChat;
|
|
292
290
|
export type AgentAIStateInput = AgentAIStateInputArgument | AgentAIStateInputTemplate;
|
|
@@ -1762,34 +1760,9 @@ export interface AgentStart {
|
|
|
1762
1760
|
export interface AgentTransitionStep {
|
|
1763
1761
|
destination: string;
|
|
1764
1762
|
suspend?: boolean;
|
|
1765
|
-
condition
|
|
1763
|
+
condition?: string;
|
|
1766
1764
|
limit?: number;
|
|
1767
1765
|
}
|
|
1768
|
-
export interface AgentTransitionStepConditionNone {
|
|
1769
|
-
type: 'none';
|
|
1770
|
-
}
|
|
1771
|
-
export interface AgentTransitionStepConditionArtifact {
|
|
1772
|
-
type: 'artifact';
|
|
1773
|
-
path?: string;
|
|
1774
|
-
negated?: boolean;
|
|
1775
|
-
}
|
|
1776
|
-
export interface AgentTransitionStepConditionStateOutput {
|
|
1777
|
-
type: 'stateOutput';
|
|
1778
|
-
stateId: string;
|
|
1779
|
-
path?: string;
|
|
1780
|
-
negated?: boolean;
|
|
1781
|
-
}
|
|
1782
|
-
export interface AgentTransitionStepConditionStringContains {
|
|
1783
|
-
type: 'stringContains';
|
|
1784
|
-
path?: string;
|
|
1785
|
-
string: string;
|
|
1786
|
-
negated?: boolean;
|
|
1787
|
-
}
|
|
1788
|
-
export interface AgentTransitionStepConditionArgument {
|
|
1789
|
-
type: 'argument';
|
|
1790
|
-
argument: string;
|
|
1791
|
-
negated?: boolean;
|
|
1792
|
-
}
|
|
1793
1766
|
/**
|
|
1794
1767
|
* States that are traversed during the execution of an agent.
|
|
1795
1768
|
*/
|
|
@@ -1816,39 +1789,9 @@ export interface AgentVariable {
|
|
|
1816
1789
|
*/
|
|
1817
1790
|
steps: AgentVariableStep[];
|
|
1818
1791
|
}
|
|
1819
|
-
export interface
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
path?: string;
|
|
1823
|
-
}
|
|
1824
|
-
export interface AgentVariableStepGraphQLArg {
|
|
1825
|
-
type: 'graphqlArg';
|
|
1826
|
-
argName: string;
|
|
1827
|
-
}
|
|
1828
|
-
export interface AgentVariableStepStateOutput {
|
|
1829
|
-
type: 'stateOutput';
|
|
1830
|
-
stateId: string;
|
|
1831
|
-
path?: string;
|
|
1832
|
-
}
|
|
1833
|
-
export interface AgentVariableStepPreviousStateOutput {
|
|
1834
|
-
type: 'previousStateOutput';
|
|
1835
|
-
path?: string;
|
|
1836
|
-
}
|
|
1837
|
-
/**
|
|
1838
|
-
* An Agent Variable that has a static value.
|
|
1839
|
-
*/
|
|
1840
|
-
export interface AgentVariableStepStaticValue {
|
|
1841
|
-
type: 'staticValue';
|
|
1842
|
-
condition?: AgentVariableStepCondition;
|
|
1843
|
-
value: string;
|
|
1844
|
-
}
|
|
1845
|
-
export interface AgentVariableStepConditionNone {
|
|
1846
|
-
type: 'none';
|
|
1847
|
-
}
|
|
1848
|
-
export interface AgentVariableStepConditionSourceState {
|
|
1849
|
-
type: 'sourceState';
|
|
1850
|
-
stateId: string;
|
|
1851
|
-
negated?: boolean;
|
|
1792
|
+
export interface AgentVariableStep {
|
|
1793
|
+
condition?: string;
|
|
1794
|
+
expression: string;
|
|
1852
1795
|
}
|
|
1853
1796
|
export interface AgentExecutionGraphQL {
|
|
1854
1797
|
type: 'graphql';
|
|
@@ -264,8 +264,6 @@ export type CacheTriggerConfigV3_48_0 = CacheScheduleTriggerConfigV3_48_0 | Cach
|
|
|
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
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;
|
|
268
|
-
export type AgentVariableStepConditionV3_48_0 = AgentVariableStepConditionNoneV3_48_0 | AgentVariableStepConditionSourceStateV3_48_0;
|
|
269
267
|
export type VariablesV3_48_0 = AgentVariableV3_48_0[];
|
|
270
268
|
export type AgentExecutionV3_48_0 = AgentExecutionGraphQLV3_48_0 | AgentExecutionGenerateV3_48_0 | AgentExecutionChatV3_48_0;
|
|
271
269
|
export type AgentAIStateInputV3_48_0 = AgentAIStateInputArgumentV3_48_0 | AgentAIStateInputTemplateV3_48_0;
|
|
@@ -1629,34 +1627,9 @@ export interface AgentStartV3_48_0 {
|
|
|
1629
1627
|
export interface AgentTransitionStepV3_48_0 {
|
|
1630
1628
|
destination: string;
|
|
1631
1629
|
suspend?: boolean;
|
|
1632
|
-
condition
|
|
1630
|
+
condition?: string;
|
|
1633
1631
|
limit?: number;
|
|
1634
1632
|
}
|
|
1635
|
-
export interface AgentTransitionStepConditionNoneV3_48_0 {
|
|
1636
|
-
type: 'none';
|
|
1637
|
-
}
|
|
1638
|
-
export interface AgentTransitionStepConditionArtifactV3_48_0 {
|
|
1639
|
-
type: 'artifact';
|
|
1640
|
-
path?: string;
|
|
1641
|
-
negated?: boolean;
|
|
1642
|
-
}
|
|
1643
|
-
export interface AgentTransitionStepConditionStateOutputV3_48_0 {
|
|
1644
|
-
type: 'stateOutput';
|
|
1645
|
-
stateId: string;
|
|
1646
|
-
path?: string;
|
|
1647
|
-
negated?: boolean;
|
|
1648
|
-
}
|
|
1649
|
-
export interface AgentTransitionStepConditionStringContainsV3_48_0 {
|
|
1650
|
-
type: 'stringContains';
|
|
1651
|
-
path?: string;
|
|
1652
|
-
string: string;
|
|
1653
|
-
negated?: boolean;
|
|
1654
|
-
}
|
|
1655
|
-
export interface AgentTransitionStepConditionArgumentV3_48_0 {
|
|
1656
|
-
type: 'argument';
|
|
1657
|
-
argument: string;
|
|
1658
|
-
negated?: boolean;
|
|
1659
|
-
}
|
|
1660
1633
|
/**
|
|
1661
1634
|
* States that are traversed during the execution of an agent.
|
|
1662
1635
|
*/
|
|
@@ -1683,39 +1656,9 @@ export interface AgentVariableV3_48_0 {
|
|
|
1683
1656
|
*/
|
|
1684
1657
|
steps: AgentVariableStepV3_48_0[];
|
|
1685
1658
|
}
|
|
1686
|
-
export interface
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
path?: string;
|
|
1690
|
-
}
|
|
1691
|
-
export interface AgentVariableStepGraphQLArgV3_48_0 {
|
|
1692
|
-
type: 'graphqlArg';
|
|
1693
|
-
argName: string;
|
|
1694
|
-
}
|
|
1695
|
-
export interface AgentVariableStepStateOutputV3_48_0 {
|
|
1696
|
-
type: 'stateOutput';
|
|
1697
|
-
stateId: string;
|
|
1698
|
-
path?: string;
|
|
1699
|
-
}
|
|
1700
|
-
export interface AgentVariableStepPreviousStateOutputV3_48_0 {
|
|
1701
|
-
type: 'previousStateOutput';
|
|
1702
|
-
path?: string;
|
|
1703
|
-
}
|
|
1704
|
-
/**
|
|
1705
|
-
* An Agent Variable that has a static value.
|
|
1706
|
-
*/
|
|
1707
|
-
export interface AgentVariableStepStaticValueV3_48_0 {
|
|
1708
|
-
type: 'staticValue';
|
|
1709
|
-
condition?: AgentVariableStepConditionV3_48_0;
|
|
1710
|
-
value: string;
|
|
1711
|
-
}
|
|
1712
|
-
export interface AgentVariableStepConditionNoneV3_48_0 {
|
|
1713
|
-
type: 'none';
|
|
1714
|
-
}
|
|
1715
|
-
export interface AgentVariableStepConditionSourceStateV3_48_0 {
|
|
1716
|
-
type: 'sourceState';
|
|
1717
|
-
stateId: string;
|
|
1718
|
-
negated?: boolean;
|
|
1659
|
+
export interface AgentVariableStepV3_48_0 {
|
|
1660
|
+
condition?: string;
|
|
1661
|
+
expression: string;
|
|
1719
1662
|
}
|
|
1720
1663
|
export interface AgentExecutionGraphQLV3_48_0 {
|
|
1721
1664
|
type: 'graphql';
|
|
@@ -264,8 +264,6 @@ export type CacheTriggerConfigV3_49_0 = CacheScheduleTriggerConfigV3_49_0 | Cach
|
|
|
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
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;
|
|
268
|
-
export type AgentVariableStepConditionV3_49_0 = AgentVariableStepConditionNoneV3_49_0 | AgentVariableStepConditionSourceStateV3_49_0;
|
|
269
267
|
export type VariablesV3_49_0 = AgentVariableV3_49_0[];
|
|
270
268
|
export type AgentExecutionV3_49_0 = AgentExecutionGraphQLV3_49_0 | AgentExecutionGenerateV3_49_0 | AgentExecutionChatV3_49_0;
|
|
271
269
|
export type AgentAIStateInputV3_49_0 = AgentAIStateInputArgumentV3_49_0 | AgentAIStateInputTemplateV3_49_0;
|
|
@@ -1629,34 +1627,9 @@ export interface AgentStartV3_49_0 {
|
|
|
1629
1627
|
export interface AgentTransitionStepV3_49_0 {
|
|
1630
1628
|
destination: string;
|
|
1631
1629
|
suspend?: boolean;
|
|
1632
|
-
condition
|
|
1630
|
+
condition?: string;
|
|
1633
1631
|
limit?: number;
|
|
1634
1632
|
}
|
|
1635
|
-
export interface AgentTransitionStepConditionNoneV3_49_0 {
|
|
1636
|
-
type: 'none';
|
|
1637
|
-
}
|
|
1638
|
-
export interface AgentTransitionStepConditionArtifactV3_49_0 {
|
|
1639
|
-
type: 'artifact';
|
|
1640
|
-
path?: string;
|
|
1641
|
-
negated?: boolean;
|
|
1642
|
-
}
|
|
1643
|
-
export interface AgentTransitionStepConditionStateOutputV3_49_0 {
|
|
1644
|
-
type: 'stateOutput';
|
|
1645
|
-
stateId: string;
|
|
1646
|
-
path?: string;
|
|
1647
|
-
negated?: boolean;
|
|
1648
|
-
}
|
|
1649
|
-
export interface AgentTransitionStepConditionStringContainsV3_49_0 {
|
|
1650
|
-
type: 'stringContains';
|
|
1651
|
-
path?: string;
|
|
1652
|
-
string: string;
|
|
1653
|
-
negated?: boolean;
|
|
1654
|
-
}
|
|
1655
|
-
export interface AgentTransitionStepConditionArgumentV3_49_0 {
|
|
1656
|
-
type: 'argument';
|
|
1657
|
-
argument: string;
|
|
1658
|
-
negated?: boolean;
|
|
1659
|
-
}
|
|
1660
1633
|
/**
|
|
1661
1634
|
* States that are traversed during the execution of an agent.
|
|
1662
1635
|
*/
|
|
@@ -1683,39 +1656,9 @@ export interface AgentVariableV3_49_0 {
|
|
|
1683
1656
|
*/
|
|
1684
1657
|
steps: AgentVariableStepV3_49_0[];
|
|
1685
1658
|
}
|
|
1686
|
-
export interface
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
path?: string;
|
|
1690
|
-
}
|
|
1691
|
-
export interface AgentVariableStepGraphQLArgV3_49_0 {
|
|
1692
|
-
type: 'graphqlArg';
|
|
1693
|
-
argName: string;
|
|
1694
|
-
}
|
|
1695
|
-
export interface AgentVariableStepStateOutputV3_49_0 {
|
|
1696
|
-
type: 'stateOutput';
|
|
1697
|
-
stateId: string;
|
|
1698
|
-
path?: string;
|
|
1699
|
-
}
|
|
1700
|
-
export interface AgentVariableStepPreviousStateOutputV3_49_0 {
|
|
1701
|
-
type: 'previousStateOutput';
|
|
1702
|
-
path?: string;
|
|
1703
|
-
}
|
|
1704
|
-
/**
|
|
1705
|
-
* An Agent Variable that has a static value.
|
|
1706
|
-
*/
|
|
1707
|
-
export interface AgentVariableStepStaticValueV3_49_0 {
|
|
1708
|
-
type: 'staticValue';
|
|
1709
|
-
condition?: AgentVariableStepConditionV3_49_0;
|
|
1710
|
-
value: string;
|
|
1711
|
-
}
|
|
1712
|
-
export interface AgentVariableStepConditionNoneV3_49_0 {
|
|
1713
|
-
type: 'none';
|
|
1714
|
-
}
|
|
1715
|
-
export interface AgentVariableStepConditionSourceStateV3_49_0 {
|
|
1716
|
-
type: 'sourceState';
|
|
1717
|
-
stateId: string;
|
|
1718
|
-
negated?: boolean;
|
|
1659
|
+
export interface AgentVariableStepV3_49_0 {
|
|
1660
|
+
condition?: string;
|
|
1661
|
+
expression: string;
|
|
1719
1662
|
}
|
|
1720
1663
|
export interface AgentExecutionGraphQLV3_49_0 {
|
|
1721
1664
|
type: 'graphql';
|
|
@@ -276,8 +276,6 @@ export type CacheTriggerConfigV3_50_0 = CacheScheduleTriggerConfigV3_50_0 | Cach
|
|
|
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
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;
|
|
280
|
-
export type AgentVariableStepConditionV3_50_0 = AgentVariableStepConditionNoneV3_50_0 | AgentVariableStepConditionSourceStateV3_50_0;
|
|
281
279
|
export type VariablesV3_50_0 = AgentVariableV3_50_0[];
|
|
282
280
|
export type AgentExecutionV3_50_0 = AgentExecutionGraphQLV3_50_0 | AgentExecutionGenerateV3_50_0 | AgentExecutionChatV3_50_0;
|
|
283
281
|
export type AgentAIStateInputV3_50_0 = AgentAIStateInputArgumentV3_50_0 | AgentAIStateInputTemplateV3_50_0;
|
|
@@ -1681,34 +1679,9 @@ export interface AgentStartV3_50_0 {
|
|
|
1681
1679
|
export interface AgentTransitionStepV3_50_0 {
|
|
1682
1680
|
destination: string;
|
|
1683
1681
|
suspend?: boolean;
|
|
1684
|
-
condition
|
|
1682
|
+
condition?: string;
|
|
1685
1683
|
limit?: number;
|
|
1686
1684
|
}
|
|
1687
|
-
export interface AgentTransitionStepConditionNoneV3_50_0 {
|
|
1688
|
-
type: 'none';
|
|
1689
|
-
}
|
|
1690
|
-
export interface AgentTransitionStepConditionArtifactV3_50_0 {
|
|
1691
|
-
type: 'artifact';
|
|
1692
|
-
path?: string;
|
|
1693
|
-
negated?: boolean;
|
|
1694
|
-
}
|
|
1695
|
-
export interface AgentTransitionStepConditionStateOutputV3_50_0 {
|
|
1696
|
-
type: 'stateOutput';
|
|
1697
|
-
stateId: string;
|
|
1698
|
-
path?: string;
|
|
1699
|
-
negated?: boolean;
|
|
1700
|
-
}
|
|
1701
|
-
export interface AgentTransitionStepConditionStringContainsV3_50_0 {
|
|
1702
|
-
type: 'stringContains';
|
|
1703
|
-
path?: string;
|
|
1704
|
-
string: string;
|
|
1705
|
-
negated?: boolean;
|
|
1706
|
-
}
|
|
1707
|
-
export interface AgentTransitionStepConditionArgumentV3_50_0 {
|
|
1708
|
-
type: 'argument';
|
|
1709
|
-
argument: string;
|
|
1710
|
-
negated?: boolean;
|
|
1711
|
-
}
|
|
1712
1685
|
/**
|
|
1713
1686
|
* States that are traversed during the execution of an agent.
|
|
1714
1687
|
*/
|
|
@@ -1735,39 +1708,9 @@ export interface AgentVariableV3_50_0 {
|
|
|
1735
1708
|
*/
|
|
1736
1709
|
steps: AgentVariableStepV3_50_0[];
|
|
1737
1710
|
}
|
|
1738
|
-
export interface
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
path?: string;
|
|
1742
|
-
}
|
|
1743
|
-
export interface AgentVariableStepGraphQLArgV3_50_0 {
|
|
1744
|
-
type: 'graphqlArg';
|
|
1745
|
-
argName: string;
|
|
1746
|
-
}
|
|
1747
|
-
export interface AgentVariableStepStateOutputV3_50_0 {
|
|
1748
|
-
type: 'stateOutput';
|
|
1749
|
-
stateId: string;
|
|
1750
|
-
path?: string;
|
|
1751
|
-
}
|
|
1752
|
-
export interface AgentVariableStepPreviousStateOutputV3_50_0 {
|
|
1753
|
-
type: 'previousStateOutput';
|
|
1754
|
-
path?: string;
|
|
1755
|
-
}
|
|
1756
|
-
/**
|
|
1757
|
-
* An Agent Variable that has a static value.
|
|
1758
|
-
*/
|
|
1759
|
-
export interface AgentVariableStepStaticValueV3_50_0 {
|
|
1760
|
-
type: 'staticValue';
|
|
1761
|
-
condition?: AgentVariableStepConditionV3_50_0;
|
|
1762
|
-
value: string;
|
|
1763
|
-
}
|
|
1764
|
-
export interface AgentVariableStepConditionNoneV3_50_0 {
|
|
1765
|
-
type: 'none';
|
|
1766
|
-
}
|
|
1767
|
-
export interface AgentVariableStepConditionSourceStateV3_50_0 {
|
|
1768
|
-
type: 'sourceState';
|
|
1769
|
-
stateId: string;
|
|
1770
|
-
negated?: boolean;
|
|
1711
|
+
export interface AgentVariableStepV3_50_0 {
|
|
1712
|
+
condition?: string;
|
|
1713
|
+
expression: string;
|
|
1771
1714
|
}
|
|
1772
1715
|
export interface AgentExecutionGraphQLV3_50_0 {
|
|
1773
1716
|
type: 'graphql';
|
|
@@ -276,8 +276,6 @@ export type CacheTriggerConfigV3_51_0 = CacheScheduleTriggerConfigV3_51_0 | Cach
|
|
|
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
277
|
export type AgentAPIV3_51_0 = AgentAPIChatV3_51_0 | AgentAPIGenerateV3_51_0;
|
|
278
278
|
export type MemoryLocationsV3_51_0 = AgentSessionMemoryLocationV3_51_0[];
|
|
279
|
-
export type AgentVariableStepV3_51_0 = AgentVariableStepSessionMemoryV3_51_0 | AgentVariableStepGraphQLArgV3_51_0 | AgentVariableStepStateOutputV3_51_0 | AgentVariableStepPreviousStateOutputV3_51_0 | AgentVariableStepStaticValueV3_51_0;
|
|
280
|
-
export type AgentVariableStepConditionV3_51_0 = AgentVariableStepConditionNoneV3_51_0 | AgentVariableStepConditionSourceStateV3_51_0;
|
|
281
279
|
export type VariablesV3_51_0 = AgentVariableV3_51_0[];
|
|
282
280
|
export type AgentExecutionV3_51_0 = AgentExecutionGraphQLV3_51_0 | AgentExecutionGenerateV3_51_0 | AgentExecutionChatV3_51_0;
|
|
283
281
|
export type AgentAIStateInputV3_51_0 = AgentAIStateInputArgumentV3_51_0 | AgentAIStateInputTemplateV3_51_0;
|
|
@@ -1681,34 +1679,9 @@ export interface AgentStartV3_51_0 {
|
|
|
1681
1679
|
export interface AgentTransitionStepV3_51_0 {
|
|
1682
1680
|
destination: string;
|
|
1683
1681
|
suspend?: boolean;
|
|
1684
|
-
condition
|
|
1682
|
+
condition?: string;
|
|
1685
1683
|
limit?: number;
|
|
1686
1684
|
}
|
|
1687
|
-
export interface AgentTransitionStepConditionNoneV3_51_0 {
|
|
1688
|
-
type: 'none';
|
|
1689
|
-
}
|
|
1690
|
-
export interface AgentTransitionStepConditionArtifactV3_51_0 {
|
|
1691
|
-
type: 'artifact';
|
|
1692
|
-
path?: string;
|
|
1693
|
-
negated?: boolean;
|
|
1694
|
-
}
|
|
1695
|
-
export interface AgentTransitionStepConditionStateOutputV3_51_0 {
|
|
1696
|
-
type: 'stateOutput';
|
|
1697
|
-
stateId: string;
|
|
1698
|
-
path?: string;
|
|
1699
|
-
negated?: boolean;
|
|
1700
|
-
}
|
|
1701
|
-
export interface AgentTransitionStepConditionStringContainsV3_51_0 {
|
|
1702
|
-
type: 'stringContains';
|
|
1703
|
-
path?: string;
|
|
1704
|
-
string: string;
|
|
1705
|
-
negated?: boolean;
|
|
1706
|
-
}
|
|
1707
|
-
export interface AgentTransitionStepConditionArgumentV3_51_0 {
|
|
1708
|
-
type: 'argument';
|
|
1709
|
-
argument: string;
|
|
1710
|
-
negated?: boolean;
|
|
1711
|
-
}
|
|
1712
1685
|
/**
|
|
1713
1686
|
* States that are traversed during the execution of an agent.
|
|
1714
1687
|
*/
|
|
@@ -1735,39 +1708,9 @@ export interface AgentVariableV3_51_0 {
|
|
|
1735
1708
|
*/
|
|
1736
1709
|
steps: AgentVariableStepV3_51_0[];
|
|
1737
1710
|
}
|
|
1738
|
-
export interface
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
path?: string;
|
|
1742
|
-
}
|
|
1743
|
-
export interface AgentVariableStepGraphQLArgV3_51_0 {
|
|
1744
|
-
type: 'graphqlArg';
|
|
1745
|
-
argName: string;
|
|
1746
|
-
}
|
|
1747
|
-
export interface AgentVariableStepStateOutputV3_51_0 {
|
|
1748
|
-
type: 'stateOutput';
|
|
1749
|
-
stateId: string;
|
|
1750
|
-
path?: string;
|
|
1751
|
-
}
|
|
1752
|
-
export interface AgentVariableStepPreviousStateOutputV3_51_0 {
|
|
1753
|
-
type: 'previousStateOutput';
|
|
1754
|
-
path?: string;
|
|
1755
|
-
}
|
|
1756
|
-
/**
|
|
1757
|
-
* An Agent Variable that has a static value.
|
|
1758
|
-
*/
|
|
1759
|
-
export interface AgentVariableStepStaticValueV3_51_0 {
|
|
1760
|
-
type: 'staticValue';
|
|
1761
|
-
condition?: AgentVariableStepConditionV3_51_0;
|
|
1762
|
-
value: string;
|
|
1763
|
-
}
|
|
1764
|
-
export interface AgentVariableStepConditionNoneV3_51_0 {
|
|
1765
|
-
type: 'none';
|
|
1766
|
-
}
|
|
1767
|
-
export interface AgentVariableStepConditionSourceStateV3_51_0 {
|
|
1768
|
-
type: 'sourceState';
|
|
1769
|
-
stateId: string;
|
|
1770
|
-
negated?: boolean;
|
|
1711
|
+
export interface AgentVariableStepV3_51_0 {
|
|
1712
|
+
condition?: string;
|
|
1713
|
+
expression: string;
|
|
1771
1714
|
}
|
|
1772
1715
|
export interface AgentExecutionGraphQLV3_51_0 {
|
|
1773
1716
|
type: 'graphql';
|