opik 1.5.2 → 1.5.3
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/{Client-CI4BzUKl.d.cts → Client-BaUfACuw.d.cts} +245 -318
- package/dist/{Client-CI4BzUKl.d.ts → Client-BaUfACuw.d.ts} +245 -318
- package/dist/chunk-VKSRW22X.js +4 -0
- package/dist/index.cjs +4 -4
- package/dist/index.d.cts +17 -3
- package/dist/index.d.ts +17 -3
- package/dist/index.js +1 -1
- package/dist/vercel/index.cjs +4 -4
- package/dist/vercel/index.d.cts +1 -1
- package/dist/vercel/index.d.ts +1 -1
- package/dist/vercel/index.js +1 -1
- package/package.json +1 -4
- package/dist/chunk-VUPTLXYD.js +0 -4
|
@@ -34,11 +34,12 @@ interface FindFeedbackDefinitionsRequest {
|
|
|
34
34
|
/**
|
|
35
35
|
* This file was auto-generated by Fern from our API Definition.
|
|
36
36
|
*/
|
|
37
|
-
type ProviderApiKeyWriteProvider = "openai" | "anthropic" | "gemini";
|
|
37
|
+
type ProviderApiKeyWriteProvider = "openai" | "anthropic" | "gemini" | "openrouter";
|
|
38
38
|
declare const ProviderApiKeyWriteProvider: {
|
|
39
39
|
readonly Openai: "openai";
|
|
40
40
|
readonly Anthropic: "anthropic";
|
|
41
41
|
readonly Gemini: "gemini";
|
|
42
|
+
readonly Openrouter: "openrouter";
|
|
42
43
|
};
|
|
43
44
|
|
|
44
45
|
/**
|
|
@@ -834,6 +835,7 @@ interface GetTracesByProjectRequest {
|
|
|
834
835
|
projectId?: string;
|
|
835
836
|
filters?: string;
|
|
836
837
|
truncate?: boolean;
|
|
838
|
+
sorting?: string;
|
|
837
839
|
}
|
|
838
840
|
|
|
839
841
|
/**
|
|
@@ -872,6 +874,7 @@ interface TraceUpdate {
|
|
|
872
874
|
metadata?: JsonNode;
|
|
873
875
|
tags?: string[];
|
|
874
876
|
errorInfo?: ErrorInfo;
|
|
877
|
+
threadId?: string;
|
|
875
878
|
}
|
|
876
879
|
|
|
877
880
|
/**
|
|
@@ -879,10 +882,16 @@ interface TraceUpdate {
|
|
|
879
882
|
*/
|
|
880
883
|
/**
|
|
881
884
|
* @example
|
|
882
|
-
* {
|
|
885
|
+
* {
|
|
886
|
+
* threadIds: ["thread_ids"]
|
|
887
|
+
* }
|
|
883
888
|
*/
|
|
884
|
-
interface
|
|
889
|
+
interface DeleteTraceThreads {
|
|
890
|
+
/** If null, project_id must be provided */
|
|
891
|
+
projectName?: string;
|
|
892
|
+
/** If null, project_name must be provided */
|
|
885
893
|
projectId?: string;
|
|
894
|
+
threadIds: string[];
|
|
886
895
|
}
|
|
887
896
|
|
|
888
897
|
/**
|
|
@@ -892,192 +901,91 @@ interface FindFeedbackScoreNames2Request {
|
|
|
892
901
|
* @example
|
|
893
902
|
* {}
|
|
894
903
|
*/
|
|
895
|
-
interface
|
|
904
|
+
interface FindFeedbackScoreNames2Request {
|
|
896
905
|
projectId?: string;
|
|
897
|
-
projectName?: string;
|
|
898
|
-
filters?: string;
|
|
899
906
|
}
|
|
900
907
|
|
|
901
908
|
/**
|
|
902
909
|
* This file was auto-generated by Fern from our API Definition.
|
|
903
910
|
*/
|
|
904
|
-
interface BiInformation {
|
|
905
|
-
workspaceId?: string;
|
|
906
|
-
user?: string;
|
|
907
|
-
count?: number;
|
|
908
|
-
}
|
|
909
|
-
|
|
910
911
|
/**
|
|
911
|
-
*
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
interface BiInformationResponse {
|
|
915
|
-
biInformation?: BiInformation[];
|
|
916
|
-
}
|
|
917
|
-
|
|
918
|
-
/**
|
|
919
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
920
|
-
*/
|
|
921
|
-
|
|
922
|
-
interface TraceCountResponse {
|
|
923
|
-
workspacesTracesCount?: WorkspaceTraceCount[];
|
|
924
|
-
}
|
|
925
|
-
|
|
926
|
-
/**
|
|
927
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
928
|
-
*/
|
|
929
|
-
interface WorkspaceTraceCount {
|
|
930
|
-
workspace?: string;
|
|
931
|
-
traceCount?: number;
|
|
932
|
-
}
|
|
933
|
-
|
|
934
|
-
/**
|
|
935
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
936
|
-
*/
|
|
937
|
-
type AuthDetailsHolder = Record<string, unknown>;
|
|
938
|
-
|
|
939
|
-
/**
|
|
940
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
912
|
+
* @example
|
|
913
|
+
* {}
|
|
941
914
|
*/
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
variables: Record<string, string>;
|
|
947
|
-
schema: LlmAsJudgeOutputSchema[];
|
|
915
|
+
interface GetTraceStatsRequest {
|
|
916
|
+
projectId?: string;
|
|
917
|
+
projectName?: string;
|
|
918
|
+
filters?: string;
|
|
948
919
|
}
|
|
949
920
|
|
|
950
921
|
/**
|
|
951
922
|
* This file was auto-generated by Fern from our API Definition.
|
|
952
923
|
*/
|
|
953
|
-
type LlmAsJudgeMessageRole = "SYSTEM" | "USER" | "AI" | "TOOL_EXECUTION_RESULT";
|
|
954
|
-
declare const LlmAsJudgeMessageRole: {
|
|
955
|
-
readonly System: "SYSTEM";
|
|
956
|
-
readonly User: "USER";
|
|
957
|
-
readonly Ai: "AI";
|
|
958
|
-
readonly ToolExecutionResult: "TOOL_EXECUTION_RESULT";
|
|
959
|
-
};
|
|
960
|
-
|
|
961
|
-
/**
|
|
962
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
963
|
-
*/
|
|
964
|
-
|
|
965
|
-
interface LlmAsJudgeMessage {
|
|
966
|
-
role: LlmAsJudgeMessageRole;
|
|
967
|
-
content: string;
|
|
968
|
-
}
|
|
969
|
-
|
|
970
924
|
/**
|
|
971
|
-
*
|
|
925
|
+
* @example
|
|
926
|
+
* {
|
|
927
|
+
* projectId: "project_id",
|
|
928
|
+
* threadId: "thread_id"
|
|
929
|
+
* }
|
|
972
930
|
*/
|
|
973
|
-
interface
|
|
974
|
-
|
|
975
|
-
|
|
931
|
+
interface TraceThreadIdentifier {
|
|
932
|
+
projectId: string;
|
|
933
|
+
threadId: string;
|
|
976
934
|
}
|
|
977
935
|
|
|
978
936
|
/**
|
|
979
937
|
* This file was auto-generated by Fern from our API Definition.
|
|
980
938
|
*/
|
|
981
|
-
type LlmAsJudgeOutputSchemaType = "BOOLEAN" | "INTEGER" | "DOUBLE";
|
|
982
|
-
declare const LlmAsJudgeOutputSchemaType: {
|
|
983
|
-
readonly Boolean: "BOOLEAN";
|
|
984
|
-
readonly Integer: "INTEGER";
|
|
985
|
-
readonly Double: "DOUBLE";
|
|
986
|
-
};
|
|
987
|
-
|
|
988
939
|
/**
|
|
989
|
-
*
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
interface LlmAsJudgeOutputSchema {
|
|
993
|
-
name: string;
|
|
994
|
-
type: LlmAsJudgeOutputSchemaType;
|
|
995
|
-
description: string;
|
|
996
|
-
}
|
|
997
|
-
|
|
998
|
-
/**
|
|
999
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
940
|
+
* @example
|
|
941
|
+
* {}
|
|
1000
942
|
*/
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
943
|
+
interface GetTraceThreadsRequest {
|
|
944
|
+
page?: number;
|
|
945
|
+
size?: number;
|
|
946
|
+
projectName?: string;
|
|
947
|
+
projectId?: string;
|
|
948
|
+
truncate?: boolean;
|
|
949
|
+
filters?: string;
|
|
1004
950
|
}
|
|
1005
951
|
|
|
1006
952
|
/**
|
|
1007
953
|
* This file was auto-generated by Fern from our API Definition.
|
|
1008
954
|
*/
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
type: "llm_as_judge";
|
|
1014
|
-
}
|
|
1015
|
-
interface _Base {
|
|
1016
|
-
projectId?: string;
|
|
1017
|
-
name: string;
|
|
1018
|
-
samplingRate?: number;
|
|
1019
|
-
action?: "evaluator";
|
|
1020
|
-
}
|
|
955
|
+
interface BiInformation {
|
|
956
|
+
workspaceId?: string;
|
|
957
|
+
user?: string;
|
|
958
|
+
count?: number;
|
|
1021
959
|
}
|
|
1022
960
|
|
|
1023
961
|
/**
|
|
1024
962
|
* This file was auto-generated by Fern from our API Definition.
|
|
1025
963
|
*/
|
|
1026
964
|
|
|
1027
|
-
interface
|
|
1028
|
-
|
|
1029
|
-
messages: LlmAsJudgeMessageWrite[];
|
|
1030
|
-
variables: Record<string, string>;
|
|
1031
|
-
schema: LlmAsJudgeOutputSchemaWrite[];
|
|
965
|
+
interface BiInformationResponse {
|
|
966
|
+
biInformation?: BiInformation[];
|
|
1032
967
|
}
|
|
1033
968
|
|
|
1034
969
|
/**
|
|
1035
970
|
* This file was auto-generated by Fern from our API Definition.
|
|
1036
971
|
*/
|
|
1037
|
-
type LlmAsJudgeMessageWriteRole = "SYSTEM" | "USER" | "AI" | "TOOL_EXECUTION_RESULT";
|
|
1038
|
-
declare const LlmAsJudgeMessageWriteRole: {
|
|
1039
|
-
readonly System: "SYSTEM";
|
|
1040
|
-
readonly User: "USER";
|
|
1041
|
-
readonly Ai: "AI";
|
|
1042
|
-
readonly ToolExecutionResult: "TOOL_EXECUTION_RESULT";
|
|
1043
|
-
};
|
|
1044
972
|
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
*/
|
|
1048
|
-
|
|
1049
|
-
interface LlmAsJudgeMessageWrite {
|
|
1050
|
-
role: LlmAsJudgeMessageWriteRole;
|
|
1051
|
-
content: string;
|
|
973
|
+
interface TraceCountResponse {
|
|
974
|
+
workspacesTracesCount?: WorkspaceTraceCount[];
|
|
1052
975
|
}
|
|
1053
976
|
|
|
1054
977
|
/**
|
|
1055
978
|
* This file was auto-generated by Fern from our API Definition.
|
|
1056
979
|
*/
|
|
1057
|
-
interface
|
|
1058
|
-
|
|
1059
|
-
|
|
980
|
+
interface WorkspaceTraceCount {
|
|
981
|
+
workspace?: string;
|
|
982
|
+
traceCount?: number;
|
|
1060
983
|
}
|
|
1061
984
|
|
|
1062
985
|
/**
|
|
1063
986
|
* This file was auto-generated by Fern from our API Definition.
|
|
1064
987
|
*/
|
|
1065
|
-
type
|
|
1066
|
-
declare const LlmAsJudgeOutputSchemaWriteType: {
|
|
1067
|
-
readonly Boolean: "BOOLEAN";
|
|
1068
|
-
readonly Integer: "INTEGER";
|
|
1069
|
-
readonly Double: "DOUBLE";
|
|
1070
|
-
};
|
|
1071
|
-
|
|
1072
|
-
/**
|
|
1073
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
1074
|
-
*/
|
|
1075
|
-
|
|
1076
|
-
interface LlmAsJudgeOutputSchemaWrite {
|
|
1077
|
-
name: string;
|
|
1078
|
-
type: LlmAsJudgeOutputSchemaWriteType;
|
|
1079
|
-
description: string;
|
|
1080
|
-
}
|
|
988
|
+
type AuthDetailsHolder = Record<string, unknown>;
|
|
1081
989
|
|
|
1082
990
|
/**
|
|
1083
991
|
* This file was auto-generated by Fern from our API Definition.
|
|
@@ -1089,123 +997,11 @@ interface BatchDelete {
|
|
|
1089
997
|
/**
|
|
1090
998
|
* This file was auto-generated by Fern from our API Definition.
|
|
1091
999
|
*/
|
|
1092
|
-
|
|
1093
|
-
interface AutomationRuleEvaluatorLlmAsJudgePublic {
|
|
1094
|
-
code?: LlmAsJudgeCodePublic;
|
|
1095
|
-
}
|
|
1096
|
-
|
|
1097
|
-
/**
|
|
1098
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
1099
|
-
*/
|
|
1100
|
-
|
|
1101
|
-
type AutomationRuleEvaluatorObjectPublic = AutomationRuleEvaluatorObjectPublic.LlmAsJudge;
|
|
1102
|
-
declare namespace AutomationRuleEvaluatorObjectPublic {
|
|
1103
|
-
interface LlmAsJudge extends AutomationRuleEvaluatorLlmAsJudgePublic, _Base {
|
|
1104
|
-
type: "llm_as_judge";
|
|
1105
|
-
}
|
|
1106
|
-
interface _Base {
|
|
1107
|
-
id?: string;
|
|
1108
|
-
projectId?: string;
|
|
1109
|
-
name: string;
|
|
1110
|
-
samplingRate?: number;
|
|
1111
|
-
createdAt?: Date;
|
|
1112
|
-
createdBy?: string;
|
|
1113
|
-
lastUpdatedAt?: Date;
|
|
1114
|
-
lastUpdatedBy?: string;
|
|
1115
|
-
action?: "evaluator";
|
|
1116
|
-
}
|
|
1117
|
-
}
|
|
1118
|
-
|
|
1119
|
-
/**
|
|
1120
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
1121
|
-
*/
|
|
1122
|
-
|
|
1123
1000
|
interface AutomationRuleEvaluatorPagePublic {
|
|
1124
1001
|
page?: number;
|
|
1125
1002
|
size?: number;
|
|
1126
1003
|
total?: number;
|
|
1127
|
-
content?:
|
|
1128
|
-
}
|
|
1129
|
-
|
|
1130
|
-
/**
|
|
1131
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
1132
|
-
*/
|
|
1133
|
-
|
|
1134
|
-
interface LlmAsJudgeCodePublic {
|
|
1135
|
-
model: LlmAsJudgeModelParametersPublic;
|
|
1136
|
-
messages: LlmAsJudgeMessagePublic[];
|
|
1137
|
-
variables: Record<string, string>;
|
|
1138
|
-
schema: LlmAsJudgeOutputSchemaPublic[];
|
|
1139
|
-
}
|
|
1140
|
-
|
|
1141
|
-
/**
|
|
1142
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
1143
|
-
*/
|
|
1144
|
-
type LlmAsJudgeMessagePublicRole = "SYSTEM" | "USER" | "AI" | "TOOL_EXECUTION_RESULT";
|
|
1145
|
-
declare const LlmAsJudgeMessagePublicRole: {
|
|
1146
|
-
readonly System: "SYSTEM";
|
|
1147
|
-
readonly User: "USER";
|
|
1148
|
-
readonly Ai: "AI";
|
|
1149
|
-
readonly ToolExecutionResult: "TOOL_EXECUTION_RESULT";
|
|
1150
|
-
};
|
|
1151
|
-
|
|
1152
|
-
/**
|
|
1153
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
1154
|
-
*/
|
|
1155
|
-
|
|
1156
|
-
interface LlmAsJudgeMessagePublic {
|
|
1157
|
-
role: LlmAsJudgeMessagePublicRole;
|
|
1158
|
-
content: string;
|
|
1159
|
-
}
|
|
1160
|
-
|
|
1161
|
-
/**
|
|
1162
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
1163
|
-
*/
|
|
1164
|
-
interface LlmAsJudgeModelParametersPublic {
|
|
1165
|
-
name: string;
|
|
1166
|
-
temperature: number;
|
|
1167
|
-
}
|
|
1168
|
-
|
|
1169
|
-
/**
|
|
1170
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
1171
|
-
*/
|
|
1172
|
-
type LlmAsJudgeOutputSchemaPublicType = "BOOLEAN" | "INTEGER" | "DOUBLE";
|
|
1173
|
-
declare const LlmAsJudgeOutputSchemaPublicType: {
|
|
1174
|
-
readonly Boolean: "BOOLEAN";
|
|
1175
|
-
readonly Integer: "INTEGER";
|
|
1176
|
-
readonly Double: "DOUBLE";
|
|
1177
|
-
};
|
|
1178
|
-
|
|
1179
|
-
/**
|
|
1180
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
1181
|
-
*/
|
|
1182
|
-
|
|
1183
|
-
interface LlmAsJudgeOutputSchemaPublic {
|
|
1184
|
-
name: string;
|
|
1185
|
-
type: LlmAsJudgeOutputSchemaPublicType;
|
|
1186
|
-
description: string;
|
|
1187
|
-
}
|
|
1188
|
-
|
|
1189
|
-
/**
|
|
1190
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
1191
|
-
*/
|
|
1192
|
-
|
|
1193
|
-
type AutomationRuleEvaluatorPublic = AutomationRuleEvaluatorPublic.LlmAsJudge;
|
|
1194
|
-
declare namespace AutomationRuleEvaluatorPublic {
|
|
1195
|
-
interface LlmAsJudge extends AutomationRuleEvaluatorLlmAsJudgePublic, _Base {
|
|
1196
|
-
type: "llm_as_judge";
|
|
1197
|
-
}
|
|
1198
|
-
interface _Base {
|
|
1199
|
-
id?: string;
|
|
1200
|
-
projectId?: string;
|
|
1201
|
-
name: string;
|
|
1202
|
-
samplingRate?: number;
|
|
1203
|
-
createdAt?: Date;
|
|
1204
|
-
createdBy?: string;
|
|
1205
|
-
lastUpdatedAt?: Date;
|
|
1206
|
-
lastUpdatedBy?: string;
|
|
1207
|
-
action?: "evaluator";
|
|
1208
|
-
}
|
|
1004
|
+
content?: unknown[];
|
|
1209
1005
|
}
|
|
1210
1006
|
|
|
1211
1007
|
/**
|
|
@@ -1243,17 +1039,6 @@ interface LogPage {
|
|
|
1243
1039
|
total?: number;
|
|
1244
1040
|
}
|
|
1245
1041
|
|
|
1246
|
-
/**
|
|
1247
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
1248
|
-
*/
|
|
1249
|
-
|
|
1250
|
-
interface AutomationRuleEvaluatorUpdate {
|
|
1251
|
-
name: string;
|
|
1252
|
-
code: LlmAsJudgeCode;
|
|
1253
|
-
samplingRate: number;
|
|
1254
|
-
projectId?: string;
|
|
1255
|
-
}
|
|
1256
|
-
|
|
1257
1042
|
/**
|
|
1258
1043
|
* This file was auto-generated by Fern from our API Definition.
|
|
1259
1044
|
*/
|
|
@@ -2089,11 +1874,12 @@ interface ProjectPagePublic {
|
|
|
2089
1874
|
/**
|
|
2090
1875
|
* This file was auto-generated by Fern from our API Definition.
|
|
2091
1876
|
*/
|
|
2092
|
-
type ProviderApiKeyPublicProvider = "openai" | "anthropic" | "gemini";
|
|
1877
|
+
type ProviderApiKeyPublicProvider = "openai" | "anthropic" | "gemini" | "openrouter";
|
|
2093
1878
|
declare const ProviderApiKeyPublicProvider: {
|
|
2094
1879
|
readonly Openai: "openai";
|
|
2095
1880
|
readonly Anthropic: "anthropic";
|
|
2096
1881
|
readonly Gemini: "gemini";
|
|
1882
|
+
readonly Openrouter: "openrouter";
|
|
2097
1883
|
};
|
|
2098
1884
|
|
|
2099
1885
|
/**
|
|
@@ -2217,6 +2003,7 @@ interface ProjectStatsSummaryItem {
|
|
|
2217
2003
|
duration?: PercentageValues;
|
|
2218
2004
|
totalEstimatedCost?: number;
|
|
2219
2005
|
usage?: Record<string, number>;
|
|
2006
|
+
traceCount?: number;
|
|
2220
2007
|
}
|
|
2221
2008
|
|
|
2222
2009
|
/**
|
|
@@ -2253,6 +2040,7 @@ interface ProjectDetailed {
|
|
|
2253
2040
|
duration?: PercentageValuesDetailed;
|
|
2254
2041
|
totalEstimatedCost?: number;
|
|
2255
2042
|
usage?: Record<string, number>;
|
|
2043
|
+
traceCount?: number;
|
|
2256
2044
|
}
|
|
2257
2045
|
|
|
2258
2046
|
/**
|
|
@@ -2709,6 +2497,7 @@ interface Trace$1 {
|
|
|
2709
2497
|
totalEstimatedCost?: number;
|
|
2710
2498
|
/** Duration in milliseconds as a decimal number to support sub-millisecond precision */
|
|
2711
2499
|
duration?: number;
|
|
2500
|
+
threadId?: string;
|
|
2712
2501
|
}
|
|
2713
2502
|
|
|
2714
2503
|
/**
|
|
@@ -2727,6 +2516,7 @@ interface TraceWrite {
|
|
|
2727
2516
|
metadata?: JsonNodeWrite;
|
|
2728
2517
|
tags?: string[];
|
|
2729
2518
|
errorInfo?: ErrorInfoWrite;
|
|
2519
|
+
threadId?: string;
|
|
2730
2520
|
}
|
|
2731
2521
|
|
|
2732
2522
|
/**
|
|
@@ -2754,6 +2544,36 @@ interface TracePublic {
|
|
|
2754
2544
|
totalEstimatedCost?: number;
|
|
2755
2545
|
/** Duration in milliseconds as a decimal number to support sub-millisecond precision */
|
|
2756
2546
|
duration?: number;
|
|
2547
|
+
threadId?: string;
|
|
2548
|
+
}
|
|
2549
|
+
|
|
2550
|
+
/**
|
|
2551
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
2552
|
+
*/
|
|
2553
|
+
|
|
2554
|
+
interface TraceThread {
|
|
2555
|
+
id?: string;
|
|
2556
|
+
projectId?: string;
|
|
2557
|
+
startTime?: Date;
|
|
2558
|
+
endTime?: Date;
|
|
2559
|
+
duration?: number;
|
|
2560
|
+
firstMessage?: JsonNode;
|
|
2561
|
+
lastMessage?: JsonNode;
|
|
2562
|
+
numberOfMessages?: number;
|
|
2563
|
+
lastUpdatedAt?: Date;
|
|
2564
|
+
createdBy?: string;
|
|
2565
|
+
createdAt?: Date;
|
|
2566
|
+
}
|
|
2567
|
+
|
|
2568
|
+
/**
|
|
2569
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
2570
|
+
*/
|
|
2571
|
+
|
|
2572
|
+
interface TraceThreadPage {
|
|
2573
|
+
page?: number;
|
|
2574
|
+
size?: number;
|
|
2575
|
+
total?: number;
|
|
2576
|
+
content?: TraceThread[];
|
|
2757
2577
|
}
|
|
2758
2578
|
|
|
2759
2579
|
/**
|
|
@@ -2765,6 +2585,14 @@ interface TracePagePublic {
|
|
|
2765
2585
|
size?: number;
|
|
2766
2586
|
total?: number;
|
|
2767
2587
|
content?: TracePublic[];
|
|
2588
|
+
sortableBy?: string[];
|
|
2589
|
+
}
|
|
2590
|
+
|
|
2591
|
+
/**
|
|
2592
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
2593
|
+
*/
|
|
2594
|
+
interface WorkspaceMetadata {
|
|
2595
|
+
traceDynamicSortingEnabled?: boolean;
|
|
2768
2596
|
}
|
|
2769
2597
|
|
|
2770
2598
|
/**
|
|
@@ -2959,15 +2787,15 @@ declare class AutomationRuleEvaluators {
|
|
|
2959
2787
|
/**
|
|
2960
2788
|
* Create automation rule evaluator
|
|
2961
2789
|
*
|
|
2962
|
-
* @param {
|
|
2790
|
+
* @param {unknown} request
|
|
2963
2791
|
* @param {AutomationRuleEvaluators.RequestOptions} requestOptions - Request-specific configuration.
|
|
2964
2792
|
*
|
|
2965
2793
|
* @example
|
|
2966
2794
|
* await client.automationRuleEvaluators.createAutomationRuleEvaluator({
|
|
2967
|
-
*
|
|
2795
|
+
* "key": "value"
|
|
2968
2796
|
* })
|
|
2969
2797
|
*/
|
|
2970
|
-
createAutomationRuleEvaluator(request
|
|
2798
|
+
createAutomationRuleEvaluator(request?: unknown, requestOptions?: AutomationRuleEvaluators.RequestOptions): Promise<void>;
|
|
2971
2799
|
/**
|
|
2972
2800
|
* Delete automation rule evaluators batch
|
|
2973
2801
|
*
|
|
@@ -2993,39 +2821,20 @@ declare class AutomationRuleEvaluators {
|
|
|
2993
2821
|
* @example
|
|
2994
2822
|
* await client.automationRuleEvaluators.getEvaluatorById("id")
|
|
2995
2823
|
*/
|
|
2996
|
-
getEvaluatorById(id: string, request?: GetEvaluatorByIdRequest, requestOptions?: AutomationRuleEvaluators.RequestOptions): Promise<
|
|
2824
|
+
getEvaluatorById(id: string, request?: GetEvaluatorByIdRequest, requestOptions?: AutomationRuleEvaluators.RequestOptions): Promise<unknown>;
|
|
2997
2825
|
/**
|
|
2998
|
-
*
|
|
2826
|
+
* Update Automation Rule Evaluator by id
|
|
2999
2827
|
*
|
|
3000
2828
|
* @param {string} id
|
|
3001
|
-
* @param {
|
|
2829
|
+
* @param {unknown} request
|
|
3002
2830
|
* @param {AutomationRuleEvaluators.RequestOptions} requestOptions - Request-specific configuration.
|
|
3003
2831
|
*
|
|
3004
2832
|
* @example
|
|
3005
2833
|
* await client.automationRuleEvaluators.updateAutomationRuleEvaluator("id", {
|
|
3006
|
-
*
|
|
3007
|
-
* code: {
|
|
3008
|
-
* model: {
|
|
3009
|
-
* name: "name",
|
|
3010
|
-
* temperature: 1.1
|
|
3011
|
-
* },
|
|
3012
|
-
* messages: [{
|
|
3013
|
-
* role: "SYSTEM",
|
|
3014
|
-
* content: "content"
|
|
3015
|
-
* }],
|
|
3016
|
-
* variables: {
|
|
3017
|
-
* "key": "value"
|
|
3018
|
-
* },
|
|
3019
|
-
* schema: [{
|
|
3020
|
-
* name: "name",
|
|
3021
|
-
* type: "BOOLEAN",
|
|
3022
|
-
* description: "description"
|
|
3023
|
-
* }]
|
|
3024
|
-
* },
|
|
3025
|
-
* samplingRate: 1.1
|
|
2834
|
+
* "key": "value"
|
|
3026
2835
|
* })
|
|
3027
2836
|
*/
|
|
3028
|
-
updateAutomationRuleEvaluator(id: string, request
|
|
2837
|
+
updateAutomationRuleEvaluator(id: string, request?: unknown, requestOptions?: AutomationRuleEvaluators.RequestOptions): Promise<void>;
|
|
3029
2838
|
/**
|
|
3030
2839
|
* Get automation rule evaluator logs by id
|
|
3031
2840
|
*
|
|
@@ -3052,15 +2861,15 @@ declare class AutomationRuleEvaluators {
|
|
|
3052
2861
|
* Create automation rule evaluator Deprecated
|
|
3053
2862
|
*
|
|
3054
2863
|
* @param {string} projectId
|
|
3055
|
-
* @param {
|
|
2864
|
+
* @param {unknown} request
|
|
3056
2865
|
* @param {AutomationRuleEvaluators.RequestOptions} requestOptions - Request-specific configuration.
|
|
3057
2866
|
*
|
|
3058
2867
|
* @example
|
|
3059
2868
|
* await client.automationRuleEvaluators.createAutomationRuleEvaluatorDeprecated("projectId", {
|
|
3060
|
-
*
|
|
2869
|
+
* "key": "value"
|
|
3061
2870
|
* })
|
|
3062
2871
|
*/
|
|
3063
|
-
createAutomationRuleEvaluatorDeprecated(projectId: string, request
|
|
2872
|
+
createAutomationRuleEvaluatorDeprecated(projectId: string, request?: unknown, requestOptions?: AutomationRuleEvaluators.RequestOptions): Promise<void>;
|
|
3064
2873
|
/**
|
|
3065
2874
|
* Delete automation rule evaluators batch Deprecated
|
|
3066
2875
|
*
|
|
@@ -3084,40 +2893,21 @@ declare class AutomationRuleEvaluators {
|
|
|
3084
2893
|
* @example
|
|
3085
2894
|
* await client.automationRuleEvaluators.getEvaluatorByIdDeprecated("projectId", "id")
|
|
3086
2895
|
*/
|
|
3087
|
-
getEvaluatorByIdDeprecated(projectId: string, id: string, requestOptions?: AutomationRuleEvaluators.RequestOptions): Promise<
|
|
2896
|
+
getEvaluatorByIdDeprecated(projectId: string, id: string, requestOptions?: AutomationRuleEvaluators.RequestOptions): Promise<unknown>;
|
|
3088
2897
|
/**
|
|
3089
2898
|
* update Automation Rule Evaluator by id Deprecated
|
|
3090
2899
|
*
|
|
3091
2900
|
* @param {string} id
|
|
3092
2901
|
* @param {string} projectId
|
|
3093
|
-
* @param {
|
|
2902
|
+
* @param {unknown} request
|
|
3094
2903
|
* @param {AutomationRuleEvaluators.RequestOptions} requestOptions - Request-specific configuration.
|
|
3095
2904
|
*
|
|
3096
2905
|
* @example
|
|
3097
2906
|
* await client.automationRuleEvaluators.updateAutomationRuleEvaluatorDeprecated("id", "projectId", {
|
|
3098
|
-
*
|
|
3099
|
-
* code: {
|
|
3100
|
-
* model: {
|
|
3101
|
-
* name: "name",
|
|
3102
|
-
* temperature: 1.1
|
|
3103
|
-
* },
|
|
3104
|
-
* messages: [{
|
|
3105
|
-
* role: "SYSTEM",
|
|
3106
|
-
* content: "content"
|
|
3107
|
-
* }],
|
|
3108
|
-
* variables: {
|
|
3109
|
-
* "key": "value"
|
|
3110
|
-
* },
|
|
3111
|
-
* schema: [{
|
|
3112
|
-
* name: "name",
|
|
3113
|
-
* type: "BOOLEAN",
|
|
3114
|
-
* description: "description"
|
|
3115
|
-
* }]
|
|
3116
|
-
* },
|
|
3117
|
-
* samplingRate: 1.1
|
|
2907
|
+
* "key": "value"
|
|
3118
2908
|
* })
|
|
3119
2909
|
*/
|
|
3120
|
-
updateAutomationRuleEvaluatorDeprecated(id: string, projectId: string, request
|
|
2910
|
+
updateAutomationRuleEvaluatorDeprecated(id: string, projectId: string, request?: unknown, requestOptions?: AutomationRuleEvaluators.RequestOptions): Promise<void>;
|
|
3121
2911
|
/**
|
|
3122
2912
|
* Get automation rule evaluator logs by id Deprecated
|
|
3123
2913
|
*
|
|
@@ -3761,6 +3551,53 @@ declare class LlmProviderKey {
|
|
|
3761
3551
|
}>;
|
|
3762
3552
|
}
|
|
3763
3553
|
|
|
3554
|
+
/**
|
|
3555
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3556
|
+
*/
|
|
3557
|
+
|
|
3558
|
+
declare namespace OpenTelemetryIngestion {
|
|
3559
|
+
interface Options {
|
|
3560
|
+
environment?: Supplier<OpikApiEnvironment | string>;
|
|
3561
|
+
/** Specify a custom URL to connect the client to. */
|
|
3562
|
+
baseUrl?: Supplier<string>;
|
|
3563
|
+
/** Override the Authorization header */
|
|
3564
|
+
apiKey?: Supplier<string | undefined>;
|
|
3565
|
+
/** Override the Comet-Workspace header */
|
|
3566
|
+
workspaceName?: Supplier<string | undefined>;
|
|
3567
|
+
}
|
|
3568
|
+
interface RequestOptions {
|
|
3569
|
+
/** The maximum time to wait for a response in seconds. */
|
|
3570
|
+
timeoutInSeconds?: number;
|
|
3571
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
3572
|
+
maxRetries?: number;
|
|
3573
|
+
/** A hook to abort the request. */
|
|
3574
|
+
abortSignal?: AbortSignal;
|
|
3575
|
+
/** Override the Authorization header */
|
|
3576
|
+
apiKey?: string | undefined;
|
|
3577
|
+
/** Override the Comet-Workspace header */
|
|
3578
|
+
workspaceName?: string | undefined;
|
|
3579
|
+
/** Additional headers to include in the request. */
|
|
3580
|
+
headers?: Record<string, string>;
|
|
3581
|
+
}
|
|
3582
|
+
}
|
|
3583
|
+
/**
|
|
3584
|
+
* Resource to ingest Traces and Spans via OpenTelemetry
|
|
3585
|
+
*/
|
|
3586
|
+
declare class OpenTelemetryIngestion {
|
|
3587
|
+
protected readonly _options: OpenTelemetryIngestion.Options;
|
|
3588
|
+
constructor(_options?: OpenTelemetryIngestion.Options);
|
|
3589
|
+
/**
|
|
3590
|
+
* @param {OpenTelemetryIngestion.RequestOptions} requestOptions - Request-specific configuration.
|
|
3591
|
+
*
|
|
3592
|
+
* @example
|
|
3593
|
+
* await client.openTelemetryIngestion.receiveTraces()
|
|
3594
|
+
*/
|
|
3595
|
+
receiveTraces(requestOptions?: OpenTelemetryIngestion.RequestOptions): Promise<unknown>;
|
|
3596
|
+
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
3597
|
+
Authorization: string | undefined;
|
|
3598
|
+
}>;
|
|
3599
|
+
}
|
|
3600
|
+
|
|
3764
3601
|
/**
|
|
3765
3602
|
* This file was auto-generated by Fern from our API Definition.
|
|
3766
3603
|
*/
|
|
@@ -4501,6 +4338,18 @@ declare class Traces {
|
|
|
4501
4338
|
* })
|
|
4502
4339
|
*/
|
|
4503
4340
|
deleteTraceFeedbackScore(id: string, request: DeleteFeedbackScore, requestOptions?: Traces.RequestOptions): Promise<void>;
|
|
4341
|
+
/**
|
|
4342
|
+
* Delete trace threads
|
|
4343
|
+
*
|
|
4344
|
+
* @param {OpikApi.DeleteTraceThreads} request
|
|
4345
|
+
* @param {Traces.RequestOptions} requestOptions - Request-specific configuration.
|
|
4346
|
+
*
|
|
4347
|
+
* @example
|
|
4348
|
+
* await client.traces.deleteTraceThreads({
|
|
4349
|
+
* threadIds: ["thread_ids"]
|
|
4350
|
+
* })
|
|
4351
|
+
*/
|
|
4352
|
+
deleteTraceThreads(request: DeleteTraceThreads, requestOptions?: Traces.RequestOptions): Promise<void>;
|
|
4504
4353
|
/**
|
|
4505
4354
|
* Delete traces
|
|
4506
4355
|
*
|
|
@@ -4546,6 +4395,31 @@ declare class Traces {
|
|
|
4546
4395
|
* await client.traces.getTraceComment("commentId", "traceId")
|
|
4547
4396
|
*/
|
|
4548
4397
|
getTraceComment(commentId: string, traceId: string, requestOptions?: Traces.RequestOptions): Promise<Comment>;
|
|
4398
|
+
/**
|
|
4399
|
+
* Get trace thread
|
|
4400
|
+
*
|
|
4401
|
+
* @param {OpikApi.TraceThreadIdentifier} request
|
|
4402
|
+
* @param {Traces.RequestOptions} requestOptions - Request-specific configuration.
|
|
4403
|
+
*
|
|
4404
|
+
* @throws {@link OpikApi.NotFoundError}
|
|
4405
|
+
*
|
|
4406
|
+
* @example
|
|
4407
|
+
* await client.traces.getTraceThread({
|
|
4408
|
+
* projectId: "project_id",
|
|
4409
|
+
* threadId: "thread_id"
|
|
4410
|
+
* })
|
|
4411
|
+
*/
|
|
4412
|
+
getTraceThread(request: TraceThreadIdentifier, requestOptions?: Traces.RequestOptions): Promise<TraceThread>;
|
|
4413
|
+
/**
|
|
4414
|
+
* Get trace threads
|
|
4415
|
+
*
|
|
4416
|
+
* @param {OpikApi.GetTraceThreadsRequest} request
|
|
4417
|
+
* @param {Traces.RequestOptions} requestOptions - Request-specific configuration.
|
|
4418
|
+
*
|
|
4419
|
+
* @example
|
|
4420
|
+
* await client.traces.getTraceThreads()
|
|
4421
|
+
*/
|
|
4422
|
+
getTraceThreads(request?: GetTraceThreadsRequest, requestOptions?: Traces.RequestOptions): Promise<TraceThreadPage>;
|
|
4549
4423
|
/**
|
|
4550
4424
|
* Batch feedback scoring for traces
|
|
4551
4425
|
*
|
|
@@ -4583,6 +4457,55 @@ declare class Traces {
|
|
|
4583
4457
|
}>;
|
|
4584
4458
|
}
|
|
4585
4459
|
|
|
4460
|
+
/**
|
|
4461
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4462
|
+
*/
|
|
4463
|
+
|
|
4464
|
+
declare namespace Workspaces {
|
|
4465
|
+
interface Options {
|
|
4466
|
+
environment?: Supplier<OpikApiEnvironment | string>;
|
|
4467
|
+
/** Specify a custom URL to connect the client to. */
|
|
4468
|
+
baseUrl?: Supplier<string>;
|
|
4469
|
+
/** Override the Authorization header */
|
|
4470
|
+
apiKey?: Supplier<string | undefined>;
|
|
4471
|
+
/** Override the Comet-Workspace header */
|
|
4472
|
+
workspaceName?: Supplier<string | undefined>;
|
|
4473
|
+
}
|
|
4474
|
+
interface RequestOptions {
|
|
4475
|
+
/** The maximum time to wait for a response in seconds. */
|
|
4476
|
+
timeoutInSeconds?: number;
|
|
4477
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
4478
|
+
maxRetries?: number;
|
|
4479
|
+
/** A hook to abort the request. */
|
|
4480
|
+
abortSignal?: AbortSignal;
|
|
4481
|
+
/** Override the Authorization header */
|
|
4482
|
+
apiKey?: string | undefined;
|
|
4483
|
+
/** Override the Comet-Workspace header */
|
|
4484
|
+
workspaceName?: string | undefined;
|
|
4485
|
+
/** Additional headers to include in the request. */
|
|
4486
|
+
headers?: Record<string, string>;
|
|
4487
|
+
}
|
|
4488
|
+
}
|
|
4489
|
+
/**
|
|
4490
|
+
* Workspace related resources
|
|
4491
|
+
*/
|
|
4492
|
+
declare class Workspaces {
|
|
4493
|
+
protected readonly _options: Workspaces.Options;
|
|
4494
|
+
constructor(_options?: Workspaces.Options);
|
|
4495
|
+
/**
|
|
4496
|
+
* @param {Workspaces.RequestOptions} requestOptions - Request-specific configuration.
|
|
4497
|
+
*
|
|
4498
|
+
* @throws {@link OpikApi.NotFoundError}
|
|
4499
|
+
*
|
|
4500
|
+
* @example
|
|
4501
|
+
* await client.workspaces.getWorkspaceMetadata()
|
|
4502
|
+
*/
|
|
4503
|
+
getWorkspaceMetadata(requestOptions?: Workspaces.RequestOptions): Promise<WorkspaceMetadata>;
|
|
4504
|
+
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
4505
|
+
Authorization: string | undefined;
|
|
4506
|
+
}>;
|
|
4507
|
+
}
|
|
4508
|
+
|
|
4586
4509
|
/**
|
|
4587
4510
|
* This file was auto-generated by Fern from our API Definition.
|
|
4588
4511
|
*/
|
|
@@ -4622,10 +4545,12 @@ declare class OpikApiClient {
|
|
|
4622
4545
|
protected _experiments: Experiments | undefined;
|
|
4623
4546
|
protected _feedbackDefinitions: FeedbackDefinitions | undefined;
|
|
4624
4547
|
protected _llmProviderKey: LlmProviderKey | undefined;
|
|
4548
|
+
protected _openTelemetryIngestion: OpenTelemetryIngestion | undefined;
|
|
4625
4549
|
protected _projects: Projects | undefined;
|
|
4626
4550
|
protected _prompts: Prompts | undefined;
|
|
4627
4551
|
protected _spans: Spans | undefined;
|
|
4628
4552
|
protected _traces: Traces | undefined;
|
|
4553
|
+
protected _workspaces: Workspaces | undefined;
|
|
4629
4554
|
constructor(_options?: OpikApiClient.Options);
|
|
4630
4555
|
get systemUsage(): SystemUsage;
|
|
4631
4556
|
get check(): Check;
|
|
@@ -4635,10 +4560,12 @@ declare class OpikApiClient {
|
|
|
4635
4560
|
get experiments(): Experiments;
|
|
4636
4561
|
get feedbackDefinitions(): FeedbackDefinitions;
|
|
4637
4562
|
get llmProviderKey(): LlmProviderKey;
|
|
4563
|
+
get openTelemetryIngestion(): OpenTelemetryIngestion;
|
|
4638
4564
|
get projects(): Projects;
|
|
4639
4565
|
get prompts(): Prompts;
|
|
4640
4566
|
get spans(): Spans;
|
|
4641
4567
|
get traces(): Traces;
|
|
4568
|
+
get workspaces(): Workspaces;
|
|
4642
4569
|
/**
|
|
4643
4570
|
* @param {OpikApiClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
4644
4571
|
*
|