opik 1.9.26 → 1.9.28
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/index.cjs +11 -11
- package/dist/index.d.cts +18 -8
- package/dist/index.d.ts +18 -8
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1563,12 +1563,10 @@ interface FindFeedbackScoreNames2Request {
|
|
|
1563
1563
|
*/
|
|
1564
1564
|
/**
|
|
1565
1565
|
* @example
|
|
1566
|
-
* {
|
|
1567
|
-
* projectId: "project_id"
|
|
1568
|
-
* }
|
|
1566
|
+
* {}
|
|
1569
1567
|
*/
|
|
1570
1568
|
interface FindTraceThreadsFeedbackScoreNamesRequest {
|
|
1571
|
-
projectId
|
|
1569
|
+
projectId?: string;
|
|
1572
1570
|
}
|
|
1573
1571
|
|
|
1574
1572
|
/**
|
|
@@ -8697,11 +8695,9 @@ declare class Traces {
|
|
|
8697
8695
|
* @param {Traces.RequestOptions} requestOptions - Request-specific configuration.
|
|
8698
8696
|
*
|
|
8699
8697
|
* @example
|
|
8700
|
-
* await client.traces.findTraceThreadsFeedbackScoreNames(
|
|
8701
|
-
* projectId: "project_id"
|
|
8702
|
-
* })
|
|
8698
|
+
* await client.traces.findTraceThreadsFeedbackScoreNames()
|
|
8703
8699
|
*/
|
|
8704
|
-
findTraceThreadsFeedbackScoreNames(request
|
|
8700
|
+
findTraceThreadsFeedbackScoreNames(request?: FindTraceThreadsFeedbackScoreNamesRequest, requestOptions?: Traces.RequestOptions): HttpResponsePromise<string[]>;
|
|
8705
8701
|
private __findTraceThreadsFeedbackScoreNames;
|
|
8706
8702
|
/**
|
|
8707
8703
|
* Get trace stats
|
|
@@ -10022,6 +10018,20 @@ declare class OpikClient {
|
|
|
10022
10018
|
type?: ExperimentType;
|
|
10023
10019
|
optimizationId?: string;
|
|
10024
10020
|
}) => Promise<Experiment>;
|
|
10021
|
+
/**
|
|
10022
|
+
* Updates an experiment by ID
|
|
10023
|
+
*
|
|
10024
|
+
* @param id The ID of the experiment
|
|
10025
|
+
* @param experimentUpdate Object containing the fields to update
|
|
10026
|
+
* @param experimentUpdate.name Optional new name for the experiment
|
|
10027
|
+
* @param experimentUpdate.experimentConfig Optional new configuration for the experiment
|
|
10028
|
+
* @returns Promise that resolves when the experiment is updated
|
|
10029
|
+
* @throws {Error} If id is not provided or if neither name nor experimentConfig is provided
|
|
10030
|
+
*/
|
|
10031
|
+
updateExperiment: (id: string, experimentUpdate: {
|
|
10032
|
+
name?: string;
|
|
10033
|
+
experimentConfig?: Record<string, unknown>;
|
|
10034
|
+
}) => Promise<void>;
|
|
10025
10035
|
/**
|
|
10026
10036
|
* Gets an experiment by its unique ID
|
|
10027
10037
|
*
|
package/dist/index.d.ts
CHANGED
|
@@ -1563,12 +1563,10 @@ interface FindFeedbackScoreNames2Request {
|
|
|
1563
1563
|
*/
|
|
1564
1564
|
/**
|
|
1565
1565
|
* @example
|
|
1566
|
-
* {
|
|
1567
|
-
* projectId: "project_id"
|
|
1568
|
-
* }
|
|
1566
|
+
* {}
|
|
1569
1567
|
*/
|
|
1570
1568
|
interface FindTraceThreadsFeedbackScoreNamesRequest {
|
|
1571
|
-
projectId
|
|
1569
|
+
projectId?: string;
|
|
1572
1570
|
}
|
|
1573
1571
|
|
|
1574
1572
|
/**
|
|
@@ -8697,11 +8695,9 @@ declare class Traces {
|
|
|
8697
8695
|
* @param {Traces.RequestOptions} requestOptions - Request-specific configuration.
|
|
8698
8696
|
*
|
|
8699
8697
|
* @example
|
|
8700
|
-
* await client.traces.findTraceThreadsFeedbackScoreNames(
|
|
8701
|
-
* projectId: "project_id"
|
|
8702
|
-
* })
|
|
8698
|
+
* await client.traces.findTraceThreadsFeedbackScoreNames()
|
|
8703
8699
|
*/
|
|
8704
|
-
findTraceThreadsFeedbackScoreNames(request
|
|
8700
|
+
findTraceThreadsFeedbackScoreNames(request?: FindTraceThreadsFeedbackScoreNamesRequest, requestOptions?: Traces.RequestOptions): HttpResponsePromise<string[]>;
|
|
8705
8701
|
private __findTraceThreadsFeedbackScoreNames;
|
|
8706
8702
|
/**
|
|
8707
8703
|
* Get trace stats
|
|
@@ -10022,6 +10018,20 @@ declare class OpikClient {
|
|
|
10022
10018
|
type?: ExperimentType;
|
|
10023
10019
|
optimizationId?: string;
|
|
10024
10020
|
}) => Promise<Experiment>;
|
|
10021
|
+
/**
|
|
10022
|
+
* Updates an experiment by ID
|
|
10023
|
+
*
|
|
10024
|
+
* @param id The ID of the experiment
|
|
10025
|
+
* @param experimentUpdate Object containing the fields to update
|
|
10026
|
+
* @param experimentUpdate.name Optional new name for the experiment
|
|
10027
|
+
* @param experimentUpdate.experimentConfig Optional new configuration for the experiment
|
|
10028
|
+
* @returns Promise that resolves when the experiment is updated
|
|
10029
|
+
* @throws {Error} If id is not provided or if neither name nor experimentConfig is provided
|
|
10030
|
+
*/
|
|
10031
|
+
updateExperiment: (id: string, experimentUpdate: {
|
|
10032
|
+
name?: string;
|
|
10033
|
+
experimentConfig?: Record<string, unknown>;
|
|
10034
|
+
}) => Promise<void>;
|
|
10025
10035
|
/**
|
|
10026
10036
|
* Gets an experiment by its unique ID
|
|
10027
10037
|
*
|