@databricks/appkit 0.71.0 → 0.72.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/CLAUDE.md +46 -0
- package/NOTICE.md +2 -2
- package/dist/appkit/package.js +1 -1
- package/dist/beta.d.ts +13 -1
- package/dist/beta.js +13 -1
- package/dist/cli/commands/agent/eval.js +112 -0
- package/dist/cli/commands/agent/eval.js.map +1 -0
- package/dist/cli/commands/agent/index.js +18 -0
- package/dist/cli/commands/agent/index.js.map +1 -0
- package/dist/cli/index.js +2 -0
- package/dist/cli/index.js.map +1 -1
- package/dist/connectors/index.js +2 -0
- package/dist/connectors/mlflow/auth.d.ts +18 -0
- package/dist/connectors/mlflow/auth.d.ts.map +1 -0
- package/dist/connectors/mlflow/auth.js +50 -0
- package/dist/connectors/mlflow/auth.js.map +1 -0
- package/dist/connectors/mlflow/client.d.ts +51 -0
- package/dist/connectors/mlflow/client.d.ts.map +1 -0
- package/dist/connectors/mlflow/client.js +93 -0
- package/dist/connectors/mlflow/client.js.map +1 -0
- package/dist/evals/define-eval.d.ts +26 -0
- package/dist/evals/define-eval.d.ts.map +1 -0
- package/dist/evals/define-eval.js +28 -0
- package/dist/evals/define-eval.js.map +1 -0
- package/dist/evals/discover.d.ts +20 -0
- package/dist/evals/discover.d.ts.map +1 -0
- package/dist/evals/discover.js +49 -0
- package/dist/evals/discover.js.map +1 -0
- package/dist/evals/http-driver.d.ts +33 -0
- package/dist/evals/http-driver.d.ts.map +1 -0
- package/dist/evals/http-driver.js +118 -0
- package/dist/evals/http-driver.js.map +1 -0
- package/dist/evals/index.js +13 -0
- package/dist/evals/judge.d.ts +26 -0
- package/dist/evals/judge.d.ts.map +1 -0
- package/dist/evals/judge.js +77 -0
- package/dist/evals/judge.js.map +1 -0
- package/dist/evals/matchers.d.ts +12 -0
- package/dist/evals/matchers.d.ts.map +1 -0
- package/dist/evals/matchers.js +26 -0
- package/dist/evals/matchers.js.map +1 -0
- package/dist/evals/mlflow-report.d.ts +36 -0
- package/dist/evals/mlflow-report.d.ts.map +1 -0
- package/dist/evals/mlflow-report.js +161 -0
- package/dist/evals/mlflow-report.js.map +1 -0
- package/dist/evals/mlflow-run.d.ts +11 -0
- package/dist/evals/mlflow-run.d.ts.map +1 -0
- package/dist/evals/mlflow-run.js +101 -0
- package/dist/evals/mlflow-run.js.map +1 -0
- package/dist/evals/pool.js +24 -0
- package/dist/evals/pool.js.map +1 -0
- package/dist/evals/report.d.ts +25 -0
- package/dist/evals/report.d.ts.map +1 -0
- package/dist/evals/report.js +57 -0
- package/dist/evals/report.js.map +1 -0
- package/dist/evals/run-eval.d.ts +20 -0
- package/dist/evals/run-eval.d.ts.map +1 -0
- package/dist/evals/run-eval.js +144 -0
- package/dist/evals/run-eval.js.map +1 -0
- package/dist/evals/run-evals.d.ts +85 -0
- package/dist/evals/run-evals.d.ts.map +1 -0
- package/dist/evals/run-evals.js +178 -0
- package/dist/evals/run-evals.js.map +1 -0
- package/dist/evals/types.d.ts +127 -0
- package/dist/evals/types.d.ts.map +1 -0
- package/dist/plugins/agents/agents.js +1 -1
- package/dist/shared/src/schemas/manifest.d.ts +33 -33
- package/docs/api/appkit/Class.MlflowClient.md +103 -0
- package/docs/api/appkit/Function.buildAssessments.md +16 -0
- package/docs/api/appkit/Function.configureJudge.md +18 -0
- package/docs/api/appkit/Function.createHttpDriver.md +18 -0
- package/docs/api/appkit/Function.defineEval.md +35 -0
- package/docs/api/appkit/Function.discoverEvalFiles.md +18 -0
- package/docs/api/appkit/Function.equals.md +18 -0
- package/docs/api/appkit/Function.evalGlyph.md +18 -0
- package/docs/api/appkit/Function.formatEvalDetail.md +18 -0
- package/docs/api/appkit/Function.formatEvalHeadline.md +18 -0
- package/docs/api/appkit/Function.formatEvalResults.md +18 -0
- package/docs/api/appkit/Function.formatSummaryLine.md +18 -0
- package/docs/api/appkit/Function.includes.md +18 -0
- package/docs/api/appkit/Function.isJudgeConfigured.md +10 -0
- package/docs/api/appkit/Function.matches.md +18 -0
- package/docs/api/appkit/Function.normalizeHost.md +18 -0
- package/docs/api/appkit/Function.reportToMlflow.md +23 -0
- package/docs/api/appkit/Function.resolveDatabricksAuth.md +16 -0
- package/docs/api/appkit/Function.runEval.md +19 -0
- package/docs/api/appkit/Function.runEvalsInDir.md +18 -0
- package/docs/api/appkit/Function.summarize.md +16 -0
- package/docs/api/appkit/Interface.AssertionHandle.md +54 -0
- package/docs/api/appkit/Interface.AssertionResult.md +48 -0
- package/docs/api/appkit/Interface.Assessment.md +83 -0
- package/docs/api/appkit/Interface.CustomJudgeSpec.md +30 -0
- package/docs/api/appkit/Interface.DatabricksAuth.md +21 -0
- package/docs/api/appkit/Interface.DiscoveredEval.md +36 -0
- package/docs/api/appkit/Interface.DriveResult.md +58 -0
- package/docs/api/appkit/Interface.EvalDefinition.md +46 -0
- package/docs/api/appkit/Interface.EvalDriver.md +22 -0
- package/docs/api/appkit/Interface.EvalResult.md +83 -0
- package/docs/api/appkit/Interface.EvalRunSummary.md +46 -0
- package/docs/api/appkit/Interface.EvalSummary.md +48 -0
- package/docs/api/appkit/Interface.HttpDriverOptions.md +67 -0
- package/docs/api/appkit/Interface.JudgeConfig.md +34 -0
- package/docs/api/appkit/Interface.JudgeScore.md +21 -0
- package/docs/api/appkit/Interface.MatchResult.md +34 -0
- package/docs/api/appkit/Interface.PostResult.md +30 -0
- package/docs/api/appkit/Interface.ReportOutcome.md +53 -0
- package/docs/api/appkit/Interface.ResolveDatabricksAuthOptions.md +34 -0
- package/docs/api/appkit/Interface.RunEvalOptions.md +34 -0
- package/docs/api/appkit/Interface.RunEvalsOptions.md +192 -0
- package/docs/api/appkit/Interface.TestContext.md +208 -0
- package/docs/api/appkit/TypeAlias.EvalProgress.md +26 -0
- package/docs/api/appkit/TypeAlias.Matcher.md +18 -0
- package/docs/api/appkit/TypeAlias.Severity.md +8 -0
- package/docs/api/appkit.md +63 -17
- package/llms.txt +46 -0
- package/package.json +2 -1
- package/sbom.cdx.json +1 -1
|
@@ -12,12 +12,12 @@ declare const resourceFieldEntrySchema: z.ZodObject<{
|
|
|
12
12
|
discovery: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
13
13
|
type: z.ZodLiteral<"kind">;
|
|
14
14
|
resourceKind: z.ZodEnum<{
|
|
15
|
+
volume: "volume";
|
|
15
16
|
warehouse: "warehouse";
|
|
16
17
|
genie_space: "genie_space";
|
|
17
18
|
postgres_project: "postgres_project";
|
|
18
19
|
postgres_branch: "postgres_branch";
|
|
19
20
|
postgres_database: "postgres_database";
|
|
20
|
-
volume: "volume";
|
|
21
21
|
}>;
|
|
22
22
|
select: z.ZodOptional<z.ZodString>;
|
|
23
23
|
display: z.ZodOptional<z.ZodString>;
|
|
@@ -58,12 +58,12 @@ declare const pluginManifestSchema: z.ZodObject<{
|
|
|
58
58
|
discovery: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
59
59
|
type: z.ZodLiteral<"kind">;
|
|
60
60
|
resourceKind: z.ZodEnum<{
|
|
61
|
+
volume: "volume";
|
|
61
62
|
warehouse: "warehouse";
|
|
62
63
|
genie_space: "genie_space";
|
|
63
64
|
postgres_project: "postgres_project";
|
|
64
65
|
postgres_branch: "postgres_branch";
|
|
65
66
|
postgres_database: "postgres_database";
|
|
66
|
-
volume: "volume";
|
|
67
67
|
}>;
|
|
68
68
|
select: z.ZodOptional<z.ZodString>;
|
|
69
69
|
display: z.ZodOptional<z.ZodString>;
|
|
@@ -99,12 +99,12 @@ declare const pluginManifestSchema: z.ZodObject<{
|
|
|
99
99
|
discovery: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
100
100
|
type: z.ZodLiteral<"kind">;
|
|
101
101
|
resourceKind: z.ZodEnum<{
|
|
102
|
+
volume: "volume";
|
|
102
103
|
warehouse: "warehouse";
|
|
103
104
|
genie_space: "genie_space";
|
|
104
105
|
postgres_project: "postgres_project";
|
|
105
106
|
postgres_branch: "postgres_branch";
|
|
106
107
|
postgres_database: "postgres_database";
|
|
107
|
-
volume: "volume";
|
|
108
108
|
}>;
|
|
109
109
|
select: z.ZodOptional<z.ZodString>;
|
|
110
110
|
display: z.ZodOptional<z.ZodString>;
|
|
@@ -139,12 +139,12 @@ declare const pluginManifestSchema: z.ZodObject<{
|
|
|
139
139
|
discovery: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
140
140
|
type: z.ZodLiteral<"kind">;
|
|
141
141
|
resourceKind: z.ZodEnum<{
|
|
142
|
+
volume: "volume";
|
|
142
143
|
warehouse: "warehouse";
|
|
143
144
|
genie_space: "genie_space";
|
|
144
145
|
postgres_project: "postgres_project";
|
|
145
146
|
postgres_branch: "postgres_branch";
|
|
146
147
|
postgres_database: "postgres_database";
|
|
147
|
-
volume: "volume";
|
|
148
148
|
}>;
|
|
149
149
|
select: z.ZodOptional<z.ZodString>;
|
|
150
150
|
display: z.ZodOptional<z.ZodString>;
|
|
@@ -162,9 +162,9 @@ declare const pluginManifestSchema: z.ZodObject<{
|
|
|
162
162
|
type: z.ZodLiteral<"sql_warehouse">;
|
|
163
163
|
}, z.core.$strict>, z.ZodObject<{
|
|
164
164
|
permission: z.ZodEnum<{
|
|
165
|
+
CAN_QUERY: "CAN_QUERY";
|
|
165
166
|
CAN_VIEW: "CAN_VIEW";
|
|
166
167
|
CAN_MANAGE: "CAN_MANAGE";
|
|
167
|
-
CAN_QUERY: "CAN_QUERY";
|
|
168
168
|
}>;
|
|
169
169
|
alias: z.ZodString;
|
|
170
170
|
resourceKey: z.ZodString;
|
|
@@ -180,12 +180,12 @@ declare const pluginManifestSchema: z.ZodObject<{
|
|
|
180
180
|
discovery: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
181
181
|
type: z.ZodLiteral<"kind">;
|
|
182
182
|
resourceKind: z.ZodEnum<{
|
|
183
|
+
volume: "volume";
|
|
183
184
|
warehouse: "warehouse";
|
|
184
185
|
genie_space: "genie_space";
|
|
185
186
|
postgres_project: "postgres_project";
|
|
186
187
|
postgres_branch: "postgres_branch";
|
|
187
188
|
postgres_database: "postgres_database";
|
|
188
|
-
volume: "volume";
|
|
189
189
|
}>;
|
|
190
190
|
select: z.ZodOptional<z.ZodString>;
|
|
191
191
|
display: z.ZodOptional<z.ZodString>;
|
|
@@ -220,12 +220,12 @@ declare const pluginManifestSchema: z.ZodObject<{
|
|
|
220
220
|
discovery: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
221
221
|
type: z.ZodLiteral<"kind">;
|
|
222
222
|
resourceKind: z.ZodEnum<{
|
|
223
|
+
volume: "volume";
|
|
223
224
|
warehouse: "warehouse";
|
|
224
225
|
genie_space: "genie_space";
|
|
225
226
|
postgres_project: "postgres_project";
|
|
226
227
|
postgres_branch: "postgres_branch";
|
|
227
228
|
postgres_database: "postgres_database";
|
|
228
|
-
volume: "volume";
|
|
229
229
|
}>;
|
|
230
230
|
select: z.ZodOptional<z.ZodString>;
|
|
231
231
|
display: z.ZodOptional<z.ZodString>;
|
|
@@ -259,12 +259,12 @@ declare const pluginManifestSchema: z.ZodObject<{
|
|
|
259
259
|
discovery: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
260
260
|
type: z.ZodLiteral<"kind">;
|
|
261
261
|
resourceKind: z.ZodEnum<{
|
|
262
|
+
volume: "volume";
|
|
262
263
|
warehouse: "warehouse";
|
|
263
264
|
genie_space: "genie_space";
|
|
264
265
|
postgres_project: "postgres_project";
|
|
265
266
|
postgres_branch: "postgres_branch";
|
|
266
267
|
postgres_database: "postgres_database";
|
|
267
|
-
volume: "volume";
|
|
268
268
|
}>;
|
|
269
269
|
select: z.ZodOptional<z.ZodString>;
|
|
270
270
|
display: z.ZodOptional<z.ZodString>;
|
|
@@ -298,12 +298,12 @@ declare const pluginManifestSchema: z.ZodObject<{
|
|
|
298
298
|
discovery: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
299
299
|
type: z.ZodLiteral<"kind">;
|
|
300
300
|
resourceKind: z.ZodEnum<{
|
|
301
|
+
volume: "volume";
|
|
301
302
|
warehouse: "warehouse";
|
|
302
303
|
genie_space: "genie_space";
|
|
303
304
|
postgres_project: "postgres_project";
|
|
304
305
|
postgres_branch: "postgres_branch";
|
|
305
306
|
postgres_database: "postgres_database";
|
|
306
|
-
volume: "volume";
|
|
307
307
|
}>;
|
|
308
308
|
select: z.ZodOptional<z.ZodString>;
|
|
309
309
|
display: z.ZodOptional<z.ZodString>;
|
|
@@ -337,12 +337,12 @@ declare const pluginManifestSchema: z.ZodObject<{
|
|
|
337
337
|
discovery: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
338
338
|
type: z.ZodLiteral<"kind">;
|
|
339
339
|
resourceKind: z.ZodEnum<{
|
|
340
|
+
volume: "volume";
|
|
340
341
|
warehouse: "warehouse";
|
|
341
342
|
genie_space: "genie_space";
|
|
342
343
|
postgres_project: "postgres_project";
|
|
343
344
|
postgres_branch: "postgres_branch";
|
|
344
345
|
postgres_database: "postgres_database";
|
|
345
|
-
volume: "volume";
|
|
346
346
|
}>;
|
|
347
347
|
select: z.ZodOptional<z.ZodString>;
|
|
348
348
|
display: z.ZodOptional<z.ZodString>;
|
|
@@ -376,12 +376,12 @@ declare const pluginManifestSchema: z.ZodObject<{
|
|
|
376
376
|
discovery: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
377
377
|
type: z.ZodLiteral<"kind">;
|
|
378
378
|
resourceKind: z.ZodEnum<{
|
|
379
|
+
volume: "volume";
|
|
379
380
|
warehouse: "warehouse";
|
|
380
381
|
genie_space: "genie_space";
|
|
381
382
|
postgres_project: "postgres_project";
|
|
382
383
|
postgres_branch: "postgres_branch";
|
|
383
384
|
postgres_database: "postgres_database";
|
|
384
|
-
volume: "volume";
|
|
385
385
|
}>;
|
|
386
386
|
select: z.ZodOptional<z.ZodString>;
|
|
387
387
|
display: z.ZodOptional<z.ZodString>;
|
|
@@ -415,12 +415,12 @@ declare const pluginManifestSchema: z.ZodObject<{
|
|
|
415
415
|
discovery: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
416
416
|
type: z.ZodLiteral<"kind">;
|
|
417
417
|
resourceKind: z.ZodEnum<{
|
|
418
|
+
volume: "volume";
|
|
418
419
|
warehouse: "warehouse";
|
|
419
420
|
genie_space: "genie_space";
|
|
420
421
|
postgres_project: "postgres_project";
|
|
421
422
|
postgres_branch: "postgres_branch";
|
|
422
423
|
postgres_database: "postgres_database";
|
|
423
|
-
volume: "volume";
|
|
424
424
|
}>;
|
|
425
425
|
select: z.ZodOptional<z.ZodString>;
|
|
426
426
|
display: z.ZodOptional<z.ZodString>;
|
|
@@ -438,10 +438,10 @@ declare const pluginManifestSchema: z.ZodObject<{
|
|
|
438
438
|
type: z.ZodLiteral<"postgres">;
|
|
439
439
|
}, z.core.$strict>, z.ZodObject<{
|
|
440
440
|
permission: z.ZodEnum<{
|
|
441
|
+
CAN_EDIT: "CAN_EDIT";
|
|
441
442
|
CAN_VIEW: "CAN_VIEW";
|
|
442
443
|
CAN_MANAGE: "CAN_MANAGE";
|
|
443
444
|
CAN_RUN: "CAN_RUN";
|
|
444
|
-
CAN_EDIT: "CAN_EDIT";
|
|
445
445
|
}>;
|
|
446
446
|
alias: z.ZodString;
|
|
447
447
|
resourceKey: z.ZodString;
|
|
@@ -457,12 +457,12 @@ declare const pluginManifestSchema: z.ZodObject<{
|
|
|
457
457
|
discovery: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
458
458
|
type: z.ZodLiteral<"kind">;
|
|
459
459
|
resourceKind: z.ZodEnum<{
|
|
460
|
+
volume: "volume";
|
|
460
461
|
warehouse: "warehouse";
|
|
461
462
|
genie_space: "genie_space";
|
|
462
463
|
postgres_project: "postgres_project";
|
|
463
464
|
postgres_branch: "postgres_branch";
|
|
464
465
|
postgres_database: "postgres_database";
|
|
465
|
-
volume: "volume";
|
|
466
466
|
}>;
|
|
467
467
|
select: z.ZodOptional<z.ZodString>;
|
|
468
468
|
display: z.ZodOptional<z.ZodString>;
|
|
@@ -480,8 +480,8 @@ declare const pluginManifestSchema: z.ZodObject<{
|
|
|
480
480
|
type: z.ZodLiteral<"genie_space">;
|
|
481
481
|
}, z.core.$strict>, z.ZodObject<{
|
|
482
482
|
permission: z.ZodEnum<{
|
|
483
|
-
CAN_MANAGE: "CAN_MANAGE";
|
|
484
483
|
CAN_EDIT: "CAN_EDIT";
|
|
484
|
+
CAN_MANAGE: "CAN_MANAGE";
|
|
485
485
|
CAN_READ: "CAN_READ";
|
|
486
486
|
}>;
|
|
487
487
|
alias: z.ZodString;
|
|
@@ -498,12 +498,12 @@ declare const pluginManifestSchema: z.ZodObject<{
|
|
|
498
498
|
discovery: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
499
499
|
type: z.ZodLiteral<"kind">;
|
|
500
500
|
resourceKind: z.ZodEnum<{
|
|
501
|
+
volume: "volume";
|
|
501
502
|
warehouse: "warehouse";
|
|
502
503
|
genie_space: "genie_space";
|
|
503
504
|
postgres_project: "postgres_project";
|
|
504
505
|
postgres_branch: "postgres_branch";
|
|
505
506
|
postgres_database: "postgres_database";
|
|
506
|
-
volume: "volume";
|
|
507
507
|
}>;
|
|
508
508
|
select: z.ZodOptional<z.ZodString>;
|
|
509
509
|
display: z.ZodOptional<z.ZodString>;
|
|
@@ -537,12 +537,12 @@ declare const pluginManifestSchema: z.ZodObject<{
|
|
|
537
537
|
discovery: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
538
538
|
type: z.ZodLiteral<"kind">;
|
|
539
539
|
resourceKind: z.ZodEnum<{
|
|
540
|
+
volume: "volume";
|
|
540
541
|
warehouse: "warehouse";
|
|
541
542
|
genie_space: "genie_space";
|
|
542
543
|
postgres_project: "postgres_project";
|
|
543
544
|
postgres_branch: "postgres_branch";
|
|
544
545
|
postgres_database: "postgres_database";
|
|
545
|
-
volume: "volume";
|
|
546
546
|
}>;
|
|
547
547
|
select: z.ZodOptional<z.ZodString>;
|
|
548
548
|
display: z.ZodOptional<z.ZodString>;
|
|
@@ -579,12 +579,12 @@ declare const pluginManifestSchema: z.ZodObject<{
|
|
|
579
579
|
discovery: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
580
580
|
type: z.ZodLiteral<"kind">;
|
|
581
581
|
resourceKind: z.ZodEnum<{
|
|
582
|
+
volume: "volume";
|
|
582
583
|
warehouse: "warehouse";
|
|
583
584
|
genie_space: "genie_space";
|
|
584
585
|
postgres_project: "postgres_project";
|
|
585
586
|
postgres_branch: "postgres_branch";
|
|
586
587
|
postgres_database: "postgres_database";
|
|
587
|
-
volume: "volume";
|
|
588
588
|
}>;
|
|
589
589
|
select: z.ZodOptional<z.ZodString>;
|
|
590
590
|
display: z.ZodOptional<z.ZodString>;
|
|
@@ -620,12 +620,12 @@ declare const pluginManifestSchema: z.ZodObject<{
|
|
|
620
620
|
discovery: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
621
621
|
type: z.ZodLiteral<"kind">;
|
|
622
622
|
resourceKind: z.ZodEnum<{
|
|
623
|
+
volume: "volume";
|
|
623
624
|
warehouse: "warehouse";
|
|
624
625
|
genie_space: "genie_space";
|
|
625
626
|
postgres_project: "postgres_project";
|
|
626
627
|
postgres_branch: "postgres_branch";
|
|
627
628
|
postgres_database: "postgres_database";
|
|
628
|
-
volume: "volume";
|
|
629
629
|
}>;
|
|
630
630
|
select: z.ZodOptional<z.ZodString>;
|
|
631
631
|
display: z.ZodOptional<z.ZodString>;
|
|
@@ -660,12 +660,12 @@ declare const pluginManifestSchema: z.ZodObject<{
|
|
|
660
660
|
discovery: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
661
661
|
type: z.ZodLiteral<"kind">;
|
|
662
662
|
resourceKind: z.ZodEnum<{
|
|
663
|
+
volume: "volume";
|
|
663
664
|
warehouse: "warehouse";
|
|
664
665
|
genie_space: "genie_space";
|
|
665
666
|
postgres_project: "postgres_project";
|
|
666
667
|
postgres_branch: "postgres_branch";
|
|
667
668
|
postgres_database: "postgres_database";
|
|
668
|
-
volume: "volume";
|
|
669
669
|
}>;
|
|
670
670
|
select: z.ZodOptional<z.ZodString>;
|
|
671
671
|
display: z.ZodOptional<z.ZodString>;
|
|
@@ -683,9 +683,9 @@ declare const pluginManifestSchema: z.ZodObject<{
|
|
|
683
683
|
type: z.ZodLiteral<"sql_warehouse">;
|
|
684
684
|
}, z.core.$strict>, z.ZodObject<{
|
|
685
685
|
permission: z.ZodEnum<{
|
|
686
|
+
CAN_QUERY: "CAN_QUERY";
|
|
686
687
|
CAN_VIEW: "CAN_VIEW";
|
|
687
688
|
CAN_MANAGE: "CAN_MANAGE";
|
|
688
|
-
CAN_QUERY: "CAN_QUERY";
|
|
689
689
|
}>;
|
|
690
690
|
alias: z.ZodString;
|
|
691
691
|
resourceKey: z.ZodString;
|
|
@@ -701,12 +701,12 @@ declare const pluginManifestSchema: z.ZodObject<{
|
|
|
701
701
|
discovery: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
702
702
|
type: z.ZodLiteral<"kind">;
|
|
703
703
|
resourceKind: z.ZodEnum<{
|
|
704
|
+
volume: "volume";
|
|
704
705
|
warehouse: "warehouse";
|
|
705
706
|
genie_space: "genie_space";
|
|
706
707
|
postgres_project: "postgres_project";
|
|
707
708
|
postgres_branch: "postgres_branch";
|
|
708
709
|
postgres_database: "postgres_database";
|
|
709
|
-
volume: "volume";
|
|
710
710
|
}>;
|
|
711
711
|
select: z.ZodOptional<z.ZodString>;
|
|
712
712
|
display: z.ZodOptional<z.ZodString>;
|
|
@@ -741,12 +741,12 @@ declare const pluginManifestSchema: z.ZodObject<{
|
|
|
741
741
|
discovery: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
742
742
|
type: z.ZodLiteral<"kind">;
|
|
743
743
|
resourceKind: z.ZodEnum<{
|
|
744
|
+
volume: "volume";
|
|
744
745
|
warehouse: "warehouse";
|
|
745
746
|
genie_space: "genie_space";
|
|
746
747
|
postgres_project: "postgres_project";
|
|
747
748
|
postgres_branch: "postgres_branch";
|
|
748
749
|
postgres_database: "postgres_database";
|
|
749
|
-
volume: "volume";
|
|
750
750
|
}>;
|
|
751
751
|
select: z.ZodOptional<z.ZodString>;
|
|
752
752
|
display: z.ZodOptional<z.ZodString>;
|
|
@@ -780,12 +780,12 @@ declare const pluginManifestSchema: z.ZodObject<{
|
|
|
780
780
|
discovery: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
781
781
|
type: z.ZodLiteral<"kind">;
|
|
782
782
|
resourceKind: z.ZodEnum<{
|
|
783
|
+
volume: "volume";
|
|
783
784
|
warehouse: "warehouse";
|
|
784
785
|
genie_space: "genie_space";
|
|
785
786
|
postgres_project: "postgres_project";
|
|
786
787
|
postgres_branch: "postgres_branch";
|
|
787
788
|
postgres_database: "postgres_database";
|
|
788
|
-
volume: "volume";
|
|
789
789
|
}>;
|
|
790
790
|
select: z.ZodOptional<z.ZodString>;
|
|
791
791
|
display: z.ZodOptional<z.ZodString>;
|
|
@@ -819,12 +819,12 @@ declare const pluginManifestSchema: z.ZodObject<{
|
|
|
819
819
|
discovery: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
820
820
|
type: z.ZodLiteral<"kind">;
|
|
821
821
|
resourceKind: z.ZodEnum<{
|
|
822
|
+
volume: "volume";
|
|
822
823
|
warehouse: "warehouse";
|
|
823
824
|
genie_space: "genie_space";
|
|
824
825
|
postgres_project: "postgres_project";
|
|
825
826
|
postgres_branch: "postgres_branch";
|
|
826
827
|
postgres_database: "postgres_database";
|
|
827
|
-
volume: "volume";
|
|
828
828
|
}>;
|
|
829
829
|
select: z.ZodOptional<z.ZodString>;
|
|
830
830
|
display: z.ZodOptional<z.ZodString>;
|
|
@@ -858,12 +858,12 @@ declare const pluginManifestSchema: z.ZodObject<{
|
|
|
858
858
|
discovery: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
859
859
|
type: z.ZodLiteral<"kind">;
|
|
860
860
|
resourceKind: z.ZodEnum<{
|
|
861
|
+
volume: "volume";
|
|
861
862
|
warehouse: "warehouse";
|
|
862
863
|
genie_space: "genie_space";
|
|
863
864
|
postgres_project: "postgres_project";
|
|
864
865
|
postgres_branch: "postgres_branch";
|
|
865
866
|
postgres_database: "postgres_database";
|
|
866
|
-
volume: "volume";
|
|
867
867
|
}>;
|
|
868
868
|
select: z.ZodOptional<z.ZodString>;
|
|
869
869
|
display: z.ZodOptional<z.ZodString>;
|
|
@@ -897,12 +897,12 @@ declare const pluginManifestSchema: z.ZodObject<{
|
|
|
897
897
|
discovery: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
898
898
|
type: z.ZodLiteral<"kind">;
|
|
899
899
|
resourceKind: z.ZodEnum<{
|
|
900
|
+
volume: "volume";
|
|
900
901
|
warehouse: "warehouse";
|
|
901
902
|
genie_space: "genie_space";
|
|
902
903
|
postgres_project: "postgres_project";
|
|
903
904
|
postgres_branch: "postgres_branch";
|
|
904
905
|
postgres_database: "postgres_database";
|
|
905
|
-
volume: "volume";
|
|
906
906
|
}>;
|
|
907
907
|
select: z.ZodOptional<z.ZodString>;
|
|
908
908
|
display: z.ZodOptional<z.ZodString>;
|
|
@@ -936,12 +936,12 @@ declare const pluginManifestSchema: z.ZodObject<{
|
|
|
936
936
|
discovery: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
937
937
|
type: z.ZodLiteral<"kind">;
|
|
938
938
|
resourceKind: z.ZodEnum<{
|
|
939
|
+
volume: "volume";
|
|
939
940
|
warehouse: "warehouse";
|
|
940
941
|
genie_space: "genie_space";
|
|
941
942
|
postgres_project: "postgres_project";
|
|
942
943
|
postgres_branch: "postgres_branch";
|
|
943
944
|
postgres_database: "postgres_database";
|
|
944
|
-
volume: "volume";
|
|
945
945
|
}>;
|
|
946
946
|
select: z.ZodOptional<z.ZodString>;
|
|
947
947
|
display: z.ZodOptional<z.ZodString>;
|
|
@@ -959,10 +959,10 @@ declare const pluginManifestSchema: z.ZodObject<{
|
|
|
959
959
|
type: z.ZodLiteral<"postgres">;
|
|
960
960
|
}, z.core.$strict>, z.ZodObject<{
|
|
961
961
|
permission: z.ZodEnum<{
|
|
962
|
+
CAN_EDIT: "CAN_EDIT";
|
|
962
963
|
CAN_VIEW: "CAN_VIEW";
|
|
963
964
|
CAN_MANAGE: "CAN_MANAGE";
|
|
964
965
|
CAN_RUN: "CAN_RUN";
|
|
965
|
-
CAN_EDIT: "CAN_EDIT";
|
|
966
966
|
}>;
|
|
967
967
|
alias: z.ZodString;
|
|
968
968
|
resourceKey: z.ZodString;
|
|
@@ -978,12 +978,12 @@ declare const pluginManifestSchema: z.ZodObject<{
|
|
|
978
978
|
discovery: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
979
979
|
type: z.ZodLiteral<"kind">;
|
|
980
980
|
resourceKind: z.ZodEnum<{
|
|
981
|
+
volume: "volume";
|
|
981
982
|
warehouse: "warehouse";
|
|
982
983
|
genie_space: "genie_space";
|
|
983
984
|
postgres_project: "postgres_project";
|
|
984
985
|
postgres_branch: "postgres_branch";
|
|
985
986
|
postgres_database: "postgres_database";
|
|
986
|
-
volume: "volume";
|
|
987
987
|
}>;
|
|
988
988
|
select: z.ZodOptional<z.ZodString>;
|
|
989
989
|
display: z.ZodOptional<z.ZodString>;
|
|
@@ -1001,8 +1001,8 @@ declare const pluginManifestSchema: z.ZodObject<{
|
|
|
1001
1001
|
type: z.ZodLiteral<"genie_space">;
|
|
1002
1002
|
}, z.core.$strict>, z.ZodObject<{
|
|
1003
1003
|
permission: z.ZodEnum<{
|
|
1004
|
-
CAN_MANAGE: "CAN_MANAGE";
|
|
1005
1004
|
CAN_EDIT: "CAN_EDIT";
|
|
1005
|
+
CAN_MANAGE: "CAN_MANAGE";
|
|
1006
1006
|
CAN_READ: "CAN_READ";
|
|
1007
1007
|
}>;
|
|
1008
1008
|
alias: z.ZodString;
|
|
@@ -1019,12 +1019,12 @@ declare const pluginManifestSchema: z.ZodObject<{
|
|
|
1019
1019
|
discovery: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1020
1020
|
type: z.ZodLiteral<"kind">;
|
|
1021
1021
|
resourceKind: z.ZodEnum<{
|
|
1022
|
+
volume: "volume";
|
|
1022
1023
|
warehouse: "warehouse";
|
|
1023
1024
|
genie_space: "genie_space";
|
|
1024
1025
|
postgres_project: "postgres_project";
|
|
1025
1026
|
postgres_branch: "postgres_branch";
|
|
1026
1027
|
postgres_database: "postgres_database";
|
|
1027
|
-
volume: "volume";
|
|
1028
1028
|
}>;
|
|
1029
1029
|
select: z.ZodOptional<z.ZodString>;
|
|
1030
1030
|
display: z.ZodOptional<z.ZodString>;
|
|
@@ -1058,12 +1058,12 @@ declare const pluginManifestSchema: z.ZodObject<{
|
|
|
1058
1058
|
discovery: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1059
1059
|
type: z.ZodLiteral<"kind">;
|
|
1060
1060
|
resourceKind: z.ZodEnum<{
|
|
1061
|
+
volume: "volume";
|
|
1061
1062
|
warehouse: "warehouse";
|
|
1062
1063
|
genie_space: "genie_space";
|
|
1063
1064
|
postgres_project: "postgres_project";
|
|
1064
1065
|
postgres_branch: "postgres_branch";
|
|
1065
1066
|
postgres_database: "postgres_database";
|
|
1066
|
-
volume: "volume";
|
|
1067
1067
|
}>;
|
|
1068
1068
|
select: z.ZodOptional<z.ZodString>;
|
|
1069
1069
|
display: z.ZodOptional<z.ZodString>;
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
# Class: MlflowClient
|
|
2
|
+
|
|
3
|
+
A thin client over the Databricks workspace REST API, owning the host + bearer token so callers (eval-run creation, assessment writes, the judge's serving endpoint) don't each re-derive URLs or re-attach auth. The host is normalized once at construction.
|
|
4
|
+
|
|
5
|
+
## Constructors[](#constructors "Direct link to Constructors")
|
|
6
|
+
|
|
7
|
+
### Constructor[](#constructor "Direct link to Constructor")
|
|
8
|
+
|
|
9
|
+
```ts
|
|
10
|
+
new MlflowClient(host: string, token: string): MlflowClient;
|
|
11
|
+
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
#### Parameters[](#parameters "Direct link to Parameters")
|
|
15
|
+
|
|
16
|
+
| Parameter | Type |
|
|
17
|
+
| --------- | -------- |
|
|
18
|
+
| `host` | `string` |
|
|
19
|
+
| `token` | `string` |
|
|
20
|
+
|
|
21
|
+
#### Returns[](#returns "Direct link to Returns")
|
|
22
|
+
|
|
23
|
+
`MlflowClient`
|
|
24
|
+
|
|
25
|
+
## Properties[](#properties "Direct link to Properties")
|
|
26
|
+
|
|
27
|
+
### baseUrl[](#baseurl "Direct link to baseUrl")
|
|
28
|
+
|
|
29
|
+
```ts
|
|
30
|
+
readonly baseUrl: string;
|
|
31
|
+
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Normalized workspace base URL (scheme guaranteed, no trailing slash).
|
|
35
|
+
|
|
36
|
+
## Methods[](#methods "Direct link to Methods")
|
|
37
|
+
|
|
38
|
+
### post()[](#post "Direct link to post()")
|
|
39
|
+
|
|
40
|
+
```ts
|
|
41
|
+
post<T>(path: string, body: unknown): Promise<T>;
|
|
42
|
+
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
POST JSON to an MLflow REST endpoint. Returns the parsed JSON body, or throws with the status + response text so callers can surface a precise error. Use for calls whose failure should abort (e.g. `runs/create`).
|
|
46
|
+
|
|
47
|
+
The thrown message embeds up to 500 chars of the upstream response body to aid debugging. That is fine for the dev-facing eval CLI, but do NOT relay it into an end-user HTTP response if this client is reused in a request handler — the body can carry workspace-internal detail.
|
|
48
|
+
|
|
49
|
+
#### Type Parameters[](#type-parameters "Direct link to Type Parameters")
|
|
50
|
+
|
|
51
|
+
| Type Parameter | Default type |
|
|
52
|
+
| -------------- | ------------ |
|
|
53
|
+
| `T` | `unknown` |
|
|
54
|
+
|
|
55
|
+
#### Parameters[](#parameters-1 "Direct link to Parameters")
|
|
56
|
+
|
|
57
|
+
| Parameter | Type |
|
|
58
|
+
| --------- | --------- |
|
|
59
|
+
| `path` | `string` |
|
|
60
|
+
| `body` | `unknown` |
|
|
61
|
+
|
|
62
|
+
#### Returns[](#returns-1 "Direct link to Returns")
|
|
63
|
+
|
|
64
|
+
`Promise`<`T`>
|
|
65
|
+
|
|
66
|
+
***
|
|
67
|
+
|
|
68
|
+
### postResult()[](#postresult "Direct link to postResult()")
|
|
69
|
+
|
|
70
|
+
```ts
|
|
71
|
+
postResult(path: string, body: unknown): Promise<PostResult>;
|
|
72
|
+
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
POST JSON without throwing: returns `{ ok, status, error }` so best-effort writes (e.g. per-trace assessments) can be collected and reported without aborting the run.
|
|
76
|
+
|
|
77
|
+
`error` embeds up to 500 chars of the upstream body — same caveat as [post](#post): fine to log for the dev CLI, don't relay it to end users.
|
|
78
|
+
|
|
79
|
+
#### Parameters[](#parameters-2 "Direct link to Parameters")
|
|
80
|
+
|
|
81
|
+
| Parameter | Type |
|
|
82
|
+
| --------- | --------- |
|
|
83
|
+
| `path` | `string` |
|
|
84
|
+
| `body` | `unknown` |
|
|
85
|
+
|
|
86
|
+
#### Returns[](#returns-2 "Direct link to Returns")
|
|
87
|
+
|
|
88
|
+
`Promise`<[`PostResult`](./docs/api/appkit/Interface.PostResult.md)>
|
|
89
|
+
|
|
90
|
+
***
|
|
91
|
+
|
|
92
|
+
### servingEndpointsUrl()[](#servingendpointsurl "Direct link to servingEndpointsUrl()")
|
|
93
|
+
|
|
94
|
+
```ts
|
|
95
|
+
servingEndpointsUrl(): string;
|
|
96
|
+
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
OpenAI-compatible base URL for Databricks Model Serving, used as the judge's `OPENAI_BASE_URL`. Same workspace host + token as the MLflow REST calls.
|
|
100
|
+
|
|
101
|
+
#### Returns[](#returns-3 "Direct link to Returns")
|
|
102
|
+
|
|
103
|
+
`string`
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# Function: buildAssessments()
|
|
2
|
+
|
|
3
|
+
```ts
|
|
4
|
+
function buildAssessments(result: EvalResult): Assessment[];
|
|
5
|
+
|
|
6
|
+
```
|
|
7
|
+
|
|
8
|
+
## Parameters[](#parameters "Direct link to Parameters")
|
|
9
|
+
|
|
10
|
+
| Parameter | Type |
|
|
11
|
+
| --------- | --------------------------------------------------------------- |
|
|
12
|
+
| `result` | [`EvalResult`](./docs/api/appkit/Interface.EvalResult.md) |
|
|
13
|
+
|
|
14
|
+
## Returns[](#returns "Direct link to Returns")
|
|
15
|
+
|
|
16
|
+
[`Assessment`](./docs/api/appkit/Interface.Assessment.md)\[]
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Function: configureJudge()
|
|
2
|
+
|
|
3
|
+
```ts
|
|
4
|
+
function configureJudge(config: JudgeConfig): Promise<void>;
|
|
5
|
+
|
|
6
|
+
```
|
|
7
|
+
|
|
8
|
+
Configure the judge once. Sets the OpenAI-compatible client env autoevals reads and the default judge model. No-op-safe: on failure, judging stays disabled and [isJudgeConfigured](./docs/api/appkit/Function.isJudgeConfigured.md) returns false.
|
|
9
|
+
|
|
10
|
+
## Parameters[](#parameters "Direct link to Parameters")
|
|
11
|
+
|
|
12
|
+
| Parameter | Type |
|
|
13
|
+
| --------- | ----------------------------------------------------------------- |
|
|
14
|
+
| `config` | [`JudgeConfig`](./docs/api/appkit/Interface.JudgeConfig.md) |
|
|
15
|
+
|
|
16
|
+
## Returns[](#returns "Direct link to Returns")
|
|
17
|
+
|
|
18
|
+
`Promise`<`void`>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Function: createHttpDriver()
|
|
2
|
+
|
|
3
|
+
```ts
|
|
4
|
+
function createHttpDriver(options: HttpDriverOptions): EvalDriver;
|
|
5
|
+
|
|
6
|
+
```
|
|
7
|
+
|
|
8
|
+
Drives an agent by POSTing to a running app's chat endpoint and parsing the SSE response. Keeps the thread id across `send`s so multi-turn evals share a conversation. Agent/stream errors surface as `succeeded: false` rather than throwing, so `t.succeeded()` can assert on them.
|
|
9
|
+
|
|
10
|
+
## Parameters[](#parameters "Direct link to Parameters")
|
|
11
|
+
|
|
12
|
+
| Parameter | Type |
|
|
13
|
+
| --------- | ----------------------------------------------------------------------------- |
|
|
14
|
+
| `options` | [`HttpDriverOptions`](./docs/api/appkit/Interface.HttpDriverOptions.md) |
|
|
15
|
+
|
|
16
|
+
## Returns[](#returns "Direct link to Returns")
|
|
17
|
+
|
|
18
|
+
[`EvalDriver`](./docs/api/appkit/Interface.EvalDriver.md)
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# Function: defineEval()
|
|
2
|
+
|
|
3
|
+
```ts
|
|
4
|
+
function defineEval(def: EvalDefinition): EvalDefinition;
|
|
5
|
+
|
|
6
|
+
```
|
|
7
|
+
|
|
8
|
+
Define an agent eval. Default-export the result from a `server/agents/<id>/evals/*.eval.ts` file.
|
|
9
|
+
|
|
10
|
+
## Parameters[](#parameters "Direct link to Parameters")
|
|
11
|
+
|
|
12
|
+
| Parameter | Type |
|
|
13
|
+
| --------- | ----------------------------------------------------------------------- |
|
|
14
|
+
| `def` | [`EvalDefinition`](./docs/api/appkit/Interface.EvalDefinition.md) |
|
|
15
|
+
|
|
16
|
+
## Returns[](#returns "Direct link to Returns")
|
|
17
|
+
|
|
18
|
+
[`EvalDefinition`](./docs/api/appkit/Interface.EvalDefinition.md)
|
|
19
|
+
|
|
20
|
+
## Example[](#example "Direct link to Example")
|
|
21
|
+
|
|
22
|
+
```ts
|
|
23
|
+
import { defineEval, includes } from "@databricks/appkit/beta";
|
|
24
|
+
|
|
25
|
+
export default defineEval({
|
|
26
|
+
description: "Weather agent basic coverage",
|
|
27
|
+
async test(t) {
|
|
28
|
+
await t.send("What's the weather in Brooklyn?");
|
|
29
|
+
t.succeeded();
|
|
30
|
+
t.calledTool("get_weather");
|
|
31
|
+
t.check(t.reply, includes("Sunny"));
|
|
32
|
+
},
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
```
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Function: discoverEvalFiles()
|
|
2
|
+
|
|
3
|
+
```ts
|
|
4
|
+
function discoverEvalFiles(rootDir: string): DiscoveredEval[];
|
|
5
|
+
|
|
6
|
+
```
|
|
7
|
+
|
|
8
|
+
Discover evals under `<rootDir>/server/agents/<agent>/evals/` — co-located with each agent's `agent.{md,ts}` (same folder-per-agent layout the agents plugin discovers). The agent id is the folder name; the eval id is the file path relative to that evals dir with `.eval.ts` stripped. Sorted + stable.
|
|
9
|
+
|
|
10
|
+
## Parameters[](#parameters "Direct link to Parameters")
|
|
11
|
+
|
|
12
|
+
| Parameter | Type |
|
|
13
|
+
| --------- | -------- |
|
|
14
|
+
| `rootDir` | `string` |
|
|
15
|
+
|
|
16
|
+
## Returns[](#returns "Direct link to Returns")
|
|
17
|
+
|
|
18
|
+
[`DiscoveredEval`](./docs/api/appkit/Interface.DiscoveredEval.md)\[]
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Function: equals()
|
|
2
|
+
|
|
3
|
+
```ts
|
|
4
|
+
function equals(expected: string): Matcher;
|
|
5
|
+
|
|
6
|
+
```
|
|
7
|
+
|
|
8
|
+
Passes when the value equals `expected` exactly.
|
|
9
|
+
|
|
10
|
+
## Parameters[](#parameters "Direct link to Parameters")
|
|
11
|
+
|
|
12
|
+
| Parameter | Type |
|
|
13
|
+
| ---------- | -------- |
|
|
14
|
+
| `expected` | `string` |
|
|
15
|
+
|
|
16
|
+
## Returns[](#returns "Direct link to Returns")
|
|
17
|
+
|
|
18
|
+
[`Matcher`](./docs/api/appkit/TypeAlias.Matcher.md)
|