@llmops/core 0.3.3 → 0.4.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{bun-sqlite-dialect-B5odtOFX.cjs → bun-sqlite-dialect-BOVsPUU1.cjs} +1 -1
- package/dist/db/index.cjs +10 -2
- package/dist/db/index.d.cts +2 -2
- package/dist/db/index.d.mts +2 -2
- package/dist/db/index.mjs +2 -2
- package/dist/{db-CoCzHm6p.mjs → db-Dp8PJzcN.mjs} +412 -4
- package/dist/{db-BF1a1duC.cjs → db-Sv8HPCfx.cjs} +462 -6
- package/dist/{index-yuxB_8bc.d.mts → index-Bxn6FEh6.d.cts} +1188 -113
- package/dist/{index-BP_lIJcD.d.cts → index-DSpTOghh.d.mts} +1188 -113
- package/dist/index.cjs +524 -4
- package/dist/index.d.cts +1098 -14
- package/dist/index.d.mts +1098 -14
- package/dist/index.mjs +514 -5
- package/dist/{neon-dialect-BQsMY2pg.cjs → neon-dialect-CN5kb3Gw.cjs} +1 -1
- package/dist/{neon-dialect-DSmsjY8m.cjs → neon-dialect-DIrx-7Rh.cjs} +1 -1
- package/dist/{node-sqlite-dialect-BGjMUONa.cjs → node-sqlite-dialect-BeXYiIVe.cjs} +1 -1
- package/package.json +2 -2
package/dist/db/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const require_db = require('../db-
|
|
2
|
-
const require_neon_dialect = require('../neon-dialect-
|
|
1
|
+
const require_db = require('../db-Sv8HPCfx.cjs');
|
|
2
|
+
const require_neon_dialect = require('../neon-dialect-CN5kb3Gw.cjs');
|
|
3
3
|
|
|
4
4
|
exports.SCHEMA_METADATA = require_db.SCHEMA_METADATA;
|
|
5
5
|
exports.configVariantsSchema = require_db.configVariantsSchema;
|
|
@@ -7,6 +7,10 @@ exports.configsSchema = require_db.configsSchema;
|
|
|
7
7
|
exports.createDatabase = require_db.createDatabase;
|
|
8
8
|
exports.createDatabaseFromConnection = require_db.createDatabaseFromConnection;
|
|
9
9
|
exports.createNeonDialect = require_neon_dialect.createNeonDialect;
|
|
10
|
+
exports.datasetRecordsSchema = require_db.datasetRecordsSchema;
|
|
11
|
+
exports.datasetVersionRecordsSchema = require_db.datasetVersionRecordsSchema;
|
|
12
|
+
exports.datasetVersionsSchema = require_db.datasetVersionsSchema;
|
|
13
|
+
exports.datasetsSchema = require_db.datasetsSchema;
|
|
10
14
|
exports.detectDatabaseType = require_db.detectDatabaseType;
|
|
11
15
|
exports.environmentSecretsSchema = require_db.environmentSecretsSchema;
|
|
12
16
|
exports.environmentsSchema = require_db.environmentsSchema;
|
|
@@ -17,6 +21,10 @@ exports.llmRequestsSchema = require_db.llmRequestsSchema;
|
|
|
17
21
|
exports.matchType = require_db.matchType;
|
|
18
22
|
exports.parsePartialTableData = require_db.parsePartialTableData;
|
|
19
23
|
exports.parseTableData = require_db.parseTableData;
|
|
24
|
+
exports.playgroundColumnSchema = require_db.playgroundColumnSchema;
|
|
25
|
+
exports.playgroundResultsSchema = require_db.playgroundResultsSchema;
|
|
26
|
+
exports.playgroundRunsSchema = require_db.playgroundRunsSchema;
|
|
27
|
+
exports.playgroundsSchema = require_db.playgroundsSchema;
|
|
20
28
|
exports.providerConfigsSchema = require_db.providerConfigsSchema;
|
|
21
29
|
exports.providerGuardrailOverridesSchema = require_db.providerGuardrailOverridesSchema;
|
|
22
30
|
exports.runAutoMigrations = require_db.runAutoMigrations;
|
package/dist/db/index.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
export { Config, ConfigVariant, ConfigVariantsTable, ConfigsTable, Database, DatabaseConnection, DatabaseOptions, DatabaseType, Environment, EnvironmentSecret, EnvironmentSecretsTable, EnvironmentsTable, GuardrailConfig, GuardrailConfigsTable, GuardrailResult, GuardrailResults, Insertable, LLMRequest, LLMRequestsTable, MigrationOptions, MigrationResult, ProviderConfig, ProviderConfigsTable, ProviderGuardrailOverride, ProviderGuardrailOverridesTable, SCHEMA_METADATA, Selectable, TableName, TargetingRule, TargetingRulesTable, Updateable, Variant, VariantVersion, VariantVersionsTable, VariantsTable, WorkspaceSettings, WorkspaceSettingsTable, configVariantsSchema, configsSchema, createDatabase, createDatabaseFromConnection, createNeonDialect, detectDatabaseType, environmentSecretsSchema, environmentsSchema, executeWithSchema, getMigrations, guardrailConfigsSchema, llmRequestsSchema, matchType, parsePartialTableData, parseTableData, providerConfigsSchema, providerGuardrailOverridesSchema, runAutoMigrations, schemas, targetingRulesSchema, validatePartialTableData, validateTableData, variantVersionsSchema, variantsSchema, workspaceSettingsSchema };
|
|
1
|
+
import { $ as SCHEMA_METADATA, A as DatasetsTable, At as variantsSchema, B as LLMRequest, C as Dataset, Ct as playgroundRunsSchema, D as DatasetVersionRecord, Dt as schemas, E as DatasetVersion, Et as providerGuardrailOverridesSchema, F as GuardrailConfig, G as PlaygroundResultsTable, H as Playground, I as GuardrailConfigsTable, J as PlaygroundsTable, K as PlaygroundRun, L as GuardrailResult, M as EnvironmentSecret, N as EnvironmentSecretsTable, O as DatasetVersionRecordsTable, Ot as targetingRulesSchema, P as EnvironmentsTable, Q as ProviderGuardrailOverridesTable, R as GuardrailResults, S as Database, St as playgroundResultsSchema, T as DatasetRecordsTable, Tt as providerConfigsSchema, U as PlaygroundColumn, V as LLMRequestsTable, W as PlaygroundResult, X as ProviderConfigsTable, Y as ProviderConfig, Z as ProviderGuardrailOverride, _ as validateTableData, _t as environmentSecretsSchema, a as createDatabaseFromConnection, at as Variant, b as ConfigVariantsTable, bt as llmRequestsSchema, c as executeWithSchema, ct as VariantsTable, d as getMigrations, dt as configVariantsSchema, et as Selectable, f as matchType, ft as configsSchema, g as validatePartialTableData, gt as datasetsSchema, h as parseTableData, ht as datasetVersionsSchema, i as createDatabase, it as Updateable, j as Environment, jt as workspaceSettingsSchema, k as DatasetVersionsTable, kt as variantVersionsSchema, l as MigrationOptions, lt as WorkspaceSettings, m as parsePartialTableData, mt as datasetVersionRecordsSchema, n as DatabaseOptions, nt as TargetingRule, o as detectDatabaseType, ot as VariantVersion, p as runAutoMigrations, pt as datasetRecordsSchema, q as PlaygroundRunsTable, r as DatabaseType, rt as TargetingRulesTable, s as createNeonDialect, st as VariantVersionsTable, t as DatabaseConnection, tt as TableName, u as MigrationResult, ut as WorkspaceSettingsTable, v as Config, vt as environmentsSchema, w as DatasetRecord, wt as playgroundsSchema, x as ConfigsTable, xt as playgroundColumnSchema, y as ConfigVariant, yt as guardrailConfigsSchema, z as Insertable } from "../index-Bxn6FEh6.cjs";
|
|
2
|
+
export { Config, ConfigVariant, ConfigVariantsTable, ConfigsTable, Database, DatabaseConnection, DatabaseOptions, DatabaseType, Dataset, DatasetRecord, DatasetRecordsTable, DatasetVersion, DatasetVersionRecord, DatasetVersionRecordsTable, DatasetVersionsTable, DatasetsTable, Environment, EnvironmentSecret, EnvironmentSecretsTable, EnvironmentsTable, GuardrailConfig, GuardrailConfigsTable, GuardrailResult, GuardrailResults, Insertable, LLMRequest, LLMRequestsTable, MigrationOptions, MigrationResult, Playground, PlaygroundColumn, PlaygroundResult, PlaygroundResultsTable, PlaygroundRun, PlaygroundRunsTable, PlaygroundsTable, ProviderConfig, ProviderConfigsTable, ProviderGuardrailOverride, ProviderGuardrailOverridesTable, SCHEMA_METADATA, Selectable, TableName, TargetingRule, TargetingRulesTable, Updateable, Variant, VariantVersion, VariantVersionsTable, VariantsTable, WorkspaceSettings, WorkspaceSettingsTable, configVariantsSchema, configsSchema, createDatabase, createDatabaseFromConnection, createNeonDialect, datasetRecordsSchema, datasetVersionRecordsSchema, datasetVersionsSchema, datasetsSchema, detectDatabaseType, environmentSecretsSchema, environmentsSchema, executeWithSchema, getMigrations, guardrailConfigsSchema, llmRequestsSchema, matchType, parsePartialTableData, parseTableData, playgroundColumnSchema, playgroundResultsSchema, playgroundRunsSchema, playgroundsSchema, providerConfigsSchema, providerGuardrailOverridesSchema, runAutoMigrations, schemas, targetingRulesSchema, validatePartialTableData, validateTableData, variantVersionsSchema, variantsSchema, workspaceSettingsSchema };
|
package/dist/db/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
export { Config, ConfigVariant, ConfigVariantsTable, ConfigsTable, Database, DatabaseConnection, DatabaseOptions, DatabaseType, Environment, EnvironmentSecret, EnvironmentSecretsTable, EnvironmentsTable, GuardrailConfig, GuardrailConfigsTable, GuardrailResult, GuardrailResults, Insertable, LLMRequest, LLMRequestsTable, MigrationOptions, MigrationResult, ProviderConfig, ProviderConfigsTable, ProviderGuardrailOverride, ProviderGuardrailOverridesTable, SCHEMA_METADATA, Selectable, TableName, TargetingRule, TargetingRulesTable, Updateable, Variant, VariantVersion, VariantVersionsTable, VariantsTable, WorkspaceSettings, WorkspaceSettingsTable, configVariantsSchema, configsSchema, createDatabase, createDatabaseFromConnection, createNeonDialect, detectDatabaseType, environmentSecretsSchema, environmentsSchema, executeWithSchema, getMigrations, guardrailConfigsSchema, llmRequestsSchema, matchType, parsePartialTableData, parseTableData, providerConfigsSchema, providerGuardrailOverridesSchema, runAutoMigrations, schemas, targetingRulesSchema, validatePartialTableData, validateTableData, variantVersionsSchema, variantsSchema, workspaceSettingsSchema };
|
|
1
|
+
import { $ as SCHEMA_METADATA, A as DatasetsTable, At as variantsSchema, B as LLMRequest, C as Dataset, Ct as playgroundRunsSchema, D as DatasetVersionRecord, Dt as schemas, E as DatasetVersion, Et as providerGuardrailOverridesSchema, F as GuardrailConfig, G as PlaygroundResultsTable, H as Playground, I as GuardrailConfigsTable, J as PlaygroundsTable, K as PlaygroundRun, L as GuardrailResult, M as EnvironmentSecret, N as EnvironmentSecretsTable, O as DatasetVersionRecordsTable, Ot as targetingRulesSchema, P as EnvironmentsTable, Q as ProviderGuardrailOverridesTable, R as GuardrailResults, S as Database, St as playgroundResultsSchema, T as DatasetRecordsTable, Tt as providerConfigsSchema, U as PlaygroundColumn, V as LLMRequestsTable, W as PlaygroundResult, X as ProviderConfigsTable, Y as ProviderConfig, Z as ProviderGuardrailOverride, _ as validateTableData, _t as environmentSecretsSchema, a as createDatabaseFromConnection, at as Variant, b as ConfigVariantsTable, bt as llmRequestsSchema, c as executeWithSchema, ct as VariantsTable, d as getMigrations, dt as configVariantsSchema, et as Selectable, f as matchType, ft as configsSchema, g as validatePartialTableData, gt as datasetsSchema, h as parseTableData, ht as datasetVersionsSchema, i as createDatabase, it as Updateable, j as Environment, jt as workspaceSettingsSchema, k as DatasetVersionsTable, kt as variantVersionsSchema, l as MigrationOptions, lt as WorkspaceSettings, m as parsePartialTableData, mt as datasetVersionRecordsSchema, n as DatabaseOptions, nt as TargetingRule, o as detectDatabaseType, ot as VariantVersion, p as runAutoMigrations, pt as datasetRecordsSchema, q as PlaygroundRunsTable, r as DatabaseType, rt as TargetingRulesTable, s as createNeonDialect, st as VariantVersionsTable, t as DatabaseConnection, tt as TableName, u as MigrationResult, ut as WorkspaceSettingsTable, v as Config, vt as environmentsSchema, w as DatasetRecord, wt as playgroundsSchema, x as ConfigsTable, xt as playgroundColumnSchema, y as ConfigVariant, yt as guardrailConfigsSchema, z as Insertable } from "../index-DSpTOghh.mjs";
|
|
2
|
+
export { Config, ConfigVariant, ConfigVariantsTable, ConfigsTable, Database, DatabaseConnection, DatabaseOptions, DatabaseType, Dataset, DatasetRecord, DatasetRecordsTable, DatasetVersion, DatasetVersionRecord, DatasetVersionRecordsTable, DatasetVersionsTable, DatasetsTable, Environment, EnvironmentSecret, EnvironmentSecretsTable, EnvironmentsTable, GuardrailConfig, GuardrailConfigsTable, GuardrailResult, GuardrailResults, Insertable, LLMRequest, LLMRequestsTable, MigrationOptions, MigrationResult, Playground, PlaygroundColumn, PlaygroundResult, PlaygroundResultsTable, PlaygroundRun, PlaygroundRunsTable, PlaygroundsTable, ProviderConfig, ProviderConfigsTable, ProviderGuardrailOverride, ProviderGuardrailOverridesTable, SCHEMA_METADATA, Selectable, TableName, TargetingRule, TargetingRulesTable, Updateable, Variant, VariantVersion, VariantVersionsTable, VariantsTable, WorkspaceSettings, WorkspaceSettingsTable, configVariantsSchema, configsSchema, createDatabase, createDatabaseFromConnection, createNeonDialect, datasetRecordsSchema, datasetVersionRecordsSchema, datasetVersionsSchema, datasetsSchema, detectDatabaseType, environmentSecretsSchema, environmentsSchema, executeWithSchema, getMigrations, guardrailConfigsSchema, llmRequestsSchema, matchType, parsePartialTableData, parseTableData, playgroundColumnSchema, playgroundResultsSchema, playgroundRunsSchema, playgroundsSchema, providerConfigsSchema, providerGuardrailOverridesSchema, runAutoMigrations, schemas, targetingRulesSchema, validatePartialTableData, validateTableData, variantVersionsSchema, variantsSchema, workspaceSettingsSchema };
|
package/dist/db/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as
|
|
1
|
+
import { A as schemas, C as llmRequestsSchema, D as playgroundsSchema, E as playgroundRunsSchema, M as variantVersionsSchema, N as variantsSchema, O as providerConfigsSchema, P as workspaceSettingsSchema, S as guardrailConfigsSchema, T as playgroundResultsSchema, _ as datasetVersionRecordsSchema, a as matchType, b as environmentSecretsSchema, d as validatePartialTableData, f as validateTableData, g as datasetRecordsSchema, h as configsSchema, i as getMigrations, j as targetingRulesSchema, k as providerGuardrailOverridesSchema, l as parsePartialTableData, m as configVariantsSchema, n as createDatabaseFromConnection, o as runAutoMigrations, p as SCHEMA_METADATA, r as detectDatabaseType, t as createDatabase, u as parseTableData, v as datasetVersionsSchema, w as playgroundColumnSchema, x as environmentsSchema, y as datasetsSchema } from "../db-Dp8PJzcN.mjs";
|
|
2
2
|
import { n as executeWithSchema, t as createNeonDialect } from "../neon-dialect-DySGBYUi.mjs";
|
|
3
3
|
|
|
4
|
-
export { SCHEMA_METADATA, configVariantsSchema, configsSchema, createDatabase, createDatabaseFromConnection, createNeonDialect, detectDatabaseType, environmentSecretsSchema, environmentsSchema, executeWithSchema, getMigrations, guardrailConfigsSchema, llmRequestsSchema, matchType, parsePartialTableData, parseTableData, providerConfigsSchema, providerGuardrailOverridesSchema, runAutoMigrations, schemas, targetingRulesSchema, validatePartialTableData, validateTableData, variantVersionsSchema, variantsSchema, workspaceSettingsSchema };
|
|
4
|
+
export { SCHEMA_METADATA, configVariantsSchema, configsSchema, createDatabase, createDatabaseFromConnection, createNeonDialect, datasetRecordsSchema, datasetVersionRecordsSchema, datasetVersionsSchema, datasetsSchema, detectDatabaseType, environmentSecretsSchema, environmentsSchema, executeWithSchema, getMigrations, guardrailConfigsSchema, llmRequestsSchema, matchType, parsePartialTableData, parseTableData, playgroundColumnSchema, playgroundResultsSchema, playgroundRunsSchema, playgroundsSchema, providerConfigsSchema, providerGuardrailOverridesSchema, runAutoMigrations, schemas, targetingRulesSchema, validatePartialTableData, validateTableData, variantVersionsSchema, variantsSchema, workspaceSettingsSchema };
|
|
@@ -12942,6 +12942,101 @@ const providerConfigsSchema = object({
|
|
|
12942
12942
|
config: record(string$1(), unknown()),
|
|
12943
12943
|
enabled: boolean$1().default(true)
|
|
12944
12944
|
});
|
|
12945
|
+
const playgroundColumnSchema = object({
|
|
12946
|
+
id: string$1().uuid(),
|
|
12947
|
+
name: string$1(),
|
|
12948
|
+
position: number$1().int().min(0),
|
|
12949
|
+
providerConfigId: union([string$1().uuid(), _null()]),
|
|
12950
|
+
modelName: string$1(),
|
|
12951
|
+
messages: array(object({
|
|
12952
|
+
role: _enum([
|
|
12953
|
+
"system",
|
|
12954
|
+
"user",
|
|
12955
|
+
"assistant"
|
|
12956
|
+
]),
|
|
12957
|
+
content: string$1()
|
|
12958
|
+
})),
|
|
12959
|
+
temperature: number$1().nullable().optional(),
|
|
12960
|
+
maxTokens: number$1().int().nullable().optional(),
|
|
12961
|
+
topP: number$1().nullable().optional(),
|
|
12962
|
+
frequencyPenalty: number$1().nullable().optional(),
|
|
12963
|
+
presencePenalty: number$1().nullable().optional(),
|
|
12964
|
+
configId: string$1().uuid().nullable().optional(),
|
|
12965
|
+
variantId: string$1().uuid().nullable().optional(),
|
|
12966
|
+
variantVersionId: string$1().uuid().nullable().optional()
|
|
12967
|
+
});
|
|
12968
|
+
const playgroundsSchema = object({
|
|
12969
|
+
...baseSchema,
|
|
12970
|
+
name: string$1(),
|
|
12971
|
+
datasetId: string$1().uuid().nullable().optional(),
|
|
12972
|
+
columns: array(playgroundColumnSchema).nullable()
|
|
12973
|
+
});
|
|
12974
|
+
const playgroundRunsSchema = object({
|
|
12975
|
+
...baseSchema,
|
|
12976
|
+
playgroundId: string$1().uuid(),
|
|
12977
|
+
datasetId: string$1().uuid().nullable(),
|
|
12978
|
+
datasetVersionId: string$1().uuid().nullable(),
|
|
12979
|
+
status: _enum([
|
|
12980
|
+
"pending",
|
|
12981
|
+
"running",
|
|
12982
|
+
"completed",
|
|
12983
|
+
"failed",
|
|
12984
|
+
"cancelled"
|
|
12985
|
+
]),
|
|
12986
|
+
startedAt: date$1().nullable(),
|
|
12987
|
+
completedAt: date$1().nullable(),
|
|
12988
|
+
totalRecords: number$1().int().default(0),
|
|
12989
|
+
completedRecords: number$1().int().default(0)
|
|
12990
|
+
});
|
|
12991
|
+
const playgroundResultsSchema = object({
|
|
12992
|
+
...baseSchema,
|
|
12993
|
+
runId: string$1().uuid(),
|
|
12994
|
+
columnId: string$1().uuid(),
|
|
12995
|
+
datasetRecordId: string$1().uuid().nullable(),
|
|
12996
|
+
inputVariables: record(string$1(), unknown()),
|
|
12997
|
+
outputContent: string$1().nullable(),
|
|
12998
|
+
status: _enum([
|
|
12999
|
+
"pending",
|
|
13000
|
+
"running",
|
|
13001
|
+
"completed",
|
|
13002
|
+
"failed"
|
|
13003
|
+
]),
|
|
13004
|
+
error: string$1().nullable(),
|
|
13005
|
+
latencyMs: number$1().int().nullable(),
|
|
13006
|
+
promptTokens: number$1().int().nullable(),
|
|
13007
|
+
completionTokens: number$1().int().nullable(),
|
|
13008
|
+
totalTokens: number$1().int().nullable(),
|
|
13009
|
+
cost: number$1().int().nullable()
|
|
13010
|
+
});
|
|
13011
|
+
const datasetsSchema = object({
|
|
13012
|
+
...baseSchema,
|
|
13013
|
+
name: string$1(),
|
|
13014
|
+
description: string$1().nullable().optional(),
|
|
13015
|
+
recordCount: number$1().int().default(0),
|
|
13016
|
+
latestVersionNumber: number$1().int().default(1)
|
|
13017
|
+
});
|
|
13018
|
+
const datasetVersionsSchema = object({
|
|
13019
|
+
...baseSchema,
|
|
13020
|
+
datasetId: string$1().uuid(),
|
|
13021
|
+
versionNumber: number$1().int().min(1),
|
|
13022
|
+
name: string$1().nullable().optional(),
|
|
13023
|
+
description: string$1().nullable().optional(),
|
|
13024
|
+
recordCount: number$1().int().default(0),
|
|
13025
|
+
snapshotHash: string$1()
|
|
13026
|
+
});
|
|
13027
|
+
const datasetRecordsSchema = object({
|
|
13028
|
+
...baseSchema,
|
|
13029
|
+
datasetId: string$1().uuid(),
|
|
13030
|
+
input: record(string$1(), unknown()),
|
|
13031
|
+
expected: record(string$1(), unknown()).nullable().optional(),
|
|
13032
|
+
metadata: record(string$1(), unknown()).default({})
|
|
13033
|
+
});
|
|
13034
|
+
const datasetVersionRecordsSchema = object({
|
|
13035
|
+
...baseSchema,
|
|
13036
|
+
datasetVersionId: string$1().uuid(),
|
|
13037
|
+
datasetRecordId: string$1().uuid(),
|
|
13038
|
+
position: number$1().int().default(0)
|
|
13039
|
+
});
|
|
12945
13040
|
const guardrailConfigsSchema = object({
|
|
12946
13041
|
...baseSchema,
|
|
12947
13042
|
name: string$1(),
|
|
@@ -13303,8 +13398,167 @@ const SCHEMA_METADATA = { tables: {
|
|
|
13303
13398
|
}
|
|
13304
13399
|
}
|
|
13305
13400
|
},
|
|
13306
|
-
|
|
13401
|
+
playgrounds: {
|
|
13307
13402
|
order: 10,
|
|
13403
|
+
schema: playgroundsSchema,
|
|
13404
|
+
fields: {
|
|
13405
|
+
id: {
|
|
13406
|
+
type: "uuid",
|
|
13407
|
+
primaryKey: true
|
|
13408
|
+
},
|
|
13409
|
+
name: { type: "text" },
|
|
13410
|
+
datasetId: {
|
|
13411
|
+
type: "uuid",
|
|
13412
|
+
nullable: true,
|
|
13413
|
+
references: {
|
|
13414
|
+
table: "datasets",
|
|
13415
|
+
column: "id"
|
|
13416
|
+
}
|
|
13417
|
+
},
|
|
13418
|
+
columns: {
|
|
13419
|
+
type: "jsonb",
|
|
13420
|
+
nullable: true
|
|
13421
|
+
},
|
|
13422
|
+
createdAt: {
|
|
13423
|
+
type: "timestamp",
|
|
13424
|
+
default: "now()"
|
|
13425
|
+
},
|
|
13426
|
+
updatedAt: {
|
|
13427
|
+
type: "timestamp",
|
|
13428
|
+
default: "now()",
|
|
13429
|
+
onUpdate: "now()"
|
|
13430
|
+
}
|
|
13431
|
+
}
|
|
13432
|
+
},
|
|
13433
|
+
playground_runs: {
|
|
13434
|
+
order: 18,
|
|
13435
|
+
schema: playgroundRunsSchema,
|
|
13436
|
+
fields: {
|
|
13437
|
+
id: {
|
|
13438
|
+
type: "uuid",
|
|
13439
|
+
primaryKey: true
|
|
13440
|
+
},
|
|
13441
|
+
playgroundId: {
|
|
13442
|
+
type: "uuid",
|
|
13443
|
+
references: {
|
|
13444
|
+
table: "playgrounds",
|
|
13445
|
+
column: "id"
|
|
13446
|
+
}
|
|
13447
|
+
},
|
|
13448
|
+
datasetId: {
|
|
13449
|
+
type: "uuid",
|
|
13450
|
+
nullable: true,
|
|
13451
|
+
references: {
|
|
13452
|
+
table: "datasets",
|
|
13453
|
+
column: "id"
|
|
13454
|
+
}
|
|
13455
|
+
},
|
|
13456
|
+
datasetVersionId: {
|
|
13457
|
+
type: "uuid",
|
|
13458
|
+
nullable: true,
|
|
13459
|
+
references: {
|
|
13460
|
+
table: "dataset_versions",
|
|
13461
|
+
column: "id"
|
|
13462
|
+
}
|
|
13463
|
+
},
|
|
13464
|
+
status: { type: "text" },
|
|
13465
|
+
startedAt: {
|
|
13466
|
+
type: "timestamp",
|
|
13467
|
+
nullable: true
|
|
13468
|
+
},
|
|
13469
|
+
completedAt: {
|
|
13470
|
+
type: "timestamp",
|
|
13471
|
+
nullable: true
|
|
13472
|
+
},
|
|
13473
|
+
totalRecords: {
|
|
13474
|
+
type: "integer",
|
|
13475
|
+
default: 0
|
|
13476
|
+
},
|
|
13477
|
+
completedRecords: {
|
|
13478
|
+
type: "integer",
|
|
13479
|
+
default: 0
|
|
13480
|
+
},
|
|
13481
|
+
createdAt: {
|
|
13482
|
+
type: "timestamp",
|
|
13483
|
+
default: "now()"
|
|
13484
|
+
},
|
|
13485
|
+
updatedAt: {
|
|
13486
|
+
type: "timestamp",
|
|
13487
|
+
default: "now()",
|
|
13488
|
+
onUpdate: "now()"
|
|
13489
|
+
}
|
|
13490
|
+
}
|
|
13491
|
+
},
|
|
13492
|
+
playground_results: {
|
|
13493
|
+
order: 19,
|
|
13494
|
+
schema: playgroundResultsSchema,
|
|
13495
|
+
fields: {
|
|
13496
|
+
id: {
|
|
13497
|
+
type: "uuid",
|
|
13498
|
+
primaryKey: true
|
|
13499
|
+
},
|
|
13500
|
+
runId: {
|
|
13501
|
+
type: "uuid",
|
|
13502
|
+
references: {
|
|
13503
|
+
table: "playground_runs",
|
|
13504
|
+
column: "id"
|
|
13505
|
+
}
|
|
13506
|
+
},
|
|
13507
|
+
columnId: { type: "uuid" },
|
|
13508
|
+
datasetRecordId: {
|
|
13509
|
+
type: "uuid",
|
|
13510
|
+
nullable: true,
|
|
13511
|
+
references: {
|
|
13512
|
+
table: "dataset_records",
|
|
13513
|
+
column: "id"
|
|
13514
|
+
}
|
|
13515
|
+
},
|
|
13516
|
+
inputVariables: {
|
|
13517
|
+
type: "jsonb",
|
|
13518
|
+
default: "{}"
|
|
13519
|
+
},
|
|
13520
|
+
outputContent: {
|
|
13521
|
+
type: "text",
|
|
13522
|
+
nullable: true
|
|
13523
|
+
},
|
|
13524
|
+
status: { type: "text" },
|
|
13525
|
+
error: {
|
|
13526
|
+
type: "text",
|
|
13527
|
+
nullable: true
|
|
13528
|
+
},
|
|
13529
|
+
latencyMs: {
|
|
13530
|
+
type: "integer",
|
|
13531
|
+
nullable: true
|
|
13532
|
+
},
|
|
13533
|
+
promptTokens: {
|
|
13534
|
+
type: "integer",
|
|
13535
|
+
nullable: true
|
|
13536
|
+
},
|
|
13537
|
+
completionTokens: {
|
|
13538
|
+
type: "integer",
|
|
13539
|
+
nullable: true
|
|
13540
|
+
},
|
|
13541
|
+
totalTokens: {
|
|
13542
|
+
type: "integer",
|
|
13543
|
+
nullable: true
|
|
13544
|
+
},
|
|
13545
|
+
cost: {
|
|
13546
|
+
type: "integer",
|
|
13547
|
+
nullable: true
|
|
13548
|
+
},
|
|
13549
|
+
createdAt: {
|
|
13550
|
+
type: "timestamp",
|
|
13551
|
+
default: "now()"
|
|
13552
|
+
},
|
|
13553
|
+
updatedAt: {
|
|
13554
|
+
type: "timestamp",
|
|
13555
|
+
default: "now()",
|
|
13556
|
+
onUpdate: "now()"
|
|
13557
|
+
}
|
|
13558
|
+
}
|
|
13559
|
+
},
|
|
13560
|
+
guardrail_configs: {
|
|
13561
|
+
order: 11,
|
|
13308
13562
|
schema: guardrailConfigsSchema,
|
|
13309
13563
|
fields: {
|
|
13310
13564
|
id: {
|
|
@@ -13342,8 +13596,154 @@ const SCHEMA_METADATA = { tables: {
|
|
|
13342
13596
|
}
|
|
13343
13597
|
}
|
|
13344
13598
|
},
|
|
13599
|
+
datasets: {
|
|
13600
|
+
order: 12,
|
|
13601
|
+
schema: datasetsSchema,
|
|
13602
|
+
fields: {
|
|
13603
|
+
id: {
|
|
13604
|
+
type: "uuid",
|
|
13605
|
+
primaryKey: true
|
|
13606
|
+
},
|
|
13607
|
+
name: { type: "text" },
|
|
13608
|
+
description: {
|
|
13609
|
+
type: "text",
|
|
13610
|
+
nullable: true
|
|
13611
|
+
},
|
|
13612
|
+
recordCount: {
|
|
13613
|
+
type: "integer",
|
|
13614
|
+
default: 0
|
|
13615
|
+
},
|
|
13616
|
+
latestVersionNumber: {
|
|
13617
|
+
type: "integer",
|
|
13618
|
+
default: 1
|
|
13619
|
+
},
|
|
13620
|
+
createdAt: {
|
|
13621
|
+
type: "timestamp",
|
|
13622
|
+
default: "now()"
|
|
13623
|
+
},
|
|
13624
|
+
updatedAt: {
|
|
13625
|
+
type: "timestamp",
|
|
13626
|
+
default: "now()",
|
|
13627
|
+
onUpdate: "now()"
|
|
13628
|
+
}
|
|
13629
|
+
}
|
|
13630
|
+
},
|
|
13631
|
+
dataset_versions: {
|
|
13632
|
+
order: 13,
|
|
13633
|
+
schema: datasetVersionsSchema,
|
|
13634
|
+
fields: {
|
|
13635
|
+
id: {
|
|
13636
|
+
type: "uuid",
|
|
13637
|
+
primaryKey: true
|
|
13638
|
+
},
|
|
13639
|
+
datasetId: {
|
|
13640
|
+
type: "uuid",
|
|
13641
|
+
references: {
|
|
13642
|
+
table: "datasets",
|
|
13643
|
+
column: "id"
|
|
13644
|
+
}
|
|
13645
|
+
},
|
|
13646
|
+
versionNumber: { type: "integer" },
|
|
13647
|
+
name: {
|
|
13648
|
+
type: "text",
|
|
13649
|
+
nullable: true
|
|
13650
|
+
},
|
|
13651
|
+
description: {
|
|
13652
|
+
type: "text",
|
|
13653
|
+
nullable: true
|
|
13654
|
+
},
|
|
13655
|
+
recordCount: {
|
|
13656
|
+
type: "integer",
|
|
13657
|
+
default: 0
|
|
13658
|
+
},
|
|
13659
|
+
snapshotHash: { type: "text" },
|
|
13660
|
+
createdAt: {
|
|
13661
|
+
type: "timestamp",
|
|
13662
|
+
default: "now()"
|
|
13663
|
+
},
|
|
13664
|
+
updatedAt: {
|
|
13665
|
+
type: "timestamp",
|
|
13666
|
+
default: "now()",
|
|
13667
|
+
onUpdate: "now()"
|
|
13668
|
+
}
|
|
13669
|
+
},
|
|
13670
|
+
uniqueConstraints: [{ columns: ["datasetId", "versionNumber"] }]
|
|
13671
|
+
},
|
|
13672
|
+
dataset_records: {
|
|
13673
|
+
order: 14,
|
|
13674
|
+
schema: datasetRecordsSchema,
|
|
13675
|
+
fields: {
|
|
13676
|
+
id: {
|
|
13677
|
+
type: "uuid",
|
|
13678
|
+
primaryKey: true
|
|
13679
|
+
},
|
|
13680
|
+
datasetId: {
|
|
13681
|
+
type: "uuid",
|
|
13682
|
+
references: {
|
|
13683
|
+
table: "datasets",
|
|
13684
|
+
column: "id"
|
|
13685
|
+
}
|
|
13686
|
+
},
|
|
13687
|
+
input: { type: "jsonb" },
|
|
13688
|
+
expected: {
|
|
13689
|
+
type: "jsonb",
|
|
13690
|
+
nullable: true
|
|
13691
|
+
},
|
|
13692
|
+
metadata: {
|
|
13693
|
+
type: "jsonb",
|
|
13694
|
+
default: "{}"
|
|
13695
|
+
},
|
|
13696
|
+
createdAt: {
|
|
13697
|
+
type: "timestamp",
|
|
13698
|
+
default: "now()"
|
|
13699
|
+
},
|
|
13700
|
+
updatedAt: {
|
|
13701
|
+
type: "timestamp",
|
|
13702
|
+
default: "now()",
|
|
13703
|
+
onUpdate: "now()"
|
|
13704
|
+
}
|
|
13705
|
+
}
|
|
13706
|
+
},
|
|
13707
|
+
dataset_version_records: {
|
|
13708
|
+
order: 15,
|
|
13709
|
+
schema: datasetVersionRecordsSchema,
|
|
13710
|
+
fields: {
|
|
13711
|
+
id: {
|
|
13712
|
+
type: "uuid",
|
|
13713
|
+
primaryKey: true
|
|
13714
|
+
},
|
|
13715
|
+
datasetVersionId: {
|
|
13716
|
+
type: "uuid",
|
|
13717
|
+
references: {
|
|
13718
|
+
table: "dataset_versions",
|
|
13719
|
+
column: "id"
|
|
13720
|
+
}
|
|
13721
|
+
},
|
|
13722
|
+
datasetRecordId: {
|
|
13723
|
+
type: "uuid",
|
|
13724
|
+
references: {
|
|
13725
|
+
table: "dataset_records",
|
|
13726
|
+
column: "id"
|
|
13727
|
+
}
|
|
13728
|
+
},
|
|
13729
|
+
position: {
|
|
13730
|
+
type: "integer",
|
|
13731
|
+
default: 0
|
|
13732
|
+
},
|
|
13733
|
+
createdAt: {
|
|
13734
|
+
type: "timestamp",
|
|
13735
|
+
default: "now()"
|
|
13736
|
+
},
|
|
13737
|
+
updatedAt: {
|
|
13738
|
+
type: "timestamp",
|
|
13739
|
+
default: "now()",
|
|
13740
|
+
onUpdate: "now()"
|
|
13741
|
+
}
|
|
13742
|
+
},
|
|
13743
|
+
uniqueConstraints: [{ columns: ["datasetVersionId", "datasetRecordId"] }]
|
|
13744
|
+
},
|
|
13345
13745
|
provider_guardrail_overrides: {
|
|
13346
|
-
order:
|
|
13746
|
+
order: 16,
|
|
13347
13747
|
schema: providerGuardrailOverridesSchema,
|
|
13348
13748
|
fields: {
|
|
13349
13749
|
id: {
|
|
@@ -13385,7 +13785,7 @@ const SCHEMA_METADATA = { tables: {
|
|
|
13385
13785
|
uniqueConstraints: [{ columns: ["providerConfigId", "guardrailConfigId"] }]
|
|
13386
13786
|
},
|
|
13387
13787
|
llm_requests: {
|
|
13388
|
-
order:
|
|
13788
|
+
order: 17,
|
|
13389
13789
|
schema: llmRequestsSchema,
|
|
13390
13790
|
fields: {
|
|
13391
13791
|
id: {
|
|
@@ -13502,8 +13902,16 @@ const schemas = {
|
|
|
13502
13902
|
targeting_rules: targetingRulesSchema,
|
|
13503
13903
|
workspace_settings: workspaceSettingsSchema,
|
|
13504
13904
|
provider_configs: providerConfigsSchema,
|
|
13905
|
+
playgrounds: playgroundsSchema,
|
|
13906
|
+
playground_columns: playgroundColumnSchema,
|
|
13907
|
+
playground_runs: playgroundRunsSchema,
|
|
13908
|
+
playground_results: playgroundResultsSchema,
|
|
13505
13909
|
guardrail_configs: guardrailConfigsSchema,
|
|
13506
13910
|
provider_guardrail_overrides: providerGuardrailOverridesSchema,
|
|
13911
|
+
datasets: datasetsSchema,
|
|
13912
|
+
dataset_versions: datasetVersionsSchema,
|
|
13913
|
+
dataset_records: datasetRecordsSchema,
|
|
13914
|
+
dataset_version_records: datasetVersionRecordsSchema,
|
|
13507
13915
|
llm_requests: llmRequestsSchema
|
|
13508
13916
|
};
|
|
13509
13917
|
|
|
@@ -13998,4 +14406,4 @@ async function createDatabaseFromConnection(rawConnection, options) {
|
|
|
13998
14406
|
}
|
|
13999
14407
|
|
|
14000
14408
|
//#endregion
|
|
14001
|
-
export {
|
|
14409
|
+
export { schemas as A, literal as B, llmRequestsSchema as C, playgroundsSchema as D, playgroundRunsSchema as E, zod_default as F, union as G, object as H, _enum as I, unknown as K, any as L, variantVersionsSchema as M, variantsSchema as N, providerConfigsSchema as O, workspaceSettingsSchema as P, array as R, guardrailConfigsSchema as S, playgroundResultsSchema as T, record as U, number$1 as V, string$1 as W, datasetVersionRecordsSchema as _, matchType as a, environmentSecretsSchema as b, logger as c, validatePartialTableData as d, validateTableData as f, datasetRecordsSchema as g, configsSchema as h, getMigrations$1 as i, targetingRulesSchema as j, providerGuardrailOverridesSchema as k, parsePartialTableData as l, configVariantsSchema as m, createDatabaseFromConnection as n, runAutoMigrations as o, SCHEMA_METADATA as p, detectDatabaseType as r, getAuthClientOptions as s, createDatabase as t, parseTableData as u, datasetVersionsSchema as v, playgroundColumnSchema as w, environmentsSchema as x, datasetsSchema as y, boolean$1 as z };
|