@agentica/benchmark 0.8.3 → 0.9.0-dev.20250302

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.
Files changed (42) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +326 -324
  3. package/lib/AgenticaCallBenchmark.d.ts +7 -6
  4. package/lib/AgenticaCallBenchmark.js.map +1 -1
  5. package/lib/AgenticaSelectBenchmark.d.ts +7 -6
  6. package/lib/AgenticaSelectBenchmark.js.map +1 -1
  7. package/lib/index.mjs +46 -1
  8. package/lib/index.mjs.map +1 -1
  9. package/lib/internal/AgenticaBenchmarkPredicator.d.ts +5 -4
  10. package/lib/internal/AgenticaBenchmarkPredicator.js +74 -2
  11. package/lib/internal/AgenticaBenchmarkPredicator.js.map +1 -1
  12. package/lib/internal/AgenticaBenchmarkUtil.d.ts +2 -1
  13. package/lib/internal/AgenticaBenchmarkUtil.js.map +1 -1
  14. package/lib/internal/AgenticaCallBenchmarkReporter.d.ts +2 -1
  15. package/lib/internal/AgenticaCallBenchmarkReporter.js.map +1 -1
  16. package/lib/internal/AgenticaPromptReporter.d.ts +2 -1
  17. package/lib/internal/AgenticaPromptReporter.js.map +1 -1
  18. package/lib/internal/AgenticaSelectBenchmarkReporter.js.map +1 -1
  19. package/lib/structures/IAgenticaBenchmarkExpected.d.ts +10 -9
  20. package/lib/structures/IAgenticaCallBenchmarkEvent.d.ts +8 -7
  21. package/lib/structures/IAgenticaCallBenchmarkResult.d.ts +6 -5
  22. package/lib/structures/IAgenticaCallBenchmarkScenario.d.ts +3 -2
  23. package/lib/structures/IAgenticaSelectBenchmarkEvent.d.ts +9 -8
  24. package/lib/structures/IAgenticaSelectBenchmarkResult.d.ts +6 -5
  25. package/lib/structures/IAgenticaSelectBenchmarkScenario.d.ts +3 -2
  26. package/package.json +5 -5
  27. package/src/AgenticaCallBenchmark.ts +268 -265
  28. package/src/AgenticaSelectBenchmark.ts +256 -254
  29. package/src/index.ts +3 -3
  30. package/src/internal/AgenticaBenchmarkPredicator.ts +224 -216
  31. package/src/internal/AgenticaBenchmarkUtil.ts +44 -40
  32. package/src/internal/AgenticaCallBenchmarkReporter.ts +183 -180
  33. package/src/internal/AgenticaPromptReporter.ts +46 -43
  34. package/src/internal/AgenticaSelectBenchmarkReporter.ts +213 -210
  35. package/src/structures/IAgenticaBenchmarkExpected.ts +68 -58
  36. package/src/structures/IAgenticaCallBenchmarkEvent.ts +113 -109
  37. package/src/structures/IAgenticaCallBenchmarkResult.ts +70 -69
  38. package/src/structures/IAgenticaCallBenchmarkScenario.ts +43 -39
  39. package/src/structures/IAgenticaSelectBenchmarkEvent.ts +114 -110
  40. package/src/structures/IAgenticaSelectBenchmarkResult.ts +72 -69
  41. package/src/structures/IAgenticaSelectBenchmarkScenario.ts +43 -39
  42. package/src/utils/MathUtil.ts +3 -3
@@ -1,210 +1,213 @@
1
- import { IAgenticaTokenUsage } from "@agentica/core";
2
-
3
- import { IAgenticaSelectBenchmarkEvent } from "../structures/IAgenticaSelectBenchmarkEvent";
4
- import { IAgenticaSelectBenchmarkResult } from "../structures/IAgenticaSelectBenchmarkResult";
5
- import { MathUtil } from "../utils/MathUtil";
6
- import { AgenticaBenchmarkUtil } from "./AgenticaBenchmarkUtil";
7
-
8
- /**
9
- * @internal
10
- */
11
- export namespace AgenticaSelectBenchmarkReporter {
12
- export const markdown = (
13
- result: IAgenticaSelectBenchmarkResult,
14
- ): Record<string, string> =>
15
- Object.fromEntries([
16
- ["./README.md", writeIndex(result)],
17
- ...result.experiments
18
- .map((exp) => [
19
- [`./${exp.scenario.name}/README.md`, writeExperimentIndex(exp)],
20
- ...exp.events.map((event, i) => [
21
- `./${exp.scenario.name}/${i + 1}.${event.type}.md`,
22
- writeExperimentEvent(event, i),
23
- ]),
24
- ])
25
- .flat(),
26
- ]);
27
-
28
- const writeIndex = (result: IAgenticaSelectBenchmarkResult): string => {
29
- const events: IAgenticaSelectBenchmarkEvent[] = result.experiments
30
- .map((r) => r.events)
31
- .flat();
32
- const average: number =
33
- events
34
- .map((e) => e.completed_at.getTime() - e.started_at.getTime())
35
- .reduce((a, b) => a + b, 0) / events.length;
36
- const aggregate: IAgenticaTokenUsage.IComponent = result.usage.aggregate;
37
- return [
38
- "# LLM Function Selection Benchmark",
39
- "## Summary",
40
- ` - Aggregation:`,
41
- ` - Scenarios: #${result.experiments.length.toLocaleString()}`,
42
- ` - Trial: ${events.length}`,
43
- ` - Success: ${events.filter((e) => e.type === "success").length}`,
44
- ` - Failure: ${events.filter((e) => e.type === "failure").length}`,
45
- ` - Average Time: ${MathUtil.round(average).toLocaleString()} ms`,
46
- ` - Token Usage`,
47
- ` - Total: ${aggregate.total.toLocaleString()}`,
48
- ` - Input`,
49
- ` - Total: ${aggregate.input.total.toLocaleString()}`,
50
- ` - Cached: ${aggregate.input.cached.toLocaleString()}`,
51
- ` - Output:`,
52
- ` - Total: ${aggregate.output.total.toLocaleString()}`,
53
- ` - Accepted Prediction: ${aggregate.output.accepted_prediction.toLocaleString()}`,
54
- ` - Reasoning: ${aggregate.output.reasoning.toLocaleString()}`,
55
- ` - Rejected Prediction: ${aggregate.output.rejected_prediction.toLocaleString()}`,
56
- "",
57
- "## Experiments",
58
- " Name | Status | Time/Avg ",
59
- ":-----|:-------|----------:",
60
- ...result.experiments.map((exp) =>
61
- [
62
- `[${exp.scenario.name}](./${exp.scenario.name}/README.md)`,
63
- (() => {
64
- const success: number = Math.floor(
65
- (exp.events.filter((e) => e.type === "success").length /
66
- exp.events.length) *
67
- 10,
68
- );
69
- return (
70
- new Array(success).fill("■").join("") +
71
- new Array(10 - success).fill("□").join("")
72
- );
73
- })(),
74
- MathUtil.round(
75
- exp.events
76
- .map(
77
- (event) =>
78
- event.completed_at.getTime() - event.started_at.getTime(),
79
- )
80
- .reduce((a, b) => a + b, 0) / exp.events.length,
81
- ).toLocaleString() + " ms",
82
- ].join(" | "),
83
- ),
84
- ].join("\n");
85
- };
86
-
87
- const writeExperimentIndex = (
88
- exp: IAgenticaSelectBenchmarkResult.IExperiment,
89
- ): string => {
90
- const aggregate: IAgenticaTokenUsage.IComponent = exp.usage.aggregate;
91
- return [
92
- `# ${exp.scenario.name}`,
93
- "## Summary",
94
- " - Aggregation:",
95
- ` - Trial: ${exp.events.length}`,
96
- ` - Success: ${exp.events.filter((e) => e.type === "success").length}`,
97
- ` - Failure: ${exp.events.filter((e) => e.type === "failure").length}`,
98
- ` - Average Time: ${MathUtil.round(
99
- exp.events
100
- .map(
101
- (event) =>
102
- event.completed_at.getTime() - event.started_at.getTime(),
103
- )
104
- .reduce((a, b) => a + b, 0) / exp.events.length,
105
- ).toLocaleString()} ms`,
106
- ` - Token Usage`,
107
- ` - Total: ${aggregate.total.toLocaleString()}`,
108
- ` - Input`,
109
- ` - Total: ${aggregate.input.total.toLocaleString()}`,
110
- ` - Cached: ${aggregate.input.cached.toLocaleString()}`,
111
- ` - Output:`,
112
- ` - Total: ${aggregate.output.total.toLocaleString()}`,
113
- ` - Accepted Prediction: ${aggregate.output.accepted_prediction.toLocaleString()}`,
114
- ` - Reasoning: ${aggregate.output.reasoning.toLocaleString()}`,
115
- ` - Rejected Prediction: ${aggregate.output.rejected_prediction.toLocaleString()}`,
116
- "",
117
- "## Events",
118
- " No | Type | Time",
119
- "---:|:-----|----:",
120
- ...exp.events.map((e, i) =>
121
- [
122
- `[${i + 1}.](./${i + 1}.${e.type}.md)`,
123
- e.type,
124
- MathUtil.round(e.completed_at.getTime() - e.started_at.getTime()) +
125
- " ms",
126
- ].join(" | "),
127
- ),
128
- "",
129
- "## Scenario",
130
- "### User Prompt",
131
- exp.scenario.text,
132
- "",
133
- "### Expected",
134
- "```json",
135
- JSON.stringify(
136
- AgenticaBenchmarkUtil.expectedToJson(exp.scenario.expected),
137
- null,
138
- 2,
139
- ),
140
- "```",
141
- ].join("\n");
142
- };
143
-
144
- const writeExperimentEvent = (
145
- event: IAgenticaSelectBenchmarkEvent,
146
- index: number,
147
- ): string => {
148
- return [
149
- `# ${index + 1}. ${event.type}`,
150
- `## Summary`,
151
- ` - Name: ${event.scenario.name}`,
152
- ` - Type: ${event.type}`,
153
- ` - Time: ${(event.completed_at.getTime() - event.started_at.getTime()).toLocaleString()} ms`,
154
- ...(event.type !== "error"
155
- ? [
156
- " - Token Usage",
157
- ` - Total: ${event.usage.aggregate.toLocaleString()}`,
158
- ` - Prompt`,
159
- ` - Total: ${event.usage.aggregate.input.total.toLocaleString()}`,
160
- ` - Cached: ${event.usage.aggregate.input.cached.toLocaleString()}`,
161
- ` - Completion:`,
162
- ` - Total: ${event.usage.aggregate.output.total.toLocaleString()}`,
163
- ` - Reasoning: ${event.usage.aggregate.output.reasoning.toLocaleString()}`,
164
- ` - Accepted Prediction: ${event.usage.aggregate.output.accepted_prediction.toLocaleString()}`,
165
- ` - Rejected Prediction: ${event.usage.aggregate.output.rejected_prediction.toLocaleString()}`,
166
- ]
167
- : []),
168
- "",
169
- "## Scenario",
170
- "### User Prompt",
171
- event.scenario.text,
172
- "",
173
- "### Expected",
174
- "```json",
175
- JSON.stringify(
176
- AgenticaBenchmarkUtil.expectedToJson(event.scenario.expected),
177
- null,
178
- 2,
179
- ),
180
- "```",
181
- "",
182
- ...(event.type === "success" || event.type === "failure"
183
- ? [
184
- "## Result",
185
- ...event.selected.map((s) =>
186
- [
187
- `### ${s.name}`,
188
- ` - Controller: \`${s.controller.name}\``,
189
- ` - Function: \`${s.function.name}\``,
190
- ` - Reason: ${s.reason}`,
191
- "",
192
- ...(s.function.description ? [s.function.description, ""] : []),
193
- ].join("\n"),
194
- ),
195
- ]
196
- : []),
197
- ...(event.type === "error"
198
- ? [
199
- "## Error",
200
- "```json",
201
- AgenticaBenchmarkUtil.errorToJson(
202
- JSON.stringify(event.error, null, 2),
203
- ),
204
- "```",
205
- "",
206
- ]
207
- : []),
208
- ].join("\n");
209
- };
210
- }
1
+ import { IAgenticaTokenUsage } from "@agentica/core";
2
+ import { ILlmSchema } from "@samchon/openapi";
3
+
4
+ import { IAgenticaSelectBenchmarkEvent } from "../structures/IAgenticaSelectBenchmarkEvent";
5
+ import { IAgenticaSelectBenchmarkResult } from "../structures/IAgenticaSelectBenchmarkResult";
6
+ import { MathUtil } from "../utils/MathUtil";
7
+ import { AgenticaBenchmarkUtil } from "./AgenticaBenchmarkUtil";
8
+
9
+ /**
10
+ * @internal
11
+ */
12
+ export namespace AgenticaSelectBenchmarkReporter {
13
+ export const markdown = <Model extends ILlmSchema.Model>(
14
+ result: IAgenticaSelectBenchmarkResult<Model>,
15
+ ): Record<string, string> =>
16
+ Object.fromEntries([
17
+ ["./README.md", writeIndex(result)],
18
+ ...result.experiments
19
+ .map((exp) => [
20
+ [`./${exp.scenario.name}/README.md`, writeExperimentIndex(exp)],
21
+ ...exp.events.map((event, i) => [
22
+ `./${exp.scenario.name}/${i + 1}.${event.type}.md`,
23
+ writeExperimentEvent(event, i),
24
+ ]),
25
+ ])
26
+ .flat(),
27
+ ]);
28
+
29
+ const writeIndex = <Model extends ILlmSchema.Model>(
30
+ result: IAgenticaSelectBenchmarkResult<Model>,
31
+ ): string => {
32
+ const events: IAgenticaSelectBenchmarkEvent<Model>[] = result.experiments
33
+ .map((r) => r.events)
34
+ .flat();
35
+ const average: number =
36
+ events
37
+ .map((e) => e.completed_at.getTime() - e.started_at.getTime())
38
+ .reduce((a, b) => a + b, 0) / events.length;
39
+ const aggregate: IAgenticaTokenUsage.IComponent = result.usage.aggregate;
40
+ return [
41
+ "# LLM Function Selection Benchmark",
42
+ "## Summary",
43
+ ` - Aggregation:`,
44
+ ` - Scenarios: #${result.experiments.length.toLocaleString()}`,
45
+ ` - Trial: ${events.length}`,
46
+ ` - Success: ${events.filter((e) => e.type === "success").length}`,
47
+ ` - Failure: ${events.filter((e) => e.type === "failure").length}`,
48
+ ` - Average Time: ${MathUtil.round(average).toLocaleString()} ms`,
49
+ ` - Token Usage`,
50
+ ` - Total: ${aggregate.total.toLocaleString()}`,
51
+ ` - Input`,
52
+ ` - Total: ${aggregate.input.total.toLocaleString()}`,
53
+ ` - Cached: ${aggregate.input.cached.toLocaleString()}`,
54
+ ` - Output:`,
55
+ ` - Total: ${aggregate.output.total.toLocaleString()}`,
56
+ ` - Accepted Prediction: ${aggregate.output.accepted_prediction.toLocaleString()}`,
57
+ ` - Reasoning: ${aggregate.output.reasoning.toLocaleString()}`,
58
+ ` - Rejected Prediction: ${aggregate.output.rejected_prediction.toLocaleString()}`,
59
+ "",
60
+ "## Experiments",
61
+ " Name | Status | Time/Avg ",
62
+ ":-----|:-------|----------:",
63
+ ...result.experiments.map((exp) =>
64
+ [
65
+ `[${exp.scenario.name}](./${exp.scenario.name}/README.md)`,
66
+ (() => {
67
+ const success: number = Math.floor(
68
+ (exp.events.filter((e) => e.type === "success").length /
69
+ exp.events.length) *
70
+ 10,
71
+ );
72
+ return (
73
+ new Array(success).fill("■").join("") +
74
+ new Array(10 - success).fill("□").join("")
75
+ );
76
+ })(),
77
+ MathUtil.round(
78
+ exp.events
79
+ .map(
80
+ (event) =>
81
+ event.completed_at.getTime() - event.started_at.getTime(),
82
+ )
83
+ .reduce((a, b) => a + b, 0) / exp.events.length,
84
+ ).toLocaleString() + " ms",
85
+ ].join(" | "),
86
+ ),
87
+ ].join("\n");
88
+ };
89
+
90
+ const writeExperimentIndex = <Model extends ILlmSchema.Model>(
91
+ exp: IAgenticaSelectBenchmarkResult.IExperiment<Model>,
92
+ ): string => {
93
+ const aggregate: IAgenticaTokenUsage.IComponent = exp.usage.aggregate;
94
+ return [
95
+ `# ${exp.scenario.name}`,
96
+ "## Summary",
97
+ " - Aggregation:",
98
+ ` - Trial: ${exp.events.length}`,
99
+ ` - Success: ${exp.events.filter((e) => e.type === "success").length}`,
100
+ ` - Failure: ${exp.events.filter((e) => e.type === "failure").length}`,
101
+ ` - Average Time: ${MathUtil.round(
102
+ exp.events
103
+ .map(
104
+ (event) =>
105
+ event.completed_at.getTime() - event.started_at.getTime(),
106
+ )
107
+ .reduce((a, b) => a + b, 0) / exp.events.length,
108
+ ).toLocaleString()} ms`,
109
+ ` - Token Usage`,
110
+ ` - Total: ${aggregate.total.toLocaleString()}`,
111
+ ` - Input`,
112
+ ` - Total: ${aggregate.input.total.toLocaleString()}`,
113
+ ` - Cached: ${aggregate.input.cached.toLocaleString()}`,
114
+ ` - Output:`,
115
+ ` - Total: ${aggregate.output.total.toLocaleString()}`,
116
+ ` - Accepted Prediction: ${aggregate.output.accepted_prediction.toLocaleString()}`,
117
+ ` - Reasoning: ${aggregate.output.reasoning.toLocaleString()}`,
118
+ ` - Rejected Prediction: ${aggregate.output.rejected_prediction.toLocaleString()}`,
119
+ "",
120
+ "## Events",
121
+ " No | Type | Time",
122
+ "---:|:-----|----:",
123
+ ...exp.events.map((e, i) =>
124
+ [
125
+ `[${i + 1}.](./${i + 1}.${e.type}.md)`,
126
+ e.type,
127
+ MathUtil.round(e.completed_at.getTime() - e.started_at.getTime()) +
128
+ " ms",
129
+ ].join(" | "),
130
+ ),
131
+ "",
132
+ "## Scenario",
133
+ "### User Prompt",
134
+ exp.scenario.text,
135
+ "",
136
+ "### Expected",
137
+ "```json",
138
+ JSON.stringify(
139
+ AgenticaBenchmarkUtil.expectedToJson(exp.scenario.expected),
140
+ null,
141
+ 2,
142
+ ),
143
+ "```",
144
+ ].join("\n");
145
+ };
146
+
147
+ const writeExperimentEvent = <Model extends ILlmSchema.Model>(
148
+ event: IAgenticaSelectBenchmarkEvent<Model>,
149
+ index: number,
150
+ ): string => {
151
+ return [
152
+ `# ${index + 1}. ${event.type}`,
153
+ `## Summary`,
154
+ ` - Name: ${event.scenario.name}`,
155
+ ` - Type: ${event.type}`,
156
+ ` - Time: ${(event.completed_at.getTime() - event.started_at.getTime()).toLocaleString()} ms`,
157
+ ...(event.type !== "error"
158
+ ? [
159
+ " - Token Usage",
160
+ ` - Total: ${event.usage.aggregate.toLocaleString()}`,
161
+ ` - Prompt`,
162
+ ` - Total: ${event.usage.aggregate.input.total.toLocaleString()}`,
163
+ ` - Cached: ${event.usage.aggregate.input.cached.toLocaleString()}`,
164
+ ` - Completion:`,
165
+ ` - Total: ${event.usage.aggregate.output.total.toLocaleString()}`,
166
+ ` - Reasoning: ${event.usage.aggregate.output.reasoning.toLocaleString()}`,
167
+ ` - Accepted Prediction: ${event.usage.aggregate.output.accepted_prediction.toLocaleString()}`,
168
+ ` - Rejected Prediction: ${event.usage.aggregate.output.rejected_prediction.toLocaleString()}`,
169
+ ]
170
+ : []),
171
+ "",
172
+ "## Scenario",
173
+ "### User Prompt",
174
+ event.scenario.text,
175
+ "",
176
+ "### Expected",
177
+ "```json",
178
+ JSON.stringify(
179
+ AgenticaBenchmarkUtil.expectedToJson(event.scenario.expected),
180
+ null,
181
+ 2,
182
+ ),
183
+ "```",
184
+ "",
185
+ ...(event.type === "success" || event.type === "failure"
186
+ ? [
187
+ "## Result",
188
+ ...event.selected.map((s) =>
189
+ [
190
+ `### ${s.name}`,
191
+ ` - Controller: \`${s.controller.name}\``,
192
+ ` - Function: \`${s.function.name}\``,
193
+ ` - Reason: ${s.reason}`,
194
+ "",
195
+ ...(s.function.description ? [s.function.description, ""] : []),
196
+ ].join("\n"),
197
+ ),
198
+ ]
199
+ : []),
200
+ ...(event.type === "error"
201
+ ? [
202
+ "## Error",
203
+ "```json",
204
+ AgenticaBenchmarkUtil.errorToJson(
205
+ JSON.stringify(event.error, null, 2),
206
+ ),
207
+ "```",
208
+ "",
209
+ ]
210
+ : []),
211
+ ].join("\n");
212
+ };
213
+ }
@@ -1,58 +1,68 @@
1
- import { IAgenticaOperation } from "@agentica/core";
2
-
3
- /**
4
- * Expected operation determinant.
5
- *
6
- * `IAgenticaBenchmarkExpected` is a type for determining what
7
- * operation is expected in the benchmarking.
8
- *
9
- * And `IAgenticaBenchmarkExpected` is an union type of 4 types,
10
- * especially designed for the detailed determination of the expected
11
- * operations.
12
- *
13
- * @author Samchon
14
- */
15
- export type IAgenticaBenchmarkExpected =
16
- | IAgenticaBenchmarkExpected.IAllOf
17
- | IAgenticaBenchmarkExpected.IAnyOf
18
- | IAgenticaBenchmarkExpected.IArray
19
- | IAgenticaBenchmarkExpected.IStandalone;
20
- export namespace IAgenticaBenchmarkExpected {
21
- /**
22
- * All of them must meet the condition, but sequence is not important.
23
- */
24
- export interface IAllOf {
25
- type: "allOf";
26
- allOf: Array<
27
- Exclude<IAgenticaBenchmarkExpected, IAgenticaBenchmarkExpected.IAllOf>
28
- >;
29
- }
30
-
31
- /**
32
- * At least one of them must meet the condition.
33
- */
34
- export interface IAnyOf {
35
- type: "anyOf";
36
- anyOf: Array<
37
- Exclude<IAgenticaBenchmarkExpected, IAgenticaBenchmarkExpected.IAnyOf>
38
- >;
39
- }
40
-
41
- /**
42
- * All of them must meet the condition, and sequence is important.
43
- */
44
- export interface IArray {
45
- type: "array";
46
- items: Array<
47
- Exclude<IAgenticaBenchmarkExpected, IAgenticaBenchmarkExpected.IArray>
48
- >;
49
- }
50
-
51
- /**
52
- * Standalone operation.
53
- */
54
- export interface IStandalone {
55
- type: "standalone";
56
- operation: IAgenticaOperation;
57
- }
58
- }
1
+ import { IAgenticaOperation } from "@agentica/core";
2
+ import { ILlmSchema } from "@samchon/openapi";
3
+
4
+ /**
5
+ * Expected operation determinant.
6
+ *
7
+ * `IAgenticaBenchmarkExpected` is a type for determining what
8
+ * operation is expected in the benchmarking.
9
+ *
10
+ * And `IAgenticaBenchmarkExpected` is an union type of 4 types,
11
+ * especially designed for the detailed determination of the expected
12
+ * operations.
13
+ *
14
+ * @author Samchon
15
+ */
16
+ export type IAgenticaBenchmarkExpected<Model extends ILlmSchema.Model> =
17
+ | IAgenticaBenchmarkExpected.IAllOf<Model>
18
+ | IAgenticaBenchmarkExpected.IAnyOf<Model>
19
+ | IAgenticaBenchmarkExpected.IArray<Model>
20
+ | IAgenticaBenchmarkExpected.IStandalone<Model>;
21
+ export namespace IAgenticaBenchmarkExpected {
22
+ /**
23
+ * All of them must meet the condition, but sequence is not important.
24
+ */
25
+ export interface IAllOf<Model extends ILlmSchema.Model> {
26
+ type: "allOf";
27
+ allOf: Array<
28
+ Exclude<
29
+ IAgenticaBenchmarkExpected<Model>,
30
+ IAgenticaBenchmarkExpected.IAllOf<Model>
31
+ >
32
+ >;
33
+ }
34
+
35
+ /**
36
+ * At least one of them must meet the condition.
37
+ */
38
+ export interface IAnyOf<Model extends ILlmSchema.Model> {
39
+ type: "anyOf";
40
+ anyOf: Array<
41
+ Exclude<
42
+ IAgenticaBenchmarkExpected<Model>,
43
+ IAgenticaBenchmarkExpected.IAnyOf<Model>
44
+ >
45
+ >;
46
+ }
47
+
48
+ /**
49
+ * All of them must meet the condition, and sequence is important.
50
+ */
51
+ export interface IArray<Model extends ILlmSchema.Model> {
52
+ type: "array";
53
+ items: Array<
54
+ Exclude<
55
+ IAgenticaBenchmarkExpected<Model>,
56
+ IAgenticaBenchmarkExpected.IArray<Model>
57
+ >
58
+ >;
59
+ }
60
+
61
+ /**
62
+ * Standalone operation.
63
+ */
64
+ export interface IStandalone<Model extends ILlmSchema.Model> {
65
+ type: "standalone";
66
+ operation: IAgenticaOperation<Model>;
67
+ }
68
+ }