@langfuse/core 4.4.0 → 4.4.1
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 +106 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +213 -8
- package/dist/index.d.ts +213 -8
- package/dist/index.mjs +106 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -992,6 +992,10 @@ interface Dataset {
|
|
|
992
992
|
name: string;
|
|
993
993
|
description?: string;
|
|
994
994
|
metadata?: unknown;
|
|
995
|
+
/** JSON Schema for validating dataset item inputs */
|
|
996
|
+
inputSchema?: unknown;
|
|
997
|
+
/** JSON Schema for validating dataset item expected outputs */
|
|
998
|
+
expectedOutputSchema?: unknown;
|
|
995
999
|
projectId: string;
|
|
996
1000
|
createdAt: string;
|
|
997
1001
|
updatedAt: string;
|
|
@@ -1481,6 +1485,10 @@ interface CreateDatasetRequest {
|
|
|
1481
1485
|
name: string;
|
|
1482
1486
|
description?: string;
|
|
1483
1487
|
metadata?: unknown;
|
|
1488
|
+
/** JSON Schema for validating dataset item inputs. When set, all new and existing dataset items will be validated against this schema. */
|
|
1489
|
+
inputSchema?: unknown;
|
|
1490
|
+
/** JSON Schema for validating dataset item expected outputs. When set, all new and existing dataset items will be validated against this schema. */
|
|
1491
|
+
expectedOutputSchema?: unknown;
|
|
1484
1492
|
}
|
|
1485
1493
|
|
|
1486
1494
|
/**
|
|
@@ -2535,13 +2543,15 @@ interface GetObservationsRequest {
|
|
|
2535
2543
|
/** Optional filter to only include observations with a certain version. */
|
|
2536
2544
|
version?: string;
|
|
2537
2545
|
/**
|
|
2538
|
-
* JSON string containing an array of filter conditions. When provided, this takes precedence over
|
|
2546
|
+
* JSON string containing an array of filter conditions. When provided, this takes precedence over query parameter filters (userId, name, type, level, environment, fromStartTime, ...).
|
|
2547
|
+
*
|
|
2548
|
+
* ## Filter Structure
|
|
2539
2549
|
* Each filter condition has the following structure:
|
|
2540
2550
|
* ```json
|
|
2541
2551
|
* [
|
|
2542
2552
|
* {
|
|
2543
2553
|
* "type": string, // Required. One of: "datetime", "string", "number", "stringOptions", "categoryOptions", "arrayOptions", "stringObject", "numberObject", "boolean", "null"
|
|
2544
|
-
* "column": string, // Required. Column to filter on
|
|
2554
|
+
* "column": string, // Required. Column to filter on (see available columns below)
|
|
2545
2555
|
* "operator": string, // Required. Operator based on type:
|
|
2546
2556
|
* // - datetime: ">", "<", ">=", "<="
|
|
2547
2557
|
* // - string: "=", "contains", "does not contain", "starts with", "ends with"
|
|
@@ -2558,6 +2568,78 @@ interface GetObservationsRequest {
|
|
|
2558
2568
|
* }
|
|
2559
2569
|
* ]
|
|
2560
2570
|
* ```
|
|
2571
|
+
*
|
|
2572
|
+
* ## Available Columns
|
|
2573
|
+
*
|
|
2574
|
+
* ### Core Observation Fields
|
|
2575
|
+
* - `id` (string) - Observation ID
|
|
2576
|
+
* - `type` (string) - Observation type (SPAN, GENERATION, EVENT)
|
|
2577
|
+
* - `name` (string) - Observation name
|
|
2578
|
+
* - `traceId` (string) - Associated trace ID
|
|
2579
|
+
* - `startTime` (datetime) - Observation start time
|
|
2580
|
+
* - `endTime` (datetime) - Observation end time
|
|
2581
|
+
* - `environment` (string) - Environment tag
|
|
2582
|
+
* - `level` (string) - Log level (DEBUG, DEFAULT, WARNING, ERROR)
|
|
2583
|
+
* - `statusMessage` (string) - Status message
|
|
2584
|
+
* - `version` (string) - Version tag
|
|
2585
|
+
*
|
|
2586
|
+
* ### Performance Metrics
|
|
2587
|
+
* - `latency` (number) - Latency in seconds (calculated: end_time - start_time)
|
|
2588
|
+
* - `timeToFirstToken` (number) - Time to first token in seconds
|
|
2589
|
+
* - `tokensPerSecond` (number) - Output tokens per second
|
|
2590
|
+
*
|
|
2591
|
+
* ### Token Usage
|
|
2592
|
+
* - `inputTokens` (number) - Number of input tokens
|
|
2593
|
+
* - `outputTokens` (number) - Number of output tokens
|
|
2594
|
+
* - `totalTokens` (number) - Total tokens (alias: `tokens`)
|
|
2595
|
+
*
|
|
2596
|
+
* ### Cost Metrics
|
|
2597
|
+
* - `inputCost` (number) - Input cost in USD
|
|
2598
|
+
* - `outputCost` (number) - Output cost in USD
|
|
2599
|
+
* - `totalCost` (number) - Total cost in USD
|
|
2600
|
+
*
|
|
2601
|
+
* ### Model Information
|
|
2602
|
+
* - `model` (string) - Provided model name
|
|
2603
|
+
* - `promptName` (string) - Associated prompt name
|
|
2604
|
+
* - `promptVersion` (number) - Associated prompt version
|
|
2605
|
+
*
|
|
2606
|
+
* ### Structured Data
|
|
2607
|
+
* - `metadata` (stringObject/numberObject/categoryOptions) - Metadata key-value pairs. Use `key` parameter to filter on specific metadata keys.
|
|
2608
|
+
*
|
|
2609
|
+
* ### Scores (requires join with scores table)
|
|
2610
|
+
* - `scores_avg` (number) - Average of numeric scores (alias: `scores`)
|
|
2611
|
+
* - `score_categories` (categoryOptions) - Categorical score values
|
|
2612
|
+
*
|
|
2613
|
+
* ### Associated Trace Fields (requires join with traces table)
|
|
2614
|
+
* - `userId` (string) - User ID from associated trace
|
|
2615
|
+
* - `traceName` (string) - Name from associated trace
|
|
2616
|
+
* - `traceEnvironment` (string) - Environment from associated trace
|
|
2617
|
+
* - `traceTags` (arrayOptions) - Tags from associated trace
|
|
2618
|
+
*
|
|
2619
|
+
* ## Filter Examples
|
|
2620
|
+
* ```json
|
|
2621
|
+
* [
|
|
2622
|
+
* {
|
|
2623
|
+
* "type": "string",
|
|
2624
|
+
* "column": "type",
|
|
2625
|
+
* "operator": "=",
|
|
2626
|
+
* "value": "GENERATION"
|
|
2627
|
+
* },
|
|
2628
|
+
* {
|
|
2629
|
+
* "type": "number",
|
|
2630
|
+
* "column": "latency",
|
|
2631
|
+
* "operator": ">=",
|
|
2632
|
+
* "value": 2.5
|
|
2633
|
+
* },
|
|
2634
|
+
* {
|
|
2635
|
+
* "type": "stringObject",
|
|
2636
|
+
* "column": "metadata",
|
|
2637
|
+
* "key": "environment",
|
|
2638
|
+
* "operator": "=",
|
|
2639
|
+
* "value": "production"
|
|
2640
|
+
* }
|
|
2641
|
+
* ]
|
|
2642
|
+
* ```
|
|
2561
2643
|
*/
|
|
2562
2644
|
filter?: string;
|
|
2563
2645
|
}
|
|
@@ -2828,16 +2910,39 @@ interface OrganizationProjectsResponse {
|
|
|
2828
2910
|
projects: OrganizationProject[];
|
|
2829
2911
|
}
|
|
2830
2912
|
|
|
2913
|
+
/**
|
|
2914
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
2915
|
+
*/
|
|
2916
|
+
interface OrganizationApiKey {
|
|
2917
|
+
id: string;
|
|
2918
|
+
createdAt: string;
|
|
2919
|
+
expiresAt?: string;
|
|
2920
|
+
lastUsedAt?: string;
|
|
2921
|
+
note?: string;
|
|
2922
|
+
publicKey: string;
|
|
2923
|
+
displaySecretKey: string;
|
|
2924
|
+
}
|
|
2925
|
+
|
|
2926
|
+
/**
|
|
2927
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
2928
|
+
*/
|
|
2929
|
+
|
|
2930
|
+
interface OrganizationApiKeysResponse {
|
|
2931
|
+
apiKeys: OrganizationApiKey[];
|
|
2932
|
+
}
|
|
2933
|
+
|
|
2831
2934
|
type index$b_DeleteMembershipRequest = DeleteMembershipRequest;
|
|
2832
2935
|
type index$b_MembershipDeletionResponse = MembershipDeletionResponse;
|
|
2833
2936
|
type index$b_MembershipRequest = MembershipRequest;
|
|
2834
2937
|
type index$b_MembershipResponse = MembershipResponse;
|
|
2835
2938
|
declare const index$b_MembershipRole: typeof MembershipRole;
|
|
2836
2939
|
type index$b_MembershipsResponse = MembershipsResponse;
|
|
2940
|
+
type index$b_OrganizationApiKey = OrganizationApiKey;
|
|
2941
|
+
type index$b_OrganizationApiKeysResponse = OrganizationApiKeysResponse;
|
|
2837
2942
|
type index$b_OrganizationProject = OrganizationProject;
|
|
2838
2943
|
type index$b_OrganizationProjectsResponse = OrganizationProjectsResponse;
|
|
2839
2944
|
declare namespace index$b {
|
|
2840
|
-
export { type index$b_DeleteMembershipRequest as DeleteMembershipRequest, type index$b_MembershipDeletionResponse as MembershipDeletionResponse, type index$b_MembershipRequest as MembershipRequest, type index$b_MembershipResponse as MembershipResponse, index$b_MembershipRole as MembershipRole, type index$b_MembershipsResponse as MembershipsResponse, type index$b_OrganizationProject as OrganizationProject, type index$b_OrganizationProjectsResponse as OrganizationProjectsResponse };
|
|
2945
|
+
export { type index$b_DeleteMembershipRequest as DeleteMembershipRequest, type index$b_MembershipDeletionResponse as MembershipDeletionResponse, type index$b_MembershipRequest as MembershipRequest, type index$b_MembershipResponse as MembershipResponse, index$b_MembershipRole as MembershipRole, type index$b_MembershipsResponse as MembershipsResponse, type index$b_OrganizationApiKey as OrganizationApiKey, type index$b_OrganizationApiKeysResponse as OrganizationApiKeysResponse, type index$b_OrganizationProject as OrganizationProject, type index$b_OrganizationProjectsResponse as OrganizationProjectsResponse };
|
|
2841
2946
|
}
|
|
2842
2947
|
|
|
2843
2948
|
/**
|
|
@@ -3698,7 +3803,7 @@ interface CreateScoreRequest {
|
|
|
3698
3803
|
/** 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) */
|
|
3699
3804
|
value: CreateScoreValue;
|
|
3700
3805
|
comment?: string;
|
|
3701
|
-
metadata?: unknown
|
|
3806
|
+
metadata?: Record<string, unknown>;
|
|
3702
3807
|
/** The environment of the score. Can be any lowercase alphanumeric string with hyphens and underscores that does not start with 'langfuse'. */
|
|
3703
3808
|
environment?: string;
|
|
3704
3809
|
/** The annotation queue referenced by the score. Indicates if score was initially created while processing annotation queue. */
|
|
@@ -3813,13 +3918,15 @@ interface GetTracesRequest {
|
|
|
3813
3918
|
/** 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'. */
|
|
3814
3919
|
fields?: string;
|
|
3815
3920
|
/**
|
|
3816
|
-
* JSON string containing an array of filter conditions. When provided, this takes precedence over
|
|
3921
|
+
* JSON string containing an array of filter conditions. When provided, this takes precedence over query parameter filters (userId, name, sessionId, tags, version, release, environment, fromTimestamp, toTimestamp).
|
|
3922
|
+
*
|
|
3923
|
+
* ## Filter Structure
|
|
3817
3924
|
* Each filter condition has the following structure:
|
|
3818
3925
|
* ```json
|
|
3819
3926
|
* [
|
|
3820
3927
|
* {
|
|
3821
3928
|
* "type": string, // Required. One of: "datetime", "string", "number", "stringOptions", "categoryOptions", "arrayOptions", "stringObject", "numberObject", "boolean", "null"
|
|
3822
|
-
* "column": string, // Required. Column to filter on
|
|
3929
|
+
* "column": string, // Required. Column to filter on (see available columns below)
|
|
3823
3930
|
* "operator": string, // Required. Operator based on type:
|
|
3824
3931
|
* // - datetime: ">", "<", ">=", "<="
|
|
3825
3932
|
* // - string: "=", "contains", "does not contain", "starts with", "ends with"
|
|
@@ -3836,6 +3943,86 @@ interface GetTracesRequest {
|
|
|
3836
3943
|
* }
|
|
3837
3944
|
* ]
|
|
3838
3945
|
* ```
|
|
3946
|
+
*
|
|
3947
|
+
* ## Available Columns
|
|
3948
|
+
*
|
|
3949
|
+
* ### Core Trace Fields
|
|
3950
|
+
* - `id` (string) - Trace ID
|
|
3951
|
+
* - `name` (string) - Trace name
|
|
3952
|
+
* - `timestamp` (datetime) - Trace timestamp
|
|
3953
|
+
* - `userId` (string) - User ID
|
|
3954
|
+
* - `sessionId` (string) - Session ID
|
|
3955
|
+
* - `environment` (string) - Environment tag
|
|
3956
|
+
* - `version` (string) - Version tag
|
|
3957
|
+
* - `release` (string) - Release tag
|
|
3958
|
+
* - `tags` (arrayOptions) - Array of tags
|
|
3959
|
+
* - `bookmarked` (boolean) - Bookmark status
|
|
3960
|
+
*
|
|
3961
|
+
* ### Structured Data
|
|
3962
|
+
* - `metadata` (stringObject/numberObject/categoryOptions) - Metadata key-value pairs. Use `key` parameter to filter on specific metadata keys.
|
|
3963
|
+
*
|
|
3964
|
+
* ### Aggregated Metrics (from observations)
|
|
3965
|
+
* These metrics are aggregated from all observations within the trace:
|
|
3966
|
+
* - `latency` (number) - Latency in seconds (time from first observation start to last observation end)
|
|
3967
|
+
* - `inputTokens` (number) - Total input tokens across all observations
|
|
3968
|
+
* - `outputTokens` (number) - Total output tokens across all observations
|
|
3969
|
+
* - `totalTokens` (number) - Total tokens (alias: `tokens`)
|
|
3970
|
+
* - `inputCost` (number) - Total input cost in USD
|
|
3971
|
+
* - `outputCost` (number) - Total output cost in USD
|
|
3972
|
+
* - `totalCost` (number) - Total cost in USD
|
|
3973
|
+
*
|
|
3974
|
+
* ### Observation Level Aggregations
|
|
3975
|
+
* These fields aggregate observation levels within the trace:
|
|
3976
|
+
* - `level` (string) - Highest severity level (ERROR > WARNING > DEFAULT > DEBUG)
|
|
3977
|
+
* - `warningCount` (number) - Count of WARNING level observations
|
|
3978
|
+
* - `errorCount` (number) - Count of ERROR level observations
|
|
3979
|
+
* - `defaultCount` (number) - Count of DEFAULT level observations
|
|
3980
|
+
* - `debugCount` (number) - Count of DEBUG level observations
|
|
3981
|
+
*
|
|
3982
|
+
* ### Scores (requires join with scores table)
|
|
3983
|
+
* - `scores_avg` (number) - Average of numeric scores (alias: `scores`)
|
|
3984
|
+
* - `score_categories` (categoryOptions) - Categorical score values
|
|
3985
|
+
*
|
|
3986
|
+
* ## Filter Examples
|
|
3987
|
+
* ```json
|
|
3988
|
+
* [
|
|
3989
|
+
* {
|
|
3990
|
+
* "type": "datetime",
|
|
3991
|
+
* "column": "timestamp",
|
|
3992
|
+
* "operator": ">=",
|
|
3993
|
+
* "value": "2024-01-01T00:00:00Z"
|
|
3994
|
+
* },
|
|
3995
|
+
* {
|
|
3996
|
+
* "type": "string",
|
|
3997
|
+
* "column": "userId",
|
|
3998
|
+
* "operator": "=",
|
|
3999
|
+
* "value": "user-123"
|
|
4000
|
+
* },
|
|
4001
|
+
* {
|
|
4002
|
+
* "type": "number",
|
|
4003
|
+
* "column": "totalCost",
|
|
4004
|
+
* "operator": ">=",
|
|
4005
|
+
* "value": 0.01
|
|
4006
|
+
* },
|
|
4007
|
+
* {
|
|
4008
|
+
* "type": "arrayOptions",
|
|
4009
|
+
* "column": "tags",
|
|
4010
|
+
* "operator": "all of",
|
|
4011
|
+
* "value": ["production", "critical"]
|
|
4012
|
+
* },
|
|
4013
|
+
* {
|
|
4014
|
+
* "type": "stringObject",
|
|
4015
|
+
* "column": "metadata",
|
|
4016
|
+
* "key": "customer_tier",
|
|
4017
|
+
* "operator": "=",
|
|
4018
|
+
* "value": "enterprise"
|
|
4019
|
+
* }
|
|
4020
|
+
* ]
|
|
4021
|
+
* ```
|
|
4022
|
+
*
|
|
4023
|
+
* ## Performance Notes
|
|
4024
|
+
* - Filtering on `userId`, `sessionId`, or `metadata` may enable skip indexes for better query performance
|
|
4025
|
+
* - Score filters require a join with the scores table and may impact query performance
|
|
3839
4026
|
*/
|
|
3840
4027
|
filter?: string;
|
|
3841
4028
|
}
|
|
@@ -4658,7 +4845,9 @@ declare class Datasets {
|
|
|
4658
4845
|
* await client.datasets.create({
|
|
4659
4846
|
* name: "name",
|
|
4660
4847
|
* description: undefined,
|
|
4661
|
-
* metadata: undefined
|
|
4848
|
+
* metadata: undefined,
|
|
4849
|
+
* inputSchema: undefined,
|
|
4850
|
+
* expectedOutputSchema: undefined
|
|
4662
4851
|
* })
|
|
4663
4852
|
*/
|
|
4664
4853
|
create(request: CreateDatasetRequest, requestOptions?: Datasets.RequestOptions): HttpResponsePromise<Dataset>;
|
|
@@ -5659,6 +5848,22 @@ declare class Organizations {
|
|
|
5659
5848
|
*/
|
|
5660
5849
|
getOrganizationProjects(requestOptions?: Organizations.RequestOptions): HttpResponsePromise<OrganizationProjectsResponse>;
|
|
5661
5850
|
private __getOrganizationProjects;
|
|
5851
|
+
/**
|
|
5852
|
+
* Get all API keys for the organization associated with the API key (requires organization-scoped API key)
|
|
5853
|
+
*
|
|
5854
|
+
* @param {Organizations.RequestOptions} requestOptions - Request-specific configuration.
|
|
5855
|
+
*
|
|
5856
|
+
* @throws {@link LangfuseAPI.Error}
|
|
5857
|
+
* @throws {@link LangfuseAPI.UnauthorizedError}
|
|
5858
|
+
* @throws {@link LangfuseAPI.AccessDeniedError}
|
|
5859
|
+
* @throws {@link LangfuseAPI.MethodNotAllowedError}
|
|
5860
|
+
* @throws {@link LangfuseAPI.NotFoundError}
|
|
5861
|
+
*
|
|
5862
|
+
* @example
|
|
5863
|
+
* await client.organizations.getOrganizationApiKeys()
|
|
5864
|
+
*/
|
|
5865
|
+
getOrganizationApiKeys(requestOptions?: Organizations.RequestOptions): HttpResponsePromise<OrganizationApiKeysResponse>;
|
|
5866
|
+
private __getOrganizationApiKeys;
|
|
5662
5867
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
5663
5868
|
}
|
|
5664
5869
|
|
|
@@ -7136,4 +7341,4 @@ interface PropagateAttributesParams {
|
|
|
7136
7341
|
declare function propagateAttributes<A extends unknown[], F extends (...args: A) => ReturnType<F>>(params: PropagateAttributesParams, fn: F): ReturnType<F>;
|
|
7137
7342
|
declare function getPropagatedAttributesFromContext(context: Context): Record<string, string | string[]>;
|
|
7138
7343
|
|
|
7139
|
-
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_EXPERIMENT_ENVIRONMENT, LANGFUSE_SDK_NAME, LANGFUSE_SDK_VERSION, LANGFUSE_TRACER_NAME, LangfuseAPIClient, LangfuseAPIError, LangfuseAPITimeoutError, LangfuseMedia, type LangfuseMediaParams, LangfuseOtelContextKeys, 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 PropagateAttributesParams, 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, createExperimentId, createExperimentItemId, createLogger, index$m as datasetItems, index$l as datasetRunItems, index$k as datasets, generateUUID, getEnv, getGlobalLogger, getPropagatedAttributesFromContext, 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, propagateAttributes, resetGlobalLogger, safeSetTimeout, index$8 as scim, index$5 as score, index$7 as scoreConfigs, index$6 as scoreV2, serializeValue, index$4 as sessions, index$3 as trace, index$1 as utils };
|
|
7344
|
+
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_EXPERIMENT_ENVIRONMENT, LANGFUSE_SDK_NAME, LANGFUSE_SDK_VERSION, LANGFUSE_TRACER_NAME, LangfuseAPIClient, LangfuseAPIError, LangfuseAPITimeoutError, LangfuseMedia, type LangfuseMediaParams, LangfuseOtelContextKeys, 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 OrganizationApiKey, type OrganizationApiKeysResponse, 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 PropagateAttributesParams, 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, createExperimentId, createExperimentItemId, createLogger, index$m as datasetItems, index$l as datasetRunItems, index$k as datasets, generateUUID, getEnv, getGlobalLogger, getPropagatedAttributesFromContext, 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, propagateAttributes, resetGlobalLogger, safeSetTimeout, index$8 as scim, index$5 as score, index$7 as scoreConfigs, index$6 as scoreV2, serializeValue, index$4 as sessions, index$3 as trace, index$1 as utils };
|