@takeshape/schema 11.121.4 → 11.121.9
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/resolvers/ai/agent-chat-response.d.ts +5 -19
- package/dist/resolvers/ai/agent-message-payload.d.ts +6 -3
- package/dist/resolvers/ai/agent-session-payload.d.ts +1 -12
- package/dist/resolvers/ai/agent-session-payload.js +0 -9
- package/dist/resolvers/ai/create-agent-session-response.d.ts +8 -22
- package/dist/resolvers/ai/create-agent-session-response.js +1 -1
- package/dist/resolvers/ai/get-agent-message-response.d.ts +1 -9
- package/dist/resolvers/ai/inspect-agent-response.d.ts +7 -15
- package/dist/resolvers/ai/inspect-agent-response.js +0 -1
- package/dist/resolvers/ai/send-agent-message-response.d.ts +1 -9
- package/dist/util/expressions.d.ts +0 -2
- package/dist/util/expressions.js +0 -2
- package/examples/latest/chat-agent-schema.json +79 -0
- package/examples/latest/{agent-schema.json → generate-agent-schema.json} +88 -108
- package/examples/source/chat-agent-schema.json +59 -0
- package/examples/source/generate-agent-schema.json +292 -0
- package/package.json +6 -6
- package/examples/source/agent-schema.json +0 -365
|
@@ -86,14 +86,6 @@ export declare const schema: {
|
|
|
86
86
|
readonly type: "object";
|
|
87
87
|
readonly description: "Memory associated with the agent session, which can be used to store stateful information.";
|
|
88
88
|
};
|
|
89
|
-
readonly stateOutputs: {
|
|
90
|
-
readonly type: "object";
|
|
91
|
-
readonly description: "Outputs from the states in the agent session, keyed by state ID.";
|
|
92
|
-
};
|
|
93
|
-
readonly currentValue: {
|
|
94
|
-
readonly type: "object";
|
|
95
|
-
readonly description: "The current value of the agent session, which may be updated as the session progresses.";
|
|
96
|
-
};
|
|
97
89
|
readonly hasAgentHistory: {
|
|
98
90
|
readonly type: "boolean";
|
|
99
91
|
readonly description: "Indicates whether the agent session has an associated history of agent responses.";
|
|
@@ -103,7 +95,7 @@ export declare const schema: {
|
|
|
103
95
|
readonly description: "Indicates whether the agent session has any messages with feedback.";
|
|
104
96
|
};
|
|
105
97
|
};
|
|
106
|
-
readonly required: ["id", "agentName", "createdAt", "updatedAt", "done", "currentStateId", "chatSessionIds", "sessionMemory", "
|
|
98
|
+
readonly required: ["id", "agentName", "createdAt", "updatedAt", "done", "currentStateId", "chatSessionIds", "sessionMemory", "projectId", "schemaId", "schemaHash"];
|
|
107
99
|
readonly additionalProperties: false;
|
|
108
100
|
};
|
|
109
101
|
readonly runMode: {
|
|
@@ -131,17 +123,14 @@ export declare const validate: import("ajv").ValidateFunction<{
|
|
|
131
123
|
session: {
|
|
132
124
|
suspended?: boolean | undefined;
|
|
133
125
|
previousStateId?: string | undefined;
|
|
134
|
-
currentValue?: {
|
|
135
|
-
[x: string]: unknown;
|
|
136
|
-
} | undefined;
|
|
137
126
|
hasAgentHistory?: boolean | undefined;
|
|
138
127
|
hasFeedback?: boolean | undefined;
|
|
139
|
-
projectId: string;
|
|
140
|
-
schemaId: string;
|
|
141
|
-
agentName: string;
|
|
142
|
-
createdAt: string;
|
|
143
128
|
id: string;
|
|
129
|
+
createdAt: string;
|
|
144
130
|
updatedAt: string;
|
|
131
|
+
agentName: string;
|
|
132
|
+
projectId: string;
|
|
133
|
+
schemaId: string;
|
|
145
134
|
schemaHash: string;
|
|
146
135
|
done: boolean;
|
|
147
136
|
currentStateId: string;
|
|
@@ -151,8 +140,5 @@ export declare const validate: import("ajv").ValidateFunction<{
|
|
|
151
140
|
sessionMemory: {
|
|
152
141
|
[x: string]: unknown;
|
|
153
142
|
};
|
|
154
|
-
stateOutputs: {
|
|
155
|
-
[x: string]: unknown;
|
|
156
|
-
};
|
|
157
143
|
};
|
|
158
144
|
}>;
|
|
@@ -338,10 +338,10 @@ export declare const validate: import("ajv").ValidateFunction<{
|
|
|
338
338
|
startedAt?: number | undefined;
|
|
339
339
|
finishedAt?: number | undefined;
|
|
340
340
|
span?: {
|
|
341
|
+
createdAt: number;
|
|
341
342
|
name: string;
|
|
342
343
|
traceId: string;
|
|
343
344
|
spanId: string;
|
|
344
|
-
createdAt: number;
|
|
345
345
|
} | undefined;
|
|
346
346
|
feedback?: {
|
|
347
347
|
createdAt?: number | undefined;
|
|
@@ -360,10 +360,10 @@ export declare const validate: import("ajv").ValidateFunction<{
|
|
|
360
360
|
guardrailUnits?: number | undefined;
|
|
361
361
|
} | undefined;
|
|
362
362
|
messageId: string;
|
|
363
|
-
|
|
363
|
+
agentName: string;
|
|
364
364
|
projectId: string;
|
|
365
365
|
schemaId: string;
|
|
366
|
-
|
|
366
|
+
sessionId: string;
|
|
367
367
|
runMode: "BACKGROUND" | "IMMEDIATE";
|
|
368
368
|
sentAt: number;
|
|
369
369
|
}>;
|
|
@@ -388,3 +388,6 @@ export type AgentGraphQLStateExecuteResult = {
|
|
|
388
388
|
output: AgentGraphQLStateOutput;
|
|
389
389
|
};
|
|
390
390
|
export type AgentStateExecuteResult = AgentChatStateExecuteResult | AgentGenerateStateExecuteResult | AgentGraphQLStateExecuteResult;
|
|
391
|
+
export type AgentChatStateExecuteResultWithoutMetadata = Omit<AgentChatStateExecuteResult, 'metadata'>;
|
|
392
|
+
export type AgentGenerateStateExecuteResultWithoutMetadata = Omit<AgentGenerateStateExecuteResult, 'metadata'>;
|
|
393
|
+
export type AgentStateExecuteResultWithoutMetadata = AgentChatStateExecuteResultWithoutMetadata | AgentGenerateStateExecuteResultWithoutMetadata | AgentGraphQLStateExecuteResult;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { FromSchema } from 'json-schema-to-ts';
|
|
2
|
-
import type { AgentStateExecuteResult, AgentStateOutput } from './agent-message-payload.ts';
|
|
3
2
|
export declare const schema: {
|
|
4
3
|
readonly type: "object";
|
|
5
4
|
readonly properties: {
|
|
@@ -57,14 +56,6 @@ export declare const schema: {
|
|
|
57
56
|
readonly type: "object";
|
|
58
57
|
readonly description: "Memory associated with the agent session, which can be used to store stateful information.";
|
|
59
58
|
};
|
|
60
|
-
readonly stateOutputs: {
|
|
61
|
-
readonly type: "object";
|
|
62
|
-
readonly description: "Outputs from the states in the agent session, keyed by state ID.";
|
|
63
|
-
};
|
|
64
|
-
readonly currentValue: {
|
|
65
|
-
readonly type: "object";
|
|
66
|
-
readonly description: "The current value of the agent session, which may be updated as the session progresses.";
|
|
67
|
-
};
|
|
68
59
|
readonly hasAgentHistory: {
|
|
69
60
|
readonly type: "boolean";
|
|
70
61
|
readonly description: "Indicates whether the agent session has an associated history of agent responses.";
|
|
@@ -74,12 +65,10 @@ export declare const schema: {
|
|
|
74
65
|
readonly description: "Indicates whether the agent session has any messages with feedback.";
|
|
75
66
|
};
|
|
76
67
|
};
|
|
77
|
-
readonly required: ["id", "agentName", "createdAt", "updatedAt", "done", "currentStateId", "chatSessionIds", "sessionMemory", "
|
|
68
|
+
readonly required: ["id", "agentName", "createdAt", "updatedAt", "done", "currentStateId", "chatSessionIds", "sessionMemory", "projectId", "schemaId", "schemaHash"];
|
|
78
69
|
readonly additionalProperties: false;
|
|
79
70
|
};
|
|
80
71
|
export type AgentSessionPayload = FromSchema<typeof schema> & {
|
|
81
|
-
stateOutputs: Record<string, AgentStateOutput | undefined>;
|
|
82
72
|
suspended?: boolean;
|
|
83
|
-
currentValue?: Omit<AgentStateExecuteResult, 'metadata'>;
|
|
84
73
|
};
|
|
85
74
|
export declare const validate: import("ajv").ValidateFunction<AgentSessionPayload>;
|
|
@@ -56,14 +56,6 @@ export const schema = {
|
|
|
56
56
|
type: 'object',
|
|
57
57
|
description: 'Memory associated with the agent session, which can be used to store stateful information.'
|
|
58
58
|
},
|
|
59
|
-
stateOutputs: {
|
|
60
|
-
type: 'object',
|
|
61
|
-
description: 'Outputs from the states in the agent session, keyed by state ID.'
|
|
62
|
-
},
|
|
63
|
-
currentValue: {
|
|
64
|
-
type: 'object',
|
|
65
|
-
description: 'The current value of the agent session, which may be updated as the session progresses.'
|
|
66
|
-
},
|
|
67
59
|
hasAgentHistory: {
|
|
68
60
|
type: 'boolean',
|
|
69
61
|
description: 'Indicates whether the agent session has an associated history of agent responses.'
|
|
@@ -82,7 +74,6 @@ export const schema = {
|
|
|
82
74
|
'currentStateId',
|
|
83
75
|
'chatSessionIds',
|
|
84
76
|
'sessionMemory',
|
|
85
|
-
'stateOutputs',
|
|
86
77
|
'projectId',
|
|
87
78
|
'schemaId',
|
|
88
79
|
'schemaHash'
|
|
@@ -2,24 +2,24 @@ import type { FromSchema } from 'json-schema-to-ts';
|
|
|
2
2
|
export declare const shapeName = "TSCreateAgentSessionResponse";
|
|
3
3
|
export declare const schema: {
|
|
4
4
|
readonly properties: {
|
|
5
|
-
readonly
|
|
5
|
+
readonly id: {
|
|
6
6
|
readonly type: "string";
|
|
7
|
-
readonly description: "The
|
|
7
|
+
readonly description: "The unique identifier for the agent session.";
|
|
8
8
|
};
|
|
9
9
|
readonly createdAt: {
|
|
10
10
|
readonly type: "string";
|
|
11
11
|
readonly description: "ISO8601 timestamp when the agent session was created";
|
|
12
12
|
readonly format: "date-time";
|
|
13
13
|
};
|
|
14
|
-
readonly id: {
|
|
15
|
-
readonly type: "string";
|
|
16
|
-
readonly description: "The unique identifier for the agent session.";
|
|
17
|
-
};
|
|
18
14
|
readonly updatedAt: {
|
|
19
15
|
readonly type: "string";
|
|
20
16
|
readonly description: "ISO8601 timestamp when the agent session was updated";
|
|
21
17
|
readonly format: "date-time";
|
|
22
18
|
};
|
|
19
|
+
readonly agentName: {
|
|
20
|
+
readonly type: "string";
|
|
21
|
+
readonly description: "The name of the agent associated with this session.";
|
|
22
|
+
};
|
|
23
23
|
readonly schemaHash: {
|
|
24
24
|
readonly type: "string";
|
|
25
25
|
readonly description: "The hash of the schema version associated with the agent session.";
|
|
@@ -48,14 +48,6 @@ export declare const schema: {
|
|
|
48
48
|
readonly type: "object";
|
|
49
49
|
readonly description: "Memory associated with the agent session, which can be used to store stateful information.";
|
|
50
50
|
};
|
|
51
|
-
readonly stateOutputs: {
|
|
52
|
-
readonly type: "object";
|
|
53
|
-
readonly description: "Outputs from the states in the agent session, keyed by state ID.";
|
|
54
|
-
};
|
|
55
|
-
readonly currentValue: {
|
|
56
|
-
readonly type: "object";
|
|
57
|
-
readonly description: "The current value of the agent session, which may be updated as the session progresses.";
|
|
58
|
-
};
|
|
59
51
|
readonly hasAgentHistory: {
|
|
60
52
|
readonly type: "boolean";
|
|
61
53
|
readonly description: "Indicates whether the agent session has an associated history of agent responses.";
|
|
@@ -65,7 +57,7 @@ export declare const schema: {
|
|
|
65
57
|
readonly description: "Indicates whether the agent session has any messages with feedback.";
|
|
66
58
|
};
|
|
67
59
|
};
|
|
68
|
-
readonly required: ["id", "agentName", "done", "currentStateId", "chatSessionIds", "sessionMemory"
|
|
60
|
+
readonly required: ["id", "agentName", "done", "currentStateId", "chatSessionIds", "sessionMemory"];
|
|
69
61
|
readonly additionalProperties: false;
|
|
70
62
|
readonly type: "object";
|
|
71
63
|
};
|
|
@@ -76,13 +68,10 @@ export declare const validate: import("ajv").ValidateFunction<{
|
|
|
76
68
|
schemaHash?: string | undefined;
|
|
77
69
|
suspended?: boolean | undefined;
|
|
78
70
|
previousStateId?: string | undefined;
|
|
79
|
-
currentValue?: {
|
|
80
|
-
[x: string]: unknown;
|
|
81
|
-
} | undefined;
|
|
82
71
|
hasAgentHistory?: boolean | undefined;
|
|
83
72
|
hasFeedback?: boolean | undefined;
|
|
84
|
-
agentName: string;
|
|
85
73
|
id: string;
|
|
74
|
+
agentName: string;
|
|
86
75
|
done: boolean;
|
|
87
76
|
currentStateId: string;
|
|
88
77
|
chatSessionIds: {
|
|
@@ -91,7 +80,4 @@ export declare const validate: import("ajv").ValidateFunction<{
|
|
|
91
80
|
sessionMemory: {
|
|
92
81
|
[x: string]: unknown;
|
|
93
82
|
};
|
|
94
|
-
stateOutputs: {
|
|
95
|
-
[x: string]: unknown;
|
|
96
|
-
};
|
|
97
83
|
}>;
|
|
@@ -8,7 +8,7 @@ export const schema = {
|
|
|
8
8
|
properties: {
|
|
9
9
|
...omit(agentSessionPayload.schema.properties, ['projectId', 'schemaId'])
|
|
10
10
|
},
|
|
11
|
-
required: ['id', 'agentName', 'done', 'currentStateId', 'chatSessionIds', 'sessionMemory'
|
|
11
|
+
required: ['id', 'agentName', 'done', 'currentStateId', 'chatSessionIds', 'sessionMemory'],
|
|
12
12
|
additionalProperties: false
|
|
13
13
|
};
|
|
14
14
|
export const validate = createTypedValidator(schema);
|
|
@@ -71,14 +71,6 @@ export declare const schema: {
|
|
|
71
71
|
readonly type: "object";
|
|
72
72
|
readonly description: "Memory associated with the agent session, which can be used to store stateful information.";
|
|
73
73
|
};
|
|
74
|
-
readonly stateOutputs: {
|
|
75
|
-
readonly type: "object";
|
|
76
|
-
readonly description: "Outputs from the states in the agent session, keyed by state ID.";
|
|
77
|
-
};
|
|
78
|
-
readonly currentValue: {
|
|
79
|
-
readonly type: "object";
|
|
80
|
-
readonly description: "The current value of the agent session, which may be updated as the session progresses.";
|
|
81
|
-
};
|
|
82
74
|
readonly hasAgentHistory: {
|
|
83
75
|
readonly type: "boolean";
|
|
84
76
|
readonly description: "Indicates whether the agent session has an associated history of agent responses.";
|
|
@@ -88,7 +80,7 @@ export declare const schema: {
|
|
|
88
80
|
readonly description: "Indicates whether the agent session has any messages with feedback.";
|
|
89
81
|
};
|
|
90
82
|
};
|
|
91
|
-
readonly required: ["id", "agentName", "createdAt", "updatedAt", "done", "currentStateId", "chatSessionIds", "sessionMemory", "
|
|
83
|
+
readonly required: ["id", "agentName", "createdAt", "updatedAt", "done", "currentStateId", "chatSessionIds", "sessionMemory", "projectId", "schemaId", "schemaHash"];
|
|
92
84
|
readonly additionalProperties: false;
|
|
93
85
|
};
|
|
94
86
|
readonly messageId: {
|
|
@@ -18,24 +18,24 @@ export declare const schema: {
|
|
|
18
18
|
};
|
|
19
19
|
readonly description: "A list of messages exchanged in the agent session, which may include user inputs and agent responses.";
|
|
20
20
|
};
|
|
21
|
-
readonly
|
|
21
|
+
readonly id: {
|
|
22
22
|
readonly type: "string";
|
|
23
|
-
readonly description: "The
|
|
23
|
+
readonly description: "The unique identifier for the agent session.";
|
|
24
24
|
};
|
|
25
25
|
readonly createdAt: {
|
|
26
26
|
readonly type: "string";
|
|
27
27
|
readonly description: "ISO8601 timestamp when the agent session was created";
|
|
28
28
|
readonly format: "date-time";
|
|
29
29
|
};
|
|
30
|
-
readonly id: {
|
|
31
|
-
readonly type: "string";
|
|
32
|
-
readonly description: "The unique identifier for the agent session.";
|
|
33
|
-
};
|
|
34
30
|
readonly updatedAt: {
|
|
35
31
|
readonly type: "string";
|
|
36
32
|
readonly description: "ISO8601 timestamp when the agent session was updated";
|
|
37
33
|
readonly format: "date-time";
|
|
38
34
|
};
|
|
35
|
+
readonly agentName: {
|
|
36
|
+
readonly type: "string";
|
|
37
|
+
readonly description: "The name of the agent associated with this session.";
|
|
38
|
+
};
|
|
39
39
|
readonly schemaHash: {
|
|
40
40
|
readonly type: "string";
|
|
41
41
|
readonly description: "The hash of the schema version associated with the agent session.";
|
|
@@ -64,14 +64,6 @@ export declare const schema: {
|
|
|
64
64
|
readonly type: "object";
|
|
65
65
|
readonly description: "Memory associated with the agent session, which can be used to store stateful information.";
|
|
66
66
|
};
|
|
67
|
-
readonly stateOutputs: {
|
|
68
|
-
readonly type: "object";
|
|
69
|
-
readonly description: "Outputs from the states in the agent session, keyed by state ID.";
|
|
70
|
-
};
|
|
71
|
-
readonly currentValue: {
|
|
72
|
-
readonly type: "object";
|
|
73
|
-
readonly description: "The current value of the agent session, which may be updated as the session progresses.";
|
|
74
|
-
};
|
|
75
67
|
readonly hasAgentHistory: {
|
|
76
68
|
readonly type: "boolean";
|
|
77
69
|
readonly description: "Indicates whether the agent session has an associated history of agent responses.";
|
|
@@ -81,7 +73,7 @@ export declare const schema: {
|
|
|
81
73
|
readonly description: "Indicates whether the agent session has any messages with feedback.";
|
|
82
74
|
};
|
|
83
75
|
};
|
|
84
|
-
readonly required: ["id", "agentName", "done", "currentStateId", "chatSessionIds", "sessionMemory", "
|
|
76
|
+
readonly required: ["id", "agentName", "done", "currentStateId", "chatSessionIds", "sessionMemory", "agentHistory", "messages"];
|
|
85
77
|
readonly additionalProperties: false;
|
|
86
78
|
readonly type: "object";
|
|
87
79
|
};
|
|
@@ -63,14 +63,6 @@ export declare const schema: {
|
|
|
63
63
|
readonly type: "object";
|
|
64
64
|
readonly description: "Memory associated with the agent session, which can be used to store stateful information.";
|
|
65
65
|
};
|
|
66
|
-
readonly stateOutputs: {
|
|
67
|
-
readonly type: "object";
|
|
68
|
-
readonly description: "Outputs from the states in the agent session, keyed by state ID.";
|
|
69
|
-
};
|
|
70
|
-
readonly currentValue: {
|
|
71
|
-
readonly type: "object";
|
|
72
|
-
readonly description: "The current value of the agent session, which may be updated as the session progresses.";
|
|
73
|
-
};
|
|
74
66
|
readonly hasAgentHistory: {
|
|
75
67
|
readonly type: "boolean";
|
|
76
68
|
readonly description: "Indicates whether the agent session has an associated history of agent responses.";
|
|
@@ -80,7 +72,7 @@ export declare const schema: {
|
|
|
80
72
|
readonly description: "Indicates whether the agent session has any messages with feedback.";
|
|
81
73
|
};
|
|
82
74
|
};
|
|
83
|
-
readonly required: ["id", "agentName", "createdAt", "updatedAt", "done", "currentStateId", "chatSessionIds", "sessionMemory", "
|
|
75
|
+
readonly required: ["id", "agentName", "createdAt", "updatedAt", "done", "currentStateId", "chatSessionIds", "sessionMemory", "projectId", "schemaId", "schemaHash"];
|
|
84
76
|
readonly additionalProperties: false;
|
|
85
77
|
};
|
|
86
78
|
readonly runMode: {
|
|
@@ -15,10 +15,8 @@ export declare const METHODS_NOT_SUPPORTED = "Methods are not supported in expre
|
|
|
15
15
|
export declare const THIS_NOT_SUPPORTED = "This is not supported in expressions";
|
|
16
16
|
export declare function parseExpression(expression: string): AnyExpression;
|
|
17
17
|
export type ExpressionContext = {
|
|
18
|
-
previousStateOutput?: unknown;
|
|
19
18
|
currentStateId: string;
|
|
20
19
|
previousStateId?: string;
|
|
21
|
-
stateOutputs: Record<string, unknown>;
|
|
22
20
|
currentStateOutput?: unknown;
|
|
23
21
|
sessionMemory: Record<string, unknown>;
|
|
24
22
|
claims: Record<string, unknown>;
|
package/dist/util/expressions.js
CHANGED
|
@@ -265,10 +265,8 @@ function validateAST(options, rootNode) {
|
|
|
265
265
|
return validate(rootNode, undefined, undefined);
|
|
266
266
|
}
|
|
267
267
|
const contextKeys = [
|
|
268
|
-
'previousStateOutput',
|
|
269
268
|
'currentStateId',
|
|
270
269
|
'previousStateId',
|
|
271
|
-
'stateOutputs',
|
|
272
270
|
'currentStateOutput',
|
|
273
271
|
'sessionMemory',
|
|
274
272
|
'claims',
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
{
|
|
2
|
+
"projectId": "chat-agent-schema-project-id",
|
|
3
|
+
"defaultLocale": "en-us",
|
|
4
|
+
"locales": [
|
|
5
|
+
"en-us"
|
|
6
|
+
],
|
|
7
|
+
"queries": {},
|
|
8
|
+
"mutations": {},
|
|
9
|
+
"shapes": {},
|
|
10
|
+
"workflows": {},
|
|
11
|
+
"forms": {},
|
|
12
|
+
"agents": {
|
|
13
|
+
"chat": {
|
|
14
|
+
"api": {
|
|
15
|
+
"inputs": [
|
|
16
|
+
{
|
|
17
|
+
"name": "chat",
|
|
18
|
+
"type": "mutation",
|
|
19
|
+
"args": "TSChatArgs"
|
|
20
|
+
}
|
|
21
|
+
]
|
|
22
|
+
},
|
|
23
|
+
"start": {
|
|
24
|
+
"transitions": [
|
|
25
|
+
{
|
|
26
|
+
"type": "suspend",
|
|
27
|
+
"input": "chat",
|
|
28
|
+
"destination": "3pjuyB47X"
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
},
|
|
32
|
+
"states": {
|
|
33
|
+
"3pjuyB47X": {
|
|
34
|
+
"name": "chat",
|
|
35
|
+
"execution": {
|
|
36
|
+
"type": "chat",
|
|
37
|
+
"service": "openai",
|
|
38
|
+
"model": "gpt-4o",
|
|
39
|
+
"input": {
|
|
40
|
+
"type": "arg"
|
|
41
|
+
},
|
|
42
|
+
"systemPrompt": "You are a helpful assistant. If the user says they have no further questions, end your response with the string ALL_DONE."
|
|
43
|
+
},
|
|
44
|
+
"transitions": [
|
|
45
|
+
{
|
|
46
|
+
"type": "immediate",
|
|
47
|
+
"condition": "contains(currentStateOutput.content, 'ALL_DONE')",
|
|
48
|
+
"destination": "END"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"type": "suspend",
|
|
52
|
+
"destination": "3pjuyB47X",
|
|
53
|
+
"input": "chat"
|
|
54
|
+
}
|
|
55
|
+
]
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"historyStrategies": {}
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"services": {
|
|
62
|
+
"openai": {
|
|
63
|
+
"id": "openai",
|
|
64
|
+
"title": "OpenAI",
|
|
65
|
+
"namespace": "OpenAI",
|
|
66
|
+
"provider": "openai",
|
|
67
|
+
"serviceType": "openapi",
|
|
68
|
+
"authenticationType": "bearer",
|
|
69
|
+
"options": {
|
|
70
|
+
"endpoint": "https://api.openai.com/v1/",
|
|
71
|
+
"spec": "https://raw.githubusercontent.com/takeshape/openapi-specs/813784d8fcac5b3fd4e468ce6f715b89c9fcb73f/specs/openai/v2.yml",
|
|
72
|
+
"transformVersion": "2.0.0",
|
|
73
|
+
"introspectedAt": "2025-08-26T20:52:22.324Z"
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
"schemaVersion": "3.59.0",
|
|
78
|
+
"apiVersion": "2"
|
|
79
|
+
}
|