@langfuse/core 4.2.0 → 4.3.0
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 +331 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +602 -173
- package/dist/index.d.ts +602 -173
- package/dist/index.mjs +329 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -221,10 +221,11 @@ declare const AnnotationQueueStatus: {
|
|
|
221
221
|
/**
|
|
222
222
|
* This file was auto-generated by Fern from our API Definition.
|
|
223
223
|
*/
|
|
224
|
-
type AnnotationQueueObjectType = "TRACE" | "OBSERVATION";
|
|
224
|
+
type AnnotationQueueObjectType = "TRACE" | "OBSERVATION" | "SESSION";
|
|
225
225
|
declare const AnnotationQueueObjectType: {
|
|
226
226
|
readonly Trace: "TRACE";
|
|
227
227
|
readonly Observation: "OBSERVATION";
|
|
228
|
+
readonly Session: "SESSION";
|
|
228
229
|
};
|
|
229
230
|
|
|
230
231
|
/**
|
|
@@ -362,23 +363,23 @@ interface GetAnnotationQueueItemsRequest {
|
|
|
362
363
|
limit?: number;
|
|
363
364
|
}
|
|
364
365
|
|
|
365
|
-
type index$
|
|
366
|
-
type index$
|
|
367
|
-
type index$
|
|
368
|
-
declare const index$
|
|
369
|
-
declare const index$
|
|
370
|
-
type index$
|
|
371
|
-
type index$
|
|
372
|
-
type index$
|
|
373
|
-
type index$
|
|
374
|
-
type index$
|
|
375
|
-
type index$
|
|
376
|
-
type index$
|
|
377
|
-
type index$
|
|
378
|
-
type index$
|
|
379
|
-
type index$
|
|
380
|
-
declare namespace index$
|
|
381
|
-
export { type index$
|
|
366
|
+
type index$q_AnnotationQueue = AnnotationQueue;
|
|
367
|
+
type index$q_AnnotationQueueAssignmentRequest = AnnotationQueueAssignmentRequest;
|
|
368
|
+
type index$q_AnnotationQueueItem = AnnotationQueueItem;
|
|
369
|
+
declare const index$q_AnnotationQueueObjectType: typeof AnnotationQueueObjectType;
|
|
370
|
+
declare const index$q_AnnotationQueueStatus: typeof AnnotationQueueStatus;
|
|
371
|
+
type index$q_CreateAnnotationQueueAssignmentResponse = CreateAnnotationQueueAssignmentResponse;
|
|
372
|
+
type index$q_CreateAnnotationQueueItemRequest = CreateAnnotationQueueItemRequest;
|
|
373
|
+
type index$q_CreateAnnotationQueueRequest = CreateAnnotationQueueRequest;
|
|
374
|
+
type index$q_DeleteAnnotationQueueAssignmentResponse = DeleteAnnotationQueueAssignmentResponse;
|
|
375
|
+
type index$q_DeleteAnnotationQueueItemResponse = DeleteAnnotationQueueItemResponse;
|
|
376
|
+
type index$q_GetAnnotationQueueItemsRequest = GetAnnotationQueueItemsRequest;
|
|
377
|
+
type index$q_GetAnnotationQueuesRequest = GetAnnotationQueuesRequest;
|
|
378
|
+
type index$q_PaginatedAnnotationQueueItems = PaginatedAnnotationQueueItems;
|
|
379
|
+
type index$q_PaginatedAnnotationQueues = PaginatedAnnotationQueues;
|
|
380
|
+
type index$q_UpdateAnnotationQueueItemRequest = UpdateAnnotationQueueItemRequest;
|
|
381
|
+
declare namespace index$q {
|
|
382
|
+
export { type index$q_AnnotationQueue as AnnotationQueue, type index$q_AnnotationQueueAssignmentRequest as AnnotationQueueAssignmentRequest, type index$q_AnnotationQueueItem as AnnotationQueueItem, index$q_AnnotationQueueObjectType as AnnotationQueueObjectType, index$q_AnnotationQueueStatus as AnnotationQueueStatus, type index$q_CreateAnnotationQueueAssignmentResponse as CreateAnnotationQueueAssignmentResponse, type index$q_CreateAnnotationQueueItemRequest as CreateAnnotationQueueItemRequest, type index$q_CreateAnnotationQueueRequest as CreateAnnotationQueueRequest, type index$q_DeleteAnnotationQueueAssignmentResponse as DeleteAnnotationQueueAssignmentResponse, type index$q_DeleteAnnotationQueueItemResponse as DeleteAnnotationQueueItemResponse, type index$q_GetAnnotationQueueItemsRequest as GetAnnotationQueueItemsRequest, type index$q_GetAnnotationQueuesRequest as GetAnnotationQueuesRequest, type index$q_PaginatedAnnotationQueueItems as PaginatedAnnotationQueueItems, type index$q_PaginatedAnnotationQueues as PaginatedAnnotationQueues, type index$q_UpdateAnnotationQueueItemRequest as UpdateAnnotationQueueItemRequest };
|
|
382
383
|
}
|
|
383
384
|
|
|
384
385
|
/**
|
|
@@ -492,16 +493,16 @@ interface BlobStorageIntegrationDeletionResponse {
|
|
|
492
493
|
message: string;
|
|
493
494
|
}
|
|
494
495
|
|
|
495
|
-
declare const index$
|
|
496
|
-
declare const index$
|
|
497
|
-
type index$
|
|
498
|
-
declare const index$
|
|
499
|
-
type index$
|
|
500
|
-
declare const index$
|
|
501
|
-
type index$
|
|
502
|
-
type index$
|
|
503
|
-
declare namespace index$
|
|
504
|
-
export { index$
|
|
496
|
+
declare const index$p_BlobStorageExportFrequency: typeof BlobStorageExportFrequency;
|
|
497
|
+
declare const index$p_BlobStorageExportMode: typeof BlobStorageExportMode;
|
|
498
|
+
type index$p_BlobStorageIntegrationDeletionResponse = BlobStorageIntegrationDeletionResponse;
|
|
499
|
+
declare const index$p_BlobStorageIntegrationFileType: typeof BlobStorageIntegrationFileType;
|
|
500
|
+
type index$p_BlobStorageIntegrationResponse = BlobStorageIntegrationResponse;
|
|
501
|
+
declare const index$p_BlobStorageIntegrationType: typeof BlobStorageIntegrationType;
|
|
502
|
+
type index$p_BlobStorageIntegrationsResponse = BlobStorageIntegrationsResponse;
|
|
503
|
+
type index$p_CreateBlobStorageIntegrationRequest = CreateBlobStorageIntegrationRequest;
|
|
504
|
+
declare namespace index$p {
|
|
505
|
+
export { index$p_BlobStorageExportFrequency as BlobStorageExportFrequency, index$p_BlobStorageExportMode as BlobStorageExportMode, type index$p_BlobStorageIntegrationDeletionResponse as BlobStorageIntegrationDeletionResponse, index$p_BlobStorageIntegrationFileType as BlobStorageIntegrationFileType, type index$p_BlobStorageIntegrationResponse as BlobStorageIntegrationResponse, index$p_BlobStorageIntegrationType as BlobStorageIntegrationType, type index$p_BlobStorageIntegrationsResponse as BlobStorageIntegrationsResponse, type index$p_CreateBlobStorageIntegrationRequest as CreateBlobStorageIntegrationRequest };
|
|
505
506
|
}
|
|
506
507
|
|
|
507
508
|
/**
|
|
@@ -514,7 +515,7 @@ interface CreateCommentRequest {
|
|
|
514
515
|
objectType: string;
|
|
515
516
|
/** The id of the object to attach the comment to. If this does not reference a valid existing object, an error will be thrown. */
|
|
516
517
|
objectId: string;
|
|
517
|
-
/** The content of the comment. May include markdown. Currently limited to
|
|
518
|
+
/** The content of the comment. May include markdown. Currently limited to 5000 characters. */
|
|
518
519
|
content: string;
|
|
519
520
|
/** The id of the user who created the comment. */
|
|
520
521
|
authorUserId?: string;
|
|
@@ -557,12 +558,12 @@ interface GetCommentsRequest {
|
|
|
557
558
|
authorUserId?: string;
|
|
558
559
|
}
|
|
559
560
|
|
|
560
|
-
type index$
|
|
561
|
-
type index$
|
|
562
|
-
type index$
|
|
563
|
-
type index$
|
|
564
|
-
declare namespace index$
|
|
565
|
-
export type { index$
|
|
561
|
+
type index$o_CreateCommentRequest = CreateCommentRequest;
|
|
562
|
+
type index$o_CreateCommentResponse = CreateCommentResponse;
|
|
563
|
+
type index$o_GetCommentsRequest = GetCommentsRequest;
|
|
564
|
+
type index$o_GetCommentsResponse = GetCommentsResponse;
|
|
565
|
+
declare namespace index$o {
|
|
566
|
+
export type { index$o_CreateCommentRequest as CreateCommentRequest, index$o_CreateCommentResponse as CreateCommentResponse, index$o_GetCommentsRequest as GetCommentsRequest, index$o_GetCommentsResponse as GetCommentsResponse };
|
|
566
567
|
}
|
|
567
568
|
|
|
568
569
|
/**
|
|
@@ -802,7 +803,7 @@ interface BaseScoreV1 {
|
|
|
802
803
|
metadata?: unknown;
|
|
803
804
|
/** Reference a score config on a score. When set, config and score name must be equal and value must comply to optionally defined numerical range */
|
|
804
805
|
configId?: string;
|
|
805
|
-
/**
|
|
806
|
+
/** The annotation queue referenced by the score. Indicates if score was initially created while processing annotation queue. */
|
|
806
807
|
queueId?: string;
|
|
807
808
|
/** The environment from which this score originated. Can be any lowercase alphanumeric string with hyphens and underscores that does not start with 'langfuse'. */
|
|
808
809
|
environment?: string;
|
|
@@ -885,7 +886,7 @@ interface BaseScore {
|
|
|
885
886
|
metadata?: unknown;
|
|
886
887
|
/** Reference a score config on a score. When set, config and score name must be equal and value must comply to optionally defined numerical range */
|
|
887
888
|
configId?: string;
|
|
888
|
-
/**
|
|
889
|
+
/** The annotation queue referenced by the score. Indicates if score was initially created while processing annotation queue. */
|
|
889
890
|
queueId?: string;
|
|
890
891
|
/** The environment from which this score originated. Can be any lowercase alphanumeric string with hyphens and underscores that does not start with 'langfuse'. */
|
|
891
892
|
environment?: string;
|
|
@@ -1297,50 +1298,50 @@ declare class MethodNotAllowedError extends LangfuseAPIError {
|
|
|
1297
1298
|
constructor(body?: unknown, rawResponse?: RawResponse);
|
|
1298
1299
|
}
|
|
1299
1300
|
|
|
1300
|
-
type index$
|
|
1301
|
-
declare const index$
|
|
1302
|
-
type index$
|
|
1303
|
-
type index$
|
|
1304
|
-
type index$
|
|
1305
|
-
type index$
|
|
1306
|
-
type index$
|
|
1307
|
-
type index$
|
|
1308
|
-
type index$
|
|
1309
|
-
declare const index$
|
|
1310
|
-
type index$
|
|
1311
|
-
type index$
|
|
1312
|
-
type index$
|
|
1313
|
-
type index$
|
|
1314
|
-
type index$
|
|
1315
|
-
type index$
|
|
1316
|
-
type index$
|
|
1317
|
-
declare const index$
|
|
1318
|
-
type index$
|
|
1319
|
-
type index$
|
|
1320
|
-
declare const index$
|
|
1321
|
-
type index$
|
|
1322
|
-
type index$
|
|
1323
|
-
declare const index$
|
|
1324
|
-
type index$
|
|
1325
|
-
declare const index$
|
|
1326
|
-
type index$
|
|
1327
|
-
type index$
|
|
1328
|
-
type index$
|
|
1329
|
-
declare const index$
|
|
1330
|
-
type index$
|
|
1331
|
-
type index$
|
|
1332
|
-
declare const index$
|
|
1333
|
-
declare const index$
|
|
1334
|
-
declare const index$
|
|
1335
|
-
type index$
|
|
1336
|
-
type index$
|
|
1337
|
-
type index$
|
|
1338
|
-
type index$
|
|
1339
|
-
type index$
|
|
1340
|
-
declare const index$
|
|
1341
|
-
type index$
|
|
1342
|
-
declare namespace index$
|
|
1343
|
-
export { index$
|
|
1301
|
+
type index$n_AccessDeniedError = AccessDeniedError;
|
|
1302
|
+
declare const index$n_AccessDeniedError: typeof AccessDeniedError;
|
|
1303
|
+
type index$n_BaseScore = BaseScore;
|
|
1304
|
+
type index$n_BaseScoreV1 = BaseScoreV1;
|
|
1305
|
+
type index$n_BooleanScore = BooleanScore;
|
|
1306
|
+
type index$n_BooleanScoreV1 = BooleanScoreV1;
|
|
1307
|
+
type index$n_CategoricalScore = CategoricalScore;
|
|
1308
|
+
type index$n_CategoricalScoreV1 = CategoricalScoreV1;
|
|
1309
|
+
type index$n_Comment = Comment;
|
|
1310
|
+
declare const index$n_CommentObjectType: typeof CommentObjectType;
|
|
1311
|
+
type index$n_ConfigCategory = ConfigCategory;
|
|
1312
|
+
type index$n_CreateScoreValue = CreateScoreValue;
|
|
1313
|
+
type index$n_Dataset = Dataset;
|
|
1314
|
+
type index$n_DatasetItem = DatasetItem;
|
|
1315
|
+
type index$n_DatasetRun = DatasetRun;
|
|
1316
|
+
type index$n_DatasetRunItem = DatasetRunItem;
|
|
1317
|
+
type index$n_DatasetRunWithItems = DatasetRunWithItems;
|
|
1318
|
+
declare const index$n_DatasetStatus: typeof DatasetStatus;
|
|
1319
|
+
type index$n_MapValue = MapValue;
|
|
1320
|
+
type index$n_MethodNotAllowedError = MethodNotAllowedError;
|
|
1321
|
+
declare const index$n_MethodNotAllowedError: typeof MethodNotAllowedError;
|
|
1322
|
+
type index$n_Model = Model;
|
|
1323
|
+
type index$n_ModelPrice = ModelPrice;
|
|
1324
|
+
declare const index$n_ModelUsageUnit: typeof ModelUsageUnit;
|
|
1325
|
+
type index$n_NotFoundError = NotFoundError;
|
|
1326
|
+
declare const index$n_NotFoundError: typeof NotFoundError;
|
|
1327
|
+
type index$n_NumericScore = NumericScore;
|
|
1328
|
+
type index$n_NumericScoreV1 = NumericScoreV1;
|
|
1329
|
+
type index$n_Observation = Observation;
|
|
1330
|
+
declare const index$n_ObservationLevel: typeof ObservationLevel;
|
|
1331
|
+
type index$n_ObservationsView = ObservationsView;
|
|
1332
|
+
type index$n_ScoreConfig = ScoreConfig;
|
|
1333
|
+
declare const index$n_ScoreDataType: typeof ScoreDataType;
|
|
1334
|
+
declare const index$n_ScoreSource: typeof ScoreSource;
|
|
1335
|
+
declare const index$n_ScoreV1: typeof ScoreV1;
|
|
1336
|
+
type index$n_Session = Session;
|
|
1337
|
+
type index$n_SessionWithTraces = SessionWithTraces;
|
|
1338
|
+
type index$n_TraceWithDetails = TraceWithDetails;
|
|
1339
|
+
type index$n_TraceWithFullDetails = TraceWithFullDetails;
|
|
1340
|
+
type index$n_UnauthorizedError = UnauthorizedError;
|
|
1341
|
+
declare const index$n_UnauthorizedError: typeof UnauthorizedError;
|
|
1342
|
+
type index$n_Usage = Usage;
|
|
1343
|
+
declare namespace index$n {
|
|
1344
|
+
export { index$n_AccessDeniedError as AccessDeniedError, type index$n_BaseScore as BaseScore, type index$n_BaseScoreV1 as BaseScoreV1, type index$n_BooleanScore as BooleanScore, type index$n_BooleanScoreV1 as BooleanScoreV1, type index$n_CategoricalScore as CategoricalScore, type index$n_CategoricalScoreV1 as CategoricalScoreV1, type index$n_Comment as Comment, index$n_CommentObjectType as CommentObjectType, type index$n_ConfigCategory as ConfigCategory, type index$n_CreateScoreValue as CreateScoreValue, type index$n_Dataset as Dataset, type index$n_DatasetItem as DatasetItem, type index$n_DatasetRun as DatasetRun, type index$n_DatasetRunItem as DatasetRunItem, type index$n_DatasetRunWithItems as DatasetRunWithItems, index$n_DatasetStatus as DatasetStatus, Error$1 as Error, type index$n_MapValue as MapValue, index$n_MethodNotAllowedError as MethodNotAllowedError, type index$n_Model as Model, type index$n_ModelPrice as ModelPrice, index$n_ModelUsageUnit as ModelUsageUnit, index$n_NotFoundError as NotFoundError, type index$n_NumericScore as NumericScore, type index$n_NumericScoreV1 as NumericScoreV1, type index$n_Observation as Observation, index$n_ObservationLevel as ObservationLevel, type index$n_ObservationsView as ObservationsView, Score$1 as Score, type index$n_ScoreConfig as ScoreConfig, index$n_ScoreDataType as ScoreDataType, index$n_ScoreSource as ScoreSource, index$n_ScoreV1 as ScoreV1, type index$n_Session as Session, type index$n_SessionWithTraces as SessionWithTraces, type Trace$1 as Trace, type index$n_TraceWithDetails as TraceWithDetails, type index$n_TraceWithFullDetails as TraceWithFullDetails, index$n_UnauthorizedError as UnauthorizedError, type index$n_Usage as Usage };
|
|
1344
1345
|
}
|
|
1345
1346
|
|
|
1346
1347
|
/**
|
|
@@ -1394,12 +1395,12 @@ interface GetDatasetItemsRequest {
|
|
|
1394
1395
|
limit?: number;
|
|
1395
1396
|
}
|
|
1396
1397
|
|
|
1397
|
-
type index$
|
|
1398
|
-
type index$
|
|
1399
|
-
type index$
|
|
1400
|
-
type index$
|
|
1401
|
-
declare namespace index$
|
|
1402
|
-
export type { index$
|
|
1398
|
+
type index$m_CreateDatasetItemRequest = CreateDatasetItemRequest;
|
|
1399
|
+
type index$m_DeleteDatasetItemResponse = DeleteDatasetItemResponse;
|
|
1400
|
+
type index$m_GetDatasetItemsRequest = GetDatasetItemsRequest;
|
|
1401
|
+
type index$m_PaginatedDatasetItems = PaginatedDatasetItems;
|
|
1402
|
+
declare namespace index$m {
|
|
1403
|
+
export type { index$m_CreateDatasetItemRequest as CreateDatasetItemRequest, index$m_DeleteDatasetItemResponse as DeleteDatasetItemResponse, index$m_GetDatasetItemsRequest as GetDatasetItemsRequest, index$m_PaginatedDatasetItems as PaginatedDatasetItems };
|
|
1403
1404
|
}
|
|
1404
1405
|
|
|
1405
1406
|
/**
|
|
@@ -1445,11 +1446,11 @@ interface ListDatasetRunItemsRequest {
|
|
|
1445
1446
|
limit?: number;
|
|
1446
1447
|
}
|
|
1447
1448
|
|
|
1448
|
-
type index$
|
|
1449
|
-
type index$
|
|
1450
|
-
type index$
|
|
1451
|
-
declare namespace index$
|
|
1452
|
-
export type { index$
|
|
1449
|
+
type index$l_CreateDatasetRunItemRequest = CreateDatasetRunItemRequest;
|
|
1450
|
+
type index$l_ListDatasetRunItemsRequest = ListDatasetRunItemsRequest;
|
|
1451
|
+
type index$l_PaginatedDatasetRunItems = PaginatedDatasetRunItems;
|
|
1452
|
+
declare namespace index$l {
|
|
1453
|
+
export type { index$l_CreateDatasetRunItemRequest as CreateDatasetRunItemRequest, index$l_ListDatasetRunItemsRequest as ListDatasetRunItemsRequest, index$l_PaginatedDatasetRunItems as PaginatedDatasetRunItems };
|
|
1453
1454
|
}
|
|
1454
1455
|
|
|
1455
1456
|
/**
|
|
@@ -1514,14 +1515,14 @@ interface GetDatasetRunsRequest {
|
|
|
1514
1515
|
limit?: number;
|
|
1515
1516
|
}
|
|
1516
1517
|
|
|
1517
|
-
type index$
|
|
1518
|
-
type index$
|
|
1519
|
-
type index$
|
|
1520
|
-
type index$
|
|
1521
|
-
type index$
|
|
1522
|
-
type index$
|
|
1523
|
-
declare namespace index$
|
|
1524
|
-
export type { index$
|
|
1518
|
+
type index$k_CreateDatasetRequest = CreateDatasetRequest;
|
|
1519
|
+
type index$k_DeleteDatasetRunResponse = DeleteDatasetRunResponse;
|
|
1520
|
+
type index$k_GetDatasetRunsRequest = GetDatasetRunsRequest;
|
|
1521
|
+
type index$k_GetDatasetsRequest = GetDatasetsRequest;
|
|
1522
|
+
type index$k_PaginatedDatasetRuns = PaginatedDatasetRuns;
|
|
1523
|
+
type index$k_PaginatedDatasets = PaginatedDatasets;
|
|
1524
|
+
declare namespace index$k {
|
|
1525
|
+
export type { index$k_CreateDatasetRequest as CreateDatasetRequest, index$k_DeleteDatasetRunResponse as DeleteDatasetRunResponse, index$k_GetDatasetRunsRequest as GetDatasetRunsRequest, index$k_GetDatasetsRequest as GetDatasetsRequest, index$k_PaginatedDatasetRuns as PaginatedDatasetRuns, index$k_PaginatedDatasets as PaginatedDatasets };
|
|
1525
1526
|
}
|
|
1526
1527
|
|
|
1527
1528
|
/**
|
|
@@ -1548,11 +1549,11 @@ declare class ServiceUnavailableError extends LangfuseAPIError {
|
|
|
1548
1549
|
constructor(rawResponse?: RawResponse);
|
|
1549
1550
|
}
|
|
1550
1551
|
|
|
1551
|
-
type index$
|
|
1552
|
-
type index$
|
|
1553
|
-
declare const index$
|
|
1554
|
-
declare namespace index$
|
|
1555
|
-
export { type index$
|
|
1552
|
+
type index$j_HealthResponse = HealthResponse;
|
|
1553
|
+
type index$j_ServiceUnavailableError = ServiceUnavailableError;
|
|
1554
|
+
declare const index$j_ServiceUnavailableError: typeof ServiceUnavailableError;
|
|
1555
|
+
declare namespace index$j {
|
|
1556
|
+
export { type index$j_HealthResponse as HealthResponse, index$j_ServiceUnavailableError as ServiceUnavailableError };
|
|
1556
1557
|
}
|
|
1557
1558
|
|
|
1558
1559
|
/**
|
|
@@ -1874,6 +1875,8 @@ interface ScoreBody {
|
|
|
1874
1875
|
datasetRunId?: string;
|
|
1875
1876
|
name: string;
|
|
1876
1877
|
environment?: string;
|
|
1878
|
+
/** The annotation queue referenced by the score. Indicates if score was initially created while processing annotation queue. */
|
|
1879
|
+
queueId?: string;
|
|
1877
1880
|
/** The value of the score. Must be passed as string for categorical scores, and numeric for boolean and numeric scores. Boolean score values must equal either 1 or 0 (true or false) */
|
|
1878
1881
|
value: CreateScoreValue;
|
|
1879
1882
|
comment?: string;
|
|
@@ -2104,41 +2107,41 @@ interface IngestionRequest {
|
|
|
2104
2107
|
metadata?: unknown;
|
|
2105
2108
|
}
|
|
2106
2109
|
|
|
2107
|
-
type index$
|
|
2108
|
-
type index$
|
|
2109
|
-
type index$
|
|
2110
|
-
type index$
|
|
2111
|
-
type index$
|
|
2112
|
-
type index$
|
|
2113
|
-
type index$
|
|
2114
|
-
type index$
|
|
2115
|
-
type index$
|
|
2116
|
-
declare const index$
|
|
2117
|
-
type index$
|
|
2118
|
-
type index$
|
|
2119
|
-
type index$
|
|
2120
|
-
type index$
|
|
2121
|
-
type index$
|
|
2122
|
-
declare const index$
|
|
2123
|
-
type index$
|
|
2124
|
-
type index$
|
|
2125
|
-
type index$
|
|
2126
|
-
type index$
|
|
2127
|
-
type index$
|
|
2128
|
-
type index$
|
|
2129
|
-
type index$
|
|
2130
|
-
type index$
|
|
2131
|
-
type index$
|
|
2132
|
-
type index$
|
|
2133
|
-
type index$
|
|
2134
|
-
type index$
|
|
2135
|
-
type index$
|
|
2136
|
-
type index$
|
|
2137
|
-
type index$
|
|
2138
|
-
type index$
|
|
2139
|
-
type index$
|
|
2140
|
-
declare namespace index$
|
|
2141
|
-
export { type index$
|
|
2110
|
+
type index$i_BaseEvent = BaseEvent;
|
|
2111
|
+
type index$i_CreateEventBody = CreateEventBody;
|
|
2112
|
+
type index$i_CreateEventEvent = CreateEventEvent;
|
|
2113
|
+
type index$i_CreateGenerationBody = CreateGenerationBody;
|
|
2114
|
+
type index$i_CreateGenerationEvent = CreateGenerationEvent;
|
|
2115
|
+
type index$i_CreateObservationEvent = CreateObservationEvent;
|
|
2116
|
+
type index$i_CreateSpanBody = CreateSpanBody;
|
|
2117
|
+
type index$i_CreateSpanEvent = CreateSpanEvent;
|
|
2118
|
+
type index$i_IngestionError = IngestionError;
|
|
2119
|
+
declare const index$i_IngestionEvent: typeof IngestionEvent;
|
|
2120
|
+
type index$i_IngestionRequest = IngestionRequest;
|
|
2121
|
+
type index$i_IngestionResponse = IngestionResponse;
|
|
2122
|
+
type index$i_IngestionSuccess = IngestionSuccess;
|
|
2123
|
+
type index$i_IngestionUsage = IngestionUsage;
|
|
2124
|
+
type index$i_ObservationBody = ObservationBody;
|
|
2125
|
+
declare const index$i_ObservationType: typeof ObservationType;
|
|
2126
|
+
type index$i_OpenAiCompletionUsageSchema = OpenAiCompletionUsageSchema;
|
|
2127
|
+
type index$i_OpenAiResponseUsageSchema = OpenAiResponseUsageSchema;
|
|
2128
|
+
type index$i_OpenAiUsage = OpenAiUsage;
|
|
2129
|
+
type index$i_OptionalObservationBody = OptionalObservationBody;
|
|
2130
|
+
type index$i_ScoreBody = ScoreBody;
|
|
2131
|
+
type index$i_ScoreEvent = ScoreEvent;
|
|
2132
|
+
type index$i_SdkLogBody = SdkLogBody;
|
|
2133
|
+
type index$i_SdkLogEvent = SdkLogEvent;
|
|
2134
|
+
type index$i_TraceBody = TraceBody;
|
|
2135
|
+
type index$i_TraceEvent = TraceEvent;
|
|
2136
|
+
type index$i_UpdateEventBody = UpdateEventBody;
|
|
2137
|
+
type index$i_UpdateGenerationBody = UpdateGenerationBody;
|
|
2138
|
+
type index$i_UpdateGenerationEvent = UpdateGenerationEvent;
|
|
2139
|
+
type index$i_UpdateObservationEvent = UpdateObservationEvent;
|
|
2140
|
+
type index$i_UpdateSpanBody = UpdateSpanBody;
|
|
2141
|
+
type index$i_UpdateSpanEvent = UpdateSpanEvent;
|
|
2142
|
+
type index$i_UsageDetails = UsageDetails;
|
|
2143
|
+
declare namespace index$i {
|
|
2144
|
+
export { type index$i_BaseEvent as BaseEvent, type index$i_CreateEventBody as CreateEventBody, type index$i_CreateEventEvent as CreateEventEvent, type index$i_CreateGenerationBody as CreateGenerationBody, type index$i_CreateGenerationEvent as CreateGenerationEvent, type index$i_CreateObservationEvent as CreateObservationEvent, type index$i_CreateSpanBody as CreateSpanBody, type index$i_CreateSpanEvent as CreateSpanEvent, type index$i_IngestionError as IngestionError, index$i_IngestionEvent as IngestionEvent, type index$i_IngestionRequest as IngestionRequest, type index$i_IngestionResponse as IngestionResponse, type index$i_IngestionSuccess as IngestionSuccess, type index$i_IngestionUsage as IngestionUsage, type index$i_ObservationBody as ObservationBody, index$i_ObservationType as ObservationType, type index$i_OpenAiCompletionUsageSchema as OpenAiCompletionUsageSchema, type index$i_OpenAiResponseUsageSchema as OpenAiResponseUsageSchema, type index$i_OpenAiUsage as OpenAiUsage, type index$i_OptionalObservationBody as OptionalObservationBody, type index$i_ScoreBody as ScoreBody, type index$i_ScoreEvent as ScoreEvent, type index$i_SdkLogBody as SdkLogBody, type index$i_SdkLogEvent as SdkLogEvent, type index$i_TraceBody as TraceBody, type index$i_TraceEvent as TraceEvent, type index$i_UpdateEventBody as UpdateEventBody, type index$i_UpdateGenerationBody as UpdateGenerationBody, type index$i_UpdateGenerationEvent as UpdateGenerationEvent, type index$i_UpdateObservationEvent as UpdateObservationEvent, type index$i_UpdateSpanBody as UpdateSpanBody, type index$i_UpdateSpanEvent as UpdateSpanEvent, type index$i_UsageDetails as UsageDetails };
|
|
2142
2145
|
}
|
|
2143
2146
|
|
|
2144
2147
|
/**
|
|
@@ -2227,13 +2230,13 @@ interface GetLlmConnectionsRequest {
|
|
|
2227
2230
|
limit?: number;
|
|
2228
2231
|
}
|
|
2229
2232
|
|
|
2230
|
-
type index$
|
|
2231
|
-
declare const index$
|
|
2232
|
-
type index$
|
|
2233
|
-
type index$
|
|
2234
|
-
type index$
|
|
2235
|
-
declare namespace index$
|
|
2236
|
-
export { type index$
|
|
2233
|
+
type index$h_GetLlmConnectionsRequest = GetLlmConnectionsRequest;
|
|
2234
|
+
declare const index$h_LlmAdapter: typeof LlmAdapter;
|
|
2235
|
+
type index$h_LlmConnection = LlmConnection;
|
|
2236
|
+
type index$h_PaginatedLlmConnections = PaginatedLlmConnections;
|
|
2237
|
+
type index$h_UpsertLlmConnectionRequest = UpsertLlmConnectionRequest;
|
|
2238
|
+
declare namespace index$h {
|
|
2239
|
+
export { type index$h_GetLlmConnectionsRequest as GetLlmConnectionsRequest, index$h_LlmAdapter as LlmAdapter, type index$h_LlmConnection as LlmConnection, type index$h_PaginatedLlmConnections as PaginatedLlmConnections, type index$h_UpsertLlmConnectionRequest as UpsertLlmConnectionRequest };
|
|
2237
2240
|
}
|
|
2238
2241
|
|
|
2239
2242
|
/**
|
|
@@ -2335,13 +2338,13 @@ declare const MediaContentType: {
|
|
|
2335
2338
|
readonly ApplicationOctetStream: "application/octet-stream";
|
|
2336
2339
|
};
|
|
2337
2340
|
|
|
2338
|
-
type index$
|
|
2339
|
-
type index$
|
|
2340
|
-
type index$
|
|
2341
|
-
declare const index$
|
|
2342
|
-
type index$
|
|
2343
|
-
declare namespace index$
|
|
2344
|
-
export { type index$
|
|
2341
|
+
type index$g_GetMediaResponse = GetMediaResponse;
|
|
2342
|
+
type index$g_GetMediaUploadUrlRequest = GetMediaUploadUrlRequest;
|
|
2343
|
+
type index$g_GetMediaUploadUrlResponse = GetMediaUploadUrlResponse;
|
|
2344
|
+
declare const index$g_MediaContentType: typeof MediaContentType;
|
|
2345
|
+
type index$g_PatchMediaBody = PatchMediaBody;
|
|
2346
|
+
declare namespace index$g {
|
|
2347
|
+
export { type index$g_GetMediaResponse as GetMediaResponse, type index$g_GetMediaUploadUrlRequest as GetMediaUploadUrlRequest, type index$g_GetMediaUploadUrlResponse as GetMediaUploadUrlResponse, index$g_MediaContentType as MediaContentType, type index$g_PatchMediaBody as PatchMediaBody };
|
|
2345
2348
|
}
|
|
2346
2349
|
|
|
2347
2350
|
/**
|
|
@@ -2412,10 +2415,10 @@ interface GetMetricsRequest {
|
|
|
2412
2415
|
query: string;
|
|
2413
2416
|
}
|
|
2414
2417
|
|
|
2415
|
-
type index$
|
|
2416
|
-
type index$
|
|
2417
|
-
declare namespace index$
|
|
2418
|
-
export type { index$
|
|
2418
|
+
type index$f_GetMetricsRequest = GetMetricsRequest;
|
|
2419
|
+
type index$f_MetricsResponse = MetricsResponse;
|
|
2420
|
+
declare namespace index$f {
|
|
2421
|
+
export type { index$f_GetMetricsRequest as GetMetricsRequest, index$f_MetricsResponse as MetricsResponse };
|
|
2419
2422
|
}
|
|
2420
2423
|
|
|
2421
2424
|
/**
|
|
@@ -2466,11 +2469,11 @@ interface GetModelsRequest {
|
|
|
2466
2469
|
limit?: number;
|
|
2467
2470
|
}
|
|
2468
2471
|
|
|
2469
|
-
type index$
|
|
2470
|
-
type index$
|
|
2471
|
-
type index$
|
|
2472
|
-
declare namespace index$
|
|
2473
|
-
export type { index$
|
|
2472
|
+
type index$e_CreateModelRequest = CreateModelRequest;
|
|
2473
|
+
type index$e_GetModelsRequest = GetModelsRequest;
|
|
2474
|
+
type index$e_PaginatedModels = PaginatedModels;
|
|
2475
|
+
declare namespace index$e {
|
|
2476
|
+
export type { index$e_CreateModelRequest as CreateModelRequest, index$e_GetModelsRequest as GetModelsRequest, index$e_PaginatedModels as PaginatedModels };
|
|
2474
2477
|
}
|
|
2475
2478
|
|
|
2476
2479
|
/**
|
|
@@ -2519,12 +2522,225 @@ interface GetObservationsRequest {
|
|
|
2519
2522
|
toStartTime?: string;
|
|
2520
2523
|
/** Optional filter to only include observations with a certain version. */
|
|
2521
2524
|
version?: string;
|
|
2525
|
+
/**
|
|
2526
|
+
* JSON string containing an array of filter conditions. When provided, this takes precedence over legacy filter parameters (userId, name, sessionId, tags, version, release, environment, fromTimestamp, toTimestamp).
|
|
2527
|
+
* Each filter condition has the following structure:
|
|
2528
|
+
* ```json
|
|
2529
|
+
* [
|
|
2530
|
+
* {
|
|
2531
|
+
* "type": string, // Required. One of: "datetime", "string", "number", "stringOptions", "categoryOptions", "arrayOptions", "stringObject", "numberObject", "boolean", "null"
|
|
2532
|
+
* "column": string, // Required. Column to filter on
|
|
2533
|
+
* "operator": string, // Required. Operator based on type:
|
|
2534
|
+
* // - datetime: ">", "<", ">=", "<="
|
|
2535
|
+
* // - string: "=", "contains", "does not contain", "starts with", "ends with"
|
|
2536
|
+
* // - stringOptions: "any of", "none of"
|
|
2537
|
+
* // - categoryOptions: "any of", "none of"
|
|
2538
|
+
* // - arrayOptions: "any of", "none of", "all of"
|
|
2539
|
+
* // - number: "=", ">", "<", ">=", "<="
|
|
2540
|
+
* // - stringObject: "=", "contains", "does not contain", "starts with", "ends with"
|
|
2541
|
+
* // - numberObject: "=", ">", "<", ">=", "<="
|
|
2542
|
+
* // - boolean: "=", "<>"
|
|
2543
|
+
* // - null: "is null", "is not null"
|
|
2544
|
+
* "value": any, // Required (except for null type). Value to compare against. Type depends on filter type
|
|
2545
|
+
* "key": string // Required only for stringObject, numberObject, and categoryOptions types when filtering on nested fields like metadata
|
|
2546
|
+
* }
|
|
2547
|
+
* ]
|
|
2548
|
+
* ```
|
|
2549
|
+
*/
|
|
2550
|
+
filter?: string;
|
|
2551
|
+
}
|
|
2552
|
+
|
|
2553
|
+
type index$d_GetObservationsRequest = GetObservationsRequest;
|
|
2554
|
+
type index$d_ObservationsViews = ObservationsViews;
|
|
2555
|
+
declare namespace index$d {
|
|
2556
|
+
export type { index$d_GetObservationsRequest as GetObservationsRequest, Observations$1 as Observations, index$d_ObservationsViews as ObservationsViews };
|
|
2557
|
+
}
|
|
2558
|
+
|
|
2559
|
+
/**
|
|
2560
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
2561
|
+
*/
|
|
2562
|
+
|
|
2563
|
+
/**
|
|
2564
|
+
* Represents a collection of spans from a single resource as per OTLP specification
|
|
2565
|
+
*/
|
|
2566
|
+
interface OtelResourceSpan {
|
|
2567
|
+
/** Resource information */
|
|
2568
|
+
resource?: OtelResource;
|
|
2569
|
+
/** Array of scope spans */
|
|
2570
|
+
scopeSpans?: OtelScopeSpan[];
|
|
2571
|
+
}
|
|
2572
|
+
|
|
2573
|
+
/**
|
|
2574
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
2575
|
+
*/
|
|
2576
|
+
|
|
2577
|
+
/**
|
|
2578
|
+
* Resource attributes identifying the source of telemetry
|
|
2579
|
+
*/
|
|
2580
|
+
interface OtelResource {
|
|
2581
|
+
/** Resource attributes like service.name, service.version, etc. */
|
|
2582
|
+
attributes?: OtelAttribute[];
|
|
2583
|
+
}
|
|
2584
|
+
|
|
2585
|
+
/**
|
|
2586
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
2587
|
+
*/
|
|
2588
|
+
|
|
2589
|
+
/**
|
|
2590
|
+
* Collection of spans from a single instrumentation scope
|
|
2591
|
+
*/
|
|
2592
|
+
interface OtelScopeSpan {
|
|
2593
|
+
/** Instrumentation scope information */
|
|
2594
|
+
scope?: OtelScope;
|
|
2595
|
+
/** Array of spans */
|
|
2596
|
+
spans?: OtelSpan[];
|
|
2597
|
+
}
|
|
2598
|
+
|
|
2599
|
+
/**
|
|
2600
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
2601
|
+
*/
|
|
2602
|
+
|
|
2603
|
+
/**
|
|
2604
|
+
* Instrumentation scope information
|
|
2605
|
+
*/
|
|
2606
|
+
interface OtelScope {
|
|
2607
|
+
/** Instrumentation scope name */
|
|
2608
|
+
name?: string;
|
|
2609
|
+
/** Instrumentation scope version */
|
|
2610
|
+
version?: string;
|
|
2611
|
+
/** Additional scope attributes */
|
|
2612
|
+
attributes?: OtelAttribute[];
|
|
2613
|
+
}
|
|
2614
|
+
|
|
2615
|
+
/**
|
|
2616
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
2617
|
+
*/
|
|
2618
|
+
|
|
2619
|
+
/**
|
|
2620
|
+
* Individual span representing a unit of work or operation
|
|
2621
|
+
*/
|
|
2622
|
+
interface OtelSpan {
|
|
2623
|
+
/** Trace ID (16 bytes, hex-encoded string in JSON or Buffer in binary) */
|
|
2624
|
+
traceId?: unknown;
|
|
2625
|
+
/** Span ID (8 bytes, hex-encoded string in JSON or Buffer in binary) */
|
|
2626
|
+
spanId?: unknown;
|
|
2627
|
+
/** Parent span ID if this is a child span */
|
|
2628
|
+
parentSpanId?: unknown;
|
|
2629
|
+
/** Span name describing the operation */
|
|
2630
|
+
name?: string;
|
|
2631
|
+
/** Span kind (1=INTERNAL, 2=SERVER, 3=CLIENT, 4=PRODUCER, 5=CONSUMER) */
|
|
2632
|
+
kind?: number;
|
|
2633
|
+
/** Start time in nanoseconds since Unix epoch */
|
|
2634
|
+
startTimeUnixNano?: unknown;
|
|
2635
|
+
/** End time in nanoseconds since Unix epoch */
|
|
2636
|
+
endTimeUnixNano?: unknown;
|
|
2637
|
+
/** Span attributes including Langfuse-specific attributes (langfuse.observation.*) */
|
|
2638
|
+
attributes?: OtelAttribute[];
|
|
2639
|
+
/** Span status object */
|
|
2640
|
+
status?: unknown;
|
|
2522
2641
|
}
|
|
2523
2642
|
|
|
2524
|
-
|
|
2525
|
-
|
|
2643
|
+
/**
|
|
2644
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
2645
|
+
*/
|
|
2646
|
+
|
|
2647
|
+
/**
|
|
2648
|
+
* Key-value attribute pair for resources, scopes, or spans
|
|
2649
|
+
*/
|
|
2650
|
+
interface OtelAttribute {
|
|
2651
|
+
/** Attribute key (e.g., "service.name", "langfuse.observation.type") */
|
|
2652
|
+
key?: string;
|
|
2653
|
+
/** Attribute value */
|
|
2654
|
+
value?: OtelAttributeValue;
|
|
2655
|
+
}
|
|
2656
|
+
|
|
2657
|
+
/**
|
|
2658
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
2659
|
+
*/
|
|
2660
|
+
/**
|
|
2661
|
+
* Attribute value wrapper supporting different value types
|
|
2662
|
+
*/
|
|
2663
|
+
interface OtelAttributeValue {
|
|
2664
|
+
/** String value */
|
|
2665
|
+
stringValue?: string;
|
|
2666
|
+
/** Integer value */
|
|
2667
|
+
intValue?: number;
|
|
2668
|
+
/** Double value */
|
|
2669
|
+
doubleValue?: number;
|
|
2670
|
+
/** Boolean value */
|
|
2671
|
+
boolValue?: boolean;
|
|
2672
|
+
}
|
|
2673
|
+
|
|
2674
|
+
/**
|
|
2675
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
2676
|
+
*/
|
|
2677
|
+
/**
|
|
2678
|
+
* Response from trace export request. Empty object indicates success.
|
|
2679
|
+
*/
|
|
2680
|
+
interface OtelTraceResponse {
|
|
2681
|
+
}
|
|
2682
|
+
|
|
2683
|
+
/**
|
|
2684
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
2685
|
+
*/
|
|
2686
|
+
|
|
2687
|
+
/**
|
|
2688
|
+
* @example
|
|
2689
|
+
* {
|
|
2690
|
+
* resourceSpans: [{
|
|
2691
|
+
* resource: {
|
|
2692
|
+
* attributes: [{
|
|
2693
|
+
* key: "service.name",
|
|
2694
|
+
* value: {
|
|
2695
|
+
* stringValue: "my-service"
|
|
2696
|
+
* }
|
|
2697
|
+
* }, {
|
|
2698
|
+
* key: "service.version",
|
|
2699
|
+
* value: {
|
|
2700
|
+
* stringValue: "1.0.0"
|
|
2701
|
+
* }
|
|
2702
|
+
* }]
|
|
2703
|
+
* },
|
|
2704
|
+
* scopeSpans: [{
|
|
2705
|
+
* scope: {
|
|
2706
|
+
* name: "langfuse-sdk",
|
|
2707
|
+
* version: "2.60.3"
|
|
2708
|
+
* },
|
|
2709
|
+
* spans: [{
|
|
2710
|
+
* traceId: "0123456789abcdef0123456789abcdef",
|
|
2711
|
+
* spanId: "0123456789abcdef",
|
|
2712
|
+
* name: "my-operation",
|
|
2713
|
+
* kind: 1,
|
|
2714
|
+
* startTimeUnixNano: "1747872000000000000",
|
|
2715
|
+
* endTimeUnixNano: "1747872001000000000",
|
|
2716
|
+
* attributes: [{
|
|
2717
|
+
* key: "langfuse.observation.type",
|
|
2718
|
+
* value: {
|
|
2719
|
+
* stringValue: "generation"
|
|
2720
|
+
* }
|
|
2721
|
+
* }],
|
|
2722
|
+
* status: {}
|
|
2723
|
+
* }]
|
|
2724
|
+
* }]
|
|
2725
|
+
* }]
|
|
2726
|
+
* }
|
|
2727
|
+
*/
|
|
2728
|
+
interface OtelTraceRequest {
|
|
2729
|
+
/** Array of resource spans containing trace data as defined in the OTLP specification */
|
|
2730
|
+
resourceSpans: OtelResourceSpan[];
|
|
2731
|
+
}
|
|
2732
|
+
|
|
2733
|
+
type index$c_OtelAttribute = OtelAttribute;
|
|
2734
|
+
type index$c_OtelAttributeValue = OtelAttributeValue;
|
|
2735
|
+
type index$c_OtelResource = OtelResource;
|
|
2736
|
+
type index$c_OtelResourceSpan = OtelResourceSpan;
|
|
2737
|
+
type index$c_OtelScope = OtelScope;
|
|
2738
|
+
type index$c_OtelScopeSpan = OtelScopeSpan;
|
|
2739
|
+
type index$c_OtelSpan = OtelSpan;
|
|
2740
|
+
type index$c_OtelTraceRequest = OtelTraceRequest;
|
|
2741
|
+
type index$c_OtelTraceResponse = OtelTraceResponse;
|
|
2526
2742
|
declare namespace index$c {
|
|
2527
|
-
export type { index$
|
|
2743
|
+
export type { index$c_OtelAttribute as OtelAttribute, index$c_OtelAttributeValue as OtelAttributeValue, index$c_OtelResource as OtelResource, index$c_OtelResourceSpan as OtelResourceSpan, index$c_OtelScope as OtelScope, index$c_OtelScopeSpan as OtelScopeSpan, index$c_OtelSpan as OtelSpan, index$c_OtelTraceRequest as OtelTraceRequest, index$c_OtelTraceResponse as OtelTraceResponse };
|
|
2528
2744
|
}
|
|
2529
2745
|
|
|
2530
2746
|
/**
|
|
@@ -2736,12 +2952,18 @@ interface UpdateProjectRequest {
|
|
|
2736
2952
|
/**
|
|
2737
2953
|
* @example
|
|
2738
2954
|
* {
|
|
2739
|
-
* note: undefined
|
|
2955
|
+
* note: undefined,
|
|
2956
|
+
* publicKey: undefined,
|
|
2957
|
+
* secretKey: undefined
|
|
2740
2958
|
* }
|
|
2741
2959
|
*/
|
|
2742
2960
|
interface CreateApiKeyRequest {
|
|
2743
2961
|
/** Optional note for the API key */
|
|
2744
2962
|
note?: string;
|
|
2963
|
+
/** Optional predefined public key. Must start with 'pk-lf-'. If provided, secretKey must also be provided. */
|
|
2964
|
+
publicKey?: string;
|
|
2965
|
+
/** Optional predefined secret key. Must start with 'sk-lf-'. If provided, publicKey must also be provided. */
|
|
2966
|
+
secretKey?: string;
|
|
2745
2967
|
}
|
|
2746
2968
|
|
|
2747
2969
|
type index$a_ApiKeyDeletionResponse = ApiKeyDeletionResponse;
|
|
@@ -2769,8 +2991,11 @@ interface PromptMetaListResponse {
|
|
|
2769
2991
|
/**
|
|
2770
2992
|
* This file was auto-generated by Fern from our API Definition.
|
|
2771
2993
|
*/
|
|
2994
|
+
|
|
2772
2995
|
interface PromptMeta {
|
|
2773
2996
|
name: string;
|
|
2997
|
+
/** Indicates whether the prompt is a text or chat prompt. */
|
|
2998
|
+
type: PromptType;
|
|
2774
2999
|
versions: number[];
|
|
2775
3000
|
labels: string[];
|
|
2776
3001
|
tags: string[];
|
|
@@ -2838,6 +3063,15 @@ declare namespace Prompt {
|
|
|
2838
3063
|
}
|
|
2839
3064
|
}
|
|
2840
3065
|
|
|
3066
|
+
/**
|
|
3067
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3068
|
+
*/
|
|
3069
|
+
type PromptType = "chat" | "text";
|
|
3070
|
+
declare const PromptType: {
|
|
3071
|
+
readonly Chat: "chat";
|
|
3072
|
+
readonly Text: "text";
|
|
3073
|
+
};
|
|
3074
|
+
|
|
2841
3075
|
/**
|
|
2842
3076
|
* This file was auto-generated by Fern from our API Definition.
|
|
2843
3077
|
*/
|
|
@@ -2948,9 +3182,10 @@ type index$9_PlaceholderMessage = PlaceholderMessage;
|
|
|
2948
3182
|
declare const index$9_Prompt: typeof Prompt;
|
|
2949
3183
|
type index$9_PromptMeta = PromptMeta;
|
|
2950
3184
|
type index$9_PromptMetaListResponse = PromptMetaListResponse;
|
|
3185
|
+
declare const index$9_PromptType: typeof PromptType;
|
|
2951
3186
|
type index$9_TextPrompt = TextPrompt;
|
|
2952
3187
|
declare namespace index$9 {
|
|
2953
|
-
export { type index$9_BasePrompt as BasePrompt, type index$9_ChatMessage as ChatMessage, index$9_ChatMessageWithPlaceholders as ChatMessageWithPlaceholders, type index$9_ChatPrompt as ChatPrompt, type index$9_CreateChatPromptRequest as CreateChatPromptRequest, index$9_CreatePromptRequest as CreatePromptRequest, type index$9_CreateTextPromptRequest as CreateTextPromptRequest, type index$9_GetPromptRequest as GetPromptRequest, type index$9_ListPromptsMetaRequest as ListPromptsMetaRequest, type index$9_PlaceholderMessage as PlaceholderMessage, index$9_Prompt as Prompt, type index$9_PromptMeta as PromptMeta, type index$9_PromptMetaListResponse as PromptMetaListResponse, type index$9_TextPrompt as TextPrompt };
|
|
3188
|
+
export { type index$9_BasePrompt as BasePrompt, type index$9_ChatMessage as ChatMessage, index$9_ChatMessageWithPlaceholders as ChatMessageWithPlaceholders, type index$9_ChatPrompt as ChatPrompt, type index$9_CreateChatPromptRequest as CreateChatPromptRequest, index$9_CreatePromptRequest as CreatePromptRequest, type index$9_CreateTextPromptRequest as CreateTextPromptRequest, type index$9_GetPromptRequest as GetPromptRequest, type index$9_ListPromptsMetaRequest as ListPromptsMetaRequest, type index$9_PlaceholderMessage as PlaceholderMessage, index$9_Prompt as Prompt, type index$9_PromptMeta as PromptMeta, type index$9_PromptMetaListResponse as PromptMetaListResponse, index$9_PromptType as PromptType, type index$9_TextPrompt as TextPrompt };
|
|
2954
3189
|
}
|
|
2955
3190
|
|
|
2956
3191
|
/**
|
|
@@ -3221,6 +3456,25 @@ interface CreateScoreConfigRequest {
|
|
|
3221
3456
|
description?: string;
|
|
3222
3457
|
}
|
|
3223
3458
|
|
|
3459
|
+
/**
|
|
3460
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3461
|
+
*/
|
|
3462
|
+
|
|
3463
|
+
interface UpdateScoreConfigRequest {
|
|
3464
|
+
/** The status of the score config showing if it is archived or not */
|
|
3465
|
+
isArchived?: boolean;
|
|
3466
|
+
/** The name of the score config */
|
|
3467
|
+
name?: string;
|
|
3468
|
+
/** Configure custom categories for categorical scores. Pass a list of objects with `label` and `value` properties. Categories are autogenerated for boolean configs and cannot be passed */
|
|
3469
|
+
categories?: ConfigCategory[];
|
|
3470
|
+
/** Configure a minimum value for numerical scores. If not set, the minimum value defaults to -∞ */
|
|
3471
|
+
minValue?: number;
|
|
3472
|
+
/** Configure a maximum value for numerical scores. If not set, the maximum value defaults to +∞ */
|
|
3473
|
+
maxValue?: number;
|
|
3474
|
+
/** Description is shown across the Langfuse UI and can be used to e.g. explain the config categories in detail, why a numeric range was set, or provide additional context on config name or usage */
|
|
3475
|
+
description?: string;
|
|
3476
|
+
}
|
|
3477
|
+
|
|
3224
3478
|
/**
|
|
3225
3479
|
* This file was auto-generated by Fern from our API Definition.
|
|
3226
3480
|
*/
|
|
@@ -3237,8 +3491,9 @@ interface GetScoreConfigsRequest {
|
|
|
3237
3491
|
|
|
3238
3492
|
type index$7_CreateScoreConfigRequest = CreateScoreConfigRequest;
|
|
3239
3493
|
type index$7_GetScoreConfigsRequest = GetScoreConfigsRequest;
|
|
3494
|
+
type index$7_UpdateScoreConfigRequest = UpdateScoreConfigRequest;
|
|
3240
3495
|
declare namespace index$7 {
|
|
3241
|
-
export type { index$7_CreateScoreConfigRequest as CreateScoreConfigRequest, index$7_GetScoreConfigsRequest as GetScoreConfigsRequest, ScoreConfigs$1 as ScoreConfigs };
|
|
3496
|
+
export type { index$7_CreateScoreConfigRequest as CreateScoreConfigRequest, index$7_GetScoreConfigsRequest as GetScoreConfigsRequest, ScoreConfigs$1 as ScoreConfigs, index$7_UpdateScoreConfigRequest as UpdateScoreConfigRequest };
|
|
3242
3497
|
}
|
|
3243
3498
|
|
|
3244
3499
|
/**
|
|
@@ -3434,6 +3689,8 @@ interface CreateScoreRequest {
|
|
|
3434
3689
|
metadata?: unknown;
|
|
3435
3690
|
/** The environment of the score. Can be any lowercase alphanumeric string with hyphens and underscores that does not start with 'langfuse'. */
|
|
3436
3691
|
environment?: string;
|
|
3692
|
+
/** The annotation queue referenced by the score. Indicates if score was initially created while processing annotation queue. */
|
|
3693
|
+
queueId?: string;
|
|
3437
3694
|
/** The data type of the score. When passing a configId this field is inferred. Otherwise, this field must be passed or will default to numeric. */
|
|
3438
3695
|
dataType?: ScoreDataType;
|
|
3439
3696
|
/** Reference a score config on a score. The unique langfuse identifier of a score config. When passing this field, the dataType and stringValue fields are automatically populated. */
|
|
@@ -3543,6 +3800,32 @@ interface GetTracesRequest {
|
|
|
3543
3800
|
environment?: string | string[];
|
|
3544
3801
|
/** Comma-separated list of fields to include in the response. Available field groups: 'core' (always included), 'io' (input, output, metadata), 'scores', 'observations', 'metrics'. If not specified, all fields are returned. Example: 'core,scores,metrics'. Note: Excluded 'observations' or 'scores' fields return empty arrays; excluded 'metrics' returns -1 for 'totalCost' and 'latency'. */
|
|
3545
3802
|
fields?: string;
|
|
3803
|
+
/**
|
|
3804
|
+
* JSON string containing an array of filter conditions. When provided, this takes precedence over legacy filter parameters (userId, name, sessionId, tags, version, release, environment, fromTimestamp, toTimestamp).
|
|
3805
|
+
* Each filter condition has the following structure:
|
|
3806
|
+
* ```json
|
|
3807
|
+
* [
|
|
3808
|
+
* {
|
|
3809
|
+
* "type": string, // Required. One of: "datetime", "string", "number", "stringOptions", "categoryOptions", "arrayOptions", "stringObject", "numberObject", "boolean", "null"
|
|
3810
|
+
* "column": string, // Required. Column to filter on
|
|
3811
|
+
* "operator": string, // Required. Operator based on type:
|
|
3812
|
+
* // - datetime: ">", "<", ">=", "<="
|
|
3813
|
+
* // - string: "=", "contains", "does not contain", "starts with", "ends with"
|
|
3814
|
+
* // - stringOptions: "any of", "none of"
|
|
3815
|
+
* // - categoryOptions: "any of", "none of"
|
|
3816
|
+
* // - arrayOptions: "any of", "none of", "all of"
|
|
3817
|
+
* // - number: "=", ">", "<", ">=", "<="
|
|
3818
|
+
* // - stringObject: "=", "contains", "does not contain", "starts with", "ends with"
|
|
3819
|
+
* // - numberObject: "=", ">", "<", ">=", "<="
|
|
3820
|
+
* // - boolean: "=", "<>"
|
|
3821
|
+
* // - null: "is null", "is not null"
|
|
3822
|
+
* "value": any, // Required (except for null type). Value to compare against. Type depends on filter type
|
|
3823
|
+
* "key": string // Required only for stringObject, numberObject, and categoryOptions types when filtering on nested fields like metadata
|
|
3824
|
+
* }
|
|
3825
|
+
* ]
|
|
3826
|
+
* ```
|
|
3827
|
+
*/
|
|
3828
|
+
filter?: string;
|
|
3546
3829
|
}
|
|
3547
3830
|
|
|
3548
3831
|
/**
|
|
@@ -4532,7 +4815,7 @@ declare class Ingestion {
|
|
|
4532
4815
|
/**
|
|
4533
4816
|
* **Legacy endpoint for batch ingestion for Langfuse Observability.**
|
|
4534
4817
|
*
|
|
4535
|
-
* -> Please use the OpenTelemetry endpoint (`/api/public/otel`). Learn more: https://langfuse.com/integrations/native/opentelemetry
|
|
4818
|
+
* -> Please use the OpenTelemetry endpoint (`/api/public/otel/v1/traces`). Learn more: https://langfuse.com/integrations/native/opentelemetry
|
|
4536
4819
|
*
|
|
4537
4820
|
* Within each batch, there can be multiple events.
|
|
4538
4821
|
* Each event has a type, an id, a timestamp, metadata and a body.
|
|
@@ -4854,7 +5137,9 @@ declare class Metrics {
|
|
|
4854
5137
|
protected readonly _options: Metrics.Options;
|
|
4855
5138
|
constructor(_options: Metrics.Options);
|
|
4856
5139
|
/**
|
|
4857
|
-
* Get metrics from the Langfuse project using a query object
|
|
5140
|
+
* Get metrics from the Langfuse project using a query object.
|
|
5141
|
+
*
|
|
5142
|
+
* For more details, see the [Metrics API documentation](https://langfuse.com/docs/metrics/features/metrics-api).
|
|
4858
5143
|
*
|
|
4859
5144
|
* @param {LangfuseAPI.GetMetricsRequest} request
|
|
4860
5145
|
* @param {Metrics.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -5077,6 +5362,120 @@ declare class Observations {
|
|
|
5077
5362
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
5078
5363
|
}
|
|
5079
5364
|
|
|
5365
|
+
/**
|
|
5366
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
5367
|
+
*/
|
|
5368
|
+
|
|
5369
|
+
declare namespace Opentelemetry {
|
|
5370
|
+
interface Options {
|
|
5371
|
+
environment: Supplier<string>;
|
|
5372
|
+
/** Specify a custom URL to connect the client to. */
|
|
5373
|
+
baseUrl?: Supplier<string>;
|
|
5374
|
+
username?: Supplier<string | undefined>;
|
|
5375
|
+
password?: Supplier<string | undefined>;
|
|
5376
|
+
/** Override the X-Langfuse-Sdk-Name header */
|
|
5377
|
+
xLangfuseSdkName?: Supplier<string | undefined>;
|
|
5378
|
+
/** Override the X-Langfuse-Sdk-Version header */
|
|
5379
|
+
xLangfuseSdkVersion?: Supplier<string | undefined>;
|
|
5380
|
+
/** Override the X-Langfuse-Public-Key header */
|
|
5381
|
+
xLangfusePublicKey?: Supplier<string | undefined>;
|
|
5382
|
+
/** Additional headers to include in requests. */
|
|
5383
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
5384
|
+
}
|
|
5385
|
+
interface RequestOptions {
|
|
5386
|
+
/** The maximum time to wait for a response in seconds. */
|
|
5387
|
+
timeoutInSeconds?: number;
|
|
5388
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
5389
|
+
maxRetries?: number;
|
|
5390
|
+
/** A hook to abort the request. */
|
|
5391
|
+
abortSignal?: AbortSignal;
|
|
5392
|
+
/** Override the X-Langfuse-Sdk-Name header */
|
|
5393
|
+
xLangfuseSdkName?: string | undefined;
|
|
5394
|
+
/** Override the X-Langfuse-Sdk-Version header */
|
|
5395
|
+
xLangfuseSdkVersion?: string | undefined;
|
|
5396
|
+
/** Override the X-Langfuse-Public-Key header */
|
|
5397
|
+
xLangfusePublicKey?: string | undefined;
|
|
5398
|
+
/** Additional query string parameters to include in the request. */
|
|
5399
|
+
queryParams?: Record<string, unknown>;
|
|
5400
|
+
/** Additional headers to include in the request. */
|
|
5401
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
5402
|
+
}
|
|
5403
|
+
}
|
|
5404
|
+
declare class Opentelemetry {
|
|
5405
|
+
protected readonly _options: Opentelemetry.Options;
|
|
5406
|
+
constructor(_options: Opentelemetry.Options);
|
|
5407
|
+
/**
|
|
5408
|
+
* **OpenTelemetry Traces Ingestion Endpoint**
|
|
5409
|
+
*
|
|
5410
|
+
* This endpoint implements the OTLP/HTTP specification for trace ingestion, providing native OpenTelemetry integration for Langfuse Observability.
|
|
5411
|
+
*
|
|
5412
|
+
* **Supported Formats:**
|
|
5413
|
+
* - Binary Protobuf: `Content-Type: application/x-protobuf`
|
|
5414
|
+
* - JSON Protobuf: `Content-Type: application/json`
|
|
5415
|
+
* - Supports gzip compression via `Content-Encoding: gzip` header
|
|
5416
|
+
*
|
|
5417
|
+
* **Specification Compliance:**
|
|
5418
|
+
* - Conforms to [OTLP/HTTP Trace Export](https://opentelemetry.io/docs/specs/otlp/#otlphttp)
|
|
5419
|
+
* - Implements `ExportTraceServiceRequest` message format
|
|
5420
|
+
*
|
|
5421
|
+
* **Documentation:**
|
|
5422
|
+
* - Integration guide: https://langfuse.com/integrations/native/opentelemetry
|
|
5423
|
+
* - Data model: https://langfuse.com/docs/observability/data-model
|
|
5424
|
+
*
|
|
5425
|
+
* @param {LangfuseAPI.OtelTraceRequest} request
|
|
5426
|
+
* @param {Opentelemetry.RequestOptions} requestOptions - Request-specific configuration.
|
|
5427
|
+
*
|
|
5428
|
+
* @throws {@link LangfuseAPI.Error}
|
|
5429
|
+
* @throws {@link LangfuseAPI.UnauthorizedError}
|
|
5430
|
+
* @throws {@link LangfuseAPI.AccessDeniedError}
|
|
5431
|
+
* @throws {@link LangfuseAPI.MethodNotAllowedError}
|
|
5432
|
+
* @throws {@link LangfuseAPI.NotFoundError}
|
|
5433
|
+
*
|
|
5434
|
+
* @example
|
|
5435
|
+
* await client.opentelemetry.exportTraces({
|
|
5436
|
+
* resourceSpans: [{
|
|
5437
|
+
* resource: {
|
|
5438
|
+
* attributes: [{
|
|
5439
|
+
* key: "service.name",
|
|
5440
|
+
* value: {
|
|
5441
|
+
* stringValue: "my-service"
|
|
5442
|
+
* }
|
|
5443
|
+
* }, {
|
|
5444
|
+
* key: "service.version",
|
|
5445
|
+
* value: {
|
|
5446
|
+
* stringValue: "1.0.0"
|
|
5447
|
+
* }
|
|
5448
|
+
* }]
|
|
5449
|
+
* },
|
|
5450
|
+
* scopeSpans: [{
|
|
5451
|
+
* scope: {
|
|
5452
|
+
* name: "langfuse-sdk",
|
|
5453
|
+
* version: "2.60.3"
|
|
5454
|
+
* },
|
|
5455
|
+
* spans: [{
|
|
5456
|
+
* traceId: "0123456789abcdef0123456789abcdef",
|
|
5457
|
+
* spanId: "0123456789abcdef",
|
|
5458
|
+
* name: "my-operation",
|
|
5459
|
+
* kind: 1,
|
|
5460
|
+
* startTimeUnixNano: "1747872000000000000",
|
|
5461
|
+
* endTimeUnixNano: "1747872001000000000",
|
|
5462
|
+
* attributes: [{
|
|
5463
|
+
* key: "langfuse.observation.type",
|
|
5464
|
+
* value: {
|
|
5465
|
+
* stringValue: "generation"
|
|
5466
|
+
* }
|
|
5467
|
+
* }],
|
|
5468
|
+
* status: {}
|
|
5469
|
+
* }]
|
|
5470
|
+
* }]
|
|
5471
|
+
* }]
|
|
5472
|
+
* })
|
|
5473
|
+
*/
|
|
5474
|
+
exportTraces(request: OtelTraceRequest, requestOptions?: Opentelemetry.RequestOptions): HttpResponsePromise<OtelTraceResponse>;
|
|
5475
|
+
private __exportTraces;
|
|
5476
|
+
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
5477
|
+
}
|
|
5478
|
+
|
|
5080
5479
|
/**
|
|
5081
5480
|
* This file was auto-generated by Fern from our API Definition.
|
|
5082
5481
|
*/
|
|
@@ -5401,7 +5800,9 @@ declare class Projects {
|
|
|
5401
5800
|
*
|
|
5402
5801
|
* @example
|
|
5403
5802
|
* await client.projects.createApiKey("projectId", {
|
|
5404
|
-
* note: undefined
|
|
5803
|
+
* note: undefined,
|
|
5804
|
+
* publicKey: undefined,
|
|
5805
|
+
* secretKey: undefined
|
|
5405
5806
|
* })
|
|
5406
5807
|
*/
|
|
5407
5808
|
createApiKey(projectId: string, request?: CreateApiKeyRequest, requestOptions?: Projects.RequestOptions): HttpResponsePromise<ApiKeyResponse>;
|
|
@@ -5875,6 +6276,31 @@ declare class ScoreConfigs {
|
|
|
5875
6276
|
*/
|
|
5876
6277
|
getById(configId: string, requestOptions?: ScoreConfigs.RequestOptions): HttpResponsePromise<ScoreConfig>;
|
|
5877
6278
|
private __getById;
|
|
6279
|
+
/**
|
|
6280
|
+
* Update a score config
|
|
6281
|
+
*
|
|
6282
|
+
* @param {string} configId - The unique langfuse identifier of a score config
|
|
6283
|
+
* @param {LangfuseAPI.UpdateScoreConfigRequest} request
|
|
6284
|
+
* @param {ScoreConfigs.RequestOptions} requestOptions - Request-specific configuration.
|
|
6285
|
+
*
|
|
6286
|
+
* @throws {@link LangfuseAPI.Error}
|
|
6287
|
+
* @throws {@link LangfuseAPI.UnauthorizedError}
|
|
6288
|
+
* @throws {@link LangfuseAPI.AccessDeniedError}
|
|
6289
|
+
* @throws {@link LangfuseAPI.MethodNotAllowedError}
|
|
6290
|
+
* @throws {@link LangfuseAPI.NotFoundError}
|
|
6291
|
+
*
|
|
6292
|
+
* @example
|
|
6293
|
+
* await client.scoreConfigs.update("configId", {
|
|
6294
|
+
* isArchived: undefined,
|
|
6295
|
+
* name: undefined,
|
|
6296
|
+
* categories: undefined,
|
|
6297
|
+
* minValue: undefined,
|
|
6298
|
+
* maxValue: undefined,
|
|
6299
|
+
* description: undefined
|
|
6300
|
+
* })
|
|
6301
|
+
*/
|
|
6302
|
+
update(configId: string, request: UpdateScoreConfigRequest, requestOptions?: ScoreConfigs.RequestOptions): HttpResponsePromise<ScoreConfig>;
|
|
6303
|
+
private __update;
|
|
5878
6304
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
5879
6305
|
}
|
|
5880
6306
|
|
|
@@ -6023,6 +6449,7 @@ declare class Score {
|
|
|
6023
6449
|
* comment: undefined,
|
|
6024
6450
|
* metadata: undefined,
|
|
6025
6451
|
* environment: undefined,
|
|
6452
|
+
* queueId: undefined,
|
|
6026
6453
|
* dataType: undefined,
|
|
6027
6454
|
* configId: undefined
|
|
6028
6455
|
* })
|
|
@@ -6297,6 +6724,7 @@ declare class LangfuseAPIClient {
|
|
|
6297
6724
|
protected _metrics: Metrics | undefined;
|
|
6298
6725
|
protected _models: Models | undefined;
|
|
6299
6726
|
protected _observations: Observations | undefined;
|
|
6727
|
+
protected _opentelemetry: Opentelemetry | undefined;
|
|
6300
6728
|
protected _organizations: Organizations | undefined;
|
|
6301
6729
|
protected _projects: Projects | undefined;
|
|
6302
6730
|
protected _promptVersion: PromptVersion | undefined;
|
|
@@ -6321,6 +6749,7 @@ declare class LangfuseAPIClient {
|
|
|
6321
6749
|
get metrics(): Metrics;
|
|
6322
6750
|
get models(): Models;
|
|
6323
6751
|
get observations(): Observations;
|
|
6752
|
+
get opentelemetry(): Opentelemetry;
|
|
6324
6753
|
get organizations(): Organizations;
|
|
6325
6754
|
get projects(): Projects;
|
|
6326
6755
|
get promptVersion(): PromptVersion;
|
|
@@ -6496,4 +6925,4 @@ declare class LangfuseMedia {
|
|
|
6496
6925
|
toJSON(): string | null;
|
|
6497
6926
|
}
|
|
6498
6927
|
|
|
6499
|
-
export { AccessDeniedError, type AnnotationQueue, type AnnotationQueueAssignmentRequest, type AnnotationQueueItem, AnnotationQueueObjectType, AnnotationQueueStatus, type ApiKeyDeletionResponse, type ApiKeyList, type ApiKeyResponse, type ApiKeySummary, type AuthenticationScheme, type BaseEvent, type BasePrompt, type BaseScore, type BaseScoreV1, BlobStorageExportFrequency, BlobStorageExportMode, type BlobStorageIntegrationDeletionResponse, BlobStorageIntegrationFileType, type BlobStorageIntegrationResponse, BlobStorageIntegrationType, type BlobStorageIntegrationsResponse, type BooleanScore, type BooleanScoreV1, type BulkConfig, type CategoricalScore, type CategoricalScoreV1, type ChatMessage, ChatMessageWithPlaceholders, type ChatPrompt, type Comment, CommentObjectType, type ConfigCategory, type CreateAnnotationQueueAssignmentResponse, type CreateAnnotationQueueItemRequest, type CreateAnnotationQueueRequest, type CreateApiKeyRequest, type CreateBlobStorageIntegrationRequest, type CreateChatPromptRequest, type CreateCommentRequest, type CreateCommentResponse, type CreateDatasetItemRequest, type CreateDatasetRequest, type CreateDatasetRunItemRequest, type CreateEventBody, type CreateEventEvent, type CreateGenerationBody, type CreateGenerationEvent, type CreateModelRequest, type CreateObservationEvent, type CreateProjectRequest, CreatePromptRequest, type CreateScoreConfigRequest, type CreateScoreRequest, type CreateScoreResponse, type CreateScoreValue, type CreateSpanBody, type CreateSpanEvent, type CreateTextPromptRequest, type CreateUserRequest, type Dataset, type DatasetItem, type DatasetRun, type DatasetRunItem, type DatasetRunWithItems, DatasetStatus, type DeleteAnnotationQueueAssignmentResponse, type DeleteAnnotationQueueItemResponse, type DeleteDatasetItemResponse, type DeleteDatasetRunResponse, type DeleteMembershipRequest, type DeleteTraceResponse, type DeleteTracesRequest, type EmptyResponse, Error$1 as Error, type FilterConfig, type GetAnnotationQueueItemsRequest, type GetAnnotationQueuesRequest, type GetCommentsRequest, type GetCommentsResponse, type GetDatasetItemsRequest, type GetDatasetRunsRequest, type GetDatasetsRequest, type GetLlmConnectionsRequest, type GetMediaResponse, type GetMediaUploadUrlRequest, type GetMediaUploadUrlResponse, type GetMetricsRequest, type GetModelsRequest, type GetObservationsRequest, type GetPromptRequest, type GetScoreConfigsRequest, type GetScoresRequest, type GetScoresResponse, GetScoresResponseData, type GetScoresResponseDataBoolean, type GetScoresResponseDataCategorical, type GetScoresResponseDataNumeric, type GetScoresResponseTraceData, type GetSessionsRequest, type GetTracesRequest, type HealthResponse, type IngestionError, IngestionEvent, type IngestionRequest, type IngestionResponse, type IngestionSuccess, type IngestionUsage, LANGFUSE_SDK_NAME, LANGFUSE_SDK_VERSION, LANGFUSE_TRACER_NAME, LangfuseAPIClient, LangfuseAPIError, LangfuseAPITimeoutError, LangfuseMedia, type LangfuseMediaParams, LangfuseOtelSpanAttributes, type ListDatasetRunItemsRequest, type ListPromptsMetaRequest, type ListUsersRequest, LlmAdapter, type LlmConnection, LogLevel, Logger, type LoggerConfig, type MapValue, MediaContentType, type MembershipDeletionResponse, type MembershipRequest, type MembershipResponse, MembershipRole, type MembershipsResponse, MethodNotAllowedError, type MetricsResponse, type Model, type ModelPrice, ModelUsageUnit, NotFoundError, type NumericScore, type NumericScoreV1, type Observation, type ObservationBody, ObservationLevel, ObservationType, type Observations$1 as Observations, type ObservationsView, type ObservationsViews, type OpenAiCompletionUsageSchema, type OpenAiResponseUsageSchema, type OpenAiUsage, type OptionalObservationBody, type OrganizationProject, type OrganizationProjectsResponse, type PaginatedAnnotationQueueItems, type PaginatedAnnotationQueues, type PaginatedDatasetItems, type PaginatedDatasetRunItems, type PaginatedDatasetRuns, type PaginatedDatasets, type PaginatedLlmConnections, type PaginatedModels, type PaginatedSessions, type ParsedMediaReference, type PatchMediaBody, type PlaceholderMessage, type Project, type ProjectDeletionResponse, type Projects$1 as Projects, Prompt, type PromptMeta, type PromptMetaListResponse, type ResourceMeta, type ResourceType, type ResourceTypesResponse, type SchemaExtension, type SchemaResource, type SchemasResponse, type ScimEmail, type ScimFeatureSupport, type ScimName, type ScimUser, type ScimUsersListResponse, Score$1 as Score, type ScoreBody, type ScoreConfig, type ScoreConfigs$1 as ScoreConfigs, ScoreDataType, type ScoreEvent, ScoreSource, ScoreV1, type SdkLogBody, type SdkLogEvent, type ServiceProviderConfig, ServiceUnavailableError, type Session, type SessionWithTraces, type Sort, type TextPrompt, type Trace$1 as Trace, type TraceBody, type TraceEvent, type TraceWithDetails, type TraceWithFullDetails, type Traces, UnauthorizedError, type UpdateAnnotationQueueItemRequest, type UpdateEventBody, type UpdateGenerationBody, type UpdateGenerationEvent, type UpdateObservationEvent, type UpdateProjectRequest, type UpdatePromptRequest, type UpdateSpanBody, type UpdateSpanEvent, type UpsertLlmConnectionRequest, type Usage, type UsageDetails, type UserMeta, index$
|
|
6928
|
+
export { AccessDeniedError, type AnnotationQueue, type AnnotationQueueAssignmentRequest, type AnnotationQueueItem, AnnotationQueueObjectType, AnnotationQueueStatus, type ApiKeyDeletionResponse, type ApiKeyList, type ApiKeyResponse, type ApiKeySummary, type AuthenticationScheme, type BaseEvent, type BasePrompt, type BaseScore, type BaseScoreV1, BlobStorageExportFrequency, BlobStorageExportMode, type BlobStorageIntegrationDeletionResponse, BlobStorageIntegrationFileType, type BlobStorageIntegrationResponse, BlobStorageIntegrationType, type BlobStorageIntegrationsResponse, type BooleanScore, type BooleanScoreV1, type BulkConfig, type CategoricalScore, type CategoricalScoreV1, type ChatMessage, ChatMessageWithPlaceholders, type ChatPrompt, type Comment, CommentObjectType, type ConfigCategory, type CreateAnnotationQueueAssignmentResponse, type CreateAnnotationQueueItemRequest, type CreateAnnotationQueueRequest, type CreateApiKeyRequest, type CreateBlobStorageIntegrationRequest, type CreateChatPromptRequest, type CreateCommentRequest, type CreateCommentResponse, type CreateDatasetItemRequest, type CreateDatasetRequest, type CreateDatasetRunItemRequest, type CreateEventBody, type CreateEventEvent, type CreateGenerationBody, type CreateGenerationEvent, type CreateModelRequest, type CreateObservationEvent, type CreateProjectRequest, CreatePromptRequest, type CreateScoreConfigRequest, type CreateScoreRequest, type CreateScoreResponse, type CreateScoreValue, type CreateSpanBody, type CreateSpanEvent, type CreateTextPromptRequest, type CreateUserRequest, type Dataset, type DatasetItem, type DatasetRun, type DatasetRunItem, type DatasetRunWithItems, DatasetStatus, type DeleteAnnotationQueueAssignmentResponse, type DeleteAnnotationQueueItemResponse, type DeleteDatasetItemResponse, type DeleteDatasetRunResponse, type DeleteMembershipRequest, type DeleteTraceResponse, type DeleteTracesRequest, type EmptyResponse, Error$1 as Error, type FilterConfig, type GetAnnotationQueueItemsRequest, type GetAnnotationQueuesRequest, type GetCommentsRequest, type GetCommentsResponse, type GetDatasetItemsRequest, type GetDatasetRunsRequest, type GetDatasetsRequest, type GetLlmConnectionsRequest, type GetMediaResponse, type GetMediaUploadUrlRequest, type GetMediaUploadUrlResponse, type GetMetricsRequest, type GetModelsRequest, type GetObservationsRequest, type GetPromptRequest, type GetScoreConfigsRequest, type GetScoresRequest, type GetScoresResponse, GetScoresResponseData, type GetScoresResponseDataBoolean, type GetScoresResponseDataCategorical, type GetScoresResponseDataNumeric, type GetScoresResponseTraceData, type GetSessionsRequest, type GetTracesRequest, type HealthResponse, type IngestionError, IngestionEvent, type IngestionRequest, type IngestionResponse, type IngestionSuccess, type IngestionUsage, LANGFUSE_SDK_NAME, LANGFUSE_SDK_VERSION, LANGFUSE_TRACER_NAME, LangfuseAPIClient, LangfuseAPIError, LangfuseAPITimeoutError, LangfuseMedia, type LangfuseMediaParams, LangfuseOtelSpanAttributes, type ListDatasetRunItemsRequest, type ListPromptsMetaRequest, type ListUsersRequest, LlmAdapter, type LlmConnection, LogLevel, Logger, type LoggerConfig, type MapValue, MediaContentType, type MembershipDeletionResponse, type MembershipRequest, type MembershipResponse, MembershipRole, type MembershipsResponse, MethodNotAllowedError, type MetricsResponse, type Model, type ModelPrice, ModelUsageUnit, NotFoundError, type NumericScore, type NumericScoreV1, type Observation, type ObservationBody, ObservationLevel, ObservationType, type Observations$1 as Observations, type ObservationsView, type ObservationsViews, type OpenAiCompletionUsageSchema, type OpenAiResponseUsageSchema, type OpenAiUsage, type OptionalObservationBody, type OrganizationProject, type OrganizationProjectsResponse, type OtelAttribute, type OtelAttributeValue, type OtelResource, type OtelResourceSpan, type OtelScope, type OtelScopeSpan, type OtelSpan, type OtelTraceRequest, type OtelTraceResponse, type PaginatedAnnotationQueueItems, type PaginatedAnnotationQueues, type PaginatedDatasetItems, type PaginatedDatasetRunItems, type PaginatedDatasetRuns, type PaginatedDatasets, type PaginatedLlmConnections, type PaginatedModels, type PaginatedSessions, type ParsedMediaReference, type PatchMediaBody, type PlaceholderMessage, type Project, type ProjectDeletionResponse, type Projects$1 as Projects, Prompt, type PromptMeta, type PromptMetaListResponse, PromptType, type ResourceMeta, type ResourceType, type ResourceTypesResponse, type SchemaExtension, type SchemaResource, type SchemasResponse, type ScimEmail, type ScimFeatureSupport, type ScimName, type ScimUser, type ScimUsersListResponse, Score$1 as Score, type ScoreBody, type ScoreConfig, type ScoreConfigs$1 as ScoreConfigs, ScoreDataType, type ScoreEvent, ScoreSource, ScoreV1, type SdkLogBody, type SdkLogEvent, type ServiceProviderConfig, ServiceUnavailableError, type Session, type SessionWithTraces, type Sort, type TextPrompt, type Trace$1 as Trace, type TraceBody, type TraceEvent, type TraceWithDetails, type TraceWithFullDetails, type Traces, UnauthorizedError, type UpdateAnnotationQueueItemRequest, type UpdateEventBody, type UpdateGenerationBody, type UpdateGenerationEvent, type UpdateObservationEvent, type UpdateProjectRequest, type UpdatePromptRequest, type UpdateScoreConfigRequest, type UpdateSpanBody, type UpdateSpanEvent, type UpsertLlmConnectionRequest, type Usage, type UsageDetails, type UserMeta, index$q as annotationQueues, base64Decode, base64Encode, base64ToBytes, index$p as blobStorageIntegrations, bytesToBase64, index$o as comments, index$n as commons, configureGlobalLogger, createLogger, index$m as datasetItems, index$l as datasetRunItems, index$k as datasets, generateUUID, getEnv, getGlobalLogger, index$j as health, index$i as ingestion, index$h as llmConnections, LoggerSingleton as logger, index$g as media, index$f as metrics, index$e as models, index$d as observations, index$c as opentelemetry, index$b as organizations, index$a as projects, index as promptVersion, index$9 as prompts, resetGlobalLogger, safeSetTimeout, index$8 as scim, index$5 as score, index$7 as scoreConfigs, index$6 as scoreV2, index$4 as sessions, index$3 as trace, index$1 as utils };
|