opik 2.2.88 → 2.2.90
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/chunk-YTUJEARH.js +404 -0
- package/dist/cli.js +1 -1
- package/dist/index.cjs +36 -36
- package/dist/index.d.cts +140 -5
- package/dist/index.d.ts +140 -5
- package/dist/index.js +1 -1
- package/dist/{suite-3BGA2DMO.js → suite-X6X3ADY6.js} +1 -1
- package/package.json +1 -1
- package/dist/chunk-6ZBTLDV3.js +0 -404
package/dist/index.d.ts
CHANGED
|
@@ -3250,6 +3250,7 @@ interface GetTraceThreadsRequest {
|
|
|
3250
3250
|
stripAttachments?: boolean;
|
|
3251
3251
|
filters?: string;
|
|
3252
3252
|
sorting?: string;
|
|
3253
|
+
exclude?: string;
|
|
3253
3254
|
search?: string;
|
|
3254
3255
|
fromTime?: Date;
|
|
3255
3256
|
toTime?: Date;
|
|
@@ -3436,6 +3437,7 @@ declare const TraceSearchStreamRequestPublicExcludeItem: {
|
|
|
3436
3437
|
readonly VisibilityMode: "visibility_mode";
|
|
3437
3438
|
readonly Providers: "providers";
|
|
3438
3439
|
readonly Experiment: "experiment";
|
|
3440
|
+
readonly AnnotationQueues: "annotation_queues";
|
|
3439
3441
|
readonly Source: "source";
|
|
3440
3442
|
readonly Environment: "environment";
|
|
3441
3443
|
};
|
|
@@ -3992,6 +3994,26 @@ declare const AnnotationQueuePublicScope: {
|
|
|
3992
3994
|
};
|
|
3993
3995
|
type AnnotationQueuePublicScope = (typeof AnnotationQueuePublicScope)[keyof typeof AnnotationQueuePublicScope];
|
|
3994
3996
|
|
|
3997
|
+
/**
|
|
3998
|
+
* Annotation queue reference with ID and name
|
|
3999
|
+
*/
|
|
4000
|
+
interface AnnotationQueueReference {
|
|
4001
|
+
/** Annotation queue ID */
|
|
4002
|
+
id: string;
|
|
4003
|
+
/** Annotation queue name */
|
|
4004
|
+
name: string;
|
|
4005
|
+
}
|
|
4006
|
+
|
|
4007
|
+
/**
|
|
4008
|
+
* Annotation queue reference with ID and name
|
|
4009
|
+
*/
|
|
4010
|
+
interface AnnotationQueueReferencePublic {
|
|
4011
|
+
/** Annotation queue ID */
|
|
4012
|
+
id: string;
|
|
4013
|
+
/** Annotation queue name */
|
|
4014
|
+
name: string;
|
|
4015
|
+
}
|
|
4016
|
+
|
|
3995
4017
|
interface AnnotationQueueReviewerPublic {
|
|
3996
4018
|
username?: string;
|
|
3997
4019
|
status?: number;
|
|
@@ -7914,6 +7936,8 @@ interface Trace$1 {
|
|
|
7914
7936
|
/** List of unique provider names from all spans in this trace, sorted alphabetically */
|
|
7915
7937
|
providers?: string[];
|
|
7916
7938
|
experiment?: ExperimentItemReference;
|
|
7939
|
+
/** Annotation queues this trace is currently an item of */
|
|
7940
|
+
annotationQueues?: AnnotationQueueReference[];
|
|
7917
7941
|
source?: TraceSource;
|
|
7918
7942
|
environment?: string;
|
|
7919
7943
|
}
|
|
@@ -8083,6 +8107,8 @@ interface TracePublic {
|
|
|
8083
8107
|
/** List of unique provider names from all spans in this trace, sorted alphabetically */
|
|
8084
8108
|
providers?: string[];
|
|
8085
8109
|
experiment?: ExperimentItemReferencePublic;
|
|
8110
|
+
/** Annotation queues this trace is currently an item of */
|
|
8111
|
+
annotationQueues?: AnnotationQueueReferencePublic[];
|
|
8086
8112
|
source?: TracePublicSource;
|
|
8087
8113
|
environment?: string;
|
|
8088
8114
|
}
|
|
@@ -8127,6 +8153,8 @@ interface TraceThread {
|
|
|
8127
8153
|
usage?: Record<string, number>;
|
|
8128
8154
|
comments?: Comment[];
|
|
8129
8155
|
tags?: string[];
|
|
8156
|
+
/** Annotation queues this thread is currently an item of */
|
|
8157
|
+
annotationQueues?: AnnotationQueueReference[];
|
|
8130
8158
|
lastUpdatedAt?: Date;
|
|
8131
8159
|
lastUpdatedBy?: string;
|
|
8132
8160
|
createdBy?: string;
|
|
@@ -14148,8 +14176,13 @@ declare abstract class BasePrompt {
|
|
|
14148
14176
|
* Fetches and returns complete version history, sorted by creation date (newest first).
|
|
14149
14177
|
* Automatically handles pagination to fetch all versions.
|
|
14150
14178
|
*
|
|
14179
|
+
* To look at a prompt's history without writing code, AI coding assistants connected to the
|
|
14180
|
+
* Opik MCP server can call `read("prompt", name)`, which returns the prompt together with its
|
|
14181
|
+
* versions, or page through them with `list("prompt_version", prompt_id=...)`.
|
|
14182
|
+
*
|
|
14151
14183
|
* @param options - Optional filtering, sorting, and search parameters
|
|
14152
14184
|
* @returns Promise resolving to array of all PromptVersion instances for this prompt
|
|
14185
|
+
* @see https://www.comet.com/docs/opik/mcp-server
|
|
14153
14186
|
*/
|
|
14154
14187
|
getVersions(options?: {
|
|
14155
14188
|
search?: string;
|
|
@@ -14667,9 +14700,13 @@ declare class Dataset<T extends DatasetItemData = DatasetItemData> {
|
|
|
14667
14700
|
/**
|
|
14668
14701
|
* Retrieve a fixed number of dataset items.
|
|
14669
14702
|
*
|
|
14703
|
+
* To look at a dataset's items without writing code, AI coding assistants connected to the
|
|
14704
|
+
* Opik MCP server can call `list("dataset_item", dataset_id=...)`.
|
|
14705
|
+
*
|
|
14670
14706
|
* @param nbSamples The number of samples to retrieve. If not set - all items are returned
|
|
14671
14707
|
* @param lastRetrievedId Optional ID of the last retrieved item for pagination
|
|
14672
14708
|
* @returns A list of objects representing the dataset items
|
|
14709
|
+
* @see https://www.comet.com/docs/opik/mcp-server
|
|
14673
14710
|
*/
|
|
14674
14711
|
getItems(nbSamples?: number, lastRetrievedId?: string): Promise<(T & {
|
|
14675
14712
|
id: string;
|
|
@@ -14677,9 +14714,13 @@ declare class Dataset<T extends DatasetItemData = DatasetItemData> {
|
|
|
14677
14714
|
/**
|
|
14678
14715
|
* Retrieve raw DatasetItem objects with full metadata (evaluators, executionPolicy) preserved.
|
|
14679
14716
|
*
|
|
14717
|
+
* To look at a dataset's items without writing code, AI coding assistants connected to the
|
|
14718
|
+
* Opik MCP server can call `list("dataset_item", dataset_id=...)`.
|
|
14719
|
+
*
|
|
14680
14720
|
* @param nbSamples The number of samples to retrieve. If not set - all items are returned
|
|
14681
14721
|
* @param lastRetrievedId Optional ID of the last retrieved item for pagination
|
|
14682
14722
|
* @returns A list of DatasetItem objects
|
|
14723
|
+
* @see https://www.comet.com/docs/opik/mcp-server
|
|
14683
14724
|
*/
|
|
14684
14725
|
getRawItems(nbSamples?: number, lastRetrievedId?: string): Promise<DatasetItem<T>[]>;
|
|
14685
14726
|
/**
|
|
@@ -14801,10 +14842,12 @@ type EvaluationScoreResult = {
|
|
|
14801
14842
|
/** Optional reason for the score */
|
|
14802
14843
|
reason?: string;
|
|
14803
14844
|
/**
|
|
14804
|
-
* Whether the
|
|
14805
|
-
*
|
|
14806
|
-
*
|
|
14807
|
-
*
|
|
14845
|
+
* Whether the score could not be computed. Set when the task threw (then
|
|
14846
|
+
* `name` equals {@link TASK_ERROR_SCORE_NAME}, a reserved name user-defined
|
|
14847
|
+
* metrics should never produce) or when the metric itself failed (then
|
|
14848
|
+
* `name` is the metric's name and `reason` holds the error message).
|
|
14849
|
+
* Failed scores are excluded from averages. The ones the engine records for
|
|
14850
|
+
* a thrown task or metric are also not logged on the trace.
|
|
14808
14851
|
*/
|
|
14809
14852
|
scoringFailed?: boolean;
|
|
14810
14853
|
/** Optional category name for grouping scores */
|
|
@@ -15068,9 +15111,14 @@ declare class Prompt extends BasePrompt {
|
|
|
15068
15111
|
* or a commit hash for backwards compatibility. Inputs matching `/^v\d+$/`
|
|
15069
15112
|
* are treated as version numbers; anything else is treated as a commit.
|
|
15070
15113
|
*
|
|
15114
|
+
* To look at a prompt's versions without writing code, AI coding assistants connected to the
|
|
15115
|
+
* Opik MCP server can call `read("prompt", name)`, which returns the prompt together with its
|
|
15116
|
+
* versions.
|
|
15117
|
+
*
|
|
15071
15118
|
* @param version - Sequential version (`"v<N>"`) or commit hash
|
|
15072
15119
|
* (commit input is **deprecated** — pass a `"v<N>"` identifier instead).
|
|
15073
15120
|
* @returns Prompt instance representing that version, or null if not found
|
|
15121
|
+
* @see https://www.comet.com/docs/opik/mcp-server
|
|
15074
15122
|
*
|
|
15075
15123
|
* @example
|
|
15076
15124
|
* ```typescript
|
|
@@ -15183,9 +15231,13 @@ declare class TestSuite {
|
|
|
15183
15231
|
* Use this when you need to inspect or forward the stored evaluator
|
|
15184
15232
|
* config or per-item execution policy as-is.
|
|
15185
15233
|
*
|
|
15234
|
+
* To look at a test suite's items without writing code, AI coding assistants connected to the
|
|
15235
|
+
* Opik MCP server can call `list("dataset_item", dataset_id=...)`.
|
|
15236
|
+
*
|
|
15186
15237
|
* @param nbSamples Max items to retrieve. Omit to return all items.
|
|
15187
15238
|
* @param lastRetrievedId Opaque cursor for pagination (last `id` from a previous call).
|
|
15188
15239
|
* @returns Array of {@link RawTestSuiteItem} objects.
|
|
15240
|
+
* @see https://www.comet.com/docs/opik/mcp-server
|
|
15189
15241
|
*/
|
|
15190
15242
|
getRawItems(nbSamples?: number, lastRetrievedId?: string): Promise<RawTestSuiteItem[]>;
|
|
15191
15243
|
getGlobalAssertions(): Promise<string[]>;
|
|
@@ -15483,8 +15535,15 @@ declare class Experiment {
|
|
|
15483
15535
|
/**
|
|
15484
15536
|
* Retrieves experiment items with options to limit results and truncate data
|
|
15485
15537
|
*
|
|
15538
|
+
* To look at an experiment's results without writing code, AI coding assistants connected to
|
|
15539
|
+
* the Opik MCP server can call `list("dataset_item", experiment_ids=[...])`, which shows each
|
|
15540
|
+
* case's scores and compares several experiments case by case. That call is scoped by
|
|
15541
|
+
* experiment ID, while this method reads items by experiment name, so the two differ when
|
|
15542
|
+
* several experiments share a name.
|
|
15543
|
+
*
|
|
15486
15544
|
* @param options Options for retrieving items
|
|
15487
15545
|
* @returns Promise resolving to a list of experiment items
|
|
15546
|
+
* @see https://www.comet.com/docs/opik/mcp-server
|
|
15488
15547
|
*/
|
|
15489
15548
|
getItems(options?: {
|
|
15490
15549
|
maxResults?: number;
|
|
@@ -15627,9 +15686,14 @@ declare class ChatPrompt extends BasePrompt {
|
|
|
15627
15686
|
* or a commit hash for backwards compatibility. Inputs matching `/^v\d+$/`
|
|
15628
15687
|
* are treated as version numbers; anything else is treated as a commit.
|
|
15629
15688
|
*
|
|
15689
|
+
* To look at a prompt's versions without writing code, AI coding assistants connected to the
|
|
15690
|
+
* Opik MCP server can call `read("prompt", name)`, which returns the prompt together with its
|
|
15691
|
+
* versions.
|
|
15692
|
+
*
|
|
15630
15693
|
* @param version - Sequential version (`"v<N>"`) or commit hash
|
|
15631
15694
|
* (commit input is **deprecated** — pass a `"v<N>"` identifier instead).
|
|
15632
15695
|
* @returns ChatPrompt instance representing that version, or null if not found
|
|
15696
|
+
* @see https://www.comet.com/docs/opik/mcp-server
|
|
15633
15697
|
*
|
|
15634
15698
|
* @example
|
|
15635
15699
|
* ```typescript
|
|
@@ -15757,10 +15821,15 @@ declare class OpikClient {
|
|
|
15757
15821
|
/**
|
|
15758
15822
|
* Retrieves an existing dataset by name
|
|
15759
15823
|
*
|
|
15824
|
+
* To look at a dataset without writing code, AI coding assistants connected to the Opik MCP
|
|
15825
|
+
* server can call `read("dataset", name)` and page through its items with
|
|
15826
|
+
* `list("dataset_item", dataset_id=...)`.
|
|
15827
|
+
*
|
|
15760
15828
|
* @param name The name of the dataset to retrieve
|
|
15761
15829
|
* @param projectName Optional project name to scope the dataset lookup. If not provided, uses the client's configured project.
|
|
15762
15830
|
* @returns A Dataset object associated with the specified name
|
|
15763
15831
|
* @throws Error if the dataset doesn't exist
|
|
15832
|
+
* @see https://www.comet.com/docs/opik/mcp-server
|
|
15764
15833
|
*/
|
|
15765
15834
|
getDataset: <T extends DatasetItemData = DatasetItemData>(name: string, projectName?: string) => Promise<Dataset<T>>;
|
|
15766
15835
|
/**
|
|
@@ -15784,9 +15853,14 @@ declare class OpikClient {
|
|
|
15784
15853
|
/**
|
|
15785
15854
|
* Returns all datasets up to the specified limit
|
|
15786
15855
|
*
|
|
15856
|
+
* To look at datasets without writing code, AI coding assistants connected to the Opik MCP
|
|
15857
|
+
* server can call `list("dataset", name=...)`, which lists datasets and test suites filtered
|
|
15858
|
+
* by a name substring.
|
|
15859
|
+
*
|
|
15787
15860
|
* @param maxResults Maximum number of datasets to return (default: 100)
|
|
15788
15861
|
* @param projectName Optional project name to filter datasets by. If not provided, uses the client's configured project.
|
|
15789
15862
|
* @returns List of Dataset objects
|
|
15863
|
+
* @see https://www.comet.com/docs/opik/mcp-server
|
|
15790
15864
|
*/
|
|
15791
15865
|
getDatasets: <T extends DatasetItemData = DatasetItemData>(maxResults?: number, projectName?: string) => Promise<Dataset<T>[]>;
|
|
15792
15866
|
/**
|
|
@@ -15806,10 +15880,15 @@ declare class OpikClient {
|
|
|
15806
15880
|
/**
|
|
15807
15881
|
* Retrieves an existing test suite by name.
|
|
15808
15882
|
*
|
|
15883
|
+
* To look at a test suite without writing code, AI coding assistants connected to the Opik
|
|
15884
|
+
* MCP server can call `read("dataset", name)` and page through its items with
|
|
15885
|
+
* `list("dataset_item", dataset_id=...)`.
|
|
15886
|
+
*
|
|
15809
15887
|
* @param name The name of the test suite to retrieve
|
|
15810
15888
|
* @param projectName Optional project name to scope the lookup. If not provided, uses the client's configured project.
|
|
15811
15889
|
* @returns A TestSuite object
|
|
15812
15890
|
* @throws DatasetNotFoundError if the test suite doesn't exist
|
|
15891
|
+
* @see https://www.comet.com/docs/opik/mcp-server
|
|
15813
15892
|
*/
|
|
15814
15893
|
getTestSuite: (name: string, projectName?: string) => Promise<TestSuite>;
|
|
15815
15894
|
/**
|
|
@@ -15829,9 +15908,14 @@ declare class OpikClient {
|
|
|
15829
15908
|
/**
|
|
15830
15909
|
* Returns all test suites up to the specified limit.
|
|
15831
15910
|
*
|
|
15911
|
+
* To look at test suites without writing code, AI coding assistants connected to the Opik
|
|
15912
|
+
* MCP server can call `list("dataset", name=...)`, which lists datasets and test suites
|
|
15913
|
+
* filtered by a name substring.
|
|
15914
|
+
*
|
|
15832
15915
|
* @param maxResults Maximum number of test suites to return (default: 100)
|
|
15833
15916
|
* @param projectName Optional project name to filter by. If not provided, uses the client's configured project.
|
|
15834
15917
|
* @returns List of TestSuite objects
|
|
15918
|
+
* @see https://www.comet.com/docs/opik/mcp-server
|
|
15835
15919
|
*/
|
|
15836
15920
|
getTestSuites: (maxResults?: number, projectName?: string) => Promise<TestSuite[]>;
|
|
15837
15921
|
private getProjectIdByName;
|
|
@@ -15965,37 +16049,58 @@ declare class OpikClient {
|
|
|
15965
16049
|
/**
|
|
15966
16050
|
* Gets an experiment by its unique ID
|
|
15967
16051
|
*
|
|
16052
|
+
* To look at an experiment without writing code, AI coding assistants connected to the Opik
|
|
16053
|
+
* MCP server can call `read("experiment", id)`, and
|
|
16054
|
+
* `list("dataset_item", experiment_ids=[...])` compares runs case by case.
|
|
16055
|
+
*
|
|
15968
16056
|
* @param id The unique identifier of the experiment
|
|
15969
16057
|
* @returns The Experiment object
|
|
16058
|
+
* @see https://www.comet.com/docs/opik/mcp-server
|
|
15970
16059
|
*/
|
|
15971
16060
|
getExperimentById: (id: string) => Promise<Experiment>;
|
|
15972
16061
|
/**
|
|
15973
16062
|
* Gets experiments by name (can return multiple experiments with the same name)
|
|
15974
16063
|
*
|
|
16064
|
+
* To look at experiments without writing code, AI coding assistants connected to the Opik
|
|
16065
|
+
* MCP server can call `list("experiment", name=...)`, and
|
|
16066
|
+
* `list("dataset_item", experiment_ids=[...])` compares runs case by case.
|
|
16067
|
+
*
|
|
15975
16068
|
* @param name The name of the experiments to retrieve
|
|
15976
16069
|
* @returns A list of Experiment objects with the given name
|
|
16070
|
+
* @see https://www.comet.com/docs/opik/mcp-server
|
|
15977
16071
|
*/
|
|
15978
16072
|
getExperimentsByName: (name: string, projectName?: string) => Promise<Experiment[]>;
|
|
15979
16073
|
/**
|
|
15980
16074
|
* Gets a single experiment by name (returns the first match if multiple exist)
|
|
15981
16075
|
*
|
|
16076
|
+
* To look at an experiment without writing code, AI coding assistants connected to the Opik
|
|
16077
|
+
* MCP server can call `read("experiment", name)`.
|
|
16078
|
+
*
|
|
15982
16079
|
* @param name The name of the experiment to retrieve
|
|
15983
16080
|
* @returns The Experiment object
|
|
16081
|
+
* @see https://www.comet.com/docs/opik/mcp-server
|
|
15984
16082
|
*/
|
|
15985
16083
|
getExperiment: (name: string, projectName?: string) => Promise<Experiment>;
|
|
15986
16084
|
/**
|
|
15987
16085
|
* Gets all experiments associated with a dataset
|
|
15988
16086
|
*
|
|
16087
|
+
* To look at a dataset's experiments without writing code, AI coding assistants connected to
|
|
16088
|
+
* the Opik MCP server can call `list("experiment", filters='dataset_id = "..."')`.
|
|
16089
|
+
*
|
|
15989
16090
|
* @param datasetName The name of the dataset
|
|
15990
16091
|
* @param maxResults Maximum number of experiments to return (default: 100)
|
|
15991
16092
|
* @param projectName Optional project name to scope the dataset lookup. If not provided, uses the client's configured project.
|
|
15992
16093
|
* @returns A list of Experiment objects associated with the dataset
|
|
15993
16094
|
* @throws {DatasetNotFoundError} If the dataset doesn't exist
|
|
16095
|
+
* @see https://www.comet.com/docs/opik/mcp-server
|
|
15994
16096
|
*/
|
|
15995
16097
|
getDatasetExperiments: (datasetName: string, maxResults?: number, projectName?: string) => Promise<Experiment[]>;
|
|
15996
16098
|
/**
|
|
15997
16099
|
* Retrieves all experiments associated with a test suite.
|
|
15998
16100
|
*
|
|
16101
|
+
* To look at a test suite's experiments without writing code, AI coding assistants connected
|
|
16102
|
+
* to the Opik MCP server can call `list("experiment", filters='dataset_id = "..."')`.
|
|
16103
|
+
*
|
|
15999
16104
|
* @param name The name of the test suite
|
|
16000
16105
|
* @param maxResults Maximum number of experiments to return (default: 100)
|
|
16001
16106
|
* @param projectName Optional project name to scope the suite lookup. If not provided, uses the client's configured project.
|
|
@@ -16003,6 +16108,7 @@ declare class OpikClient {
|
|
|
16003
16108
|
* each carrying the suite-specific assertion aggregates (`passRate`, `passedCount`,
|
|
16004
16109
|
* `totalCount`, `assertionScores`) populated by the backend.
|
|
16005
16110
|
* @throws {DatasetNotFoundError} If the test suite doesn't exist
|
|
16111
|
+
* @see https://www.comet.com/docs/opik/mcp-server
|
|
16006
16112
|
*/
|
|
16007
16113
|
getTestSuiteExperiments: (name: string, maxResults?: number, projectName?: string) => Promise<TestSuiteExperiment[]>;
|
|
16008
16114
|
/**
|
|
@@ -16075,6 +16181,10 @@ declare class OpikClient {
|
|
|
16075
16181
|
* default 300s). When called inside a track() context the prompt reference
|
|
16076
16182
|
* is injected into the active trace/span metadata.
|
|
16077
16183
|
*
|
|
16184
|
+
* To look at a prompt without writing code, AI coding assistants connected to the Opik MCP
|
|
16185
|
+
* server can call `read("prompt", name)`, which returns the prompt together with its
|
|
16186
|
+
* version history.
|
|
16187
|
+
*
|
|
16078
16188
|
* @param options - Prompt name and optional version pin or environment
|
|
16079
16189
|
* @param options.name - Name of the prompt
|
|
16080
16190
|
* @param options.version - Sequential version identifier (e.g. `"v3"`). If not
|
|
@@ -16088,6 +16198,7 @@ declare class OpikClient {
|
|
|
16088
16198
|
* @throws Error if both `commit` and `version` are provided, or if `environment` is
|
|
16089
16199
|
* combined with either `commit` or `version`
|
|
16090
16200
|
* @throws PromptTemplateStructureMismatch if prompt exists but is a chat prompt
|
|
16201
|
+
* @see https://www.comet.com/docs/opik/mcp-server
|
|
16091
16202
|
*/
|
|
16092
16203
|
getPrompt: (options: GetPromptOptions) => Promise<Prompt | null>;
|
|
16093
16204
|
/**
|
|
@@ -16096,6 +16207,10 @@ declare class OpikClient {
|
|
|
16096
16207
|
* default 300s). When called inside a track() context the prompt reference
|
|
16097
16208
|
* is injected into the active trace/span metadata.
|
|
16098
16209
|
*
|
|
16210
|
+
* To look at a prompt without writing code, AI coding assistants connected to the Opik MCP
|
|
16211
|
+
* server can call `read("prompt", name)`, which returns the prompt together with its
|
|
16212
|
+
* version history.
|
|
16213
|
+
*
|
|
16099
16214
|
* @param options - Prompt name and optional version pin or environment
|
|
16100
16215
|
* @param options.name - Name of the prompt
|
|
16101
16216
|
* @param options.version - Sequential version identifier (e.g. `"v3"`). If not
|
|
@@ -16109,6 +16224,7 @@ declare class OpikClient {
|
|
|
16109
16224
|
* @throws Error if both `commit` and `version` are provided, or if `environment` is
|
|
16110
16225
|
* combined with either `commit` or `version`
|
|
16111
16226
|
* @throws PromptTemplateStructureMismatch if prompt exists but is a text prompt
|
|
16227
|
+
* @see https://www.comet.com/docs/opik/mcp-server
|
|
16112
16228
|
*
|
|
16113
16229
|
* @example
|
|
16114
16230
|
* ```typescript
|
|
@@ -16123,6 +16239,9 @@ declare class OpikClient {
|
|
|
16123
16239
|
/**
|
|
16124
16240
|
* Searches prompts with optional OQL filtering.
|
|
16125
16241
|
*
|
|
16242
|
+
* To look for prompts without writing code, AI coding assistants connected to the Opik MCP
|
|
16243
|
+
* server can call `list("prompt", name=...)`, which filters by a name substring.
|
|
16244
|
+
*
|
|
16126
16245
|
* @param filterString - Optional OQL filter string to narrow down search
|
|
16127
16246
|
*
|
|
16128
16247
|
* Supported OQL format: `<COLUMN> <OPERATOR> <VALUE> [AND <COLUMN> <OPERATOR> <VALUE>]*`
|
|
@@ -16143,6 +16262,7 @@ declare class OpikClient {
|
|
|
16143
16262
|
*
|
|
16144
16263
|
* @returns Promise resolving to array of matching latest prompt versions
|
|
16145
16264
|
* @throws Error if OQL filter syntax is invalid
|
|
16265
|
+
* @see https://www.comet.com/docs/opik/mcp-server
|
|
16146
16266
|
*
|
|
16147
16267
|
* @example
|
|
16148
16268
|
* ```typescript
|
|
@@ -16202,10 +16322,15 @@ declare class OpikClient {
|
|
|
16202
16322
|
version?: string;
|
|
16203
16323
|
projectName?: string;
|
|
16204
16324
|
}) => Promise<void>;
|
|
16325
|
+
private executeSearch;
|
|
16205
16326
|
/**
|
|
16206
16327
|
* Search for traces in the given project. Optionally, you can wait for at least a certain number of traces
|
|
16207
16328
|
* to be found before returning within the specified timeout.
|
|
16208
16329
|
*
|
|
16330
|
+
* AI coding assistants connected to the Opik MCP server can run this search without writing
|
|
16331
|
+
* code: `list("trace", project_name=..., filters=...)` takes the same OQL as `filterString`,
|
|
16332
|
+
* and also sorts and limits by time (`sort="duration desc"`, `since="24h"`).
|
|
16333
|
+
*
|
|
16209
16334
|
* @param projectName - The name of the project to search in. Defaults to the project configured on the Client.
|
|
16210
16335
|
* @param filterString - Filter using Opik Query Language (OQL). Format: `<COLUMN> <OPERATOR> <VALUE> [AND ...]`
|
|
16211
16336
|
* Common columns: `id`, `name`, `start_time`, `end_time`, `input`, `output`, `status`, `tags`, `metadata.*`, `feedback_scores.*`, `usage.*`
|
|
@@ -16218,6 +16343,7 @@ declare class OpikClient {
|
|
|
16218
16343
|
*
|
|
16219
16344
|
* @returns Promise resolving to array of traces matching the search criteria
|
|
16220
16345
|
* @throws {SearchTimeoutError} If waitForAtLeast traces are not found within the specified timeout
|
|
16346
|
+
* @see https://www.comet.com/docs/opik/mcp-server
|
|
16221
16347
|
*
|
|
16222
16348
|
* @example
|
|
16223
16349
|
* ```typescript
|
|
@@ -16238,7 +16364,6 @@ declare class OpikClient {
|
|
|
16238
16364
|
* });
|
|
16239
16365
|
* ```
|
|
16240
16366
|
*/
|
|
16241
|
-
private executeSearch;
|
|
16242
16367
|
searchTraces: (options?: {
|
|
16243
16368
|
projectName?: string;
|
|
16244
16369
|
filterString?: string;
|
|
@@ -16254,6 +16379,10 @@ declare class OpikClient {
|
|
|
16254
16379
|
* Threads represent conversations or sessions that group related traces together.
|
|
16255
16380
|
* This method allows you to search and filter threads using Opik Query Language (OQL).
|
|
16256
16381
|
*
|
|
16382
|
+
* AI coding assistants connected to the Opik MCP server can run this search without writing
|
|
16383
|
+
* code: `list("thread", project_name=..., filters=...)` takes the same OQL as `filterString`,
|
|
16384
|
+
* and `read("thread", id, project_name=...)` returns one thread's messages.
|
|
16385
|
+
*
|
|
16257
16386
|
* @param options - Search options
|
|
16258
16387
|
* @param options.projectName - Name of the project to search in. Defaults to the client's configured project.
|
|
16259
16388
|
* @param options.filterString - Filter string using Opik Query Language (OQL).
|
|
@@ -16265,6 +16394,7 @@ declare class OpikClient {
|
|
|
16265
16394
|
* @param options.waitForTimeout - Timeout in seconds when using waitForAtLeast (default: 60)
|
|
16266
16395
|
* @returns Promise resolving to an array of threads
|
|
16267
16396
|
* @throws {SearchTimeoutError} If waitForAtLeast is specified and timeout is reached
|
|
16397
|
+
* @see https://www.comet.com/docs/opik/mcp-server
|
|
16268
16398
|
*
|
|
16269
16399
|
* @example
|
|
16270
16400
|
* ```typescript
|
|
@@ -16305,6 +16435,10 @@ declare class OpikClient {
|
|
|
16305
16435
|
* Spans represent individual operations or steps within traces, such as LLM calls or function executions.
|
|
16306
16436
|
* This method allows you to search and filter spans using Opik Query Language (OQL).
|
|
16307
16437
|
*
|
|
16438
|
+
* AI coding assistants connected to the Opik MCP server can run this search without writing
|
|
16439
|
+
* code: `list("span", project_name=..., filters=...)` takes the same OQL as `filterString`,
|
|
16440
|
+
* and `read("trace", trace_id)` returns a trace together with all of its spans.
|
|
16441
|
+
*
|
|
16308
16442
|
* @param options - Search options
|
|
16309
16443
|
* @param options.projectName - Name of the project to search in. Defaults to the client's configured project.
|
|
16310
16444
|
* @param options.filterString - Filter string using Opik Query Language (OQL).
|
|
@@ -16316,6 +16450,7 @@ declare class OpikClient {
|
|
|
16316
16450
|
* @param options.waitForTimeout - Timeout in seconds when using waitForAtLeast (default: 60)
|
|
16317
16451
|
* @returns Promise resolving to an array of spans
|
|
16318
16452
|
* @throws {SearchTimeoutError} If waitForAtLeast is specified and timeout is reached
|
|
16453
|
+
* @see https://www.comet.com/docs/opik/mcp-server
|
|
16319
16454
|
*
|
|
16320
16455
|
* @example
|
|
16321
16456
|
* ```typescript
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Ia}from'./chunk-
|
|
1
|
+
import {Ia}from'./chunk-YTUJEARH.js';export{va as AgentTaskCompletionJudge,ua as AgentToolCorrectnessJudge,ia as AnswerRelevance,ea as BaseLLMJudgeMetric,F as BaseMetric,G as BaseSuiteEvaluator,s as ChatPrompt,xa as ComplianceRiskJudge,l as ConfigMismatchError,k as ConfigNotFoundError,ba as Contains,B as DEFAULT_EXECUTION_POLICY,m as Dataset,i as DatasetVersion,j as DatasetVersionNotFoundError,pa as DemographicBiasJudge,na as DialogueHelpfulnessJudge,aa as ExactMatch,ja as GEval,ka as GEvalPreset,ra as GenderBiasJudge,ha as Hallucination,da as IsJson,T as LLMJudge,K as ModelConfigurationError,I as ModelError,J as ModelGenerationError,fa as Moderation,Fa as OPIK_PARENT_SPAN_ID_HEADER,Ea as OPIK_TRACE_ID_HEADER,Da as Opik,H as OpikBaseModel,t as OpikQueryLanguage,g as OpikSpanType,qa as PoliticalBiasJudge,r as Prompt,n as PromptType,wa as PromptUncertaintyJudge,oa as QARelevanceJudge,ca as RegexMatch,ta as RegionalBiasJudge,sa as ReligiousBiasJudge,S as ResponseSchema,Q as SYSTEM_PROMPT,ma as SummarizationCoherenceJudge,la as SummarizationConsistencyJudge,E as TASK_ERROR_SCORE_NAME,Ba as TestSuite,C as TestSuiteResult,v as ThreadsAnnotationQueue,u as TracesAnnotationQueue,R as USER_PROMPT_TEMPLATE,ga as Usefulness,M as VercelAIChatModel,y as activateRunner,w as agentConfigContext,D as buildSuiteResult,N as createModel,O as createModelFromInstance,V as deserializeEvaluators,L as detectProvider,c as disableLogger,_ as evaluate,$ as evaluatePrompt,Y as evaluateTestSuite,x as flushAll,h as generateId,Ga as getDistributedTraceHeaders,o as getGlobalClient,z as getTrackContext,e as isTracingActive,a as logger,q as resetGlobalClient,f as resetTracingToConfigDefault,ya as resolveEvaluators,W as resolveExecutionPolicy,X as resolveItemExecutionPolicy,P as resolveModel,Z as runTests,U as serializeEvaluators,p as setGlobalClient,b as setLoggerLevel,d as setTracingActive,A as track,za as validateEvaluators,Aa as validateExecutionPolicy,Ha as z}from'./chunk-YTUJEARH.js';Ia();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Ca}from'./chunk-
|
|
1
|
+
import {Ca}from'./chunk-YTUJEARH.js';export{B as DEFAULT_EXECUTION_POLICY,Ba as TestSuite,C as TestSuiteResult,D as buildSuiteResult,V as deserializeEvaluators,Y as evaluateTestSuite,W as resolveExecutionPolicy,X as resolveItemExecutionPolicy,Z as runTests,U as serializeEvaluators}from'./chunk-YTUJEARH.js';Ca();
|