@autobe/agent 0.8.0 → 0.9.1
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/lib/AutoBeAgent.d.ts +183 -12
- package/lib/AutoBeAgent.js +247 -65
- package/lib/AutoBeAgent.js.map +1 -1
- package/lib/constants/AutoBeSystemPromptConstant.d.ts +4 -3
- package/lib/constants/AutoBeSystemPromptConstant.js.map +1 -1
- package/lib/context/AutoBeContext.d.ts +2 -2
- package/lib/factory/index.d.ts +0 -1
- package/lib/factory/index.js +0 -1
- package/lib/factory/index.js.map +1 -1
- package/lib/index.mjs +1195 -834
- package/lib/index.mjs.map +1 -1
- package/lib/orchestrate/analyze/AutoBeAnalyzeAgent.js +1 -1
- package/lib/orchestrate/analyze/AutoBeAnalyzeAgent.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterface.js +1 -1
- package/lib/orchestrate/interface/orchestrateInterface.js.map +1 -1
- package/lib/orchestrate/prisma/orchestratePrisma.js +1 -1
- package/lib/orchestrate/prisma/orchestratePrisma.js.map +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaCorrect.js +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaCorrect.js.map +1 -1
- package/lib/orchestrate/test/compileTestScenario.d.ts +5 -0
- package/lib/orchestrate/test/compileTestScenario.js +56 -0
- package/lib/orchestrate/test/compileTestScenario.js.map +1 -0
- package/lib/orchestrate/test/filterTestFileName.d.ts +1 -0
- package/lib/orchestrate/test/filterTestFileName.js +13 -0
- package/lib/orchestrate/test/filterTestFileName.js.map +1 -0
- package/lib/orchestrate/test/orchestrateTest.js +10 -11
- package/lib/orchestrate/test/orchestrateTest.js.map +1 -1
- package/lib/orchestrate/test/orchestrateTestCorrect.d.ts +2 -2
- package/lib/orchestrate/test/orchestrateTestCorrect.js +91 -73
- package/lib/orchestrate/test/orchestrateTestCorrect.js.map +1 -1
- package/lib/orchestrate/test/orchestrateTestScenario.d.ts +2 -2
- package/lib/orchestrate/test/orchestrateTestScenario.js +616 -237
- package/lib/orchestrate/test/orchestrateTestScenario.js.map +1 -1
- package/lib/orchestrate/test/orchestrateTestWrite.d.ts +4 -0
- package/lib/orchestrate/test/{orchestrateTestProgress.js → orchestrateTestWrite.js} +37 -51
- package/lib/orchestrate/test/orchestrateTestWrite.js.map +1 -0
- package/lib/orchestrate/test/structures/IAutoBeTestScenarioApplication.d.ts +123 -0
- package/lib/orchestrate/test/structures/IAutoBeTestScenarioApplication.js +3 -0
- package/lib/orchestrate/test/structures/IAutoBeTestScenarioApplication.js.map +1 -0
- package/lib/orchestrate/test/structures/IAutoBeTestScenarioArtifacts.d.ts +5 -0
- package/lib/orchestrate/test/structures/IAutoBeTestScenarioArtifacts.js +3 -0
- package/lib/orchestrate/test/structures/IAutoBeTestScenarioArtifacts.js.map +1 -0
- package/lib/orchestrate/test/transformTestCorrectHistories.d.ts +2 -1
- package/lib/orchestrate/test/transformTestCorrectHistories.js +4 -4
- package/lib/orchestrate/test/transformTestCorrectHistories.js.map +1 -1
- package/lib/orchestrate/test/transformTestScenarioHistories.d.ts +1 -2
- package/lib/orchestrate/test/transformTestScenarioHistories.js +1 -77
- package/lib/orchestrate/test/transformTestScenarioHistories.js.map +1 -1
- package/lib/orchestrate/test/transformTestWriteHistories.d.ts +7 -0
- package/lib/orchestrate/test/transformTestWriteHistories.js +47 -0
- package/lib/orchestrate/test/transformTestWriteHistories.js.map +1 -0
- package/lib/structures/IAutoBeConfig.d.ts +48 -10
- package/lib/structures/IAutoBeProps.d.ts +87 -0
- package/lib/structures/IAutoBeVendor.d.ts +64 -22
- package/lib/utils/backoffRetry.d.ts +7 -0
- package/lib/utils/backoffRetry.js +73 -0
- package/lib/utils/backoffRetry.js.map +1 -0
- package/lib/utils/types/BackoffOptions.d.ts +12 -0
- package/lib/utils/types/BackoffOptions.js +3 -0
- package/lib/utils/types/BackoffOptions.js.map +1 -0
- package/package.json +4 -4
- package/src/AutoBeAgent.ts +251 -51
- package/src/constants/AutoBeSystemPromptConstant.ts +4 -3
- package/src/context/AutoBeContext.ts +7 -2
- package/src/factory/index.ts +0 -1
- package/src/orchestrate/analyze/AutoBeAnalyzeAgent.ts +1 -1
- package/src/orchestrate/interface/orchestrateInterface.ts +1 -1
- package/src/orchestrate/prisma/orchestratePrisma.ts +1 -0
- package/src/orchestrate/prisma/orchestratePrismaCorrect.ts +4 -2
- package/src/orchestrate/test/compileTestScenario.ts +63 -0
- package/src/orchestrate/test/filterTestFileName.ts +9 -0
- package/src/orchestrate/test/orchestrateTest.ts +11 -17
- package/src/orchestrate/test/orchestrateTestCorrect.ts +152 -100
- package/src/orchestrate/test/orchestrateTestScenario.ts +195 -151
- package/src/orchestrate/test/{orchestrateTestProgress.ts → orchestrateTestWrite.ts} +29 -44
- package/src/orchestrate/test/structures/IAutoBeTestScenarioApplication.ts +132 -0
- package/src/orchestrate/test/structures/IAutoBeTestScenarioArtifacts.ts +5 -0
- package/src/orchestrate/test/transformTestCorrectHistories.ts +4 -4
- package/src/orchestrate/test/transformTestScenarioHistories.ts +0 -79
- package/src/orchestrate/test/transformTestWriteHistories.ts +53 -0
- package/src/structures/IAutoBeConfig.ts +48 -10
- package/src/structures/IAutoBeProps.ts +91 -0
- package/src/structures/IAutoBeVendor.ts +64 -22
- package/src/utils/backoffRetry.ts +84 -0
- package/src/utils/types/BackoffOptions.ts +15 -0
- package/lib/orchestrate/test/orchestrateTestProgress.d.ts +0 -4
- package/lib/orchestrate/test/orchestrateTestProgress.js.map +0 -1
- package/lib/orchestrate/test/transformTestProgressHistories.d.ts +0 -2
- package/lib/orchestrate/test/transformTestProgressHistories.js +0 -47
- package/lib/orchestrate/test/transformTestProgressHistories.js.map +0 -1
- package/src/orchestrate/test/transformTestProgressHistories.ts +0 -51
|
@@ -50,26 +50,42 @@ const __typia_transform__validateReport = __importStar(require("typia/lib/intern
|
|
|
50
50
|
const core_1 = require("@agentica/core");
|
|
51
51
|
const typia_1 = __importDefault(require("typia"));
|
|
52
52
|
const assertSchemaModel_1 = require("../../context/assertSchemaModel");
|
|
53
|
+
const backoffRetry_1 = require("../../utils/backoffRetry");
|
|
53
54
|
const enforceToolCall_1 = require("../../utils/enforceToolCall");
|
|
55
|
+
const compileTestScenario_1 = require("./compileTestScenario");
|
|
56
|
+
const filterTestFileName_1 = require("./filterTestFileName");
|
|
54
57
|
const transformTestCorrectHistories_1 = require("./transformTestCorrectHistories");
|
|
55
|
-
function orchestrateTestCorrect(ctx_1, codes_1) {
|
|
56
|
-
return __awaiter(this, arguments, void 0, function* (ctx, codes, life = 4) {
|
|
58
|
+
function orchestrateTestCorrect(ctx_1, codes_1, scenarios_1) {
|
|
59
|
+
return __awaiter(this, arguments, void 0, function* (ctx, codes, scenarios, life = 4) {
|
|
57
60
|
var _a, _b;
|
|
61
|
+
const files = codes.map(({ filename, content }, index) => {
|
|
62
|
+
const scenario = scenarios[index];
|
|
63
|
+
return { location: filename, content, scenario };
|
|
64
|
+
});
|
|
58
65
|
// 1) Build map of new test files from progress events
|
|
59
|
-
const testFiles = Object.fromEntries(codes.map((
|
|
60
|
-
`test/features/api/${filename}`,
|
|
61
|
-
content,
|
|
62
|
-
]));
|
|
66
|
+
const testFiles = Object.fromEntries(codes.map((c) => [c.filename, c.content]));
|
|
63
67
|
// 2) Keep only files outside the test directory from current state
|
|
64
|
-
const retainedFiles = Object.fromEntries(Object.entries((_b = (_a = ctx.state().interface) === null || _a === void 0 ? void 0 : _a.files) !== null && _b !== void 0 ? _b : {}).filter(([
|
|
68
|
+
const retainedFiles = Object.fromEntries(Object.entries((_b = (_a = ctx.state().interface) === null || _a === void 0 ? void 0 : _a.files) !== null && _b !== void 0 ? _b : {}).filter(([key]) => (0, filterTestFileName_1.filterTestFileName)(key)));
|
|
65
69
|
// 3) Merge and filter: keep .ts/.json, drop anything under "benchmark"
|
|
66
|
-
const
|
|
67
|
-
|
|
68
|
-
|
|
70
|
+
const external = (location) => __awaiter(this, void 0, void 0, function* () {
|
|
71
|
+
const content = yield ctx.compiler.typescript.getExternal(location);
|
|
72
|
+
if (content === undefined)
|
|
73
|
+
throw new Error(`File not found: ${location}`);
|
|
74
|
+
return { [location]: content };
|
|
75
|
+
});
|
|
76
|
+
const mergedFiles = Object.assign(Object.assign(Object.assign(Object.assign({}, retainedFiles), testFiles), (yield external("node_modules/@nestia/e2e/lib/TestValidator.d.ts"))), (yield external("node_modules/@nestia/fetcher/lib/IConnection.d.ts")));
|
|
69
77
|
// 4) Ask the LLM to correct the filtered file set
|
|
70
|
-
const response = yield step(ctx, files, life);
|
|
78
|
+
const response = yield step(ctx, mergedFiles, files, life);
|
|
71
79
|
// 5) Combine original + corrected files and dispatch event
|
|
72
|
-
const event = Object.assign(Object.assign({}, response), { type: "testValidate", files:
|
|
80
|
+
const event = Object.assign(Object.assign({}, response), { type: "testValidate", files: [
|
|
81
|
+
...Object.entries(mergedFiles).map(([filename, content]) => {
|
|
82
|
+
return {
|
|
83
|
+
location: filename,
|
|
84
|
+
content,
|
|
85
|
+
};
|
|
86
|
+
}),
|
|
87
|
+
...response.files,
|
|
88
|
+
] });
|
|
73
89
|
return event;
|
|
74
90
|
});
|
|
75
91
|
}
|
|
@@ -83,24 +99,25 @@ function orchestrateTestCorrect(ctx_1, codes_1) {
|
|
|
83
99
|
* all generated test files are syntactically correct and compilable.
|
|
84
100
|
*
|
|
85
101
|
* @param ctx AutoBe context object
|
|
86
|
-
* @param
|
|
102
|
+
* @param entireFiles Map of all files to compile (filename: content)
|
|
103
|
+
* @param testFiles Map of files to compile (filename: content)
|
|
87
104
|
* @param life Number of remaining retry attempts
|
|
88
105
|
* @returns Event object containing successful compilation result and modified
|
|
89
106
|
* files
|
|
90
107
|
*/
|
|
91
|
-
function step(ctx,
|
|
108
|
+
function step(ctx, entireFiles, testFiles, life) {
|
|
92
109
|
return __awaiter(this, void 0, void 0, function* () {
|
|
93
110
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
94
111
|
// COMPILE TEST CODE
|
|
95
|
-
const result = yield ctx.compiler.typescript({
|
|
96
|
-
files,
|
|
112
|
+
const result = yield ctx.compiler.typescript.compile({
|
|
113
|
+
files: entireFiles,
|
|
97
114
|
});
|
|
98
115
|
if (result.type === "success") {
|
|
99
116
|
// SUCCESS
|
|
100
117
|
return {
|
|
101
118
|
type: "testValidate",
|
|
102
119
|
created_at: new Date().toISOString(),
|
|
103
|
-
files,
|
|
120
|
+
files: testFiles,
|
|
104
121
|
result,
|
|
105
122
|
step: (_b = (_a = ctx.state().interface) === null || _a === void 0 ? void 0 : _a.step) !== null && _b !== void 0 ? _b : 0,
|
|
106
123
|
};
|
|
@@ -110,7 +127,7 @@ function step(ctx, files, life) {
|
|
|
110
127
|
ctx.dispatch({
|
|
111
128
|
type: "testValidate",
|
|
112
129
|
created_at: new Date().toISOString(),
|
|
113
|
-
files,
|
|
130
|
+
files: testFiles,
|
|
114
131
|
result,
|
|
115
132
|
step: (_d = (_c = ctx.state().interface) === null || _c === void 0 ? void 0 : _c.step) !== null && _d !== void 0 ? _d : 0,
|
|
116
133
|
});
|
|
@@ -134,7 +151,7 @@ function step(ctx, files, life) {
|
|
|
134
151
|
return {
|
|
135
152
|
type: "testValidate",
|
|
136
153
|
created_at: new Date().toISOString(),
|
|
137
|
-
files,
|
|
154
|
+
files: testFiles,
|
|
138
155
|
result: Object.assign(Object.assign({}, result), { type: "success" }),
|
|
139
156
|
step: (_f = (_e = ctx.state().interface) === null || _e === void 0 ? void 0 : _e.step) !== null && _f !== void 0 ? _f : 0,
|
|
140
157
|
};
|
|
@@ -143,7 +160,7 @@ function step(ctx, files, life) {
|
|
|
143
160
|
ctx.dispatch({
|
|
144
161
|
type: "testValidate",
|
|
145
162
|
created_at: new Date().toISOString(),
|
|
146
|
-
files,
|
|
163
|
+
files: testFiles,
|
|
147
164
|
result,
|
|
148
165
|
step: (_h = (_g = ctx.state().interface) === null || _g === void 0 ? void 0 : _g.step) !== null && _h !== void 0 ? _h : 0,
|
|
149
166
|
});
|
|
@@ -151,30 +168,33 @@ function step(ctx, files, life) {
|
|
|
151
168
|
return {
|
|
152
169
|
type: "testValidate",
|
|
153
170
|
created_at: new Date().toISOString(),
|
|
154
|
-
files,
|
|
171
|
+
files: testFiles,
|
|
155
172
|
result,
|
|
156
173
|
step: (_k = (_j = ctx.state().interface) === null || _j === void 0 ? void 0 : _j.step) !== null && _k !== void 0 ? _k : 0,
|
|
157
174
|
};
|
|
158
175
|
// VALIDATION FAILED
|
|
159
|
-
const
|
|
176
|
+
const validatedFiles = yield Promise.all(Object.entries(diagnostics).map((_a) => __awaiter(this, [_a], void 0, function* ([filename, d]) {
|
|
160
177
|
var _b, _c;
|
|
161
|
-
const
|
|
162
|
-
const
|
|
178
|
+
const file = testFiles.find((f) => f.location === filename);
|
|
179
|
+
const code = file === null || file === void 0 ? void 0 : file.content;
|
|
180
|
+
const scenario = file === null || file === void 0 ? void 0 : file.scenario;
|
|
181
|
+
const response = yield process(ctx, d, code, scenario);
|
|
163
182
|
ctx.dispatch({
|
|
164
183
|
type: "testCorrect",
|
|
165
184
|
created_at: new Date().toISOString(),
|
|
166
|
-
files: Object.assign(Object.assign({},
|
|
185
|
+
files: Object.assign(Object.assign({}, testFiles), { [filename]: response.content }),
|
|
167
186
|
result,
|
|
168
187
|
solution: response.solution,
|
|
169
188
|
think_without_compile_error: response.think_without_compile_error,
|
|
170
189
|
think_again_with_compile_error: response.think_again_with_compile_error,
|
|
171
190
|
step: (_c = (_b = ctx.state().interface) === null || _b === void 0 ? void 0 : _b.step) !== null && _c !== void 0 ? _c : 0,
|
|
172
191
|
});
|
|
173
|
-
|
|
174
|
-
return [filename, response.content];
|
|
192
|
+
return { location: filename, content: code, scenario: scenario };
|
|
175
193
|
})));
|
|
176
|
-
|
|
177
|
-
|
|
194
|
+
return step(ctx, entireFiles, testFiles.map((f) => {
|
|
195
|
+
const validated = validatedFiles.find((v) => v.location === f.location);
|
|
196
|
+
return validated ? validated : f;
|
|
197
|
+
}), life - 1);
|
|
178
198
|
});
|
|
179
199
|
}
|
|
180
200
|
/**
|
|
@@ -187,31 +207,18 @@ function step(ctx, files, life) {
|
|
|
187
207
|
* @param code The source code content to be fixed
|
|
188
208
|
* @returns Promise resolving to corrected test function properties
|
|
189
209
|
*/
|
|
190
|
-
function process(ctx, diagnostics, code) {
|
|
210
|
+
function process(ctx, diagnostics, code, scenario) {
|
|
191
211
|
return __awaiter(this, void 0, void 0, function* () {
|
|
192
|
-
var _a
|
|
212
|
+
var _a;
|
|
193
213
|
const pointer = {
|
|
194
214
|
value: null,
|
|
195
215
|
};
|
|
196
|
-
const
|
|
197
|
-
.filter(([filename]) => {
|
|
198
|
-
return filename.startsWith("src/api/");
|
|
199
|
-
})
|
|
200
|
-
.reduce((acc, [filename, content]) => {
|
|
201
|
-
return Object.assign(acc, { [filename]: content });
|
|
202
|
-
}, {});
|
|
203
|
-
const dtoFiles = Object.entries((_d = (_c = ctx.state().interface) === null || _c === void 0 ? void 0 : _c.files) !== null && _d !== void 0 ? _d : {})
|
|
204
|
-
.filter(([filename]) => {
|
|
205
|
-
return filename.startsWith("src/api/structures/");
|
|
206
|
-
})
|
|
207
|
-
.reduce((acc, [filename, content]) => {
|
|
208
|
-
return Object.assign(acc, { [filename]: content });
|
|
209
|
-
}, {});
|
|
216
|
+
const artifacts = yield (0, compileTestScenario_1.compileTestScenario)(ctx, scenario);
|
|
210
217
|
const agentica = new core_1.MicroAgentica({
|
|
211
218
|
model: ctx.model,
|
|
212
219
|
vendor: Object.assign({}, ctx.vendor),
|
|
213
|
-
config: Object.assign({}, ((
|
|
214
|
-
histories: (0, transformTestCorrectHistories_1.transformTestCorrectHistories)(
|
|
220
|
+
config: Object.assign({}, ((_a = ctx.config) !== null && _a !== void 0 ? _a : {})),
|
|
221
|
+
histories: (0, transformTestCorrectHistories_1.transformTestCorrectHistories)(artifacts),
|
|
215
222
|
controllers: [
|
|
216
223
|
createApplication({
|
|
217
224
|
model: ctx.model,
|
|
@@ -220,34 +227,45 @@ function process(ctx, diagnostics, code) {
|
|
|
220
227
|
},
|
|
221
228
|
}),
|
|
222
229
|
],
|
|
230
|
+
tokenUsage: ctx.usage(),
|
|
223
231
|
});
|
|
224
232
|
(0, enforceToolCall_1.enforceToolCall)(agentica);
|
|
225
|
-
yield
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
233
|
+
yield (0, backoffRetry_1.randomBackoffRetry)(() => __awaiter(this, void 0, void 0, function* () {
|
|
234
|
+
yield agentica.conversate([
|
|
235
|
+
"Fix the compilation error in the provided code.",
|
|
236
|
+
"",
|
|
237
|
+
"## Original Code",
|
|
238
|
+
"```typescript",
|
|
239
|
+
code,
|
|
240
|
+
"```",
|
|
241
|
+
"",
|
|
242
|
+
diagnostics.map((diagnostic) => {
|
|
243
|
+
if (diagnostic.start === undefined || diagnostic.length === undefined)
|
|
244
|
+
return "";
|
|
245
|
+
const checkDtoRegexp = `Cannot find module '@ORGANIZATION/template-api/lib/structures/IBbsArticleComment' or its corresponding type declarations.`;
|
|
246
|
+
const [group] = [
|
|
247
|
+
...checkDtoRegexp.matchAll(/Cannot find module '(.*lib\/structures\/.*)'/g),
|
|
248
|
+
];
|
|
249
|
+
const [_, filename] = group !== null && group !== void 0 ? group : [];
|
|
250
|
+
return [
|
|
251
|
+
"## Error Information",
|
|
252
|
+
`- Position: Characters ${diagnostic.start} to ${diagnostic.start + diagnostic.length}`,
|
|
253
|
+
`- Error Message: ${diagnostic.messageText}`,
|
|
254
|
+
`- Problematic Code: \`${code.substring(diagnostic.start, diagnostic.start + diagnostic.length)}\``,
|
|
255
|
+
filename
|
|
256
|
+
? `The type files located under **/lib/structures are declared in '@ORGANIZATION/PROJECT-api/lib/structures'.\n` +
|
|
257
|
+
`Note: '@ORGANIZATION/PROJECT-api' must be written exactly as is and should not be replaced.\n`
|
|
258
|
+
: "",
|
|
259
|
+
].join("\n");
|
|
260
|
+
}),
|
|
261
|
+
"## Instructions",
|
|
262
|
+
"1. Focus on the specific error location and message",
|
|
263
|
+
"2. Provide the corrected TypeScript code",
|
|
264
|
+
"3. Ensure the fix resolves the compilation error",
|
|
265
|
+
"",
|
|
266
|
+
"Return only the fixed code without explanations.",
|
|
267
|
+
].join("\n"));
|
|
268
|
+
}));
|
|
251
269
|
if (pointer.value === null)
|
|
252
270
|
throw new Error("Failed to modify test code.");
|
|
253
271
|
return pointer.value;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orchestrateTestCorrect.js","sourceRoot":"","sources":["../../../src/orchestrate/test/orchestrateTestCorrect.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"orchestrateTestCorrect.js","sourceRoot":"","sources":["../../../src/orchestrate/test/orchestrateTestCorrect.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqBA,wDAkEC;;AAvFD,yCAAoE;AAUpE,kDAA0B;AAG1B,uEAAoE;AACpE,2DAA8D;AAC9D,iEAA8D;AAC9D,+DAA4D;AAC5D,6DAA0D;AAE1D,mFAAgF;AAEhF,SAAsB,sBAAsB;yDAC1C,GAAyB,EACzB,KAA6B,EAC7B,SAA+B,EAC/B,OAAe,CAAC;;QAEhB,MAAM,KAAK,GAAqB,KAAK,CAAC,GAAG,CACvC,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,KAAK,EAAkB,EAAE;YAC/C,MAAM,QAAQ,GAAuB,SAAS,CAAC,KAAK,CAAC,CAAC;YACtD,OA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E,OAAO,OAAO,CAAC,KAAK,CAAC;IACvB,CAAC;CAAA;AAED,SAAS,iBAAiB,CAAiC,KAG1D;IACC,IAAA,qCAAiB,EAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IAE/B,MAAM,WAAW,GAA2B,UAAU,CACpD,KAAK,CAAC,KAAK,CACyB,CAAC;IACvC,OAAO;QACL,QAAQ,EAAE,OAAO;QACjB,IAAI,EAAE,kBAAkB;QACxB,WAAW;QACX,OAAO,EAAE;YACP,eAAe,EAAE,CAAC,IAAI,EAAE,EAAE;gBACxB,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;YACpB,CAAC;SACqB;KACzB,CAAC;AACJ,CAAC;AAED,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMT,CAAC;AACJ,MAAM,UAAU,GAAG;IACjB,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAIJ;IACH,MAAM;IACN,KAAK,EAAE,MAAM;IACb,QAAQ,EAAE,MAAM;IAChB,KAAK,EAAE,MAAM;IACb,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAA8C;CACpD,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AutoBeTestScenarioEvent } from "@autobe/interface
|
|
1
|
+
import { AutoBeTestScenarioEvent } from "@autobe/interface";
|
|
2
2
|
import { ILlmSchema } from "@samchon/openapi";
|
|
3
3
|
import { AutoBeContext } from "../../context/AutoBeContext";
|
|
4
|
-
export declare function orchestrateTestScenario<Model extends ILlmSchema.Model>(ctx: AutoBeContext<Model
|
|
4
|
+
export declare function orchestrateTestScenario<Model extends ILlmSchema.Model>(ctx: AutoBeContext<Model>): Promise<AutoBeTestScenarioEvent>;
|