@autobe/agent 0.27.0 → 0.28.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/lib/constants/AutoBeSystemPromptConstant.d.ts +1 -1
- package/lib/context/assertSchemaModel.d.ts +1 -1
- package/lib/context/assertSchemaModel.js +4 -7
- package/lib/context/assertSchemaModel.js.map +1 -1
- package/lib/index.mjs +18395 -8004
- package/lib/index.mjs.map +1 -1
- package/lib/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.js +1 -1
- package/lib/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.js.map +1 -1
- package/lib/orchestrate/analyze/orchestrateAnalyzeReview.js +164 -86
- package/lib/orchestrate/analyze/orchestrateAnalyzeReview.js.map +1 -1
- package/lib/orchestrate/analyze/orchestrateAnalyzeScenario.js +637 -321
- package/lib/orchestrate/analyze/orchestrateAnalyzeScenario.js.map +1 -1
- package/lib/orchestrate/analyze/orchestrateAnalyzeWrite.js +143 -74
- package/lib/orchestrate/analyze/orchestrateAnalyzeWrite.js.map +1 -1
- package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeReviewApplication.d.ts +17 -52
- package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioApplication.d.ts +25 -22
- package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeWriteApplication.d.ts +7 -23
- package/lib/orchestrate/common/orchestrateCommonCorrectCasting.js +165 -2
- package/lib/orchestrate/common/orchestrateCommonCorrectCasting.js.map +1 -1
- package/lib/orchestrate/facade/createAutoBeFacadeController.js +773 -403
- package/lib/orchestrate/facade/createAutoBeFacadeController.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceAuthorizations.js +739 -2
- package/lib/orchestrate/interface/orchestrateInterfaceAuthorizations.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceComplement.js +1625 -9
- package/lib/orchestrate/interface/orchestrateInterfaceComplement.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceEndpoints.js +248 -131
- package/lib/orchestrate/interface/orchestrateInterfaceEndpoints.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceEndpointsReview.js +255 -133
- package/lib/orchestrate/interface/orchestrateInterfaceEndpointsReview.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceGroups.js +339 -226
- package/lib/orchestrate/interface/orchestrateInterfaceGroups.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceOperations.js +625 -1
- package/lib/orchestrate/interface/orchestrateInterfaceOperations.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceOperationsReview.js +776 -3
- package/lib/orchestrate/interface/orchestrateInterfaceOperationsReview.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfacePrerequisites.js +205 -3
- package/lib/orchestrate/interface/orchestrateInterfacePrerequisites.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceSchemaRename.js +107 -1
- package/lib/orchestrate/interface/orchestrateInterfaceSchemaRename.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceSchemaReview.js +1664 -9
- package/lib/orchestrate/interface/orchestrateInterfaceSchemaReview.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceSchemas.js +1625 -9
- package/lib/orchestrate/interface/orchestrateInterfaceSchemas.js.map +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaComponent.js +389 -196
- package/lib/orchestrate/prisma/orchestratePrismaComponent.js.map +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaCorrect.js +1166 -590
- package/lib/orchestrate/prisma/orchestratePrismaCorrect.js.map +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaReview.js +1184 -599
- package/lib/orchestrate/prisma/orchestratePrismaReview.js.map +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaSchemas.js +4 -2
- package/lib/orchestrate/prisma/orchestratePrismaSchemas.js.map +1 -1
- package/lib/orchestrate/realize/orchestrateRealizeAuthorization.js +360 -179
- package/lib/orchestrate/realize/orchestrateRealizeAuthorization.js.map +1 -1
- package/lib/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.js +396 -197
- package/lib/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.js.map +1 -1
- package/lib/orchestrate/realize/orchestrateRealizeCorrect.js +130 -2
- package/lib/orchestrate/realize/orchestrateRealizeCorrect.js.map +1 -1
- package/lib/orchestrate/realize/orchestrateRealizeCorrectCasting.js +165 -2
- package/lib/orchestrate/realize/orchestrateRealizeCorrectCasting.js.map +1 -1
- package/lib/orchestrate/realize/orchestrateRealizeWrite.js +130 -2
- package/lib/orchestrate/realize/orchestrateRealizeWrite.js.map +1 -1
- package/lib/orchestrate/test/histories/transformTestWriteHistories.js.map +1 -1
- package/lib/orchestrate/test/orchestrateTestCorrect.js +131 -2
- package/lib/orchestrate/test/orchestrateTestCorrect.js.map +1 -1
- package/lib/orchestrate/test/orchestrateTestCorrectInvalidRequest.js +166 -2
- package/lib/orchestrate/test/orchestrateTestCorrectInvalidRequest.js.map +1 -1
- package/lib/orchestrate/test/orchestrateTestScenario.js +255 -3
- package/lib/orchestrate/test/orchestrateTestScenario.js.map +1 -1
- package/lib/orchestrate/test/orchestrateTestScenarioReview.js +281 -3
- package/lib/orchestrate/test/orchestrateTestScenarioReview.js.map +1 -1
- package/lib/orchestrate/test/orchestrateTestWrite.js +139 -2
- package/lib/orchestrate/test/orchestrateTestWrite.js.map +1 -1
- package/package.json +9 -9
- package/src/constants/AutoBeSystemPromptConstant.ts +1 -1
- package/src/context/assertSchemaModel.ts +5 -8
- package/src/orchestrate/analyze/orchestrateAnalyzeReview.ts +7 -9
- package/src/orchestrate/analyze/orchestrateAnalyzeScenario.ts +13 -9
- package/src/orchestrate/analyze/orchestrateAnalyzeWrite.ts +7 -9
- package/src/orchestrate/analyze/structures/IAutoBeAnalyzeReviewApplication.ts +19 -54
- package/src/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioApplication.ts +25 -22
- package/src/orchestrate/analyze/structures/IAutoBeAnalyzeWriteApplication.ts +8 -24
- package/src/orchestrate/common/orchestrateCommonCorrectCasting.ts +15 -1
- package/src/orchestrate/facade/createAutoBeFacadeController.ts +7 -6
- package/src/orchestrate/interface/orchestrateInterfaceAuthorizations.ts +11 -1
- package/src/orchestrate/interface/orchestrateInterfaceComplement.ts +11 -1
- package/src/orchestrate/interface/orchestrateInterfaceEndpoints.ts +13 -9
- package/src/orchestrate/interface/orchestrateInterfaceEndpointsReview.ts +13 -9
- package/src/orchestrate/interface/orchestrateInterfaceGroups.ts +17 -14
- package/src/orchestrate/interface/orchestrateInterfaceOperations.ts +11 -1
- package/src/orchestrate/interface/orchestrateInterfaceOperationsReview.ts +14 -1
- package/src/orchestrate/interface/orchestrateInterfacePrerequisites.ts +11 -1
- package/src/orchestrate/interface/orchestrateInterfaceSchemaRename.ts +9 -1
- package/src/orchestrate/interface/orchestrateInterfaceSchemaReview.ts +14 -1
- package/src/orchestrate/interface/orchestrateInterfaceSchemas.ts +11 -1
- package/src/orchestrate/prisma/orchestratePrismaComponent.ts +13 -9
- package/src/orchestrate/prisma/orchestratePrismaCorrect.ts +7 -9
- package/src/orchestrate/prisma/orchestratePrismaReview.ts +7 -10
- package/src/orchestrate/realize/orchestrateRealizeAuthorization.ts +13 -9
- package/src/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.ts +13 -9
- package/src/orchestrate/realize/orchestrateRealizeCorrect.ts +11 -1
- package/src/orchestrate/realize/orchestrateRealizeCorrectCasting.ts +15 -1
- package/src/orchestrate/realize/orchestrateRealizeWrite.ts +11 -1
- package/src/orchestrate/test/experimental/orchestrateTestWrite.ast +5 -1
- package/src/orchestrate/test/histories/transformTestWriteHistories.ts +1 -1
- package/src/orchestrate/test/orchestrateTestCorrect.ts +11 -1
- package/src/orchestrate/test/orchestrateTestCorrectInvalidRequest.ts +18 -1
- package/src/orchestrate/test/orchestrateTestScenario.ts +11 -1
- package/src/orchestrate/test/orchestrateTestScenarioReview.ts +11 -1
- package/src/orchestrate/test/orchestrateTestWrite.ts +11 -1
|
@@ -60,7 +60,11 @@ function createController<Model extends ILlmSchema.Model>(props: {
|
|
|
60
60
|
assertSchemaModel(props.model);
|
|
61
61
|
|
|
62
62
|
const application: ILlmApplication<Model> = collection[
|
|
63
|
-
props.model
|
|
63
|
+
props.model === "chatgpt"
|
|
64
|
+
? "chatgpt"
|
|
65
|
+
: props.model === "gemini"
|
|
66
|
+
? "gemini"
|
|
67
|
+
: "claude"
|
|
64
68
|
] satisfies ILlmApplication<any> as unknown as ILlmApplication<Model>;
|
|
65
69
|
return {
|
|
66
70
|
protocol: "class",
|
|
@@ -74,17 +78,17 @@ function createController<Model extends ILlmSchema.Model>(props: {
|
|
|
74
78
|
};
|
|
75
79
|
}
|
|
76
80
|
|
|
77
|
-
const claude = typia.llm.application<
|
|
78
|
-
IAutoBePrismaComponentApplication,
|
|
79
|
-
"claude"
|
|
80
|
-
>();
|
|
81
81
|
const collection = {
|
|
82
82
|
chatgpt: typia.llm.application<
|
|
83
83
|
IAutoBePrismaComponentApplication,
|
|
84
84
|
"chatgpt"
|
|
85
85
|
>(),
|
|
86
|
-
claude
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
86
|
+
claude: typia.llm.application<
|
|
87
|
+
IAutoBePrismaComponentApplication,
|
|
88
|
+
"claude"
|
|
89
|
+
>(),
|
|
90
|
+
gemini: typia.llm.application<
|
|
91
|
+
IAutoBePrismaComponentApplication,
|
|
92
|
+
"gemini"
|
|
93
|
+
>(),
|
|
90
94
|
};
|
|
@@ -166,7 +166,11 @@ function createController<Model extends ILlmSchema.Model>(props: {
|
|
|
166
166
|
}): IAgenticaController.IClass<Model> {
|
|
167
167
|
assertSchemaModel(props.model);
|
|
168
168
|
const application: ILlmApplication<Model> = collection[
|
|
169
|
-
props.model
|
|
169
|
+
props.model === "chatgpt"
|
|
170
|
+
? "chatgpt"
|
|
171
|
+
: props.model === "gemini"
|
|
172
|
+
? "gemini"
|
|
173
|
+
: "claude"
|
|
170
174
|
] satisfies ILlmApplication<any> as unknown as ILlmApplication<Model>;
|
|
171
175
|
return {
|
|
172
176
|
protocol: "class",
|
|
@@ -187,16 +191,10 @@ const getTableCount = (failure: IAutoBePrismaValidation.IFailure): number => {
|
|
|
187
191
|
return unique.size;
|
|
188
192
|
};
|
|
189
193
|
|
|
190
|
-
const claude = typia.llm.application<
|
|
191
|
-
IAutoBePrismaCorrectApplication,
|
|
192
|
-
"claude"
|
|
193
|
-
>();
|
|
194
194
|
const collection = {
|
|
195
195
|
chatgpt: typia.llm.application<IAutoBePrismaCorrectApplication, "chatgpt">(),
|
|
196
|
-
claude,
|
|
197
|
-
|
|
198
|
-
deepseek: claude,
|
|
199
|
-
"3.1": claude,
|
|
196
|
+
claude: typia.llm.application<IAutoBePrismaCorrectApplication, "claude">(),
|
|
197
|
+
gemini: typia.llm.application<IAutoBePrismaCorrectApplication, "gemini">(),
|
|
200
198
|
};
|
|
201
199
|
|
|
202
200
|
interface IExecutionResult extends IAutoBePrismaCorrectApplication.IProps {
|
|
@@ -109,7 +109,11 @@ function createController<Model extends ILlmSchema.Model>(
|
|
|
109
109
|
assertSchemaModel(ctx.model);
|
|
110
110
|
|
|
111
111
|
const application: ILlmApplication<Model> = collection[
|
|
112
|
-
ctx.model
|
|
112
|
+
ctx.model === "chatgpt"
|
|
113
|
+
? "chatgpt"
|
|
114
|
+
: ctx.model === "gemini"
|
|
115
|
+
? "gemini"
|
|
116
|
+
: "claude"
|
|
113
117
|
] satisfies ILlmApplication<any> as unknown as ILlmApplication<Model>;
|
|
114
118
|
|
|
115
119
|
return {
|
|
@@ -124,15 +128,8 @@ function createController<Model extends ILlmSchema.Model>(
|
|
|
124
128
|
};
|
|
125
129
|
}
|
|
126
130
|
|
|
127
|
-
const claude = typia.llm.application<
|
|
128
|
-
IAutoBePrismaReviewApplication,
|
|
129
|
-
"claude"
|
|
130
|
-
>();
|
|
131
|
-
|
|
132
131
|
const collection = {
|
|
133
132
|
chatgpt: typia.llm.application<IAutoBePrismaReviewApplication, "chatgpt">(),
|
|
134
|
-
claude,
|
|
135
|
-
|
|
136
|
-
deepseek: claude,
|
|
137
|
-
"3.1": claude,
|
|
133
|
+
claude: typia.llm.application<IAutoBePrismaReviewApplication, "claude">(),
|
|
134
|
+
gemini: typia.llm.application<IAutoBePrismaReviewApplication, "gemini">(),
|
|
138
135
|
};
|
|
@@ -150,7 +150,11 @@ function createController<Model extends ILlmSchema.Model>(props: {
|
|
|
150
150
|
assertSchemaModel(props.model);
|
|
151
151
|
|
|
152
152
|
const application: ILlmApplication<Model> = collection[
|
|
153
|
-
props.model
|
|
153
|
+
props.model === "chatgpt"
|
|
154
|
+
? "chatgpt"
|
|
155
|
+
: props.model === "gemini"
|
|
156
|
+
? "gemini"
|
|
157
|
+
: "claude"
|
|
154
158
|
] satisfies ILlmApplication<any> as unknown as ILlmApplication<Model>;
|
|
155
159
|
|
|
156
160
|
return {
|
|
@@ -165,17 +169,17 @@ function createController<Model extends ILlmSchema.Model>(props: {
|
|
|
165
169
|
};
|
|
166
170
|
}
|
|
167
171
|
|
|
168
|
-
const claude = typia.llm.application<
|
|
169
|
-
IAutoBeRealizeAuthorizationApplication,
|
|
170
|
-
"claude"
|
|
171
|
-
>();
|
|
172
172
|
const collection = {
|
|
173
173
|
chatgpt: typia.llm.application<
|
|
174
174
|
IAutoBeRealizeAuthorizationApplication,
|
|
175
175
|
"chatgpt"
|
|
176
176
|
>(),
|
|
177
|
-
claude
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
177
|
+
claude: typia.llm.application<
|
|
178
|
+
IAutoBeRealizeAuthorizationApplication,
|
|
179
|
+
"claude"
|
|
180
|
+
>(),
|
|
181
|
+
gemini: typia.llm.application<
|
|
182
|
+
IAutoBeRealizeAuthorizationApplication,
|
|
183
|
+
"gemini"
|
|
184
|
+
>(),
|
|
181
185
|
};
|
|
@@ -147,7 +147,11 @@ function createController<Model extends ILlmSchema.Model>(props: {
|
|
|
147
147
|
assertSchemaModel(props.model);
|
|
148
148
|
|
|
149
149
|
const application: ILlmApplication<Model> = collection[
|
|
150
|
-
props.model
|
|
150
|
+
props.model === "chatgpt"
|
|
151
|
+
? "chatgpt"
|
|
152
|
+
: props.model === "gemini"
|
|
153
|
+
? "gemini"
|
|
154
|
+
: "claude"
|
|
151
155
|
] satisfies ILlmApplication<any> as unknown as ILlmApplication<Model>;
|
|
152
156
|
return {
|
|
153
157
|
protocol: "class",
|
|
@@ -161,17 +165,17 @@ function createController<Model extends ILlmSchema.Model>(props: {
|
|
|
161
165
|
};
|
|
162
166
|
}
|
|
163
167
|
|
|
164
|
-
const claude = typia.llm.application<
|
|
165
|
-
IAutoBeRealizeAuthorizationCorrectApplication,
|
|
166
|
-
"claude"
|
|
167
|
-
>();
|
|
168
168
|
const collection = {
|
|
169
169
|
chatgpt: typia.llm.application<
|
|
170
170
|
IAutoBeRealizeAuthorizationCorrectApplication,
|
|
171
171
|
"chatgpt"
|
|
172
172
|
>(),
|
|
173
|
-
claude
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
173
|
+
claude: typia.llm.application<
|
|
174
|
+
IAutoBeRealizeAuthorizationCorrectApplication,
|
|
175
|
+
"claude"
|
|
176
|
+
>(),
|
|
177
|
+
gemini: typia.llm.application<
|
|
178
|
+
IAutoBeRealizeAuthorizationCorrectApplication,
|
|
179
|
+
"gemini"
|
|
180
|
+
>(),
|
|
177
181
|
};
|
|
@@ -314,7 +314,11 @@ function createController<Model extends ILlmSchema.Model>(props: {
|
|
|
314
314
|
: result;
|
|
315
315
|
};
|
|
316
316
|
const application: ILlmApplication<Model> = collection[
|
|
317
|
-
props.model === "chatgpt"
|
|
317
|
+
props.model === "chatgpt"
|
|
318
|
+
? "chatgpt"
|
|
319
|
+
: props.model === "gemini"
|
|
320
|
+
? "gemini"
|
|
321
|
+
: "claude"
|
|
318
322
|
](
|
|
319
323
|
validate,
|
|
320
324
|
) satisfies ILlmApplication<any> as unknown as ILlmApplication<Model>;
|
|
@@ -344,6 +348,12 @@ const collection = {
|
|
|
344
348
|
correct: validate,
|
|
345
349
|
},
|
|
346
350
|
}),
|
|
351
|
+
gemini: (validate: Validator) =>
|
|
352
|
+
typia.llm.application<IAutoBeRealizeCorrectApplication, "gemini">({
|
|
353
|
+
validate: {
|
|
354
|
+
correct: validate,
|
|
355
|
+
},
|
|
356
|
+
}),
|
|
347
357
|
};
|
|
348
358
|
|
|
349
359
|
type Validator = (
|
|
@@ -405,7 +405,11 @@ const createController = <Model extends ILlmSchema.Model>(props: {
|
|
|
405
405
|
: result;
|
|
406
406
|
};
|
|
407
407
|
const application = collection[
|
|
408
|
-
props.model === "chatgpt"
|
|
408
|
+
props.model === "chatgpt"
|
|
409
|
+
? "chatgpt"
|
|
410
|
+
: props.model === "gemini"
|
|
411
|
+
? "gemini"
|
|
412
|
+
: "claude"
|
|
409
413
|
](validate) satisfies ILlmApplication<any> as any as ILlmApplication<Model>;
|
|
410
414
|
return {
|
|
411
415
|
protocol: "class",
|
|
@@ -443,6 +447,16 @@ const collection = {
|
|
|
443
447
|
}),
|
|
444
448
|
},
|
|
445
449
|
}),
|
|
450
|
+
gemini: (validate: Validator) =>
|
|
451
|
+
typia.llm.application<IAutoBeCommonCorrectCastingApplication, "gemini">({
|
|
452
|
+
validate: {
|
|
453
|
+
rewrite: validate,
|
|
454
|
+
reject: () => ({
|
|
455
|
+
success: true,
|
|
456
|
+
data: undefined,
|
|
457
|
+
}),
|
|
458
|
+
},
|
|
459
|
+
}),
|
|
446
460
|
};
|
|
447
461
|
|
|
448
462
|
type Validator = (
|
|
@@ -133,7 +133,11 @@ function createController<Model extends ILlmSchema.Model>(props: {
|
|
|
133
133
|
: result;
|
|
134
134
|
};
|
|
135
135
|
const application: ILlmApplication<Model> = collection[
|
|
136
|
-
props.model === "chatgpt"
|
|
136
|
+
props.model === "chatgpt"
|
|
137
|
+
? "chatgpt"
|
|
138
|
+
: props.model === "gemini"
|
|
139
|
+
? "gemini"
|
|
140
|
+
: "claude"
|
|
137
141
|
](
|
|
138
142
|
validate,
|
|
139
143
|
) satisfies ILlmApplication<any> as unknown as ILlmApplication<Model>;
|
|
@@ -163,6 +167,12 @@ const collection = {
|
|
|
163
167
|
write: validate,
|
|
164
168
|
},
|
|
165
169
|
}),
|
|
170
|
+
gemini: (validate: Validator) =>
|
|
171
|
+
typia.llm.application<IAutoBeRealizeWriteApplication, "gemini">({
|
|
172
|
+
validate: {
|
|
173
|
+
write: validate,
|
|
174
|
+
},
|
|
175
|
+
}),
|
|
166
176
|
};
|
|
167
177
|
|
|
168
178
|
type Validator = (
|
|
@@ -247,7 +247,11 @@ function createController<Model extends ILlmSchema.Model>(props: {
|
|
|
247
247
|
};
|
|
248
248
|
};
|
|
249
249
|
const application: ILlmApplication<Model> = collection[
|
|
250
|
-
props.model === "chatgpt"
|
|
250
|
+
props.model === "chatgpt"
|
|
251
|
+
? "chatgpt"
|
|
252
|
+
: props.model === "gemini"
|
|
253
|
+
? "gemini"
|
|
254
|
+
: "claude"
|
|
251
255
|
](
|
|
252
256
|
validate,
|
|
253
257
|
) satisfies ILlmApplication<any> as unknown as ILlmApplication<Model>;
|
|
@@ -167,6 +167,6 @@ export namespace transformTestWriteHistories {
|
|
|
167
167
|
const systemPrompt = new Singleton(() =>
|
|
168
168
|
AutoBeSystemPromptConstant.TEST_WRITE.replace(
|
|
169
169
|
"{{AutoBeTestScenario}}",
|
|
170
|
-
JSON.stringify(typia.llm.parameters<AutoBeTestScenario, "
|
|
170
|
+
JSON.stringify(typia.llm.parameters<AutoBeTestScenario, "claude">()),
|
|
171
171
|
),
|
|
172
172
|
);
|
|
@@ -266,7 +266,11 @@ const createController = <Model extends ILlmSchema.Model>(props: {
|
|
|
266
266
|
: result;
|
|
267
267
|
};
|
|
268
268
|
const application: ILlmApplication<Model> = collection[
|
|
269
|
-
props.model === "chatgpt"
|
|
269
|
+
props.model === "chatgpt"
|
|
270
|
+
? "chatgpt"
|
|
271
|
+
: props.model === "gemini"
|
|
272
|
+
? "gemini"
|
|
273
|
+
: "claude"
|
|
270
274
|
](
|
|
271
275
|
validate,
|
|
272
276
|
) satisfies ILlmApplication<any> as unknown as ILlmApplication<Model>;
|
|
@@ -295,6 +299,12 @@ const collection = {
|
|
|
295
299
|
rewrite: validate,
|
|
296
300
|
},
|
|
297
301
|
}),
|
|
302
|
+
gemini: (validate: Validator) =>
|
|
303
|
+
typia.llm.application<IAutoBeTestCorrectApplication, "gemini">({
|
|
304
|
+
validate: {
|
|
305
|
+
rewrite: validate,
|
|
306
|
+
},
|
|
307
|
+
}),
|
|
298
308
|
};
|
|
299
309
|
|
|
300
310
|
type Validator = (
|
|
@@ -155,7 +155,11 @@ const createController = <Model extends ILlmSchema.Model>(props: {
|
|
|
155
155
|
: result;
|
|
156
156
|
};
|
|
157
157
|
const application = collection[
|
|
158
|
-
props.model === "chatgpt"
|
|
158
|
+
props.model === "chatgpt"
|
|
159
|
+
? "chatgpt"
|
|
160
|
+
: props.model === "gemini"
|
|
161
|
+
? "gemini"
|
|
162
|
+
: "claude"
|
|
159
163
|
](validate) satisfies ILlmApplication<any> as any as ILlmApplication<Model>;
|
|
160
164
|
return {
|
|
161
165
|
protocol: "class",
|
|
@@ -199,6 +203,19 @@ const collection = {
|
|
|
199
203
|
}),
|
|
200
204
|
},
|
|
201
205
|
}),
|
|
206
|
+
gemini: (validate: Validator) =>
|
|
207
|
+
typia.llm.application<
|
|
208
|
+
IAutoBeTestCorrectInvalidRequestApplication,
|
|
209
|
+
"gemini"
|
|
210
|
+
>({
|
|
211
|
+
validate: {
|
|
212
|
+
rewrite: validate,
|
|
213
|
+
reject: () => ({
|
|
214
|
+
success: true,
|
|
215
|
+
data: undefined,
|
|
216
|
+
}),
|
|
217
|
+
},
|
|
218
|
+
}),
|
|
202
219
|
};
|
|
203
220
|
|
|
204
221
|
type Validator = (
|
|
@@ -391,7 +391,11 @@ function createController<Model extends ILlmSchema.Model>(props: {
|
|
|
391
391
|
};
|
|
392
392
|
};
|
|
393
393
|
const application: ILlmApplication<Model> = collection[
|
|
394
|
-
props.model === "chatgpt"
|
|
394
|
+
props.model === "chatgpt"
|
|
395
|
+
? "chatgpt"
|
|
396
|
+
: props.model === "gemini"
|
|
397
|
+
? "gemini"
|
|
398
|
+
: "claude"
|
|
395
399
|
](
|
|
396
400
|
validate,
|
|
397
401
|
) satisfies ILlmApplication<any> as unknown as ILlmApplication<Model>;
|
|
@@ -431,6 +435,12 @@ const collection = {
|
|
|
431
435
|
makeScenario: validate,
|
|
432
436
|
},
|
|
433
437
|
}),
|
|
438
|
+
gemini: (validate: Validator) =>
|
|
439
|
+
typia.llm.application<IAutoBeTestScenarioApplication, "gemini">({
|
|
440
|
+
validate: {
|
|
441
|
+
makeScenario: validate,
|
|
442
|
+
},
|
|
443
|
+
}),
|
|
434
444
|
};
|
|
435
445
|
|
|
436
446
|
type Validator = (
|
|
@@ -151,7 +151,11 @@ function createController<Model extends ILlmSchema.Model>(props: {
|
|
|
151
151
|
};
|
|
152
152
|
|
|
153
153
|
const application: ILlmApplication<Model> = collection[
|
|
154
|
-
props.model === "chatgpt"
|
|
154
|
+
props.model === "chatgpt"
|
|
155
|
+
? "chatgpt"
|
|
156
|
+
: props.model === "gemini"
|
|
157
|
+
? "gemini"
|
|
158
|
+
: "claude"
|
|
155
159
|
](
|
|
156
160
|
validate,
|
|
157
161
|
) satisfies ILlmApplication<any> as unknown as ILlmApplication<Model>;
|
|
@@ -192,6 +196,12 @@ const collection = {
|
|
|
192
196
|
review: validate,
|
|
193
197
|
},
|
|
194
198
|
}),
|
|
199
|
+
gemini: (validate: Validator) =>
|
|
200
|
+
typia.llm.application<IAutoBeTestScenarioReviewApplication, "gemini">({
|
|
201
|
+
validate: {
|
|
202
|
+
review: validate,
|
|
203
|
+
},
|
|
204
|
+
}),
|
|
195
205
|
};
|
|
196
206
|
|
|
197
207
|
type Validator = (
|
|
@@ -155,7 +155,11 @@ function createController<Model extends ILlmSchema.Model>(props: {
|
|
|
155
155
|
: result;
|
|
156
156
|
};
|
|
157
157
|
const application: ILlmApplication<Model> = collection[
|
|
158
|
-
props.model === "chatgpt"
|
|
158
|
+
props.model === "chatgpt"
|
|
159
|
+
? "chatgpt"
|
|
160
|
+
: props.model === "gemini"
|
|
161
|
+
? "gemini"
|
|
162
|
+
: "claude"
|
|
159
163
|
](
|
|
160
164
|
validate,
|
|
161
165
|
) satisfies ILlmApplication<any> as unknown as ILlmApplication<Model>;
|
|
@@ -184,6 +188,12 @@ const collection = {
|
|
|
184
188
|
write: validate,
|
|
185
189
|
},
|
|
186
190
|
}),
|
|
191
|
+
gemini: (validate: Validator) =>
|
|
192
|
+
typia.llm.application<IAutoBeTestWriteApplication, "gemini">({
|
|
193
|
+
validate: {
|
|
194
|
+
write: validate,
|
|
195
|
+
},
|
|
196
|
+
}),
|
|
187
197
|
};
|
|
188
198
|
|
|
189
199
|
type Validator = (
|