braintrust 0.0.164 → 0.0.165
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/browser.d.mts +2 -0
- package/dist/browser.d.ts +2 -0
- package/dist/browser.js +3 -1
- package/dist/browser.mjs +3 -1
- package/dist/cli.js +2 -2
- package/dist/index.d.mts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +3 -1
- package/dist/index.mjs +3 -1
- package/package.json +2 -2
package/dist/browser.d.mts
CHANGED
|
@@ -463,6 +463,7 @@ type InitDatasetOptions<IsLegacyDataset extends boolean> = FullLoginOptions & {
|
|
|
463
463
|
description?: string;
|
|
464
464
|
version?: string;
|
|
465
465
|
projectId?: string;
|
|
466
|
+
metadata?: Record<string, unknown>;
|
|
466
467
|
state?: BraintrustState;
|
|
467
468
|
} & UseOutputOption<IsLegacyDataset>;
|
|
468
469
|
type FullInitDatasetOptions<IsLegacyDataset extends boolean> = {
|
|
@@ -479,6 +480,7 @@ type FullInitDatasetOptions<IsLegacyDataset extends boolean> = {
|
|
|
479
480
|
* @param options.apiKey The API key to use. If the parameter is not specified, will try to use the `BRAINTRUST_API_KEY` environment variable. If no API key is specified, will prompt the user to login.
|
|
480
481
|
* @param options.orgName (Optional) The name of a specific organization to connect to. This is useful if you belong to multiple.
|
|
481
482
|
* @param options.projectId The id of the project to create the dataset in. This takes precedence over `project` if specified.
|
|
483
|
+
* @param options.metadata A dictionary with additional data about the dataset. The values in `metadata` can be any JSON-serializable type, but its keys must be strings.
|
|
482
484
|
* @param options.useOutput (Deprecated) If true, records will be fetched from this dataset in the legacy format, with the "expected" field renamed to "output". This option will be removed in a future version of Braintrust.
|
|
483
485
|
* @returns The newly created Dataset.
|
|
484
486
|
*/
|
package/dist/browser.d.ts
CHANGED
|
@@ -463,6 +463,7 @@ type InitDatasetOptions<IsLegacyDataset extends boolean> = FullLoginOptions & {
|
|
|
463
463
|
description?: string;
|
|
464
464
|
version?: string;
|
|
465
465
|
projectId?: string;
|
|
466
|
+
metadata?: Record<string, unknown>;
|
|
466
467
|
state?: BraintrustState;
|
|
467
468
|
} & UseOutputOption<IsLegacyDataset>;
|
|
468
469
|
type FullInitDatasetOptions<IsLegacyDataset extends boolean> = {
|
|
@@ -479,6 +480,7 @@ type FullInitDatasetOptions<IsLegacyDataset extends boolean> = {
|
|
|
479
480
|
* @param options.apiKey The API key to use. If the parameter is not specified, will try to use the `BRAINTRUST_API_KEY` environment variable. If no API key is specified, will prompt the user to login.
|
|
480
481
|
* @param options.orgName (Optional) The name of a specific organization to connect to. This is useful if you belong to multiple.
|
|
481
482
|
* @param options.projectId The id of the project to create the dataset in. This takes precedence over `project` if specified.
|
|
483
|
+
* @param options.metadata A dictionary with additional data about the dataset. The values in `metadata` can be any JSON-serializable type, but its keys must be strings.
|
|
482
484
|
* @param options.useOutput (Deprecated) If true, records will be fetched from this dataset in the legacy format, with the "expected" field renamed to "output". This option will be removed in a future version of Braintrust.
|
|
483
485
|
* @returns The newly created Dataset.
|
|
484
486
|
*/
|
package/dist/browser.js
CHANGED
|
@@ -1738,6 +1738,7 @@ function initDataset(projectOrOptions, optionalOptions) {
|
|
|
1738
1738
|
fetch,
|
|
1739
1739
|
forceLogin,
|
|
1740
1740
|
projectId,
|
|
1741
|
+
metadata,
|
|
1741
1742
|
useOutput: legacy,
|
|
1742
1743
|
state: stateArg
|
|
1743
1744
|
} = options;
|
|
@@ -1756,7 +1757,8 @@ function initDataset(projectOrOptions, optionalOptions) {
|
|
|
1756
1757
|
project_name: project,
|
|
1757
1758
|
project_id: projectId,
|
|
1758
1759
|
dataset_name: dataset,
|
|
1759
|
-
description
|
|
1760
|
+
description,
|
|
1761
|
+
metadata
|
|
1760
1762
|
};
|
|
1761
1763
|
const response = await state.appConn().post_json("api/dataset/register", args);
|
|
1762
1764
|
return {
|
package/dist/browser.mjs
CHANGED
|
@@ -1688,6 +1688,7 @@ function initDataset(projectOrOptions, optionalOptions) {
|
|
|
1688
1688
|
fetch,
|
|
1689
1689
|
forceLogin,
|
|
1690
1690
|
projectId,
|
|
1691
|
+
metadata,
|
|
1691
1692
|
useOutput: legacy,
|
|
1692
1693
|
state: stateArg
|
|
1693
1694
|
} = options;
|
|
@@ -1706,7 +1707,8 @@ function initDataset(projectOrOptions, optionalOptions) {
|
|
|
1706
1707
|
project_name: project,
|
|
1707
1708
|
project_id: projectId,
|
|
1708
1709
|
dataset_name: dataset,
|
|
1709
|
-
description
|
|
1710
|
+
description,
|
|
1711
|
+
metadata
|
|
1710
1712
|
};
|
|
1711
1713
|
const response = await state.appConn().post_json("api/dataset/register", args);
|
|
1712
1714
|
return {
|
package/dist/cli.js
CHANGED
|
@@ -1236,7 +1236,7 @@ var require_package = __commonJS({
|
|
|
1236
1236
|
"package.json"(exports2, module2) {
|
|
1237
1237
|
module2.exports = {
|
|
1238
1238
|
name: "braintrust",
|
|
1239
|
-
version: "0.0.
|
|
1239
|
+
version: "0.0.165",
|
|
1240
1240
|
description: "SDK for integrating Braintrust",
|
|
1241
1241
|
repository: {
|
|
1242
1242
|
type: "git",
|
|
@@ -1306,7 +1306,7 @@ var require_package = __commonJS({
|
|
|
1306
1306
|
},
|
|
1307
1307
|
dependencies: {
|
|
1308
1308
|
"@ai-sdk/provider": "^0.0.11",
|
|
1309
|
-
"@braintrust/core": "0.0.
|
|
1309
|
+
"@braintrust/core": "0.0.61",
|
|
1310
1310
|
"@next/env": "^14.2.3",
|
|
1311
1311
|
"@vercel/functions": "^1.0.2",
|
|
1312
1312
|
ai: "^3.2.16",
|
package/dist/index.d.mts
CHANGED
|
@@ -464,6 +464,7 @@ type InitDatasetOptions<IsLegacyDataset extends boolean> = FullLoginOptions & {
|
|
|
464
464
|
description?: string;
|
|
465
465
|
version?: string;
|
|
466
466
|
projectId?: string;
|
|
467
|
+
metadata?: Record<string, unknown>;
|
|
467
468
|
state?: BraintrustState;
|
|
468
469
|
} & UseOutputOption<IsLegacyDataset>;
|
|
469
470
|
type FullInitDatasetOptions<IsLegacyDataset extends boolean> = {
|
|
@@ -480,6 +481,7 @@ type FullInitDatasetOptions<IsLegacyDataset extends boolean> = {
|
|
|
480
481
|
* @param options.apiKey The API key to use. If the parameter is not specified, will try to use the `BRAINTRUST_API_KEY` environment variable. If no API key is specified, will prompt the user to login.
|
|
481
482
|
* @param options.orgName (Optional) The name of a specific organization to connect to. This is useful if you belong to multiple.
|
|
482
483
|
* @param options.projectId The id of the project to create the dataset in. This takes precedence over `project` if specified.
|
|
484
|
+
* @param options.metadata A dictionary with additional data about the dataset. The values in `metadata` can be any JSON-serializable type, but its keys must be strings.
|
|
483
485
|
* @param options.useOutput (Deprecated) If true, records will be fetched from this dataset in the legacy format, with the "expected" field renamed to "output". This option will be removed in a future version of Braintrust.
|
|
484
486
|
* @returns The newly created Dataset.
|
|
485
487
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -464,6 +464,7 @@ type InitDatasetOptions<IsLegacyDataset extends boolean> = FullLoginOptions & {
|
|
|
464
464
|
description?: string;
|
|
465
465
|
version?: string;
|
|
466
466
|
projectId?: string;
|
|
467
|
+
metadata?: Record<string, unknown>;
|
|
467
468
|
state?: BraintrustState;
|
|
468
469
|
} & UseOutputOption<IsLegacyDataset>;
|
|
469
470
|
type FullInitDatasetOptions<IsLegacyDataset extends boolean> = {
|
|
@@ -480,6 +481,7 @@ type FullInitDatasetOptions<IsLegacyDataset extends boolean> = {
|
|
|
480
481
|
* @param options.apiKey The API key to use. If the parameter is not specified, will try to use the `BRAINTRUST_API_KEY` environment variable. If no API key is specified, will prompt the user to login.
|
|
481
482
|
* @param options.orgName (Optional) The name of a specific organization to connect to. This is useful if you belong to multiple.
|
|
482
483
|
* @param options.projectId The id of the project to create the dataset in. This takes precedence over `project` if specified.
|
|
484
|
+
* @param options.metadata A dictionary with additional data about the dataset. The values in `metadata` can be any JSON-serializable type, but its keys must be strings.
|
|
483
485
|
* @param options.useOutput (Deprecated) If true, records will be fetched from this dataset in the legacy format, with the "expected" field renamed to "output". This option will be removed in a future version of Braintrust.
|
|
484
486
|
* @returns The newly created Dataset.
|
|
485
487
|
*/
|
package/dist/index.js
CHANGED
|
@@ -1971,6 +1971,7 @@ function initDataset(projectOrOptions, optionalOptions) {
|
|
|
1971
1971
|
fetch,
|
|
1972
1972
|
forceLogin,
|
|
1973
1973
|
projectId,
|
|
1974
|
+
metadata,
|
|
1974
1975
|
useOutput: legacy,
|
|
1975
1976
|
state: stateArg
|
|
1976
1977
|
} = options;
|
|
@@ -1989,7 +1990,8 @@ function initDataset(projectOrOptions, optionalOptions) {
|
|
|
1989
1990
|
project_name: project,
|
|
1990
1991
|
project_id: projectId,
|
|
1991
1992
|
dataset_name: dataset,
|
|
1992
|
-
description
|
|
1993
|
+
description,
|
|
1994
|
+
metadata
|
|
1993
1995
|
};
|
|
1994
1996
|
const response = await state.appConn().post_json("api/dataset/register", args);
|
|
1995
1997
|
return {
|
package/dist/index.mjs
CHANGED
|
@@ -1907,6 +1907,7 @@ function initDataset(projectOrOptions, optionalOptions) {
|
|
|
1907
1907
|
fetch,
|
|
1908
1908
|
forceLogin,
|
|
1909
1909
|
projectId,
|
|
1910
|
+
metadata,
|
|
1910
1911
|
useOutput: legacy,
|
|
1911
1912
|
state: stateArg
|
|
1912
1913
|
} = options;
|
|
@@ -1925,7 +1926,8 @@ function initDataset(projectOrOptions, optionalOptions) {
|
|
|
1925
1926
|
project_name: project,
|
|
1926
1927
|
project_id: projectId,
|
|
1927
1928
|
dataset_name: dataset,
|
|
1928
|
-
description
|
|
1929
|
+
description,
|
|
1930
|
+
metadata
|
|
1929
1931
|
};
|
|
1930
1932
|
const response = await state.appConn().post_json("api/dataset/register", args);
|
|
1931
1933
|
return {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "braintrust",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.165",
|
|
4
4
|
"description": "SDK for integrating Braintrust",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
},
|
|
71
71
|
"dependencies": {
|
|
72
72
|
"@ai-sdk/provider": "^0.0.11",
|
|
73
|
-
"@braintrust/core": "0.0.
|
|
73
|
+
"@braintrust/core": "0.0.61",
|
|
74
74
|
"@next/env": "^14.2.3",
|
|
75
75
|
"@vercel/functions": "^1.0.2",
|
|
76
76
|
"ai": "^3.2.16",
|