@mastra/server 1.63.2 → 1.63.3-alpha.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/CHANGELOG.md +7 -0
- package/dist/_types/@internal_core/dist/storage/index.d.ts +401 -401
- package/dist/_types/@mastra_schema-compat/dist/schema-compatibility-v3.d.ts +5 -5
- package/dist/_types/@mastra_schema-compat/dist/schema-compatibility-v4.d.ts +5 -5
- package/dist/_types/@mastra_schema-compat/dist/standard-schema/standard-schema.d.ts +1 -1
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/server/a2a/push-notification-sender.d.ts.map +1 -1
- package/dist/server/a2a/push-notification-store.d.ts.map +1 -1
- package/dist/server/a2a/store.d.ts.map +1 -1
- package/dist/server/auth/helpers.d.ts +1 -1
- package/dist/server/auth/helpers.d.ts.map +1 -1
- package/dist/server/browser-stream/viewer-registry.d.ts.map +1 -1
- package/dist/server/constants.d.ts +1 -1
- package/dist/server/constants.d.ts.map +1 -1
- package/dist/server/handlers/a2a.d.ts +60 -60
- package/dist/server/handlers/a2a.d.ts.map +1 -1
- package/dist/server/handlers/agent-builder.d.ts +110 -110
- package/dist/server/handlers/agent-controller.d.ts +110 -110
- package/dist/server/handlers/agent-versions.d.ts +5267 -5259
- package/dist/server/handlers/agent-versions.d.ts.map +1 -1
- package/dist/server/handlers/agents.d.ts +4355 -4355
- package/dist/server/handlers/agents.d.ts.map +1 -1
- package/dist/server/handlers/auth.d.ts +52 -52
- package/dist/server/handlers/background-tasks.d.ts +37 -37
- package/dist/server/handlers/builder-registry.d.ts +12 -12
- package/dist/server/handlers/channels.d.ts +10 -10
- package/dist/server/handlers/conversations.d.ts +13 -13
- package/dist/server/handlers/datasets.d.ts +396 -396
- package/dist/server/handlers/dynamic-workflows.d.ts +36 -36
- package/dist/server/handlers/editor-builder.d.ts +13 -13
- package/dist/server/handlers/gateway-memory-client.d.ts +4 -4
- package/dist/server/handlers/gateway-memory-client.d.ts.map +1 -1
- package/dist/server/handlers/logs.d.ts +40 -40
- package/dist/server/handlers/mcp-client-versions.d.ts +32 -32
- package/dist/server/handlers/mcp.d.ts +23 -23
- package/dist/server/handlers/memory.d.ts +138 -138
- package/dist/server/handlers/observability-list-query-schemas.d.ts +1 -1
- package/dist/server/handlers/observability-new-endpoints.d.ts +859 -859
- package/dist/server/handlers/observability-shared.d.ts +126 -126
- package/dist/server/handlers/observability-shared.d.ts.map +1 -1
- package/dist/server/handlers/observability.d.ts +17 -17
- package/dist/server/handlers/plans.d.ts +3 -3
- package/dist/server/handlers/processor-providers.d.ts +9 -9
- package/dist/server/handlers/processors.d.ts +31 -31
- package/dist/server/handlers/prompt-block-versions.d.ts +176 -176
- package/dist/server/handlers/responses.adapter.d.ts +3 -3
- package/dist/server/handlers/responses.adapter.d.ts.map +1 -1
- package/dist/server/handlers/responses.d.ts +17 -17
- package/dist/server/handlers/schedules.d.ts +242 -242
- package/dist/server/handlers/scorer-versions.d.ts +39 -39
- package/dist/server/handlers/scores.d.ts +20 -20
- package/dist/server/handlers/stored-agent-favorites.d.ts +4 -4
- package/dist/server/handlers/stored-agents.d.ts +5992 -5984
- package/dist/server/handlers/stored-agents.d.ts.map +1 -1
- package/dist/server/handlers/stored-mcp-clients.d.ts +46 -46
- package/dist/server/handlers/stored-prompt-blocks.d.ts +193 -193
- package/dist/server/handlers/stored-scorers.d.ts +56 -56
- package/dist/server/handlers/stored-skill-favorites.d.ts +4 -4
- package/dist/server/handlers/stored-skills.d.ts +70 -70
- package/dist/server/handlers/stored-workspaces.d.ts +36 -36
- package/dist/server/handlers/system.d.ts +19 -19
- package/dist/server/handlers/tool-providers.d.ts +49 -49
- package/dist/server/handlers/tools.d.ts +10 -10
- package/dist/server/handlers/vector.d.ts +18 -18
- package/dist/server/handlers/version-helpers.d.ts +1 -1
- package/dist/server/handlers/version-helpers.d.ts.map +1 -1
- package/dist/server/handlers/workflows.d.ts +167 -167
- package/dist/server/handlers/workspace.d.ts +370 -370
- package/dist/server/http-exception.d.ts.map +1 -1
- package/dist/server/schemas/a2a.d.ts +18 -18
- package/dist/server/schemas/agent-versions.d.ts +3948 -3948
- package/dist/server/schemas/agents.d.ts +172 -172
- package/dist/server/schemas/agents.d.ts.map +1 -1
- package/dist/server/schemas/auth.d.ts +5 -5
- package/dist/server/schemas/background-tasks.d.ts +22 -22
- package/dist/server/schemas/builder-registry.d.ts +1 -1
- package/dist/server/schemas/channels.d.ts +1 -1
- package/dist/server/schemas/common.d.ts +5 -5
- package/dist/server/schemas/common.d.ts.map +1 -1
- package/dist/server/schemas/conversations.d.ts +2 -2
- package/dist/server/schemas/datasets.d.ts +98 -98
- package/dist/server/schemas/dynamic-workflows.d.ts +7 -7
- package/dist/server/schemas/logs.d.ts +8 -8
- package/dist/server/schemas/mcp-client-versions.d.ts +2 -2
- package/dist/server/schemas/memory-config.d.ts +5 -5
- package/dist/server/schemas/memory.d.ts +20 -20
- package/dist/server/schemas/processor-providers.d.ts +2 -2
- package/dist/server/schemas/processors.d.ts +13 -13
- package/dist/server/schemas/prompt-block-versions.d.ts +149 -149
- package/dist/server/schemas/responses.d.ts +11 -11
- package/dist/server/schemas/rule-group.d.ts +28 -28
- package/dist/server/schemas/schedules.d.ts +120 -120
- package/dist/server/schemas/scorer-versions.d.ts +9 -9
- package/dist/server/schemas/scores.d.ts +2 -2
- package/dist/server/schemas/stored-agents.d.ts +9052 -9052
- package/dist/server/schemas/stored-mcp-clients.d.ts +9 -9
- package/dist/server/schemas/stored-prompt-blocks.d.ts +156 -156
- package/dist/server/schemas/stored-scorers.d.ts +16 -16
- package/dist/server/schemas/stored-skills.d.ts +22 -22
- package/dist/server/schemas/stored-workspaces.d.ts +6 -6
- package/dist/server/schemas/system.d.ts +12 -12
- package/dist/server/schemas/tool-providers.d.ts +20 -20
- package/dist/server/schemas/vectors.d.ts +1 -1
- package/dist/server/schemas/version-common.d.ts +2 -2
- package/dist/server/schemas/workflows.d.ts +57 -57
- package/dist/server/schemas/workspace.d.ts +17 -17
- package/dist/server/server-adapter/index.d.ts.map +1 -1
- package/dist/server/server-adapter/routes/a2a.d.ts +49 -49
- package/dist/server/server-adapter/routes/agent-builder.d.ts +110 -110
- package/dist/server/server-adapter/routes/channels.d.ts +10 -10
- package/dist/server/server-adapter/routes/conversations.d.ts +26 -26
- package/dist/server/server-adapter/routes/datasets.d.ts +394 -394
- package/dist/server/server-adapter/routes/editor-builder.d.ts +25 -25
- package/dist/server/server-adapter/routes/legacy.d.ts +157 -157
- package/dist/server/server-adapter/routes/logs.d.ts +40 -40
- package/dist/server/server-adapter/routes/mcp.d.ts +23 -23
- package/dist/server/server-adapter/routes/memory.d.ts +138 -138
- package/dist/server/server-adapter/routes/observability.d.ts +446 -446
- package/dist/server/server-adapter/routes/processor-providers.d.ts +9 -9
- package/dist/server/server-adapter/routes/processors.d.ts +31 -31
- package/dist/server/server-adapter/routes/responses.d.ts +17 -17
- package/dist/server/server-adapter/routes/scorers.d.ts +20 -20
- package/dist/server/server-adapter/routes/stored-mcp-clients.d.ts +78 -78
- package/dist/server/server-adapter/routes/stored-prompt-blocks.d.ts +369 -369
- package/dist/server/server-adapter/routes/stored-scorers.d.ts +95 -95
- package/dist/server/server-adapter/routes/stored-skills.d.ts +74 -74
- package/dist/server/server-adapter/routes/stored-workspaces.d.ts +36 -36
- package/dist/server/server-adapter/routes/system.d.ts +19 -19
- package/dist/server/server-adapter/routes/tool-providers.d.ts +49 -49
- package/dist/server/server-adapter/routes/tools.d.ts +6 -6
- package/dist/server/server-adapter/routes/vectors.d.ts +18 -18
- package/dist/server/server-adapter/routes/workflows.d.ts +163 -163
- package/dist/server/server-adapter/routes/workspace.d.ts +334 -334
- package/dist/server/utils.d.ts.map +1 -1
- package/package.json +7 -6
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server").ApiRoute, "
|
|
1
|
+
export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
|
|
2
2
|
method: "GET";
|
|
3
3
|
path: "/datasets";
|
|
4
4
|
responseType: "json";
|
|
5
|
-
streamFormat?:
|
|
5
|
+
streamFormat?: 'sse' | 'stream';
|
|
6
6
|
sseFlushOnConnect?: boolean;
|
|
7
7
|
handler(params: {
|
|
8
8
|
page: number;
|
|
@@ -11,9 +11,6 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
11
11
|
datasets: {
|
|
12
12
|
id: string;
|
|
13
13
|
name: string;
|
|
14
|
-
version: number;
|
|
15
|
-
createdAt: Date;
|
|
16
|
-
updatedAt: Date;
|
|
17
14
|
description?: string | null | undefined;
|
|
18
15
|
metadata?: Record<string, unknown> | null | undefined;
|
|
19
16
|
inputSchema?: Record<string, unknown> | undefined;
|
|
@@ -23,6 +20,9 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
23
20
|
targetType?: string | null | undefined;
|
|
24
21
|
targetIds?: string[] | null | undefined;
|
|
25
22
|
scorerIds?: string[] | null | undefined;
|
|
23
|
+
version: number;
|
|
24
|
+
createdAt: Date;
|
|
25
|
+
updatedAt: Date;
|
|
26
26
|
}[];
|
|
27
27
|
pagination: {
|
|
28
28
|
total: number;
|
|
@@ -70,11 +70,11 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
70
70
|
}, import("zod/v4/core").$strip>> | undefined;
|
|
71
71
|
} & {
|
|
72
72
|
readonly _mastraSchemaRoute: true;
|
|
73
|
-
}, Omit<import("@mastra/core/server").ApiRoute, "
|
|
73
|
+
}, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
|
|
74
74
|
method: "POST";
|
|
75
75
|
path: "/datasets";
|
|
76
76
|
responseType: "json";
|
|
77
|
-
streamFormat?:
|
|
77
|
+
streamFormat?: 'sse' | 'stream';
|
|
78
78
|
sseFlushOnConnect?: boolean;
|
|
79
79
|
handler(params: {
|
|
80
80
|
name: string;
|
|
@@ -89,9 +89,6 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
89
89
|
} & import(".").ServerContext): Promise<{
|
|
90
90
|
id: string;
|
|
91
91
|
name: string;
|
|
92
|
-
version: number;
|
|
93
|
-
createdAt: Date;
|
|
94
|
-
updatedAt: Date;
|
|
95
92
|
description?: string | null | undefined;
|
|
96
93
|
metadata?: Record<string, unknown> | null | undefined;
|
|
97
94
|
inputSchema?: Record<string, unknown> | undefined;
|
|
@@ -101,6 +98,9 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
101
98
|
targetType?: string | null | undefined;
|
|
102
99
|
targetIds?: string[] | null | undefined;
|
|
103
100
|
scorerIds?: string[] | null | undefined;
|
|
101
|
+
version: number;
|
|
102
|
+
createdAt: Date;
|
|
103
|
+
updatedAt: Date;
|
|
104
104
|
}>;
|
|
105
105
|
pathParamSchema?: import("zod").ZodType;
|
|
106
106
|
queryParamSchema?: import("zod").ZodType;
|
|
@@ -140,11 +140,11 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
140
140
|
}, import("zod/v4/core").$strip>> | undefined;
|
|
141
141
|
} & {
|
|
142
142
|
readonly _mastraSchemaRoute: true;
|
|
143
|
-
}, Omit<import("@mastra/core/server").ApiRoute, "
|
|
143
|
+
}, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
|
|
144
144
|
method: "GET";
|
|
145
145
|
path: "/datasets/:datasetId";
|
|
146
146
|
responseType: "json";
|
|
147
|
-
streamFormat?:
|
|
147
|
+
streamFormat?: 'sse' | 'stream';
|
|
148
148
|
sseFlushOnConnect?: boolean;
|
|
149
149
|
handler(params: {
|
|
150
150
|
datasetId: string;
|
|
@@ -154,9 +154,6 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
154
154
|
} & import(".").ServerContext): Promise<{
|
|
155
155
|
id: string;
|
|
156
156
|
name: string;
|
|
157
|
-
version: number;
|
|
158
|
-
createdAt: Date;
|
|
159
|
-
updatedAt: Date;
|
|
160
157
|
description?: string | null | undefined;
|
|
161
158
|
metadata?: Record<string, unknown> | null | undefined;
|
|
162
159
|
inputSchema?: Record<string, unknown> | undefined;
|
|
@@ -166,6 +163,9 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
166
163
|
targetType?: string | null | undefined;
|
|
167
164
|
targetIds?: string[] | null | undefined;
|
|
168
165
|
scorerIds?: string[] | null | undefined;
|
|
166
|
+
version: number;
|
|
167
|
+
createdAt: Date;
|
|
168
|
+
updatedAt: Date;
|
|
169
169
|
} | null>;
|
|
170
170
|
pathParamSchema?: import("zod").ZodType;
|
|
171
171
|
queryParamSchema?: import("zod").ZodType;
|
|
@@ -200,11 +200,11 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
200
200
|
}, import("zod/v4/core").$strip>>> | undefined;
|
|
201
201
|
} & {
|
|
202
202
|
readonly _mastraSchemaRoute: true;
|
|
203
|
-
}, Omit<import("@mastra/core/server").ApiRoute, "
|
|
203
|
+
}, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
|
|
204
204
|
method: "PATCH";
|
|
205
205
|
path: "/datasets/:datasetId";
|
|
206
206
|
responseType: "json";
|
|
207
|
-
streamFormat?:
|
|
207
|
+
streamFormat?: 'sse' | 'stream';
|
|
208
208
|
sseFlushOnConnect?: boolean;
|
|
209
209
|
handler(params: {
|
|
210
210
|
datasetId: string;
|
|
@@ -225,9 +225,6 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
225
225
|
} & import(".").ServerContext): Promise<{
|
|
226
226
|
id: string;
|
|
227
227
|
name: string;
|
|
228
|
-
version: number;
|
|
229
|
-
createdAt: Date;
|
|
230
|
-
updatedAt: Date;
|
|
231
228
|
description?: string | null | undefined;
|
|
232
229
|
metadata?: Record<string, unknown> | null | undefined;
|
|
233
230
|
inputSchema?: Record<string, unknown> | undefined;
|
|
@@ -237,6 +234,9 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
237
234
|
targetType?: string | null | undefined;
|
|
238
235
|
targetIds?: string[] | null | undefined;
|
|
239
236
|
scorerIds?: string[] | null | undefined;
|
|
237
|
+
version: number;
|
|
238
|
+
createdAt: Date;
|
|
239
|
+
updatedAt: Date;
|
|
240
240
|
}>;
|
|
241
241
|
pathParamSchema?: import("zod").ZodType;
|
|
242
242
|
queryParamSchema?: import("zod").ZodType;
|
|
@@ -282,11 +282,11 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
282
282
|
}, import("zod/v4/core").$strip>> | undefined;
|
|
283
283
|
} & {
|
|
284
284
|
readonly _mastraSchemaRoute: true;
|
|
285
|
-
}, Omit<import("@mastra/core/server").ApiRoute, "
|
|
285
|
+
}, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
|
|
286
286
|
method: "DELETE";
|
|
287
287
|
path: "/datasets/:datasetId";
|
|
288
288
|
responseType: "json";
|
|
289
|
-
streamFormat?:
|
|
289
|
+
streamFormat?: 'sse' | 'stream';
|
|
290
290
|
sseFlushOnConnect?: boolean;
|
|
291
291
|
handler(params: {
|
|
292
292
|
datasetId: string;
|
|
@@ -316,11 +316,11 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
316
316
|
}, import("zod/v4/core").$strip>> | undefined;
|
|
317
317
|
} & {
|
|
318
318
|
readonly _mastraSchemaRoute: true;
|
|
319
|
-
}, Omit<import("@mastra/core/server").ApiRoute, "
|
|
319
|
+
}, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
|
|
320
320
|
method: "GET";
|
|
321
321
|
path: "/datasets/:datasetId/items";
|
|
322
322
|
responseType: "json";
|
|
323
|
-
streamFormat?:
|
|
323
|
+
streamFormat?: 'sse' | 'stream';
|
|
324
324
|
sseFlushOnConnect?: boolean;
|
|
325
325
|
handler(params: {
|
|
326
326
|
datasetId: string;
|
|
@@ -334,26 +334,26 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
334
334
|
id: string;
|
|
335
335
|
datasetId: string;
|
|
336
336
|
datasetVersion: number;
|
|
337
|
-
input: unknown;
|
|
338
|
-
createdAt: Date;
|
|
339
|
-
updatedAt: Date;
|
|
340
337
|
externalId?: string | null | undefined;
|
|
338
|
+
input: unknown;
|
|
341
339
|
groundTruth?: unknown;
|
|
342
340
|
expectedTrajectory?: unknown;
|
|
343
341
|
toolMocks?: {
|
|
344
342
|
toolName: string;
|
|
345
343
|
args: Record<string, unknown>;
|
|
346
344
|
output: unknown;
|
|
347
|
-
matchArgs?: "
|
|
345
|
+
matchArgs?: "ignore" | "strict" | undefined;
|
|
348
346
|
}[] | undefined;
|
|
349
347
|
unmockedToolPolicy?: "allow" | "deny" | undefined;
|
|
350
348
|
scorerIds?: string[] | undefined;
|
|
351
349
|
requestContext?: Record<string, unknown> | undefined;
|
|
352
350
|
metadata?: Record<string, unknown> | undefined;
|
|
353
351
|
source?: {
|
|
354
|
-
type: "
|
|
352
|
+
type: "candidate-screener" | "csv" | "experiment-result" | "json" | "llm" | "trace";
|
|
355
353
|
referenceId?: string | undefined;
|
|
356
354
|
} | undefined;
|
|
355
|
+
createdAt: Date;
|
|
356
|
+
updatedAt: Date;
|
|
357
357
|
}[];
|
|
358
358
|
pagination: {
|
|
359
359
|
total: number;
|
|
@@ -393,8 +393,8 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
393
393
|
args: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>;
|
|
394
394
|
output: import("zod").ZodUnknown;
|
|
395
395
|
matchArgs: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
396
|
-
strict: "strict";
|
|
397
396
|
ignore: "ignore";
|
|
397
|
+
strict: "strict";
|
|
398
398
|
}>>;
|
|
399
399
|
}, import("zod/v4/core").$strip>>>;
|
|
400
400
|
unmockedToolPolicy: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
@@ -406,12 +406,12 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
406
406
|
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
407
407
|
source: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
408
408
|
type: import("zod").ZodEnum<{
|
|
409
|
-
|
|
409
|
+
"candidate-screener": "candidate-screener";
|
|
410
410
|
csv: "csv";
|
|
411
|
-
trace: "trace";
|
|
412
|
-
llm: "llm";
|
|
413
411
|
"experiment-result": "experiment-result";
|
|
414
|
-
|
|
412
|
+
json: "json";
|
|
413
|
+
llm: "llm";
|
|
414
|
+
trace: "trace";
|
|
415
415
|
}>;
|
|
416
416
|
referenceId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
417
417
|
}, import("zod/v4/core").$strip>>;
|
|
@@ -427,127 +427,127 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
427
427
|
}, import("zod/v4/core").$strip>> | undefined;
|
|
428
428
|
} & {
|
|
429
429
|
readonly _mastraSchemaRoute: true;
|
|
430
|
-
}, Omit<import("@mastra/core/server").ApiRoute, "
|
|
430
|
+
}, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
|
|
431
431
|
method: "POST";
|
|
432
432
|
path: "/datasets/:datasetId/items";
|
|
433
433
|
responseType: "json";
|
|
434
|
-
streamFormat?:
|
|
434
|
+
streamFormat?: 'sse' | 'stream';
|
|
435
435
|
sseFlushOnConnect?: boolean;
|
|
436
436
|
handler(params: {
|
|
437
437
|
datasetId: string;
|
|
438
438
|
} & {
|
|
439
|
-
input: unknown;
|
|
440
439
|
externalId?: string | null | undefined;
|
|
440
|
+
input: unknown;
|
|
441
441
|
groundTruth?: unknown;
|
|
442
442
|
expectedTrajectory?: {
|
|
443
443
|
steps?: ({
|
|
444
|
-
stepType: "tool_call";
|
|
445
444
|
name: string;
|
|
445
|
+
durationMs?: number | undefined;
|
|
446
|
+
metadata?: Record<string, unknown> | undefined;
|
|
447
|
+
children?: unknown;
|
|
448
|
+
stepType: "tool_call";
|
|
446
449
|
toolArgs?: Record<string, unknown> | undefined;
|
|
447
450
|
toolResult?: Record<string, unknown> | undefined;
|
|
448
451
|
success?: boolean | undefined;
|
|
452
|
+
} | {
|
|
453
|
+
name: string;
|
|
449
454
|
durationMs?: number | undefined;
|
|
450
455
|
metadata?: Record<string, unknown> | undefined;
|
|
451
456
|
children?: unknown;
|
|
452
|
-
} | {
|
|
453
457
|
stepType: "mcp_tool_call";
|
|
454
|
-
name: string;
|
|
455
458
|
toolArgs?: Record<string, unknown> | undefined;
|
|
456
459
|
toolResult?: Record<string, unknown> | undefined;
|
|
457
460
|
mcpServer?: string | undefined;
|
|
458
461
|
success?: boolean | undefined;
|
|
462
|
+
} | {
|
|
463
|
+
name: string;
|
|
459
464
|
durationMs?: number | undefined;
|
|
460
465
|
metadata?: Record<string, unknown> | undefined;
|
|
461
466
|
children?: unknown;
|
|
462
|
-
} | {
|
|
463
467
|
stepType: "model_generation";
|
|
464
|
-
name: string;
|
|
465
468
|
modelId?: string | undefined;
|
|
466
469
|
promptTokens?: number | undefined;
|
|
467
470
|
completionTokens?: number | undefined;
|
|
468
471
|
finishReason?: string | undefined;
|
|
472
|
+
} | {
|
|
473
|
+
name: string;
|
|
469
474
|
durationMs?: number | undefined;
|
|
470
475
|
metadata?: Record<string, unknown> | undefined;
|
|
471
476
|
children?: unknown;
|
|
472
|
-
} | {
|
|
473
477
|
stepType: "agent_run";
|
|
474
|
-
name: string;
|
|
475
478
|
agentId?: string | undefined;
|
|
479
|
+
} | {
|
|
480
|
+
name: string;
|
|
476
481
|
durationMs?: number | undefined;
|
|
477
482
|
metadata?: Record<string, unknown> | undefined;
|
|
478
483
|
children?: unknown;
|
|
479
|
-
} | {
|
|
480
484
|
stepType: "workflow_step";
|
|
481
|
-
name: string;
|
|
482
485
|
stepId?: string | undefined;
|
|
483
486
|
status?: string | undefined;
|
|
484
487
|
output?: Record<string, unknown> | undefined;
|
|
488
|
+
} | {
|
|
489
|
+
name: string;
|
|
485
490
|
durationMs?: number | undefined;
|
|
486
491
|
metadata?: Record<string, unknown> | undefined;
|
|
487
492
|
children?: unknown;
|
|
488
|
-
} | {
|
|
489
493
|
stepType: "workflow_run";
|
|
490
|
-
name: string;
|
|
491
494
|
workflowId?: string | undefined;
|
|
492
495
|
status?: string | undefined;
|
|
496
|
+
} | {
|
|
497
|
+
name: string;
|
|
493
498
|
durationMs?: number | undefined;
|
|
494
499
|
metadata?: Record<string, unknown> | undefined;
|
|
495
500
|
children?: unknown;
|
|
496
|
-
} | {
|
|
497
501
|
stepType: "workflow_conditional";
|
|
498
|
-
name: string;
|
|
499
502
|
conditionCount?: number | undefined;
|
|
500
503
|
selectedSteps?: string[] | undefined;
|
|
504
|
+
} | {
|
|
505
|
+
name: string;
|
|
501
506
|
durationMs?: number | undefined;
|
|
502
507
|
metadata?: Record<string, unknown> | undefined;
|
|
503
508
|
children?: unknown;
|
|
504
|
-
} | {
|
|
505
509
|
stepType: "workflow_parallel";
|
|
506
|
-
name: string;
|
|
507
510
|
branchCount?: number | undefined;
|
|
508
511
|
parallelSteps?: string[] | undefined;
|
|
512
|
+
} | {
|
|
513
|
+
name: string;
|
|
509
514
|
durationMs?: number | undefined;
|
|
510
515
|
metadata?: Record<string, unknown> | undefined;
|
|
511
516
|
children?: unknown;
|
|
512
|
-
} | {
|
|
513
517
|
stepType: "workflow_loop";
|
|
514
|
-
name: string;
|
|
515
518
|
loopType?: string | undefined;
|
|
516
519
|
totalIterations?: number | undefined;
|
|
520
|
+
} | {
|
|
521
|
+
name: string;
|
|
517
522
|
durationMs?: number | undefined;
|
|
518
523
|
metadata?: Record<string, unknown> | undefined;
|
|
519
524
|
children?: unknown;
|
|
520
|
-
} | {
|
|
521
525
|
stepType: "workflow_sleep";
|
|
522
|
-
name: string;
|
|
523
526
|
sleepDurationMs?: number | undefined;
|
|
524
527
|
sleepType?: string | undefined;
|
|
528
|
+
} | {
|
|
529
|
+
name: string;
|
|
525
530
|
durationMs?: number | undefined;
|
|
526
531
|
metadata?: Record<string, unknown> | undefined;
|
|
527
532
|
children?: unknown;
|
|
528
|
-
} | {
|
|
529
533
|
stepType: "workflow_wait_event";
|
|
530
|
-
name: string;
|
|
531
534
|
eventName?: string | undefined;
|
|
532
535
|
eventReceived?: boolean | undefined;
|
|
533
|
-
durationMs?: number | undefined;
|
|
534
|
-
metadata?: Record<string, unknown> | undefined;
|
|
535
|
-
children?: unknown;
|
|
536
536
|
} | {
|
|
537
|
-
stepType: "processor_run";
|
|
538
537
|
name: string;
|
|
539
|
-
processorId?: string | undefined;
|
|
540
538
|
durationMs?: number | undefined;
|
|
541
539
|
metadata?: Record<string, unknown> | undefined;
|
|
542
540
|
children?: unknown;
|
|
541
|
+
stepType: "processor_run";
|
|
542
|
+
processorId?: string | undefined;
|
|
543
543
|
} | {
|
|
544
544
|
name: string;
|
|
545
|
-
stepType?: undefined;
|
|
546
545
|
durationMs?: number | undefined;
|
|
547
546
|
metadata?: Record<string, unknown> | undefined;
|
|
548
547
|
children?: unknown;
|
|
548
|
+
stepType?: undefined;
|
|
549
549
|
})[] | undefined;
|
|
550
|
-
ordering?: "
|
|
550
|
+
ordering?: "relaxed" | "strict" | "unordered" | undefined;
|
|
551
551
|
allowRepeatedSteps?: boolean | undefined;
|
|
552
552
|
maxSteps?: number | undefined;
|
|
553
553
|
maxTotalTokens?: number | undefined;
|
|
@@ -561,40 +561,40 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
561
561
|
toolName: string;
|
|
562
562
|
args: Record<string, unknown>;
|
|
563
563
|
output: unknown;
|
|
564
|
-
matchArgs?: "
|
|
564
|
+
matchArgs?: "ignore" | "strict" | undefined;
|
|
565
565
|
}[] | undefined;
|
|
566
566
|
unmockedToolPolicy?: "allow" | "deny" | undefined;
|
|
567
567
|
scorerIds?: string[] | undefined;
|
|
568
568
|
requestContext?: Record<string, unknown> | undefined;
|
|
569
569
|
metadata?: Record<string, unknown> | undefined;
|
|
570
570
|
source?: {
|
|
571
|
-
type: "
|
|
571
|
+
type: "candidate-screener" | "csv" | "experiment-result" | "json" | "llm" | "trace";
|
|
572
572
|
referenceId?: string | undefined;
|
|
573
573
|
} | undefined;
|
|
574
574
|
} & import(".").ServerContext): Promise<{
|
|
575
575
|
id: string;
|
|
576
576
|
datasetId: string;
|
|
577
577
|
datasetVersion: number;
|
|
578
|
-
input: unknown;
|
|
579
|
-
createdAt: Date;
|
|
580
|
-
updatedAt: Date;
|
|
581
578
|
externalId?: string | null | undefined;
|
|
579
|
+
input: unknown;
|
|
582
580
|
groundTruth?: unknown;
|
|
583
581
|
expectedTrajectory?: unknown;
|
|
584
582
|
toolMocks?: {
|
|
585
583
|
toolName: string;
|
|
586
584
|
args: Record<string, unknown>;
|
|
587
585
|
output: unknown;
|
|
588
|
-
matchArgs?: "
|
|
586
|
+
matchArgs?: "ignore" | "strict" | undefined;
|
|
589
587
|
}[] | undefined;
|
|
590
588
|
unmockedToolPolicy?: "allow" | "deny" | undefined;
|
|
591
589
|
scorerIds?: string[] | undefined;
|
|
592
590
|
requestContext?: Record<string, unknown> | undefined;
|
|
593
591
|
metadata?: Record<string, unknown> | undefined;
|
|
594
592
|
source?: {
|
|
595
|
-
type: "
|
|
593
|
+
type: "candidate-screener" | "csv" | "experiment-result" | "json" | "llm" | "trace";
|
|
596
594
|
referenceId?: string | undefined;
|
|
597
595
|
} | undefined;
|
|
596
|
+
createdAt: Date;
|
|
597
|
+
updatedAt: Date;
|
|
598
598
|
}>;
|
|
599
599
|
pathParamSchema?: import("zod").ZodType;
|
|
600
600
|
queryParamSchema?: import("zod").ZodType;
|
|
@@ -614,115 +614,115 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
614
614
|
groundTruth: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
615
615
|
expectedTrajectory: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
|
|
616
616
|
steps: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodUnion<readonly [import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
617
|
+
name: import("zod").ZodString;
|
|
618
|
+
durationMs: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
619
|
+
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
620
|
+
children: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
617
621
|
stepType: import("zod").ZodLiteral<"tool_call">;
|
|
618
622
|
toolArgs: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
619
623
|
toolResult: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
620
624
|
success: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
625
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
621
626
|
name: import("zod").ZodString;
|
|
622
627
|
durationMs: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
623
628
|
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
624
629
|
children: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
625
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
626
630
|
stepType: import("zod").ZodLiteral<"mcp_tool_call">;
|
|
627
631
|
toolArgs: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
628
632
|
toolResult: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
629
633
|
mcpServer: import("zod").ZodOptional<import("zod").ZodString>;
|
|
630
634
|
success: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
635
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
631
636
|
name: import("zod").ZodString;
|
|
632
637
|
durationMs: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
633
638
|
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
634
639
|
children: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
635
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
636
640
|
stepType: import("zod").ZodLiteral<"model_generation">;
|
|
637
641
|
modelId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
638
642
|
promptTokens: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
639
643
|
completionTokens: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
640
644
|
finishReason: import("zod").ZodOptional<import("zod").ZodString>;
|
|
645
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
641
646
|
name: import("zod").ZodString;
|
|
642
647
|
durationMs: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
643
648
|
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
644
649
|
children: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
645
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
646
650
|
stepType: import("zod").ZodLiteral<"agent_run">;
|
|
647
651
|
agentId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
652
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
648
653
|
name: import("zod").ZodString;
|
|
649
654
|
durationMs: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
650
655
|
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
651
656
|
children: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
652
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
653
657
|
stepType: import("zod").ZodLiteral<"workflow_step">;
|
|
654
658
|
stepId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
655
659
|
status: import("zod").ZodOptional<import("zod").ZodString>;
|
|
656
660
|
output: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
661
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
657
662
|
name: import("zod").ZodString;
|
|
658
663
|
durationMs: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
659
664
|
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
660
665
|
children: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
661
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
662
666
|
stepType: import("zod").ZodLiteral<"workflow_run">;
|
|
663
667
|
workflowId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
664
668
|
status: import("zod").ZodOptional<import("zod").ZodString>;
|
|
669
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
665
670
|
name: import("zod").ZodString;
|
|
666
671
|
durationMs: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
667
672
|
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
668
673
|
children: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
669
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
670
674
|
stepType: import("zod").ZodLiteral<"workflow_conditional">;
|
|
671
675
|
conditionCount: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
672
676
|
selectedSteps: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
677
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
673
678
|
name: import("zod").ZodString;
|
|
674
679
|
durationMs: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
675
680
|
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
676
681
|
children: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
677
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
678
682
|
stepType: import("zod").ZodLiteral<"workflow_parallel">;
|
|
679
683
|
branchCount: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
680
684
|
parallelSteps: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
685
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
681
686
|
name: import("zod").ZodString;
|
|
682
687
|
durationMs: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
683
688
|
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
684
689
|
children: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
685
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
686
690
|
stepType: import("zod").ZodLiteral<"workflow_loop">;
|
|
687
691
|
loopType: import("zod").ZodOptional<import("zod").ZodString>;
|
|
688
692
|
totalIterations: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
693
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
689
694
|
name: import("zod").ZodString;
|
|
690
695
|
durationMs: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
691
696
|
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
692
697
|
children: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
693
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
694
698
|
stepType: import("zod").ZodLiteral<"workflow_sleep">;
|
|
695
699
|
sleepDurationMs: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
696
700
|
sleepType: import("zod").ZodOptional<import("zod").ZodString>;
|
|
701
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
697
702
|
name: import("zod").ZodString;
|
|
698
703
|
durationMs: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
699
704
|
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
700
705
|
children: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
701
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
702
706
|
stepType: import("zod").ZodLiteral<"workflow_wait_event">;
|
|
703
707
|
eventName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
704
708
|
eventReceived: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
709
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
705
710
|
name: import("zod").ZodString;
|
|
706
711
|
durationMs: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
707
712
|
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
708
713
|
children: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
709
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
710
714
|
stepType: import("zod").ZodLiteral<"processor_run">;
|
|
711
715
|
processorId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
712
|
-
name: import("zod").ZodString;
|
|
713
|
-
durationMs: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
714
|
-
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
715
|
-
children: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
716
716
|
}, import("zod/v4/core").$strip>], "stepType">, import("zod").ZodObject<{
|
|
717
|
-
stepType: import("zod").ZodOptional<import("zod").ZodUndefined>;
|
|
718
717
|
name: import("zod").ZodString;
|
|
719
718
|
durationMs: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
720
719
|
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
721
720
|
children: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
721
|
+
stepType: import("zod").ZodOptional<import("zod").ZodUndefined>;
|
|
722
722
|
}, import("zod/v4/core").$strip>]>>>;
|
|
723
723
|
ordering: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
724
|
-
strict: "strict";
|
|
725
724
|
relaxed: "relaxed";
|
|
725
|
+
strict: "strict";
|
|
726
726
|
unordered: "unordered";
|
|
727
727
|
}>>;
|
|
728
728
|
allowRepeatedSteps: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
@@ -739,8 +739,8 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
739
739
|
args: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>;
|
|
740
740
|
output: import("zod").ZodUnknown;
|
|
741
741
|
matchArgs: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
742
|
-
strict: "strict";
|
|
743
742
|
ignore: "ignore";
|
|
743
|
+
strict: "strict";
|
|
744
744
|
}>>;
|
|
745
745
|
}, import("zod/v4/core").$strip>>>;
|
|
746
746
|
unmockedToolPolicy: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
@@ -752,12 +752,12 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
752
752
|
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
753
753
|
source: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
754
754
|
type: import("zod").ZodEnum<{
|
|
755
|
-
|
|
755
|
+
"candidate-screener": "candidate-screener";
|
|
756
756
|
csv: "csv";
|
|
757
|
-
trace: "trace";
|
|
758
|
-
llm: "llm";
|
|
759
757
|
"experiment-result": "experiment-result";
|
|
760
|
-
|
|
758
|
+
json: "json";
|
|
759
|
+
llm: "llm";
|
|
760
|
+
trace: "trace";
|
|
761
761
|
}>;
|
|
762
762
|
referenceId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
763
763
|
}, import("zod/v4/core").$strip>>;
|
|
@@ -774,8 +774,8 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
774
774
|
args: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>;
|
|
775
775
|
output: import("zod").ZodUnknown;
|
|
776
776
|
matchArgs: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
777
|
-
strict: "strict";
|
|
778
777
|
ignore: "ignore";
|
|
778
|
+
strict: "strict";
|
|
779
779
|
}>>;
|
|
780
780
|
}, import("zod/v4/core").$strip>>>;
|
|
781
781
|
unmockedToolPolicy: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
@@ -787,12 +787,12 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
787
787
|
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
788
788
|
source: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
789
789
|
type: import("zod").ZodEnum<{
|
|
790
|
-
|
|
790
|
+
"candidate-screener": "candidate-screener";
|
|
791
791
|
csv: "csv";
|
|
792
|
-
trace: "trace";
|
|
793
|
-
llm: "llm";
|
|
794
792
|
"experiment-result": "experiment-result";
|
|
795
|
-
|
|
793
|
+
json: "json";
|
|
794
|
+
llm: "llm";
|
|
795
|
+
trace: "trace";
|
|
796
796
|
}>;
|
|
797
797
|
referenceId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
798
798
|
}, import("zod/v4/core").$strip>>;
|
|
@@ -801,128 +801,128 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
801
801
|
}, import("zod/v4/core").$strip>> | undefined;
|
|
802
802
|
} & {
|
|
803
803
|
readonly _mastraSchemaRoute: true;
|
|
804
|
-
}, Omit<import("@mastra/core/server").ApiRoute, "
|
|
804
|
+
}, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
|
|
805
805
|
method: "POST";
|
|
806
806
|
path: "/datasets/:datasetId/items/batch";
|
|
807
807
|
responseType: "json";
|
|
808
|
-
streamFormat?:
|
|
808
|
+
streamFormat?: 'sse' | 'stream';
|
|
809
809
|
sseFlushOnConnect?: boolean;
|
|
810
810
|
handler(params: {
|
|
811
811
|
datasetId: string;
|
|
812
812
|
} & {
|
|
813
813
|
items: {
|
|
814
|
-
input: unknown;
|
|
815
814
|
externalId?: string | null | undefined;
|
|
815
|
+
input: unknown;
|
|
816
816
|
groundTruth?: unknown;
|
|
817
817
|
expectedTrajectory?: {
|
|
818
818
|
steps?: ({
|
|
819
|
-
stepType: "tool_call";
|
|
820
819
|
name: string;
|
|
820
|
+
durationMs?: number | undefined;
|
|
821
|
+
metadata?: Record<string, unknown> | undefined;
|
|
822
|
+
children?: unknown;
|
|
823
|
+
stepType: "tool_call";
|
|
821
824
|
toolArgs?: Record<string, unknown> | undefined;
|
|
822
825
|
toolResult?: Record<string, unknown> | undefined;
|
|
823
826
|
success?: boolean | undefined;
|
|
827
|
+
} | {
|
|
828
|
+
name: string;
|
|
824
829
|
durationMs?: number | undefined;
|
|
825
830
|
metadata?: Record<string, unknown> | undefined;
|
|
826
831
|
children?: unknown;
|
|
827
|
-
} | {
|
|
828
832
|
stepType: "mcp_tool_call";
|
|
829
|
-
name: string;
|
|
830
833
|
toolArgs?: Record<string, unknown> | undefined;
|
|
831
834
|
toolResult?: Record<string, unknown> | undefined;
|
|
832
835
|
mcpServer?: string | undefined;
|
|
833
836
|
success?: boolean | undefined;
|
|
837
|
+
} | {
|
|
838
|
+
name: string;
|
|
834
839
|
durationMs?: number | undefined;
|
|
835
840
|
metadata?: Record<string, unknown> | undefined;
|
|
836
841
|
children?: unknown;
|
|
837
|
-
} | {
|
|
838
842
|
stepType: "model_generation";
|
|
839
|
-
name: string;
|
|
840
843
|
modelId?: string | undefined;
|
|
841
844
|
promptTokens?: number | undefined;
|
|
842
845
|
completionTokens?: number | undefined;
|
|
843
846
|
finishReason?: string | undefined;
|
|
847
|
+
} | {
|
|
848
|
+
name: string;
|
|
844
849
|
durationMs?: number | undefined;
|
|
845
850
|
metadata?: Record<string, unknown> | undefined;
|
|
846
851
|
children?: unknown;
|
|
847
|
-
} | {
|
|
848
852
|
stepType: "agent_run";
|
|
849
|
-
name: string;
|
|
850
853
|
agentId?: string | undefined;
|
|
854
|
+
} | {
|
|
855
|
+
name: string;
|
|
851
856
|
durationMs?: number | undefined;
|
|
852
857
|
metadata?: Record<string, unknown> | undefined;
|
|
853
858
|
children?: unknown;
|
|
854
|
-
} | {
|
|
855
859
|
stepType: "workflow_step";
|
|
856
|
-
name: string;
|
|
857
860
|
stepId?: string | undefined;
|
|
858
861
|
status?: string | undefined;
|
|
859
862
|
output?: Record<string, unknown> | undefined;
|
|
863
|
+
} | {
|
|
864
|
+
name: string;
|
|
860
865
|
durationMs?: number | undefined;
|
|
861
866
|
metadata?: Record<string, unknown> | undefined;
|
|
862
867
|
children?: unknown;
|
|
863
|
-
} | {
|
|
864
868
|
stepType: "workflow_run";
|
|
865
|
-
name: string;
|
|
866
869
|
workflowId?: string | undefined;
|
|
867
870
|
status?: string | undefined;
|
|
871
|
+
} | {
|
|
872
|
+
name: string;
|
|
868
873
|
durationMs?: number | undefined;
|
|
869
874
|
metadata?: Record<string, unknown> | undefined;
|
|
870
875
|
children?: unknown;
|
|
871
|
-
} | {
|
|
872
876
|
stepType: "workflow_conditional";
|
|
873
|
-
name: string;
|
|
874
877
|
conditionCount?: number | undefined;
|
|
875
878
|
selectedSteps?: string[] | undefined;
|
|
879
|
+
} | {
|
|
880
|
+
name: string;
|
|
876
881
|
durationMs?: number | undefined;
|
|
877
882
|
metadata?: Record<string, unknown> | undefined;
|
|
878
883
|
children?: unknown;
|
|
879
|
-
} | {
|
|
880
884
|
stepType: "workflow_parallel";
|
|
881
|
-
name: string;
|
|
882
885
|
branchCount?: number | undefined;
|
|
883
886
|
parallelSteps?: string[] | undefined;
|
|
887
|
+
} | {
|
|
888
|
+
name: string;
|
|
884
889
|
durationMs?: number | undefined;
|
|
885
890
|
metadata?: Record<string, unknown> | undefined;
|
|
886
891
|
children?: unknown;
|
|
887
|
-
} | {
|
|
888
892
|
stepType: "workflow_loop";
|
|
889
|
-
name: string;
|
|
890
893
|
loopType?: string | undefined;
|
|
891
894
|
totalIterations?: number | undefined;
|
|
895
|
+
} | {
|
|
896
|
+
name: string;
|
|
892
897
|
durationMs?: number | undefined;
|
|
893
898
|
metadata?: Record<string, unknown> | undefined;
|
|
894
899
|
children?: unknown;
|
|
895
|
-
} | {
|
|
896
900
|
stepType: "workflow_sleep";
|
|
897
|
-
name: string;
|
|
898
901
|
sleepDurationMs?: number | undefined;
|
|
899
902
|
sleepType?: string | undefined;
|
|
903
|
+
} | {
|
|
904
|
+
name: string;
|
|
900
905
|
durationMs?: number | undefined;
|
|
901
906
|
metadata?: Record<string, unknown> | undefined;
|
|
902
907
|
children?: unknown;
|
|
903
|
-
} | {
|
|
904
908
|
stepType: "workflow_wait_event";
|
|
905
|
-
name: string;
|
|
906
909
|
eventName?: string | undefined;
|
|
907
910
|
eventReceived?: boolean | undefined;
|
|
908
|
-
durationMs?: number | undefined;
|
|
909
|
-
metadata?: Record<string, unknown> | undefined;
|
|
910
|
-
children?: unknown;
|
|
911
911
|
} | {
|
|
912
|
-
stepType: "processor_run";
|
|
913
912
|
name: string;
|
|
914
|
-
processorId?: string | undefined;
|
|
915
913
|
durationMs?: number | undefined;
|
|
916
914
|
metadata?: Record<string, unknown> | undefined;
|
|
917
915
|
children?: unknown;
|
|
916
|
+
stepType: "processor_run";
|
|
917
|
+
processorId?: string | undefined;
|
|
918
918
|
} | {
|
|
919
919
|
name: string;
|
|
920
|
-
stepType?: undefined;
|
|
921
920
|
durationMs?: number | undefined;
|
|
922
921
|
metadata?: Record<string, unknown> | undefined;
|
|
923
922
|
children?: unknown;
|
|
923
|
+
stepType?: undefined;
|
|
924
924
|
})[] | undefined;
|
|
925
|
-
ordering?: "
|
|
925
|
+
ordering?: "relaxed" | "strict" | "unordered" | undefined;
|
|
926
926
|
allowRepeatedSteps?: boolean | undefined;
|
|
927
927
|
maxSteps?: number | undefined;
|
|
928
928
|
maxTotalTokens?: number | undefined;
|
|
@@ -936,14 +936,14 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
936
936
|
toolName: string;
|
|
937
937
|
args: Record<string, unknown>;
|
|
938
938
|
output: unknown;
|
|
939
|
-
matchArgs?: "
|
|
939
|
+
matchArgs?: "ignore" | "strict" | undefined;
|
|
940
940
|
}[] | undefined;
|
|
941
941
|
unmockedToolPolicy?: "allow" | "deny" | undefined;
|
|
942
942
|
scorerIds?: string[] | undefined;
|
|
943
943
|
requestContext?: Record<string, unknown> | undefined;
|
|
944
944
|
metadata?: Record<string, unknown> | undefined;
|
|
945
945
|
source?: {
|
|
946
|
-
type: "
|
|
946
|
+
type: "candidate-screener" | "csv" | "experiment-result" | "json" | "llm" | "trace";
|
|
947
947
|
referenceId?: string | undefined;
|
|
948
948
|
} | undefined;
|
|
949
949
|
}[];
|
|
@@ -952,26 +952,26 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
952
952
|
id: string;
|
|
953
953
|
datasetId: string;
|
|
954
954
|
datasetVersion: number;
|
|
955
|
-
input: unknown;
|
|
956
|
-
createdAt: Date;
|
|
957
|
-
updatedAt: Date;
|
|
958
955
|
externalId?: string | null | undefined;
|
|
956
|
+
input: unknown;
|
|
959
957
|
groundTruth?: unknown;
|
|
960
958
|
expectedTrajectory?: unknown;
|
|
961
959
|
toolMocks?: {
|
|
962
960
|
toolName: string;
|
|
963
961
|
args: Record<string, unknown>;
|
|
964
962
|
output: unknown;
|
|
965
|
-
matchArgs?: "
|
|
963
|
+
matchArgs?: "ignore" | "strict" | undefined;
|
|
966
964
|
}[] | undefined;
|
|
967
965
|
unmockedToolPolicy?: "allow" | "deny" | undefined;
|
|
968
966
|
scorerIds?: string[] | undefined;
|
|
969
967
|
requestContext?: Record<string, unknown> | undefined;
|
|
970
968
|
metadata?: Record<string, unknown> | undefined;
|
|
971
969
|
source?: {
|
|
972
|
-
type: "
|
|
970
|
+
type: "candidate-screener" | "csv" | "experiment-result" | "json" | "llm" | "trace";
|
|
973
971
|
referenceId?: string | undefined;
|
|
974
972
|
} | undefined;
|
|
973
|
+
createdAt: Date;
|
|
974
|
+
updatedAt: Date;
|
|
975
975
|
}[];
|
|
976
976
|
count: number;
|
|
977
977
|
}>;
|
|
@@ -994,115 +994,115 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
994
994
|
groundTruth: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
995
995
|
expectedTrajectory: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
|
|
996
996
|
steps: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodUnion<readonly [import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
997
|
+
name: import("zod").ZodString;
|
|
998
|
+
durationMs: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
999
|
+
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
1000
|
+
children: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
997
1001
|
stepType: import("zod").ZodLiteral<"tool_call">;
|
|
998
1002
|
toolArgs: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
999
1003
|
toolResult: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
1000
1004
|
success: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
1005
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1001
1006
|
name: import("zod").ZodString;
|
|
1002
1007
|
durationMs: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1003
1008
|
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
1004
1009
|
children: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
1005
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1006
1010
|
stepType: import("zod").ZodLiteral<"mcp_tool_call">;
|
|
1007
1011
|
toolArgs: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
1008
1012
|
toolResult: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
1009
1013
|
mcpServer: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1010
1014
|
success: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
1015
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1011
1016
|
name: import("zod").ZodString;
|
|
1012
1017
|
durationMs: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1013
1018
|
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
1014
1019
|
children: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
1015
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1016
1020
|
stepType: import("zod").ZodLiteral<"model_generation">;
|
|
1017
1021
|
modelId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1018
1022
|
promptTokens: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1019
1023
|
completionTokens: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1020
1024
|
finishReason: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1025
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1021
1026
|
name: import("zod").ZodString;
|
|
1022
1027
|
durationMs: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1023
1028
|
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
1024
1029
|
children: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
1025
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1026
1030
|
stepType: import("zod").ZodLiteral<"agent_run">;
|
|
1027
1031
|
agentId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1032
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1028
1033
|
name: import("zod").ZodString;
|
|
1029
1034
|
durationMs: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1030
1035
|
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
1031
1036
|
children: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
1032
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1033
1037
|
stepType: import("zod").ZodLiteral<"workflow_step">;
|
|
1034
1038
|
stepId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1035
1039
|
status: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1036
1040
|
output: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
1041
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1037
1042
|
name: import("zod").ZodString;
|
|
1038
1043
|
durationMs: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1039
1044
|
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
1040
1045
|
children: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
1041
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1042
1046
|
stepType: import("zod").ZodLiteral<"workflow_run">;
|
|
1043
1047
|
workflowId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1044
1048
|
status: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1049
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1045
1050
|
name: import("zod").ZodString;
|
|
1046
1051
|
durationMs: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1047
1052
|
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
1048
1053
|
children: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
1049
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1050
1054
|
stepType: import("zod").ZodLiteral<"workflow_conditional">;
|
|
1051
1055
|
conditionCount: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1052
1056
|
selectedSteps: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
1057
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1053
1058
|
name: import("zod").ZodString;
|
|
1054
1059
|
durationMs: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1055
1060
|
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
1056
1061
|
children: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
1057
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1058
1062
|
stepType: import("zod").ZodLiteral<"workflow_parallel">;
|
|
1059
1063
|
branchCount: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1060
1064
|
parallelSteps: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
1065
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1061
1066
|
name: import("zod").ZodString;
|
|
1062
1067
|
durationMs: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1063
1068
|
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
1064
1069
|
children: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
1065
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1066
1070
|
stepType: import("zod").ZodLiteral<"workflow_loop">;
|
|
1067
1071
|
loopType: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1068
1072
|
totalIterations: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1073
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1069
1074
|
name: import("zod").ZodString;
|
|
1070
1075
|
durationMs: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1071
1076
|
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
1072
1077
|
children: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
1073
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1074
1078
|
stepType: import("zod").ZodLiteral<"workflow_sleep">;
|
|
1075
1079
|
sleepDurationMs: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1076
1080
|
sleepType: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1081
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1077
1082
|
name: import("zod").ZodString;
|
|
1078
1083
|
durationMs: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1079
1084
|
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
1080
1085
|
children: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
1081
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1082
1086
|
stepType: import("zod").ZodLiteral<"workflow_wait_event">;
|
|
1083
1087
|
eventName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1084
1088
|
eventReceived: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
1089
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1085
1090
|
name: import("zod").ZodString;
|
|
1086
1091
|
durationMs: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1087
1092
|
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
1088
1093
|
children: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
1089
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1090
1094
|
stepType: import("zod").ZodLiteral<"processor_run">;
|
|
1091
1095
|
processorId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1092
|
-
name: import("zod").ZodString;
|
|
1093
|
-
durationMs: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1094
|
-
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
1095
|
-
children: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
1096
1096
|
}, import("zod/v4/core").$strip>], "stepType">, import("zod").ZodObject<{
|
|
1097
|
-
stepType: import("zod").ZodOptional<import("zod").ZodUndefined>;
|
|
1098
1097
|
name: import("zod").ZodString;
|
|
1099
1098
|
durationMs: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1100
1099
|
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
1101
1100
|
children: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
1101
|
+
stepType: import("zod").ZodOptional<import("zod").ZodUndefined>;
|
|
1102
1102
|
}, import("zod/v4/core").$strip>]>>>;
|
|
1103
1103
|
ordering: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
1104
|
-
strict: "strict";
|
|
1105
1104
|
relaxed: "relaxed";
|
|
1105
|
+
strict: "strict";
|
|
1106
1106
|
unordered: "unordered";
|
|
1107
1107
|
}>>;
|
|
1108
1108
|
allowRepeatedSteps: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
@@ -1119,8 +1119,8 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
1119
1119
|
args: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>;
|
|
1120
1120
|
output: import("zod").ZodUnknown;
|
|
1121
1121
|
matchArgs: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
1122
|
-
strict: "strict";
|
|
1123
1122
|
ignore: "ignore";
|
|
1123
|
+
strict: "strict";
|
|
1124
1124
|
}>>;
|
|
1125
1125
|
}, import("zod/v4/core").$strip>>>;
|
|
1126
1126
|
unmockedToolPolicy: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
@@ -1132,12 +1132,12 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
1132
1132
|
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
1133
1133
|
source: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
1134
1134
|
type: import("zod").ZodEnum<{
|
|
1135
|
-
|
|
1135
|
+
"candidate-screener": "candidate-screener";
|
|
1136
1136
|
csv: "csv";
|
|
1137
|
-
trace: "trace";
|
|
1138
|
-
llm: "llm";
|
|
1139
1137
|
"experiment-result": "experiment-result";
|
|
1140
|
-
|
|
1138
|
+
json: "json";
|
|
1139
|
+
llm: "llm";
|
|
1140
|
+
trace: "trace";
|
|
1141
1141
|
}>;
|
|
1142
1142
|
referenceId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1143
1143
|
}, import("zod/v4/core").$strip>>;
|
|
@@ -1156,8 +1156,8 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
1156
1156
|
args: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>;
|
|
1157
1157
|
output: import("zod").ZodUnknown;
|
|
1158
1158
|
matchArgs: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
1159
|
-
strict: "strict";
|
|
1160
1159
|
ignore: "ignore";
|
|
1160
|
+
strict: "strict";
|
|
1161
1161
|
}>>;
|
|
1162
1162
|
}, import("zod/v4/core").$strip>>>;
|
|
1163
1163
|
unmockedToolPolicy: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
@@ -1169,12 +1169,12 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
1169
1169
|
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
1170
1170
|
source: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
1171
1171
|
type: import("zod").ZodEnum<{
|
|
1172
|
-
|
|
1172
|
+
"candidate-screener": "candidate-screener";
|
|
1173
1173
|
csv: "csv";
|
|
1174
|
-
trace: "trace";
|
|
1175
|
-
llm: "llm";
|
|
1176
1174
|
"experiment-result": "experiment-result";
|
|
1177
|
-
|
|
1175
|
+
json: "json";
|
|
1176
|
+
llm: "llm";
|
|
1177
|
+
trace: "trace";
|
|
1178
1178
|
}>;
|
|
1179
1179
|
referenceId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1180
1180
|
}, import("zod/v4/core").$strip>>;
|
|
@@ -1185,11 +1185,11 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
1185
1185
|
}, import("zod/v4/core").$strip>> | undefined;
|
|
1186
1186
|
} & {
|
|
1187
1187
|
readonly _mastraSchemaRoute: true;
|
|
1188
|
-
}, Omit<import("@mastra/core/server").ApiRoute, "
|
|
1188
|
+
}, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
|
|
1189
1189
|
method: "DELETE";
|
|
1190
1190
|
path: "/datasets/:datasetId/items/batch";
|
|
1191
1191
|
responseType: "json";
|
|
1192
|
-
streamFormat?:
|
|
1192
|
+
streamFormat?: 'sse' | 'stream';
|
|
1193
1193
|
sseFlushOnConnect?: boolean;
|
|
1194
1194
|
handler(params: {
|
|
1195
1195
|
datasetId: string;
|
|
@@ -1219,11 +1219,11 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
1219
1219
|
}, import("zod/v4/core").$strip>> | undefined;
|
|
1220
1220
|
} & {
|
|
1221
1221
|
readonly _mastraSchemaRoute: true;
|
|
1222
|
-
}, Omit<import("@mastra/core/server").ApiRoute, "
|
|
1222
|
+
}, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
|
|
1223
1223
|
method: "GET";
|
|
1224
1224
|
path: "/datasets/:datasetId/items/:itemId";
|
|
1225
1225
|
responseType: "json";
|
|
1226
|
-
streamFormat?:
|
|
1226
|
+
streamFormat?: 'sse' | 'stream';
|
|
1227
1227
|
sseFlushOnConnect?: boolean;
|
|
1228
1228
|
handler(params: {
|
|
1229
1229
|
datasetId: string;
|
|
@@ -1232,26 +1232,26 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
1232
1232
|
id: string;
|
|
1233
1233
|
datasetId: string;
|
|
1234
1234
|
datasetVersion: number;
|
|
1235
|
-
input: unknown;
|
|
1236
|
-
createdAt: Date;
|
|
1237
|
-
updatedAt: Date;
|
|
1238
1235
|
externalId?: string | null | undefined;
|
|
1236
|
+
input: unknown;
|
|
1239
1237
|
groundTruth?: unknown;
|
|
1240
1238
|
expectedTrajectory?: unknown;
|
|
1241
1239
|
toolMocks?: {
|
|
1242
1240
|
toolName: string;
|
|
1243
1241
|
args: Record<string, unknown>;
|
|
1244
1242
|
output: unknown;
|
|
1245
|
-
matchArgs?: "
|
|
1243
|
+
matchArgs?: "ignore" | "strict" | undefined;
|
|
1246
1244
|
}[] | undefined;
|
|
1247
1245
|
unmockedToolPolicy?: "allow" | "deny" | undefined;
|
|
1248
1246
|
scorerIds?: string[] | undefined;
|
|
1249
1247
|
requestContext?: Record<string, unknown> | undefined;
|
|
1250
1248
|
metadata?: Record<string, unknown> | undefined;
|
|
1251
1249
|
source?: {
|
|
1252
|
-
type: "
|
|
1250
|
+
type: "candidate-screener" | "csv" | "experiment-result" | "json" | "llm" | "trace";
|
|
1253
1251
|
referenceId?: string | undefined;
|
|
1254
1252
|
} | undefined;
|
|
1253
|
+
createdAt: Date;
|
|
1254
|
+
updatedAt: Date;
|
|
1255
1255
|
} | null>;
|
|
1256
1256
|
pathParamSchema?: import("zod").ZodType;
|
|
1257
1257
|
queryParamSchema?: import("zod").ZodType;
|
|
@@ -1279,8 +1279,8 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
1279
1279
|
args: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>;
|
|
1280
1280
|
output: import("zod").ZodUnknown;
|
|
1281
1281
|
matchArgs: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
1282
|
-
strict: "strict";
|
|
1283
1282
|
ignore: "ignore";
|
|
1283
|
+
strict: "strict";
|
|
1284
1284
|
}>>;
|
|
1285
1285
|
}, import("zod/v4/core").$strip>>>;
|
|
1286
1286
|
unmockedToolPolicy: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
@@ -1292,12 +1292,12 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
1292
1292
|
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
1293
1293
|
source: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
1294
1294
|
type: import("zod").ZodEnum<{
|
|
1295
|
-
|
|
1295
|
+
"candidate-screener": "candidate-screener";
|
|
1296
1296
|
csv: "csv";
|
|
1297
|
-
trace: "trace";
|
|
1298
|
-
llm: "llm";
|
|
1299
1297
|
"experiment-result": "experiment-result";
|
|
1300
|
-
|
|
1298
|
+
json: "json";
|
|
1299
|
+
llm: "llm";
|
|
1300
|
+
trace: "trace";
|
|
1301
1301
|
}>;
|
|
1302
1302
|
referenceId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1303
1303
|
}, import("zod/v4/core").$strip>>;
|
|
@@ -1306,11 +1306,11 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
1306
1306
|
}, import("zod/v4/core").$strip>>> | undefined;
|
|
1307
1307
|
} & {
|
|
1308
1308
|
readonly _mastraSchemaRoute: true;
|
|
1309
|
-
}, Omit<import("@mastra/core/server").ApiRoute, "
|
|
1309
|
+
}, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
|
|
1310
1310
|
method: "PATCH";
|
|
1311
1311
|
path: "/datasets/:datasetId/items/:itemId";
|
|
1312
1312
|
responseType: "json";
|
|
1313
|
-
streamFormat?:
|
|
1313
|
+
streamFormat?: 'sse' | 'stream';
|
|
1314
1314
|
sseFlushOnConnect?: boolean;
|
|
1315
1315
|
handler(params: {
|
|
1316
1316
|
datasetId: string;
|
|
@@ -1320,113 +1320,113 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
1320
1320
|
groundTruth?: unknown;
|
|
1321
1321
|
expectedTrajectory?: {
|
|
1322
1322
|
steps?: ({
|
|
1323
|
-
stepType: "tool_call";
|
|
1324
1323
|
name: string;
|
|
1324
|
+
durationMs?: number | undefined;
|
|
1325
|
+
metadata?: Record<string, unknown> | undefined;
|
|
1326
|
+
children?: unknown;
|
|
1327
|
+
stepType: "tool_call";
|
|
1325
1328
|
toolArgs?: Record<string, unknown> | undefined;
|
|
1326
1329
|
toolResult?: Record<string, unknown> | undefined;
|
|
1327
1330
|
success?: boolean | undefined;
|
|
1331
|
+
} | {
|
|
1332
|
+
name: string;
|
|
1328
1333
|
durationMs?: number | undefined;
|
|
1329
1334
|
metadata?: Record<string, unknown> | undefined;
|
|
1330
1335
|
children?: unknown;
|
|
1331
|
-
} | {
|
|
1332
1336
|
stepType: "mcp_tool_call";
|
|
1333
|
-
name: string;
|
|
1334
1337
|
toolArgs?: Record<string, unknown> | undefined;
|
|
1335
1338
|
toolResult?: Record<string, unknown> | undefined;
|
|
1336
1339
|
mcpServer?: string | undefined;
|
|
1337
1340
|
success?: boolean | undefined;
|
|
1341
|
+
} | {
|
|
1342
|
+
name: string;
|
|
1338
1343
|
durationMs?: number | undefined;
|
|
1339
1344
|
metadata?: Record<string, unknown> | undefined;
|
|
1340
1345
|
children?: unknown;
|
|
1341
|
-
} | {
|
|
1342
1346
|
stepType: "model_generation";
|
|
1343
|
-
name: string;
|
|
1344
1347
|
modelId?: string | undefined;
|
|
1345
1348
|
promptTokens?: number | undefined;
|
|
1346
1349
|
completionTokens?: number | undefined;
|
|
1347
1350
|
finishReason?: string | undefined;
|
|
1351
|
+
} | {
|
|
1352
|
+
name: string;
|
|
1348
1353
|
durationMs?: number | undefined;
|
|
1349
1354
|
metadata?: Record<string, unknown> | undefined;
|
|
1350
1355
|
children?: unknown;
|
|
1351
|
-
} | {
|
|
1352
1356
|
stepType: "agent_run";
|
|
1353
|
-
name: string;
|
|
1354
1357
|
agentId?: string | undefined;
|
|
1358
|
+
} | {
|
|
1359
|
+
name: string;
|
|
1355
1360
|
durationMs?: number | undefined;
|
|
1356
1361
|
metadata?: Record<string, unknown> | undefined;
|
|
1357
1362
|
children?: unknown;
|
|
1358
|
-
} | {
|
|
1359
1363
|
stepType: "workflow_step";
|
|
1360
|
-
name: string;
|
|
1361
1364
|
stepId?: string | undefined;
|
|
1362
1365
|
status?: string | undefined;
|
|
1363
1366
|
output?: Record<string, unknown> | undefined;
|
|
1367
|
+
} | {
|
|
1368
|
+
name: string;
|
|
1364
1369
|
durationMs?: number | undefined;
|
|
1365
1370
|
metadata?: Record<string, unknown> | undefined;
|
|
1366
1371
|
children?: unknown;
|
|
1367
|
-
} | {
|
|
1368
1372
|
stepType: "workflow_run";
|
|
1369
|
-
name: string;
|
|
1370
1373
|
workflowId?: string | undefined;
|
|
1371
1374
|
status?: string | undefined;
|
|
1375
|
+
} | {
|
|
1376
|
+
name: string;
|
|
1372
1377
|
durationMs?: number | undefined;
|
|
1373
1378
|
metadata?: Record<string, unknown> | undefined;
|
|
1374
1379
|
children?: unknown;
|
|
1375
|
-
} | {
|
|
1376
1380
|
stepType: "workflow_conditional";
|
|
1377
|
-
name: string;
|
|
1378
1381
|
conditionCount?: number | undefined;
|
|
1379
1382
|
selectedSteps?: string[] | undefined;
|
|
1383
|
+
} | {
|
|
1384
|
+
name: string;
|
|
1380
1385
|
durationMs?: number | undefined;
|
|
1381
1386
|
metadata?: Record<string, unknown> | undefined;
|
|
1382
1387
|
children?: unknown;
|
|
1383
|
-
} | {
|
|
1384
1388
|
stepType: "workflow_parallel";
|
|
1385
|
-
name: string;
|
|
1386
1389
|
branchCount?: number | undefined;
|
|
1387
1390
|
parallelSteps?: string[] | undefined;
|
|
1391
|
+
} | {
|
|
1392
|
+
name: string;
|
|
1388
1393
|
durationMs?: number | undefined;
|
|
1389
1394
|
metadata?: Record<string, unknown> | undefined;
|
|
1390
1395
|
children?: unknown;
|
|
1391
|
-
} | {
|
|
1392
1396
|
stepType: "workflow_loop";
|
|
1393
|
-
name: string;
|
|
1394
1397
|
loopType?: string | undefined;
|
|
1395
1398
|
totalIterations?: number | undefined;
|
|
1399
|
+
} | {
|
|
1400
|
+
name: string;
|
|
1396
1401
|
durationMs?: number | undefined;
|
|
1397
1402
|
metadata?: Record<string, unknown> | undefined;
|
|
1398
1403
|
children?: unknown;
|
|
1399
|
-
} | {
|
|
1400
1404
|
stepType: "workflow_sleep";
|
|
1401
|
-
name: string;
|
|
1402
1405
|
sleepDurationMs?: number | undefined;
|
|
1403
1406
|
sleepType?: string | undefined;
|
|
1407
|
+
} | {
|
|
1408
|
+
name: string;
|
|
1404
1409
|
durationMs?: number | undefined;
|
|
1405
1410
|
metadata?: Record<string, unknown> | undefined;
|
|
1406
1411
|
children?: unknown;
|
|
1407
|
-
} | {
|
|
1408
1412
|
stepType: "workflow_wait_event";
|
|
1409
|
-
name: string;
|
|
1410
1413
|
eventName?: string | undefined;
|
|
1411
1414
|
eventReceived?: boolean | undefined;
|
|
1412
|
-
durationMs?: number | undefined;
|
|
1413
|
-
metadata?: Record<string, unknown> | undefined;
|
|
1414
|
-
children?: unknown;
|
|
1415
1415
|
} | {
|
|
1416
|
-
stepType: "processor_run";
|
|
1417
1416
|
name: string;
|
|
1418
|
-
processorId?: string | undefined;
|
|
1419
1417
|
durationMs?: number | undefined;
|
|
1420
1418
|
metadata?: Record<string, unknown> | undefined;
|
|
1421
1419
|
children?: unknown;
|
|
1420
|
+
stepType: "processor_run";
|
|
1421
|
+
processorId?: string | undefined;
|
|
1422
1422
|
} | {
|
|
1423
1423
|
name: string;
|
|
1424
|
-
stepType?: undefined;
|
|
1425
1424
|
durationMs?: number | undefined;
|
|
1426
1425
|
metadata?: Record<string, unknown> | undefined;
|
|
1427
1426
|
children?: unknown;
|
|
1427
|
+
stepType?: undefined;
|
|
1428
1428
|
})[] | undefined;
|
|
1429
|
-
ordering?: "
|
|
1429
|
+
ordering?: "relaxed" | "strict" | "unordered" | undefined;
|
|
1430
1430
|
allowRepeatedSteps?: boolean | undefined;
|
|
1431
1431
|
maxSteps?: number | undefined;
|
|
1432
1432
|
maxTotalTokens?: number | undefined;
|
|
@@ -1440,40 +1440,40 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
1440
1440
|
toolName: string;
|
|
1441
1441
|
args: Record<string, unknown>;
|
|
1442
1442
|
output: unknown;
|
|
1443
|
-
matchArgs?: "
|
|
1443
|
+
matchArgs?: "ignore" | "strict" | undefined;
|
|
1444
1444
|
}[] | undefined;
|
|
1445
1445
|
unmockedToolPolicy?: "allow" | "deny" | undefined;
|
|
1446
1446
|
scorerIds?: string[] | null | undefined;
|
|
1447
1447
|
requestContext?: Record<string, unknown> | undefined;
|
|
1448
1448
|
metadata?: Record<string, unknown> | undefined;
|
|
1449
1449
|
source?: {
|
|
1450
|
-
type: "
|
|
1450
|
+
type: "candidate-screener" | "csv" | "experiment-result" | "json" | "llm" | "trace";
|
|
1451
1451
|
referenceId?: string | undefined;
|
|
1452
1452
|
} | undefined;
|
|
1453
1453
|
} & import(".").ServerContext): Promise<{
|
|
1454
1454
|
id: string;
|
|
1455
1455
|
datasetId: string;
|
|
1456
|
-
datasetVersion: number;
|
|
1457
|
-
input: unknown;
|
|
1458
|
-
createdAt: Date;
|
|
1459
|
-
updatedAt: Date;
|
|
1456
|
+
datasetVersion: number;
|
|
1460
1457
|
externalId?: string | null | undefined;
|
|
1458
|
+
input: unknown;
|
|
1461
1459
|
groundTruth?: unknown;
|
|
1462
1460
|
expectedTrajectory?: unknown;
|
|
1463
1461
|
toolMocks?: {
|
|
1464
1462
|
toolName: string;
|
|
1465
1463
|
args: Record<string, unknown>;
|
|
1466
1464
|
output: unknown;
|
|
1467
|
-
matchArgs?: "
|
|
1465
|
+
matchArgs?: "ignore" | "strict" | undefined;
|
|
1468
1466
|
}[] | undefined;
|
|
1469
1467
|
unmockedToolPolicy?: "allow" | "deny" | undefined;
|
|
1470
1468
|
scorerIds?: string[] | undefined;
|
|
1471
1469
|
requestContext?: Record<string, unknown> | undefined;
|
|
1472
1470
|
metadata?: Record<string, unknown> | undefined;
|
|
1473
1471
|
source?: {
|
|
1474
|
-
type: "
|
|
1472
|
+
type: "candidate-screener" | "csv" | "experiment-result" | "json" | "llm" | "trace";
|
|
1475
1473
|
referenceId?: string | undefined;
|
|
1476
1474
|
} | undefined;
|
|
1475
|
+
createdAt: Date;
|
|
1476
|
+
updatedAt: Date;
|
|
1477
1477
|
}>;
|
|
1478
1478
|
pathParamSchema?: import("zod").ZodType;
|
|
1479
1479
|
queryParamSchema?: import("zod").ZodType;
|
|
@@ -1493,115 +1493,115 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
1493
1493
|
groundTruth: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
1494
1494
|
expectedTrajectory: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
|
|
1495
1495
|
steps: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodUnion<readonly [import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
1496
|
+
name: import("zod").ZodString;
|
|
1497
|
+
durationMs: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1498
|
+
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
1499
|
+
children: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
1496
1500
|
stepType: import("zod").ZodLiteral<"tool_call">;
|
|
1497
1501
|
toolArgs: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
1498
1502
|
toolResult: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
1499
1503
|
success: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
1504
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1500
1505
|
name: import("zod").ZodString;
|
|
1501
1506
|
durationMs: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1502
1507
|
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
1503
1508
|
children: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
1504
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1505
1509
|
stepType: import("zod").ZodLiteral<"mcp_tool_call">;
|
|
1506
1510
|
toolArgs: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
1507
1511
|
toolResult: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
1508
1512
|
mcpServer: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1509
1513
|
success: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
1514
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1510
1515
|
name: import("zod").ZodString;
|
|
1511
1516
|
durationMs: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1512
1517
|
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
1513
1518
|
children: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
1514
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1515
1519
|
stepType: import("zod").ZodLiteral<"model_generation">;
|
|
1516
1520
|
modelId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1517
1521
|
promptTokens: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1518
1522
|
completionTokens: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1519
1523
|
finishReason: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1524
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1520
1525
|
name: import("zod").ZodString;
|
|
1521
1526
|
durationMs: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1522
1527
|
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
1523
1528
|
children: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
1524
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1525
1529
|
stepType: import("zod").ZodLiteral<"agent_run">;
|
|
1526
1530
|
agentId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1531
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1527
1532
|
name: import("zod").ZodString;
|
|
1528
1533
|
durationMs: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1529
1534
|
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
1530
1535
|
children: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
1531
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1532
1536
|
stepType: import("zod").ZodLiteral<"workflow_step">;
|
|
1533
1537
|
stepId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1534
1538
|
status: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1535
1539
|
output: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
1540
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1536
1541
|
name: import("zod").ZodString;
|
|
1537
1542
|
durationMs: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1538
1543
|
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
1539
1544
|
children: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
1540
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1541
1545
|
stepType: import("zod").ZodLiteral<"workflow_run">;
|
|
1542
1546
|
workflowId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1543
1547
|
status: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1548
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1544
1549
|
name: import("zod").ZodString;
|
|
1545
1550
|
durationMs: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1546
1551
|
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
1547
1552
|
children: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
1548
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1549
1553
|
stepType: import("zod").ZodLiteral<"workflow_conditional">;
|
|
1550
1554
|
conditionCount: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1551
1555
|
selectedSteps: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
1556
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1552
1557
|
name: import("zod").ZodString;
|
|
1553
1558
|
durationMs: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1554
1559
|
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
1555
1560
|
children: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
1556
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1557
1561
|
stepType: import("zod").ZodLiteral<"workflow_parallel">;
|
|
1558
1562
|
branchCount: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1559
1563
|
parallelSteps: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
1564
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1560
1565
|
name: import("zod").ZodString;
|
|
1561
1566
|
durationMs: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1562
1567
|
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
1563
1568
|
children: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
1564
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1565
1569
|
stepType: import("zod").ZodLiteral<"workflow_loop">;
|
|
1566
1570
|
loopType: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1567
1571
|
totalIterations: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1572
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1568
1573
|
name: import("zod").ZodString;
|
|
1569
1574
|
durationMs: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1570
1575
|
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
1571
1576
|
children: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
1572
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1573
1577
|
stepType: import("zod").ZodLiteral<"workflow_sleep">;
|
|
1574
1578
|
sleepDurationMs: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1575
1579
|
sleepType: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1580
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1576
1581
|
name: import("zod").ZodString;
|
|
1577
1582
|
durationMs: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1578
1583
|
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
1579
1584
|
children: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
1580
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1581
1585
|
stepType: import("zod").ZodLiteral<"workflow_wait_event">;
|
|
1582
1586
|
eventName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1583
1587
|
eventReceived: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
1588
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1584
1589
|
name: import("zod").ZodString;
|
|
1585
1590
|
durationMs: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1586
1591
|
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
1587
1592
|
children: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
1588
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1589
1593
|
stepType: import("zod").ZodLiteral<"processor_run">;
|
|
1590
1594
|
processorId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1591
|
-
name: import("zod").ZodString;
|
|
1592
|
-
durationMs: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1593
|
-
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
1594
|
-
children: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
1595
1595
|
}, import("zod/v4/core").$strip>], "stepType">, import("zod").ZodObject<{
|
|
1596
|
-
stepType: import("zod").ZodOptional<import("zod").ZodUndefined>;
|
|
1597
1596
|
name: import("zod").ZodString;
|
|
1598
1597
|
durationMs: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1599
1598
|
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
1600
1599
|
children: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
1600
|
+
stepType: import("zod").ZodOptional<import("zod").ZodUndefined>;
|
|
1601
1601
|
}, import("zod/v4/core").$strip>]>>>;
|
|
1602
1602
|
ordering: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
1603
|
-
strict: "strict";
|
|
1604
1603
|
relaxed: "relaxed";
|
|
1604
|
+
strict: "strict";
|
|
1605
1605
|
unordered: "unordered";
|
|
1606
1606
|
}>>;
|
|
1607
1607
|
allowRepeatedSteps: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
@@ -1618,8 +1618,8 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
1618
1618
|
args: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>;
|
|
1619
1619
|
output: import("zod").ZodUnknown;
|
|
1620
1620
|
matchArgs: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
1621
|
-
strict: "strict";
|
|
1622
1621
|
ignore: "ignore";
|
|
1622
|
+
strict: "strict";
|
|
1623
1623
|
}>>;
|
|
1624
1624
|
}, import("zod/v4/core").$strip>>>;
|
|
1625
1625
|
unmockedToolPolicy: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
@@ -1631,12 +1631,12 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
1631
1631
|
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
1632
1632
|
source: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
1633
1633
|
type: import("zod").ZodEnum<{
|
|
1634
|
-
|
|
1634
|
+
"candidate-screener": "candidate-screener";
|
|
1635
1635
|
csv: "csv";
|
|
1636
|
-
trace: "trace";
|
|
1637
|
-
llm: "llm";
|
|
1638
1636
|
"experiment-result": "experiment-result";
|
|
1639
|
-
|
|
1637
|
+
json: "json";
|
|
1638
|
+
llm: "llm";
|
|
1639
|
+
trace: "trace";
|
|
1640
1640
|
}>;
|
|
1641
1641
|
referenceId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1642
1642
|
}, import("zod/v4/core").$strip>>;
|
|
@@ -1653,8 +1653,8 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
1653
1653
|
args: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>;
|
|
1654
1654
|
output: import("zod").ZodUnknown;
|
|
1655
1655
|
matchArgs: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
1656
|
-
strict: "strict";
|
|
1657
1656
|
ignore: "ignore";
|
|
1657
|
+
strict: "strict";
|
|
1658
1658
|
}>>;
|
|
1659
1659
|
}, import("zod/v4/core").$strip>>>;
|
|
1660
1660
|
unmockedToolPolicy: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
@@ -1666,12 +1666,12 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
1666
1666
|
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
1667
1667
|
source: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
1668
1668
|
type: import("zod").ZodEnum<{
|
|
1669
|
-
|
|
1669
|
+
"candidate-screener": "candidate-screener";
|
|
1670
1670
|
csv: "csv";
|
|
1671
|
-
trace: "trace";
|
|
1672
|
-
llm: "llm";
|
|
1673
1671
|
"experiment-result": "experiment-result";
|
|
1674
|
-
|
|
1672
|
+
json: "json";
|
|
1673
|
+
llm: "llm";
|
|
1674
|
+
trace: "trace";
|
|
1675
1675
|
}>;
|
|
1676
1676
|
referenceId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1677
1677
|
}, import("zod/v4/core").$strip>>;
|
|
@@ -1680,11 +1680,11 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
1680
1680
|
}, import("zod/v4/core").$strip>> | undefined;
|
|
1681
1681
|
} & {
|
|
1682
1682
|
readonly _mastraSchemaRoute: true;
|
|
1683
|
-
}, Omit<import("@mastra/core/server").ApiRoute, "
|
|
1683
|
+
}, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
|
|
1684
1684
|
method: "DELETE";
|
|
1685
1685
|
path: "/datasets/:datasetId/items/:itemId";
|
|
1686
1686
|
responseType: "json";
|
|
1687
|
-
streamFormat?:
|
|
1687
|
+
streamFormat?: 'sse' | 'stream';
|
|
1688
1688
|
sseFlushOnConnect?: boolean;
|
|
1689
1689
|
handler(params: {
|
|
1690
1690
|
datasetId: string;
|
|
@@ -1710,11 +1710,11 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
1710
1710
|
}, import("zod/v4/core").$strip>> | undefined;
|
|
1711
1711
|
} & {
|
|
1712
1712
|
readonly _mastraSchemaRoute: true;
|
|
1713
|
-
}, Omit<import("@mastra/core/server").ApiRoute, "
|
|
1713
|
+
}, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
|
|
1714
1714
|
method: "GET";
|
|
1715
1715
|
path: "/datasets/:datasetId/versions";
|
|
1716
1716
|
responseType: "json";
|
|
1717
|
-
streamFormat?:
|
|
1717
|
+
streamFormat?: 'sse' | 'stream';
|
|
1718
1718
|
sseFlushOnConnect?: boolean;
|
|
1719
1719
|
handler(params: {
|
|
1720
1720
|
datasetId: string;
|
|
@@ -1766,11 +1766,11 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
1766
1766
|
}, import("zod/v4/core").$strip>> | undefined;
|
|
1767
1767
|
} & {
|
|
1768
1768
|
readonly _mastraSchemaRoute: true;
|
|
1769
|
-
}, Omit<import("@mastra/core/server").ApiRoute, "
|
|
1769
|
+
}, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
|
|
1770
1770
|
method: "GET";
|
|
1771
1771
|
path: "/datasets/:datasetId/items/:itemId/history";
|
|
1772
1772
|
responseType: "json";
|
|
1773
|
-
streamFormat?:
|
|
1773
|
+
streamFormat?: 'sse' | 'stream';
|
|
1774
1774
|
sseFlushOnConnect?: boolean;
|
|
1775
1775
|
handler(params: {
|
|
1776
1776
|
datasetId: string;
|
|
@@ -1781,21 +1781,21 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
1781
1781
|
datasetId: string;
|
|
1782
1782
|
datasetVersion: number;
|
|
1783
1783
|
input: unknown;
|
|
1784
|
-
validTo: number | null;
|
|
1785
|
-
isDeleted: boolean;
|
|
1786
|
-
createdAt: Date;
|
|
1787
|
-
updatedAt: Date;
|
|
1788
1784
|
groundTruth?: unknown;
|
|
1789
1785
|
expectedTrajectory?: unknown;
|
|
1790
1786
|
toolMocks?: {
|
|
1791
1787
|
toolName: string;
|
|
1792
1788
|
args: Record<string, unknown>;
|
|
1793
1789
|
output: unknown;
|
|
1794
|
-
matchArgs?: "
|
|
1790
|
+
matchArgs?: "ignore" | "strict" | undefined;
|
|
1795
1791
|
}[] | undefined;
|
|
1796
1792
|
unmockedToolPolicy?: "allow" | "deny" | undefined;
|
|
1797
1793
|
scorerIds?: string[] | undefined;
|
|
1798
1794
|
metadata?: Record<string, unknown> | undefined;
|
|
1795
|
+
validTo: number | null;
|
|
1796
|
+
isDeleted: boolean;
|
|
1797
|
+
createdAt: Date;
|
|
1798
|
+
updatedAt: Date;
|
|
1799
1799
|
}[];
|
|
1800
1800
|
}>;
|
|
1801
1801
|
pathParamSchema?: import("zod").ZodType;
|
|
@@ -1824,8 +1824,8 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
1824
1824
|
args: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>;
|
|
1825
1825
|
output: import("zod").ZodUnknown;
|
|
1826
1826
|
matchArgs: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
1827
|
-
strict: "strict";
|
|
1828
1827
|
ignore: "ignore";
|
|
1828
|
+
strict: "strict";
|
|
1829
1829
|
}>>;
|
|
1830
1830
|
}, import("zod/v4/core").$strip>>>;
|
|
1831
1831
|
unmockedToolPolicy: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
@@ -1842,11 +1842,11 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
1842
1842
|
}, import("zod/v4/core").$strip>> | undefined;
|
|
1843
1843
|
} & {
|
|
1844
1844
|
readonly _mastraSchemaRoute: true;
|
|
1845
|
-
}, Omit<import("@mastra/core/server").ApiRoute, "
|
|
1845
|
+
}, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
|
|
1846
1846
|
method: "GET";
|
|
1847
1847
|
path: "/datasets/:datasetId/items/:itemId/versions/:datasetVersion";
|
|
1848
1848
|
responseType: "json";
|
|
1849
|
-
streamFormat?:
|
|
1849
|
+
streamFormat?: 'sse' | 'stream';
|
|
1850
1850
|
sseFlushOnConnect?: boolean;
|
|
1851
1851
|
handler(params: {
|
|
1852
1852
|
datasetId: string;
|
|
@@ -1856,26 +1856,26 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
1856
1856
|
id: string;
|
|
1857
1857
|
datasetId: string;
|
|
1858
1858
|
datasetVersion: number;
|
|
1859
|
-
input: unknown;
|
|
1860
|
-
createdAt: Date;
|
|
1861
|
-
updatedAt: Date;
|
|
1862
1859
|
externalId?: string | null | undefined;
|
|
1860
|
+
input: unknown;
|
|
1863
1861
|
groundTruth?: unknown;
|
|
1864
1862
|
expectedTrajectory?: unknown;
|
|
1865
1863
|
toolMocks?: {
|
|
1866
1864
|
toolName: string;
|
|
1867
1865
|
args: Record<string, unknown>;
|
|
1868
1866
|
output: unknown;
|
|
1869
|
-
matchArgs?: "
|
|
1867
|
+
matchArgs?: "ignore" | "strict" | undefined;
|
|
1870
1868
|
}[] | undefined;
|
|
1871
1869
|
unmockedToolPolicy?: "allow" | "deny" | undefined;
|
|
1872
1870
|
scorerIds?: string[] | undefined;
|
|
1873
1871
|
requestContext?: Record<string, unknown> | undefined;
|
|
1874
1872
|
metadata?: Record<string, unknown> | undefined;
|
|
1875
1873
|
source?: {
|
|
1876
|
-
type: "
|
|
1874
|
+
type: "candidate-screener" | "csv" | "experiment-result" | "json" | "llm" | "trace";
|
|
1877
1875
|
referenceId?: string | undefined;
|
|
1878
1876
|
} | undefined;
|
|
1877
|
+
createdAt: Date;
|
|
1878
|
+
updatedAt: Date;
|
|
1879
1879
|
} | null>;
|
|
1880
1880
|
pathParamSchema?: import("zod").ZodType;
|
|
1881
1881
|
queryParamSchema?: import("zod").ZodType;
|
|
@@ -1904,8 +1904,8 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
1904
1904
|
args: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>;
|
|
1905
1905
|
output: import("zod").ZodUnknown;
|
|
1906
1906
|
matchArgs: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
1907
|
-
strict: "strict";
|
|
1908
1907
|
ignore: "ignore";
|
|
1908
|
+
strict: "strict";
|
|
1909
1909
|
}>>;
|
|
1910
1910
|
}, import("zod/v4/core").$strip>>>;
|
|
1911
1911
|
unmockedToolPolicy: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
@@ -1917,12 +1917,12 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
1917
1917
|
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
1918
1918
|
source: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
1919
1919
|
type: import("zod").ZodEnum<{
|
|
1920
|
-
|
|
1920
|
+
"candidate-screener": "candidate-screener";
|
|
1921
1921
|
csv: "csv";
|
|
1922
|
-
trace: "trace";
|
|
1923
|
-
llm: "llm";
|
|
1924
1922
|
"experiment-result": "experiment-result";
|
|
1925
|
-
|
|
1923
|
+
json: "json";
|
|
1924
|
+
llm: "llm";
|
|
1925
|
+
trace: "trace";
|
|
1926
1926
|
}>;
|
|
1927
1927
|
referenceId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1928
1928
|
}, import("zod/v4/core").$strip>>;
|
|
@@ -1931,11 +1931,11 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
1931
1931
|
}, import("zod/v4/core").$strip>>> | undefined;
|
|
1932
1932
|
} & {
|
|
1933
1933
|
readonly _mastraSchemaRoute: true;
|
|
1934
|
-
}, Omit<import("@mastra/core/server").ApiRoute, "
|
|
1934
|
+
}, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
|
|
1935
1935
|
method: "GET";
|
|
1936
1936
|
path: "/experiments";
|
|
1937
1937
|
responseType: "json";
|
|
1938
|
-
streamFormat?:
|
|
1938
|
+
streamFormat?: 'sse' | 'stream';
|
|
1939
1939
|
sseFlushOnConnect?: boolean;
|
|
1940
1940
|
handler(params: {
|
|
1941
1941
|
page: number;
|
|
@@ -1949,18 +1949,9 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
1949
1949
|
id: string;
|
|
1950
1950
|
datasetId: string | null;
|
|
1951
1951
|
datasetVersion: number | null;
|
|
1952
|
-
targetType: "agent" | "workflow" | "scorer" | "processor" | null;
|
|
1953
|
-
targetId: string | null;
|
|
1954
|
-
status: "running" | "failed" | "pending" | "completed";
|
|
1955
|
-
totalItems: number;
|
|
1956
|
-
succeededCount: number;
|
|
1957
|
-
failedCount: number;
|
|
1958
|
-
skippedCount: number;
|
|
1959
|
-
startedAt: Date | null;
|
|
1960
|
-
completedAt: Date | null;
|
|
1961
|
-
createdAt: Date;
|
|
1962
|
-
updatedAt: Date;
|
|
1963
1952
|
agentVersion?: string | null | undefined;
|
|
1953
|
+
targetType: "agent" | "processor" | "scorer" | "workflow" | null;
|
|
1954
|
+
targetId: string | null;
|
|
1964
1955
|
scorerIds?: string[] | null | undefined;
|
|
1965
1956
|
name?: string | undefined;
|
|
1966
1957
|
description?: string | undefined;
|
|
@@ -1980,6 +1971,15 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
1980
1971
|
comparisonId?: string | null | undefined;
|
|
1981
1972
|
variantId?: string | null | undefined;
|
|
1982
1973
|
trialIndex?: number | null | undefined;
|
|
1974
|
+
status: "completed" | "failed" | "pending" | "running";
|
|
1975
|
+
totalItems: number;
|
|
1976
|
+
succeededCount: number;
|
|
1977
|
+
failedCount: number;
|
|
1978
|
+
skippedCount: number;
|
|
1979
|
+
startedAt: Date | null;
|
|
1980
|
+
completedAt: Date | null;
|
|
1981
|
+
createdAt: Date;
|
|
1982
|
+
updatedAt: Date;
|
|
1983
1983
|
}[];
|
|
1984
1984
|
pagination: {
|
|
1985
1985
|
total: number;
|
|
@@ -2013,9 +2013,9 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
2013
2013
|
agentVersion: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
2014
2014
|
targetType: import("zod").ZodNullable<import("zod").ZodEnum<{
|
|
2015
2015
|
agent: "agent";
|
|
2016
|
-
workflow: "workflow";
|
|
2017
|
-
scorer: "scorer";
|
|
2018
2016
|
processor: "processor";
|
|
2017
|
+
scorer: "scorer";
|
|
2018
|
+
workflow: "workflow";
|
|
2019
2019
|
}>>;
|
|
2020
2020
|
targetId: import("zod").ZodNullable<import("zod").ZodString>;
|
|
2021
2021
|
scorerIds: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodString>>>;
|
|
@@ -2038,10 +2038,10 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
2038
2038
|
variantId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
2039
2039
|
trialIndex: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
2040
2040
|
status: import("zod").ZodEnum<{
|
|
2041
|
-
|
|
2041
|
+
completed: "completed";
|
|
2042
2042
|
failed: "failed";
|
|
2043
2043
|
pending: "pending";
|
|
2044
|
-
|
|
2044
|
+
running: "running";
|
|
2045
2045
|
}>;
|
|
2046
2046
|
totalItems: import("zod").ZodNumber;
|
|
2047
2047
|
succeededCount: import("zod").ZodNumber;
|
|
@@ -2061,11 +2061,11 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
2061
2061
|
}, import("zod/v4/core").$strip>> | undefined;
|
|
2062
2062
|
} & {
|
|
2063
2063
|
readonly _mastraSchemaRoute: true;
|
|
2064
|
-
}, Omit<import("@mastra/core/server").ApiRoute, "
|
|
2064
|
+
}, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
|
|
2065
2065
|
method: "GET";
|
|
2066
2066
|
path: "/experiments/review-summary";
|
|
2067
2067
|
responseType: "json";
|
|
2068
|
-
streamFormat?:
|
|
2068
|
+
streamFormat?: 'sse' | 'stream';
|
|
2069
2069
|
sseFlushOnConnect?: boolean;
|
|
2070
2070
|
handler(params: import(".").ServerContext): Promise<{
|
|
2071
2071
|
counts: {
|
|
@@ -2097,11 +2097,11 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
2097
2097
|
}, import("zod/v4/core").$strip>> | undefined;
|
|
2098
2098
|
} & {
|
|
2099
2099
|
readonly _mastraSchemaRoute: true;
|
|
2100
|
-
}, Omit<import("@mastra/core/server").ApiRoute, "
|
|
2100
|
+
}, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
|
|
2101
2101
|
method: "GET";
|
|
2102
2102
|
path: "/datasets/:datasetId/experiments";
|
|
2103
2103
|
responseType: "json";
|
|
2104
|
-
streamFormat?:
|
|
2104
|
+
streamFormat?: 'sse' | 'stream';
|
|
2105
2105
|
sseFlushOnConnect?: boolean;
|
|
2106
2106
|
handler(params: {
|
|
2107
2107
|
datasetId: string;
|
|
@@ -2117,18 +2117,9 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
2117
2117
|
id: string;
|
|
2118
2118
|
datasetId: string | null;
|
|
2119
2119
|
datasetVersion: number | null;
|
|
2120
|
-
targetType: "agent" | "workflow" | "scorer" | "processor" | null;
|
|
2121
|
-
targetId: string | null;
|
|
2122
|
-
status: "running" | "failed" | "pending" | "completed";
|
|
2123
|
-
totalItems: number;
|
|
2124
|
-
succeededCount: number;
|
|
2125
|
-
failedCount: number;
|
|
2126
|
-
skippedCount: number;
|
|
2127
|
-
startedAt: Date | null;
|
|
2128
|
-
completedAt: Date | null;
|
|
2129
|
-
createdAt: Date;
|
|
2130
|
-
updatedAt: Date;
|
|
2131
2120
|
agentVersion?: string | null | undefined;
|
|
2121
|
+
targetType: "agent" | "processor" | "scorer" | "workflow" | null;
|
|
2122
|
+
targetId: string | null;
|
|
2132
2123
|
scorerIds?: string[] | null | undefined;
|
|
2133
2124
|
name?: string | undefined;
|
|
2134
2125
|
description?: string | undefined;
|
|
@@ -2148,6 +2139,15 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
2148
2139
|
comparisonId?: string | null | undefined;
|
|
2149
2140
|
variantId?: string | null | undefined;
|
|
2150
2141
|
trialIndex?: number | null | undefined;
|
|
2142
|
+
status: "completed" | "failed" | "pending" | "running";
|
|
2143
|
+
totalItems: number;
|
|
2144
|
+
succeededCount: number;
|
|
2145
|
+
failedCount: number;
|
|
2146
|
+
skippedCount: number;
|
|
2147
|
+
startedAt: Date | null;
|
|
2148
|
+
completedAt: Date | null;
|
|
2149
|
+
createdAt: Date;
|
|
2150
|
+
updatedAt: Date;
|
|
2151
2151
|
}[];
|
|
2152
2152
|
pagination: {
|
|
2153
2153
|
total: number;
|
|
@@ -2183,9 +2183,9 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
2183
2183
|
agentVersion: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
2184
2184
|
targetType: import("zod").ZodNullable<import("zod").ZodEnum<{
|
|
2185
2185
|
agent: "agent";
|
|
2186
|
-
workflow: "workflow";
|
|
2187
|
-
scorer: "scorer";
|
|
2188
2186
|
processor: "processor";
|
|
2187
|
+
scorer: "scorer";
|
|
2188
|
+
workflow: "workflow";
|
|
2189
2189
|
}>>;
|
|
2190
2190
|
targetId: import("zod").ZodNullable<import("zod").ZodString>;
|
|
2191
2191
|
scorerIds: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodString>>>;
|
|
@@ -2208,10 +2208,10 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
2208
2208
|
variantId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
2209
2209
|
trialIndex: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
2210
2210
|
status: import("zod").ZodEnum<{
|
|
2211
|
-
|
|
2211
|
+
completed: "completed";
|
|
2212
2212
|
failed: "failed";
|
|
2213
2213
|
pending: "pending";
|
|
2214
|
-
|
|
2214
|
+
running: "running";
|
|
2215
2215
|
}>;
|
|
2216
2216
|
totalItems: import("zod").ZodNumber;
|
|
2217
2217
|
succeededCount: import("zod").ZodNumber;
|
|
@@ -2231,17 +2231,17 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
2231
2231
|
}, import("zod/v4/core").$strip>> | undefined;
|
|
2232
2232
|
} & {
|
|
2233
2233
|
readonly _mastraSchemaRoute: true;
|
|
2234
|
-
}, Omit<import("@mastra/core/server").ApiRoute, "
|
|
2234
|
+
}, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
|
|
2235
2235
|
method: "POST";
|
|
2236
2236
|
path: "/datasets/:datasetId/experiments";
|
|
2237
2237
|
responseType: "json";
|
|
2238
|
-
streamFormat?:
|
|
2238
|
+
streamFormat?: 'sse' | 'stream';
|
|
2239
2239
|
sseFlushOnConnect?: boolean;
|
|
2240
2240
|
handler(params: {
|
|
2241
2241
|
datasetId: string;
|
|
2242
2242
|
} & {
|
|
2243
2243
|
start?: boolean | undefined;
|
|
2244
|
-
targetType?: "agent" | "
|
|
2244
|
+
targetType?: "agent" | "scorer" | "workflow" | undefined;
|
|
2245
2245
|
targetId?: string | undefined;
|
|
2246
2246
|
id?: string | undefined;
|
|
2247
2247
|
name?: string | undefined;
|
|
@@ -2274,10 +2274,11 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
2274
2274
|
} | undefined;
|
|
2275
2275
|
} & import(".").ServerContext): Promise<{
|
|
2276
2276
|
experimentId: string;
|
|
2277
|
-
status: "
|
|
2277
|
+
status: "completed" | "failed" | "pending" | "running";
|
|
2278
2278
|
totalItems: number;
|
|
2279
2279
|
succeededCount: number;
|
|
2280
2280
|
failedCount: number;
|
|
2281
|
+
datasetVersion?: number | undefined;
|
|
2281
2282
|
startedAt: Date | null;
|
|
2282
2283
|
completedAt: Date | null;
|
|
2283
2284
|
results: {
|
|
@@ -2286,18 +2287,11 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
2286
2287
|
input: unknown;
|
|
2287
2288
|
output: unknown;
|
|
2288
2289
|
groundTruth: unknown;
|
|
2290
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
2289
2291
|
error: string | null;
|
|
2290
2292
|
startedAt: Date;
|
|
2291
2293
|
completedAt: Date;
|
|
2292
2294
|
retryCount: number;
|
|
2293
|
-
scores: {
|
|
2294
|
-
scorerId: string;
|
|
2295
|
-
scorerName: string;
|
|
2296
|
-
score: number | null;
|
|
2297
|
-
reason: string | null;
|
|
2298
|
-
error: string | null;
|
|
2299
|
-
}[];
|
|
2300
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
2301
2295
|
toolMockReport?: {
|
|
2302
2296
|
served: {
|
|
2303
2297
|
mockIndex: number;
|
|
@@ -2314,13 +2308,19 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
2314
2308
|
args: unknown;
|
|
2315
2309
|
}[];
|
|
2316
2310
|
failure?: {
|
|
2317
|
-
code: "
|
|
2311
|
+
code: "TOOL_MOCK_EXHAUSTED" | "TOOL_MOCK_MISMATCH" | "TOOL_MOCK_NOT_DECLARED";
|
|
2318
2312
|
toolName: string;
|
|
2319
2313
|
args: unknown;
|
|
2320
2314
|
} | undefined;
|
|
2321
2315
|
} | null | undefined;
|
|
2316
|
+
scores: {
|
|
2317
|
+
scorerId: string;
|
|
2318
|
+
scorerName: string;
|
|
2319
|
+
score: number | null;
|
|
2320
|
+
reason: string | null;
|
|
2321
|
+
error: string | null;
|
|
2322
|
+
}[];
|
|
2322
2323
|
}[];
|
|
2323
|
-
datasetVersion?: number | undefined;
|
|
2324
2324
|
}>;
|
|
2325
2325
|
pathParamSchema?: import("zod").ZodType;
|
|
2326
2326
|
queryParamSchema?: import("zod").ZodType;
|
|
@@ -2338,8 +2338,8 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
2338
2338
|
start: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
2339
2339
|
targetType: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
2340
2340
|
agent: "agent";
|
|
2341
|
-
workflow: "workflow";
|
|
2342
2341
|
scorer: "scorer";
|
|
2342
|
+
workflow: "workflow";
|
|
2343
2343
|
}>>;
|
|
2344
2344
|
targetId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
2345
2345
|
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -2380,10 +2380,10 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
2380
2380
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
2381
2381
|
experimentId: import("zod").ZodString;
|
|
2382
2382
|
status: import("zod").ZodEnum<{
|
|
2383
|
-
|
|
2383
|
+
completed: "completed";
|
|
2384
2384
|
failed: "failed";
|
|
2385
2385
|
pending: "pending";
|
|
2386
|
-
|
|
2386
|
+
running: "running";
|
|
2387
2387
|
}>;
|
|
2388
2388
|
totalItems: import("zod").ZodNumber;
|
|
2389
2389
|
succeededCount: import("zod").ZodNumber;
|
|
@@ -2419,8 +2419,8 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
2419
2419
|
}, import("zod/v4/core").$strip>>;
|
|
2420
2420
|
failure: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
2421
2421
|
code: import("zod").ZodEnum<{
|
|
2422
|
-
TOOL_MOCK_MISMATCH: "TOOL_MOCK_MISMATCH";
|
|
2423
2422
|
TOOL_MOCK_EXHAUSTED: "TOOL_MOCK_EXHAUSTED";
|
|
2423
|
+
TOOL_MOCK_MISMATCH: "TOOL_MOCK_MISMATCH";
|
|
2424
2424
|
TOOL_MOCK_NOT_DECLARED: "TOOL_MOCK_NOT_DECLARED";
|
|
2425
2425
|
}>;
|
|
2426
2426
|
toolName: import("zod").ZodString;
|
|
@@ -2438,11 +2438,11 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
2438
2438
|
}, import("zod/v4/core").$strip>> | undefined;
|
|
2439
2439
|
} & {
|
|
2440
2440
|
readonly _mastraSchemaRoute: true;
|
|
2441
|
-
}, Omit<import("@mastra/core/server").ApiRoute, "
|
|
2441
|
+
}, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
|
|
2442
2442
|
method: "POST";
|
|
2443
2443
|
path: "/datasets/:datasetId/experiments/:experimentId/items/:itemId/run";
|
|
2444
2444
|
responseType: "json";
|
|
2445
|
-
streamFormat?:
|
|
2445
|
+
streamFormat?: 'sse' | 'stream';
|
|
2446
2446
|
sseFlushOnConnect?: boolean;
|
|
2447
2447
|
handler(params: {
|
|
2448
2448
|
datasetId: string;
|
|
@@ -2460,6 +2460,8 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
2460
2460
|
input: unknown;
|
|
2461
2461
|
output: unknown;
|
|
2462
2462
|
groundTruth: unknown;
|
|
2463
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
2464
|
+
expectedTrajectory?: unknown;
|
|
2463
2465
|
error: {
|
|
2464
2466
|
message: string;
|
|
2465
2467
|
stack?: string | undefined;
|
|
@@ -2468,11 +2470,8 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
2468
2470
|
startedAt: Date;
|
|
2469
2471
|
completedAt: Date;
|
|
2470
2472
|
retryCount: number;
|
|
2471
|
-
traceId: string | null;
|
|
2472
|
-
createdAt: Date;
|
|
2473
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
2474
|
-
expectedTrajectory?: unknown;
|
|
2475
2473
|
attempt?: number | undefined;
|
|
2474
|
+
traceId: string | null;
|
|
2476
2475
|
status?: "complete" | "needs-review" | "reviewed" | null | undefined;
|
|
2477
2476
|
tags?: string[] | null | undefined;
|
|
2478
2477
|
comment?: string | null | undefined;
|
|
@@ -2492,11 +2491,12 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
2492
2491
|
args: unknown;
|
|
2493
2492
|
}[];
|
|
2494
2493
|
failure?: {
|
|
2495
|
-
code: "
|
|
2494
|
+
code: "TOOL_MOCK_EXHAUSTED" | "TOOL_MOCK_MISMATCH" | "TOOL_MOCK_NOT_DECLARED";
|
|
2496
2495
|
toolName: string;
|
|
2497
2496
|
args: unknown;
|
|
2498
2497
|
} | undefined;
|
|
2499
2498
|
} | null | undefined;
|
|
2499
|
+
createdAt: Date;
|
|
2500
2500
|
};
|
|
2501
2501
|
scores: {
|
|
2502
2502
|
scorerId: string;
|
|
@@ -2572,8 +2572,8 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
2572
2572
|
}, import("zod/v4/core").$strip>>;
|
|
2573
2573
|
failure: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
2574
2574
|
code: import("zod").ZodEnum<{
|
|
2575
|
-
TOOL_MOCK_MISMATCH: "TOOL_MOCK_MISMATCH";
|
|
2576
2575
|
TOOL_MOCK_EXHAUSTED: "TOOL_MOCK_EXHAUSTED";
|
|
2576
|
+
TOOL_MOCK_MISMATCH: "TOOL_MOCK_MISMATCH";
|
|
2577
2577
|
TOOL_MOCK_NOT_DECLARED: "TOOL_MOCK_NOT_DECLARED";
|
|
2578
2578
|
}>;
|
|
2579
2579
|
toolName: import("zod").ZodString;
|
|
@@ -2599,11 +2599,11 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
2599
2599
|
}, import("zod/v4/core").$strip>> | undefined;
|
|
2600
2600
|
} & {
|
|
2601
2601
|
readonly _mastraSchemaRoute: true;
|
|
2602
|
-
}, Omit<import("@mastra/core/server").ApiRoute, "
|
|
2602
|
+
}, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
|
|
2603
2603
|
method: "POST";
|
|
2604
2604
|
path: "/datasets/:datasetId/experiments/:experimentId/results";
|
|
2605
2605
|
responseType: "json";
|
|
2606
|
-
streamFormat?:
|
|
2606
|
+
streamFormat?: 'sse' | 'stream';
|
|
2607
2607
|
sseFlushOnConnect?: boolean;
|
|
2608
2608
|
handler(params: {
|
|
2609
2609
|
datasetId: string;
|
|
@@ -2624,8 +2624,8 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
2624
2624
|
traceId?: string | undefined;
|
|
2625
2625
|
scores?: {
|
|
2626
2626
|
scorerId: string;
|
|
2627
|
-
score: number;
|
|
2628
2627
|
scorerName?: string | undefined;
|
|
2628
|
+
score: number;
|
|
2629
2629
|
reason?: string | undefined;
|
|
2630
2630
|
metadata?: Record<string, unknown> | undefined;
|
|
2631
2631
|
}[] | undefined;
|
|
@@ -2637,6 +2637,8 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
2637
2637
|
input: unknown;
|
|
2638
2638
|
output: unknown;
|
|
2639
2639
|
groundTruth: unknown;
|
|
2640
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
2641
|
+
expectedTrajectory?: unknown;
|
|
2640
2642
|
error: {
|
|
2641
2643
|
message: string;
|
|
2642
2644
|
stack?: string | undefined;
|
|
@@ -2645,11 +2647,8 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
2645
2647
|
startedAt: Date;
|
|
2646
2648
|
completedAt: Date;
|
|
2647
2649
|
retryCount: number;
|
|
2648
|
-
traceId: string | null;
|
|
2649
|
-
createdAt: Date;
|
|
2650
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
2651
|
-
expectedTrajectory?: unknown;
|
|
2652
2650
|
attempt?: number | undefined;
|
|
2651
|
+
traceId: string | null;
|
|
2653
2652
|
status?: "complete" | "needs-review" | "reviewed" | null | undefined;
|
|
2654
2653
|
tags?: string[] | null | undefined;
|
|
2655
2654
|
comment?: string | null | undefined;
|
|
@@ -2669,11 +2668,12 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
2669
2668
|
args: unknown;
|
|
2670
2669
|
}[];
|
|
2671
2670
|
failure?: {
|
|
2672
|
-
code: "
|
|
2671
|
+
code: "TOOL_MOCK_EXHAUSTED" | "TOOL_MOCK_MISMATCH" | "TOOL_MOCK_NOT_DECLARED";
|
|
2673
2672
|
toolName: string;
|
|
2674
2673
|
args: unknown;
|
|
2675
2674
|
} | undefined;
|
|
2676
2675
|
} | null | undefined;
|
|
2676
|
+
createdAt: Date;
|
|
2677
2677
|
}>;
|
|
2678
2678
|
pathParamSchema?: import("zod").ZodType;
|
|
2679
2679
|
queryParamSchema?: import("zod").ZodType;
|
|
@@ -2753,8 +2753,8 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
2753
2753
|
}, import("zod/v4/core").$strip>>;
|
|
2754
2754
|
failure: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
2755
2755
|
code: import("zod").ZodEnum<{
|
|
2756
|
-
TOOL_MOCK_MISMATCH: "TOOL_MOCK_MISMATCH";
|
|
2757
2756
|
TOOL_MOCK_EXHAUSTED: "TOOL_MOCK_EXHAUSTED";
|
|
2757
|
+
TOOL_MOCK_MISMATCH: "TOOL_MOCK_MISMATCH";
|
|
2758
2758
|
TOOL_MOCK_NOT_DECLARED: "TOOL_MOCK_NOT_DECLARED";
|
|
2759
2759
|
}>;
|
|
2760
2760
|
toolName: import("zod").ZodString;
|
|
@@ -2765,11 +2765,11 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
2765
2765
|
}, import("zod/v4/core").$strip>> | undefined;
|
|
2766
2766
|
} & {
|
|
2767
2767
|
readonly _mastraSchemaRoute: true;
|
|
2768
|
-
}, Omit<import("@mastra/core/server").ApiRoute, "
|
|
2768
|
+
}, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
|
|
2769
2769
|
method: "POST";
|
|
2770
2770
|
path: "/datasets/:datasetId/experiments/:experimentId/finalize";
|
|
2771
2771
|
responseType: "json";
|
|
2772
|
-
streamFormat?:
|
|
2772
|
+
streamFormat?: 'sse' | 'stream';
|
|
2773
2773
|
sseFlushOnConnect?: boolean;
|
|
2774
2774
|
handler(params: {
|
|
2775
2775
|
datasetId: string;
|
|
@@ -2778,18 +2778,9 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
2778
2778
|
id: string;
|
|
2779
2779
|
datasetId: string | null;
|
|
2780
2780
|
datasetVersion: number | null;
|
|
2781
|
-
targetType: "agent" | "workflow" | "scorer" | "processor" | null;
|
|
2782
|
-
targetId: string | null;
|
|
2783
|
-
status: "running" | "failed" | "pending" | "completed";
|
|
2784
|
-
totalItems: number;
|
|
2785
|
-
succeededCount: number;
|
|
2786
|
-
failedCount: number;
|
|
2787
|
-
skippedCount: number;
|
|
2788
|
-
startedAt: Date | null;
|
|
2789
|
-
completedAt: Date | null;
|
|
2790
|
-
createdAt: Date;
|
|
2791
|
-
updatedAt: Date;
|
|
2792
2781
|
agentVersion?: string | null | undefined;
|
|
2782
|
+
targetType: "agent" | "processor" | "scorer" | "workflow" | null;
|
|
2783
|
+
targetId: string | null;
|
|
2793
2784
|
scorerIds?: string[] | null | undefined;
|
|
2794
2785
|
name?: string | undefined;
|
|
2795
2786
|
description?: string | undefined;
|
|
@@ -2809,6 +2800,15 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
2809
2800
|
comparisonId?: string | null | undefined;
|
|
2810
2801
|
variantId?: string | null | undefined;
|
|
2811
2802
|
trialIndex?: number | null | undefined;
|
|
2803
|
+
status: "completed" | "failed" | "pending" | "running";
|
|
2804
|
+
totalItems: number;
|
|
2805
|
+
succeededCount: number;
|
|
2806
|
+
failedCount: number;
|
|
2807
|
+
skippedCount: number;
|
|
2808
|
+
startedAt: Date | null;
|
|
2809
|
+
completedAt: Date | null;
|
|
2810
|
+
createdAt: Date;
|
|
2811
|
+
updatedAt: Date;
|
|
2812
2812
|
}>;
|
|
2813
2813
|
pathParamSchema?: import("zod").ZodType;
|
|
2814
2814
|
queryParamSchema?: import("zod").ZodType;
|
|
@@ -2830,9 +2830,9 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
2830
2830
|
agentVersion: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
2831
2831
|
targetType: import("zod").ZodNullable<import("zod").ZodEnum<{
|
|
2832
2832
|
agent: "agent";
|
|
2833
|
-
workflow: "workflow";
|
|
2834
|
-
scorer: "scorer";
|
|
2835
2833
|
processor: "processor";
|
|
2834
|
+
scorer: "scorer";
|
|
2835
|
+
workflow: "workflow";
|
|
2836
2836
|
}>>;
|
|
2837
2837
|
targetId: import("zod").ZodNullable<import("zod").ZodString>;
|
|
2838
2838
|
scorerIds: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodString>>>;
|
|
@@ -2855,10 +2855,10 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
2855
2855
|
variantId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
2856
2856
|
trialIndex: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
2857
2857
|
status: import("zod").ZodEnum<{
|
|
2858
|
-
|
|
2858
|
+
completed: "completed";
|
|
2859
2859
|
failed: "failed";
|
|
2860
2860
|
pending: "pending";
|
|
2861
|
-
|
|
2861
|
+
running: "running";
|
|
2862
2862
|
}>;
|
|
2863
2863
|
totalItems: import("zod").ZodNumber;
|
|
2864
2864
|
succeededCount: import("zod").ZodNumber;
|
|
@@ -2871,11 +2871,11 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
2871
2871
|
}, import("zod/v4/core").$strip>> | undefined;
|
|
2872
2872
|
} & {
|
|
2873
2873
|
readonly _mastraSchemaRoute: true;
|
|
2874
|
-
}, Omit<import("@mastra/core/server").ApiRoute, "
|
|
2874
|
+
}, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
|
|
2875
2875
|
method: "GET";
|
|
2876
2876
|
path: "/datasets/:datasetId/experiments/:experimentId";
|
|
2877
2877
|
responseType: "json";
|
|
2878
|
-
streamFormat?:
|
|
2878
|
+
streamFormat?: 'sse' | 'stream';
|
|
2879
2879
|
sseFlushOnConnect?: boolean;
|
|
2880
2880
|
handler(params: {
|
|
2881
2881
|
datasetId: string;
|
|
@@ -2884,18 +2884,9 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
2884
2884
|
id: string;
|
|
2885
2885
|
datasetId: string | null;
|
|
2886
2886
|
datasetVersion: number | null;
|
|
2887
|
-
targetType: "agent" | "workflow" | "scorer" | "processor" | null;
|
|
2888
|
-
targetId: string | null;
|
|
2889
|
-
status: "running" | "failed" | "pending" | "completed";
|
|
2890
|
-
totalItems: number;
|
|
2891
|
-
succeededCount: number;
|
|
2892
|
-
failedCount: number;
|
|
2893
|
-
skippedCount: number;
|
|
2894
|
-
startedAt: Date | null;
|
|
2895
|
-
completedAt: Date | null;
|
|
2896
|
-
createdAt: Date;
|
|
2897
|
-
updatedAt: Date;
|
|
2898
2887
|
agentVersion?: string | null | undefined;
|
|
2888
|
+
targetType: "agent" | "processor" | "scorer" | "workflow" | null;
|
|
2889
|
+
targetId: string | null;
|
|
2899
2890
|
scorerIds?: string[] | null | undefined;
|
|
2900
2891
|
name?: string | undefined;
|
|
2901
2892
|
description?: string | undefined;
|
|
@@ -2915,6 +2906,15 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
2915
2906
|
comparisonId?: string | null | undefined;
|
|
2916
2907
|
variantId?: string | null | undefined;
|
|
2917
2908
|
trialIndex?: number | null | undefined;
|
|
2909
|
+
status: "completed" | "failed" | "pending" | "running";
|
|
2910
|
+
totalItems: number;
|
|
2911
|
+
succeededCount: number;
|
|
2912
|
+
failedCount: number;
|
|
2913
|
+
skippedCount: number;
|
|
2914
|
+
startedAt: Date | null;
|
|
2915
|
+
completedAt: Date | null;
|
|
2916
|
+
createdAt: Date;
|
|
2917
|
+
updatedAt: Date;
|
|
2918
2918
|
} | null>;
|
|
2919
2919
|
pathParamSchema?: import("zod").ZodType;
|
|
2920
2920
|
queryParamSchema?: import("zod").ZodType;
|
|
@@ -2936,9 +2936,9 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
2936
2936
|
agentVersion: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
2937
2937
|
targetType: import("zod").ZodNullable<import("zod").ZodEnum<{
|
|
2938
2938
|
agent: "agent";
|
|
2939
|
-
workflow: "workflow";
|
|
2940
|
-
scorer: "scorer";
|
|
2941
2939
|
processor: "processor";
|
|
2940
|
+
scorer: "scorer";
|
|
2941
|
+
workflow: "workflow";
|
|
2942
2942
|
}>>;
|
|
2943
2943
|
targetId: import("zod").ZodNullable<import("zod").ZodString>;
|
|
2944
2944
|
scorerIds: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodString>>>;
|
|
@@ -2961,10 +2961,10 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
2961
2961
|
variantId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
2962
2962
|
trialIndex: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
2963
2963
|
status: import("zod").ZodEnum<{
|
|
2964
|
-
|
|
2964
|
+
completed: "completed";
|
|
2965
2965
|
failed: "failed";
|
|
2966
2966
|
pending: "pending";
|
|
2967
|
-
|
|
2967
|
+
running: "running";
|
|
2968
2968
|
}>;
|
|
2969
2969
|
totalItems: import("zod").ZodNumber;
|
|
2970
2970
|
succeededCount: import("zod").ZodNumber;
|
|
@@ -2977,11 +2977,11 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
2977
2977
|
}, import("zod/v4/core").$strip>>> | undefined;
|
|
2978
2978
|
} & {
|
|
2979
2979
|
readonly _mastraSchemaRoute: true;
|
|
2980
|
-
}, Omit<import("@mastra/core/server").ApiRoute, "
|
|
2980
|
+
}, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
|
|
2981
2981
|
method: "GET";
|
|
2982
2982
|
path: "/datasets/:datasetId/experiments/:experimentId/results";
|
|
2983
2983
|
responseType: "json";
|
|
2984
|
-
streamFormat?:
|
|
2984
|
+
streamFormat?: 'sse' | 'stream';
|
|
2985
2985
|
sseFlushOnConnect?: boolean;
|
|
2986
2986
|
handler(params: {
|
|
2987
2987
|
datasetId: string;
|
|
@@ -2998,6 +2998,8 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
2998
2998
|
input: unknown;
|
|
2999
2999
|
output: unknown;
|
|
3000
3000
|
groundTruth: unknown;
|
|
3001
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
3002
|
+
expectedTrajectory?: unknown;
|
|
3001
3003
|
error: {
|
|
3002
3004
|
message: string;
|
|
3003
3005
|
stack?: string | undefined;
|
|
@@ -3006,11 +3008,8 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
3006
3008
|
startedAt: Date;
|
|
3007
3009
|
completedAt: Date;
|
|
3008
3010
|
retryCount: number;
|
|
3009
|
-
traceId: string | null;
|
|
3010
|
-
createdAt: Date;
|
|
3011
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
3012
|
-
expectedTrajectory?: unknown;
|
|
3013
3011
|
attempt?: number | undefined;
|
|
3012
|
+
traceId: string | null;
|
|
3014
3013
|
status?: "complete" | "needs-review" | "reviewed" | null | undefined;
|
|
3015
3014
|
tags?: string[] | null | undefined;
|
|
3016
3015
|
comment?: string | null | undefined;
|
|
@@ -3030,11 +3029,12 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
3030
3029
|
args: unknown;
|
|
3031
3030
|
}[];
|
|
3032
3031
|
failure?: {
|
|
3033
|
-
code: "
|
|
3032
|
+
code: "TOOL_MOCK_EXHAUSTED" | "TOOL_MOCK_MISMATCH" | "TOOL_MOCK_NOT_DECLARED";
|
|
3034
3033
|
toolName: string;
|
|
3035
3034
|
args: unknown;
|
|
3036
3035
|
} | undefined;
|
|
3037
3036
|
} | null | undefined;
|
|
3037
|
+
createdAt: Date;
|
|
3038
3038
|
}[];
|
|
3039
3039
|
pagination: {
|
|
3040
3040
|
total: number;
|
|
@@ -3104,8 +3104,8 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
3104
3104
|
}, import("zod/v4/core").$strip>>;
|
|
3105
3105
|
failure: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
3106
3106
|
code: import("zod").ZodEnum<{
|
|
3107
|
-
TOOL_MOCK_MISMATCH: "TOOL_MOCK_MISMATCH";
|
|
3108
3107
|
TOOL_MOCK_EXHAUSTED: "TOOL_MOCK_EXHAUSTED";
|
|
3108
|
+
TOOL_MOCK_MISMATCH: "TOOL_MOCK_MISMATCH";
|
|
3109
3109
|
TOOL_MOCK_NOT_DECLARED: "TOOL_MOCK_NOT_DECLARED";
|
|
3110
3110
|
}>;
|
|
3111
3111
|
toolName: import("zod").ZodString;
|
|
@@ -3123,11 +3123,11 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
3123
3123
|
}, import("zod/v4/core").$strip>> | undefined;
|
|
3124
3124
|
} & {
|
|
3125
3125
|
readonly _mastraSchemaRoute: true;
|
|
3126
|
-
}, Omit<import("@mastra/core/server").ApiRoute, "
|
|
3126
|
+
}, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
|
|
3127
3127
|
method: "PATCH";
|
|
3128
3128
|
path: "/datasets/:datasetId/experiments/:experimentId/results/:resultId";
|
|
3129
3129
|
responseType: "json";
|
|
3130
|
-
streamFormat?:
|
|
3130
|
+
streamFormat?: 'sse' | 'stream';
|
|
3131
3131
|
sseFlushOnConnect?: boolean;
|
|
3132
3132
|
handler(params: {
|
|
3133
3133
|
datasetId: string;
|
|
@@ -3145,6 +3145,8 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
3145
3145
|
input: unknown;
|
|
3146
3146
|
output: unknown;
|
|
3147
3147
|
groundTruth: unknown;
|
|
3148
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
3149
|
+
expectedTrajectory?: unknown;
|
|
3148
3150
|
error: {
|
|
3149
3151
|
message: string;
|
|
3150
3152
|
stack?: string | undefined;
|
|
@@ -3153,11 +3155,8 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
3153
3155
|
startedAt: Date;
|
|
3154
3156
|
completedAt: Date;
|
|
3155
3157
|
retryCount: number;
|
|
3156
|
-
traceId: string | null;
|
|
3157
|
-
createdAt: Date;
|
|
3158
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
3159
|
-
expectedTrajectory?: unknown;
|
|
3160
3158
|
attempt?: number | undefined;
|
|
3159
|
+
traceId: string | null;
|
|
3161
3160
|
status?: "complete" | "needs-review" | "reviewed" | null | undefined;
|
|
3162
3161
|
tags?: string[] | null | undefined;
|
|
3163
3162
|
comment?: string | null | undefined;
|
|
@@ -3177,11 +3176,12 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
3177
3176
|
args: unknown;
|
|
3178
3177
|
}[];
|
|
3179
3178
|
failure?: {
|
|
3180
|
-
code: "
|
|
3179
|
+
code: "TOOL_MOCK_EXHAUSTED" | "TOOL_MOCK_MISMATCH" | "TOOL_MOCK_NOT_DECLARED";
|
|
3181
3180
|
toolName: string;
|
|
3182
3181
|
args: unknown;
|
|
3183
3182
|
} | undefined;
|
|
3184
3183
|
} | null | undefined;
|
|
3184
|
+
createdAt: Date;
|
|
3185
3185
|
}>;
|
|
3186
3186
|
pathParamSchema?: import("zod").ZodType;
|
|
3187
3187
|
queryParamSchema?: import("zod").ZodType;
|
|
@@ -3249,8 +3249,8 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
3249
3249
|
}, import("zod/v4/core").$strip>>;
|
|
3250
3250
|
failure: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
3251
3251
|
code: import("zod").ZodEnum<{
|
|
3252
|
-
TOOL_MOCK_MISMATCH: "TOOL_MOCK_MISMATCH";
|
|
3253
3252
|
TOOL_MOCK_EXHAUSTED: "TOOL_MOCK_EXHAUSTED";
|
|
3253
|
+
TOOL_MOCK_MISMATCH: "TOOL_MOCK_MISMATCH";
|
|
3254
3254
|
TOOL_MOCK_NOT_DECLARED: "TOOL_MOCK_NOT_DECLARED";
|
|
3255
3255
|
}>;
|
|
3256
3256
|
toolName: import("zod").ZodString;
|
|
@@ -3261,11 +3261,11 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
3261
3261
|
}, import("zod/v4/core").$strip>> | undefined;
|
|
3262
3262
|
} & {
|
|
3263
3263
|
readonly _mastraSchemaRoute: true;
|
|
3264
|
-
}, Omit<import("@mastra/core/server").ApiRoute, "
|
|
3264
|
+
}, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
|
|
3265
3265
|
method: "POST";
|
|
3266
3266
|
path: "/datasets/:datasetId/compare";
|
|
3267
3267
|
responseType: "json";
|
|
3268
|
-
streamFormat?:
|
|
3268
|
+
streamFormat?: 'sse' | 'stream';
|
|
3269
3269
|
sseFlushOnConnect?: boolean;
|
|
3270
3270
|
handler(params: {
|
|
3271
3271
|
datasetId: string;
|
|
@@ -3313,11 +3313,11 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
3313
3313
|
}, import("zod/v4/core").$strip>> | undefined;
|
|
3314
3314
|
} & {
|
|
3315
3315
|
readonly _mastraSchemaRoute: true;
|
|
3316
|
-
}, Omit<import("@mastra/core/server").ApiRoute, "
|
|
3316
|
+
}, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
|
|
3317
3317
|
method: "POST";
|
|
3318
3318
|
path: "/datasets/:datasetId/generate-items";
|
|
3319
3319
|
responseType: "json";
|
|
3320
|
-
streamFormat?:
|
|
3320
|
+
streamFormat?: 'sse' | 'stream';
|
|
3321
3321
|
sseFlushOnConnect?: boolean;
|
|
3322
3322
|
handler(params: {
|
|
3323
3323
|
datasetId: string;
|
|
@@ -3365,11 +3365,11 @@ export declare const DATASETS_ROUTES: readonly [Omit<import("@mastra/core/server
|
|
|
3365
3365
|
}, import("zod/v4/core").$strip>> | undefined;
|
|
3366
3366
|
} & {
|
|
3367
3367
|
readonly _mastraSchemaRoute: true;
|
|
3368
|
-
}, Omit<import("@mastra/core/server").ApiRoute, "
|
|
3368
|
+
}, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
|
|
3369
3369
|
method: "POST";
|
|
3370
3370
|
path: "/datasets/cluster-failures";
|
|
3371
3371
|
responseType: "json";
|
|
3372
|
-
streamFormat?:
|
|
3372
|
+
streamFormat?: 'sse' | 'stream';
|
|
3373
3373
|
sseFlushOnConnect?: boolean;
|
|
3374
3374
|
handler(params: {
|
|
3375
3375
|
modelId: string;
|