@langfuse/core 4.5.1 → 4.6.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/LICENSE +4 -1
- package/dist/index.cjs +61 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +221 -95
- package/dist/index.d.ts +221 -95
- package/dist/index.mjs +60 -9
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -97,6 +97,21 @@ declare class Logger {
|
|
|
97
97
|
* @returns The current log level
|
|
98
98
|
*/
|
|
99
99
|
getLevel(): LogLevel;
|
|
100
|
+
/**
|
|
101
|
+
* Checks if a given log level is enabled.
|
|
102
|
+
* Use this to guard expensive operations (like JSON.stringify) before debug logging.
|
|
103
|
+
*
|
|
104
|
+
* @param level - The log level to check
|
|
105
|
+
* @returns True if the level is enabled, false otherwise
|
|
106
|
+
*
|
|
107
|
+
* @example
|
|
108
|
+
* ```typescript
|
|
109
|
+
* if (logger.isLevelEnabled(LogLevel.DEBUG)) {
|
|
110
|
+
* logger.debug('Expensive data:', JSON.stringify(largeObject));
|
|
111
|
+
* }
|
|
112
|
+
* ```
|
|
113
|
+
*/
|
|
114
|
+
isLevelEnabled(level: LogLevel): boolean;
|
|
100
115
|
}
|
|
101
116
|
/**
|
|
102
117
|
* Singleton class that manages a global logger instance.
|
|
@@ -587,27 +602,27 @@ interface Trace$1 {
|
|
|
587
602
|
/** The timestamp when the trace was created */
|
|
588
603
|
timestamp: string;
|
|
589
604
|
/** The name of the trace */
|
|
590
|
-
name
|
|
605
|
+
name: string | null;
|
|
591
606
|
/** The input data of the trace. Can be any JSON. */
|
|
592
607
|
input?: unknown;
|
|
593
608
|
/** The output data of the trace. Can be any JSON. */
|
|
594
609
|
output?: unknown;
|
|
595
610
|
/** The session identifier associated with the trace */
|
|
596
|
-
sessionId
|
|
611
|
+
sessionId: string | null;
|
|
597
612
|
/** The release version of the application when the trace was created */
|
|
598
|
-
release
|
|
613
|
+
release: string | null;
|
|
599
614
|
/** The version of the trace */
|
|
600
|
-
version
|
|
615
|
+
version: string | null;
|
|
601
616
|
/** The user identifier associated with the trace */
|
|
602
|
-
userId
|
|
617
|
+
userId: string | null;
|
|
603
618
|
/** The metadata associated with the trace. Can be any JSON. */
|
|
604
619
|
metadata?: unknown;
|
|
605
|
-
/** The tags associated with the trace.
|
|
606
|
-
tags
|
|
620
|
+
/** The tags associated with the trace. */
|
|
621
|
+
tags: string[];
|
|
607
622
|
/** Public traces are accessible via url without login */
|
|
608
|
-
public
|
|
623
|
+
public: boolean;
|
|
609
624
|
/** The environment from which this trace originated. Can be any lowercase alphanumeric string with hyphens and underscores that does not start with 'langfuse'. */
|
|
610
|
-
environment
|
|
625
|
+
environment: string;
|
|
611
626
|
}
|
|
612
627
|
|
|
613
628
|
/**
|
|
@@ -618,13 +633,13 @@ interface TraceWithDetails extends Trace$1 {
|
|
|
618
633
|
/** Path of trace in Langfuse UI */
|
|
619
634
|
htmlPath: string;
|
|
620
635
|
/** Latency of trace in seconds */
|
|
621
|
-
latency
|
|
636
|
+
latency?: number | null;
|
|
622
637
|
/** Cost of trace in USD */
|
|
623
|
-
totalCost
|
|
638
|
+
totalCost?: number | null;
|
|
624
639
|
/** List of observation ids */
|
|
625
|
-
observations
|
|
640
|
+
observations?: string[] | null;
|
|
626
641
|
/** List of score ids */
|
|
627
|
-
scores
|
|
642
|
+
scores?: string[] | null;
|
|
628
643
|
}
|
|
629
644
|
|
|
630
645
|
/**
|
|
@@ -635,9 +650,9 @@ interface TraceWithFullDetails extends Trace$1 {
|
|
|
635
650
|
/** Path of trace in Langfuse UI */
|
|
636
651
|
htmlPath: string;
|
|
637
652
|
/** Latency of trace in seconds */
|
|
638
|
-
latency
|
|
653
|
+
latency?: number | null;
|
|
639
654
|
/** Cost of trace in USD */
|
|
640
|
-
totalCost
|
|
655
|
+
totalCost?: number | null;
|
|
641
656
|
/** List of observations */
|
|
642
657
|
observations: ObservationsView[];
|
|
643
658
|
/** List of scores */
|
|
@@ -652,7 +667,7 @@ interface Session {
|
|
|
652
667
|
createdAt: string;
|
|
653
668
|
projectId: string;
|
|
654
669
|
/** The environment from which this session originated. */
|
|
655
|
-
environment
|
|
670
|
+
environment: string;
|
|
656
671
|
}
|
|
657
672
|
|
|
658
673
|
/**
|
|
@@ -671,45 +686,45 @@ interface Observation {
|
|
|
671
686
|
/** The unique identifier of the observation */
|
|
672
687
|
id: string;
|
|
673
688
|
/** The trace ID associated with the observation */
|
|
674
|
-
traceId
|
|
689
|
+
traceId: string | null;
|
|
675
690
|
/** The type of the observation */
|
|
676
691
|
type: string;
|
|
677
692
|
/** The name of the observation */
|
|
678
|
-
name
|
|
693
|
+
name: string | null;
|
|
679
694
|
/** The start time of the observation */
|
|
680
695
|
startTime: string;
|
|
681
696
|
/** The end time of the observation. */
|
|
682
|
-
endTime
|
|
697
|
+
endTime: string | null;
|
|
683
698
|
/** The completion start time of the observation */
|
|
684
|
-
completionStartTime
|
|
699
|
+
completionStartTime: string | null;
|
|
685
700
|
/** The model used for the observation */
|
|
686
|
-
model
|
|
701
|
+
model: string | null;
|
|
687
702
|
/** The parameters of the model used for the observation */
|
|
688
|
-
modelParameters?:
|
|
703
|
+
modelParameters?: unknown;
|
|
689
704
|
/** The input data of the observation */
|
|
690
705
|
input?: unknown;
|
|
691
706
|
/** The version of the observation */
|
|
692
|
-
version
|
|
707
|
+
version: string | null;
|
|
693
708
|
/** Additional metadata of the observation */
|
|
694
709
|
metadata?: unknown;
|
|
695
710
|
/** The output data of the observation */
|
|
696
711
|
output?: unknown;
|
|
697
712
|
/** (Deprecated. Use usageDetails and costDetails instead.) The usage data of the observation */
|
|
698
|
-
usage
|
|
713
|
+
usage: Usage;
|
|
699
714
|
/** The level of the observation */
|
|
700
715
|
level: ObservationLevel;
|
|
701
716
|
/** The status message of the observation */
|
|
702
|
-
statusMessage
|
|
717
|
+
statusMessage: string | null;
|
|
703
718
|
/** The parent observation ID */
|
|
704
|
-
parentObservationId
|
|
719
|
+
parentObservationId: string | null;
|
|
705
720
|
/** The prompt ID associated with the observation */
|
|
706
|
-
promptId
|
|
721
|
+
promptId: string | null;
|
|
707
722
|
/** The usage details of the observation. Key is the name of the usage metric, value is the number of units consumed. The total key is the sum of all (non-total) usage metrics or the total value ingested. */
|
|
708
|
-
usageDetails
|
|
723
|
+
usageDetails: Record<string, number>;
|
|
709
724
|
/** The cost details of the observation. Key is the name of the cost metric, value is the cost in USD. The total key is the sum of all (non-total) cost metrics or the total value ingested. */
|
|
710
|
-
costDetails
|
|
725
|
+
costDetails: Record<string, number>;
|
|
711
726
|
/** The environment from which this observation originated. Can be any lowercase alphanumeric string with hyphens and underscores that does not start with 'langfuse'. */
|
|
712
|
-
environment
|
|
727
|
+
environment: string;
|
|
713
728
|
}
|
|
714
729
|
|
|
715
730
|
/**
|
|
@@ -718,44 +733,44 @@ interface Observation {
|
|
|
718
733
|
|
|
719
734
|
interface ObservationsView extends Observation {
|
|
720
735
|
/** The name of the prompt associated with the observation */
|
|
721
|
-
promptName
|
|
736
|
+
promptName: string | null;
|
|
722
737
|
/** The version of the prompt associated with the observation */
|
|
723
|
-
promptVersion
|
|
738
|
+
promptVersion: number | null;
|
|
724
739
|
/** The unique identifier of the model */
|
|
725
|
-
modelId
|
|
740
|
+
modelId: string | null;
|
|
726
741
|
/** The price of the input in USD */
|
|
727
|
-
inputPrice
|
|
742
|
+
inputPrice: number | null;
|
|
728
743
|
/** The price of the output in USD. */
|
|
729
|
-
outputPrice
|
|
744
|
+
outputPrice: number | null;
|
|
730
745
|
/** The total price in USD. */
|
|
731
|
-
totalPrice
|
|
746
|
+
totalPrice: number | null;
|
|
732
747
|
/** (Deprecated. Use usageDetails and costDetails instead.) The calculated cost of the input in USD */
|
|
733
|
-
calculatedInputCost
|
|
748
|
+
calculatedInputCost: number | null;
|
|
734
749
|
/** (Deprecated. Use usageDetails and costDetails instead.) The calculated cost of the output in USD */
|
|
735
|
-
calculatedOutputCost
|
|
750
|
+
calculatedOutputCost: number | null;
|
|
736
751
|
/** (Deprecated. Use usageDetails and costDetails instead.) The calculated total cost in USD */
|
|
737
|
-
calculatedTotalCost
|
|
752
|
+
calculatedTotalCost: number | null;
|
|
738
753
|
/** The latency in seconds. */
|
|
739
|
-
latency
|
|
754
|
+
latency: number | null;
|
|
740
755
|
/** The time to the first token in seconds */
|
|
741
|
-
timeToFirstToken
|
|
756
|
+
timeToFirstToken: number | null;
|
|
742
757
|
}
|
|
743
758
|
|
|
744
759
|
/**
|
|
745
760
|
* This file was auto-generated by Fern from our API Definition.
|
|
746
761
|
*/
|
|
747
|
-
|
|
748
762
|
/**
|
|
749
763
|
* (Deprecated. Use usageDetails and costDetails instead.) Standard interface for usage and cost
|
|
750
764
|
*/
|
|
751
765
|
interface Usage {
|
|
752
766
|
/** Number of input units (e.g. tokens) */
|
|
753
|
-
input
|
|
767
|
+
input: number;
|
|
754
768
|
/** Number of output units (e.g. tokens) */
|
|
755
|
-
output
|
|
769
|
+
output: number;
|
|
756
770
|
/** Defaults to input+output if not set */
|
|
757
|
-
total
|
|
758
|
-
|
|
771
|
+
total: number;
|
|
772
|
+
/** Unit of measurement */
|
|
773
|
+
unit: string | null;
|
|
759
774
|
/** USD input cost */
|
|
760
775
|
inputCost?: number;
|
|
761
776
|
/** USD output cost */
|
|
@@ -777,16 +792,17 @@ interface ScoreConfig {
|
|
|
777
792
|
createdAt: string;
|
|
778
793
|
updatedAt: string;
|
|
779
794
|
projectId: string;
|
|
780
|
-
dataType:
|
|
795
|
+
dataType: ScoreConfigDataType;
|
|
781
796
|
/** Whether the score config is archived. Defaults to false */
|
|
782
797
|
isArchived: boolean;
|
|
783
798
|
/** Sets minimum value for numerical scores. If not set, the minimum value defaults to -∞ */
|
|
784
|
-
minValue?: number;
|
|
799
|
+
minValue?: number | null;
|
|
785
800
|
/** Sets maximum value for numerical scores. If not set, the maximum value defaults to +∞ */
|
|
786
|
-
maxValue?: number;
|
|
801
|
+
maxValue?: number | null;
|
|
787
802
|
/** Configures custom categories for categorical scores */
|
|
788
803
|
categories?: ConfigCategory[];
|
|
789
|
-
|
|
804
|
+
/** Description of the score config */
|
|
805
|
+
description?: string | null;
|
|
790
806
|
}
|
|
791
807
|
|
|
792
808
|
/**
|
|
@@ -806,19 +822,23 @@ interface BaseScoreV1 {
|
|
|
806
822
|
traceId: string;
|
|
807
823
|
name: string;
|
|
808
824
|
source: ScoreSource;
|
|
809
|
-
|
|
825
|
+
/** The observation ID associated with the score */
|
|
826
|
+
observationId?: string | null;
|
|
810
827
|
timestamp: string;
|
|
811
828
|
createdAt: string;
|
|
812
829
|
updatedAt: string;
|
|
813
|
-
|
|
814
|
-
|
|
830
|
+
/** The user ID of the author */
|
|
831
|
+
authorUserId: string | null;
|
|
832
|
+
/** Comment on the score */
|
|
833
|
+
comment: string | null;
|
|
834
|
+
/** Metadata associated with the score */
|
|
815
835
|
metadata?: unknown;
|
|
816
836
|
/** 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 */
|
|
817
|
-
configId
|
|
837
|
+
configId: string | null;
|
|
818
838
|
/** The annotation queue referenced by the score. Indicates if score was initially created while processing annotation queue. */
|
|
819
|
-
queueId
|
|
839
|
+
queueId: string | null;
|
|
820
840
|
/** The environment from which this score originated. Can be any lowercase alphanumeric string with hyphens and underscores that does not start with 'langfuse'. */
|
|
821
|
-
environment
|
|
841
|
+
environment: string;
|
|
822
842
|
}
|
|
823
843
|
|
|
824
844
|
/**
|
|
@@ -884,24 +904,31 @@ declare namespace ScoreV1 {
|
|
|
884
904
|
|
|
885
905
|
interface BaseScore {
|
|
886
906
|
id: string;
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
907
|
+
/** The trace ID associated with the score */
|
|
908
|
+
traceId?: string | null;
|
|
909
|
+
/** The session ID associated with the score */
|
|
910
|
+
sessionId?: string | null;
|
|
911
|
+
/** The observation ID associated with the score */
|
|
912
|
+
observationId?: string | null;
|
|
913
|
+
/** The dataset run ID associated with the score */
|
|
914
|
+
datasetRunId?: string | null;
|
|
891
915
|
name: string;
|
|
892
916
|
source: ScoreSource;
|
|
893
917
|
timestamp: string;
|
|
894
918
|
createdAt: string;
|
|
895
919
|
updatedAt: string;
|
|
896
|
-
|
|
897
|
-
|
|
920
|
+
/** The user ID of the author */
|
|
921
|
+
authorUserId: string | null;
|
|
922
|
+
/** Comment on the score */
|
|
923
|
+
comment: string | null;
|
|
924
|
+
/** Metadata associated with the score */
|
|
898
925
|
metadata?: unknown;
|
|
899
926
|
/** 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 */
|
|
900
|
-
configId
|
|
927
|
+
configId: string | null;
|
|
901
928
|
/** The annotation queue referenced by the score. Indicates if score was initially created while processing annotation queue. */
|
|
902
|
-
queueId
|
|
929
|
+
queueId: string | null;
|
|
903
930
|
/** The environment from which this score originated. Can be any lowercase alphanumeric string with hyphens and underscores that does not start with 'langfuse'. */
|
|
904
|
-
environment
|
|
931
|
+
environment: string;
|
|
905
932
|
}
|
|
906
933
|
|
|
907
934
|
/**
|
|
@@ -935,6 +962,17 @@ interface CategoricalScore extends BaseScore {
|
|
|
935
962
|
stringValue: string;
|
|
936
963
|
}
|
|
937
964
|
|
|
965
|
+
/**
|
|
966
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
967
|
+
*/
|
|
968
|
+
|
|
969
|
+
interface CorrectionScore extends BaseScore {
|
|
970
|
+
/** The numeric value of the score. Always 0 for correction scores. */
|
|
971
|
+
value: number;
|
|
972
|
+
/** The string representation of the correction content */
|
|
973
|
+
stringValue: string;
|
|
974
|
+
}
|
|
975
|
+
|
|
938
976
|
/**
|
|
939
977
|
* This file was auto-generated by Fern from our API Definition.
|
|
940
978
|
*/
|
|
@@ -948,7 +986,10 @@ Score$1.Numeric
|
|
|
948
986
|
| Score$1.Categorical
|
|
949
987
|
/**
|
|
950
988
|
* Score with BOOLEAN data type */
|
|
951
|
-
| Score$1.Boolean
|
|
989
|
+
| Score$1.Boolean
|
|
990
|
+
/**
|
|
991
|
+
* Score with CORRECTION data type */
|
|
992
|
+
| Score$1.Correction;
|
|
952
993
|
declare namespace Score$1 {
|
|
953
994
|
interface Numeric extends NumericScore {
|
|
954
995
|
dataType: "NUMERIC";
|
|
@@ -959,6 +1000,9 @@ declare namespace Score$1 {
|
|
|
959
1000
|
interface Boolean extends BooleanScore {
|
|
960
1001
|
dataType: "BOOLEAN";
|
|
961
1002
|
}
|
|
1003
|
+
interface Correction extends CorrectionScore {
|
|
1004
|
+
dataType: "CORRECTION";
|
|
1005
|
+
}
|
|
962
1006
|
}
|
|
963
1007
|
|
|
964
1008
|
/**
|
|
@@ -981,7 +1025,8 @@ interface Comment {
|
|
|
981
1025
|
objectType: CommentObjectType;
|
|
982
1026
|
objectId: string;
|
|
983
1027
|
content: string;
|
|
984
|
-
|
|
1028
|
+
/** The user ID of the comment author */
|
|
1029
|
+
authorUserId?: string | null;
|
|
985
1030
|
}
|
|
986
1031
|
|
|
987
1032
|
/**
|
|
@@ -990,12 +1035,14 @@ interface Comment {
|
|
|
990
1035
|
interface Dataset {
|
|
991
1036
|
id: string;
|
|
992
1037
|
name: string;
|
|
993
|
-
|
|
1038
|
+
/** Description of the dataset */
|
|
1039
|
+
description: string | null;
|
|
1040
|
+
/** Metadata associated with the dataset */
|
|
994
1041
|
metadata?: unknown;
|
|
995
1042
|
/** JSON Schema for validating dataset item inputs */
|
|
996
|
-
inputSchema
|
|
1043
|
+
inputSchema: unknown | null;
|
|
997
1044
|
/** JSON Schema for validating dataset item expected outputs */
|
|
998
|
-
expectedOutputSchema
|
|
1045
|
+
expectedOutputSchema: unknown | null;
|
|
999
1046
|
projectId: string;
|
|
1000
1047
|
createdAt: string;
|
|
1001
1048
|
updatedAt: string;
|
|
@@ -1008,11 +1055,16 @@ interface Dataset {
|
|
|
1008
1055
|
interface DatasetItem {
|
|
1009
1056
|
id: string;
|
|
1010
1057
|
status: DatasetStatus;
|
|
1058
|
+
/** Input data for the dataset item */
|
|
1011
1059
|
input?: unknown;
|
|
1060
|
+
/** Expected output for the dataset item */
|
|
1012
1061
|
expectedOutput?: unknown;
|
|
1062
|
+
/** Metadata associated with the dataset item */
|
|
1013
1063
|
metadata?: unknown;
|
|
1014
|
-
|
|
1015
|
-
|
|
1064
|
+
/** The trace ID that sourced this dataset item */
|
|
1065
|
+
sourceTraceId: string | null;
|
|
1066
|
+
/** The observation ID that sourced this dataset item */
|
|
1067
|
+
sourceObservationId: string | null;
|
|
1016
1068
|
datasetId: string;
|
|
1017
1069
|
datasetName: string;
|
|
1018
1070
|
createdAt: string;
|
|
@@ -1028,7 +1080,8 @@ interface DatasetRunItem {
|
|
|
1028
1080
|
datasetRunName: string;
|
|
1029
1081
|
datasetItemId: string;
|
|
1030
1082
|
traceId: string;
|
|
1031
|
-
|
|
1083
|
+
/** The observation ID associated with this run item */
|
|
1084
|
+
observationId: string | null;
|
|
1032
1085
|
createdAt: string;
|
|
1033
1086
|
updatedAt: string;
|
|
1034
1087
|
}
|
|
@@ -1042,7 +1095,7 @@ interface DatasetRun {
|
|
|
1042
1095
|
/** Name of the dataset run */
|
|
1043
1096
|
name: string;
|
|
1044
1097
|
/** Description of the run */
|
|
1045
|
-
description
|
|
1098
|
+
description: string | null;
|
|
1046
1099
|
/** Metadata of the dataset run */
|
|
1047
1100
|
metadata?: unknown;
|
|
1048
1101
|
/** Id of the associated dataset */
|
|
@@ -1085,17 +1138,17 @@ interface Model {
|
|
|
1085
1138
|
/** Regex pattern which matches this model definition to generation.model. Useful in case of fine-tuned models. If you want to exact match, use `(?i)^modelname$` */
|
|
1086
1139
|
matchPattern: string;
|
|
1087
1140
|
/** Apply only to generations which are newer than this ISO date. */
|
|
1088
|
-
startDate
|
|
1141
|
+
startDate: string | null;
|
|
1089
1142
|
/** Unit used by this model. */
|
|
1090
|
-
unit?: ModelUsageUnit;
|
|
1143
|
+
unit?: ModelUsageUnit | null;
|
|
1091
1144
|
/** Deprecated. See 'prices' instead. Price (USD) per input unit */
|
|
1092
|
-
inputPrice
|
|
1145
|
+
inputPrice: number | null;
|
|
1093
1146
|
/** Deprecated. See 'prices' instead. Price (USD) per output unit */
|
|
1094
|
-
outputPrice
|
|
1147
|
+
outputPrice: number | null;
|
|
1095
1148
|
/** Deprecated. See 'prices' instead. Price (USD) per total unit. Cannot be set if input or output price is set. */
|
|
1096
|
-
totalPrice
|
|
1149
|
+
totalPrice: number | null;
|
|
1097
1150
|
/** Optional. Tokenizer to be applied to observations which match to this model. See docs for more details. */
|
|
1098
|
-
tokenizerId
|
|
1151
|
+
tokenizerId: string | null;
|
|
1099
1152
|
/** Optional. Configuration for the selected tokenizer. Needs to be JSON. See docs for more details. */
|
|
1100
1153
|
tokenizerConfig?: unknown;
|
|
1101
1154
|
isLangfuseManaged: boolean;
|
|
@@ -1389,11 +1442,22 @@ declare const ScoreSource: {
|
|
|
1389
1442
|
/**
|
|
1390
1443
|
* This file was auto-generated by Fern from our API Definition.
|
|
1391
1444
|
*/
|
|
1392
|
-
type
|
|
1445
|
+
type ScoreConfigDataType = "NUMERIC" | "BOOLEAN" | "CATEGORICAL";
|
|
1446
|
+
declare const ScoreConfigDataType: {
|
|
1447
|
+
readonly Numeric: "NUMERIC";
|
|
1448
|
+
readonly Boolean: "BOOLEAN";
|
|
1449
|
+
readonly Categorical: "CATEGORICAL";
|
|
1450
|
+
};
|
|
1451
|
+
|
|
1452
|
+
/**
|
|
1453
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
1454
|
+
*/
|
|
1455
|
+
type ScoreDataType = "NUMERIC" | "BOOLEAN" | "CATEGORICAL" | "CORRECTION";
|
|
1393
1456
|
declare const ScoreDataType: {
|
|
1394
1457
|
readonly Numeric: "NUMERIC";
|
|
1395
1458
|
readonly Boolean: "BOOLEAN";
|
|
1396
1459
|
readonly Categorical: "CATEGORICAL";
|
|
1460
|
+
readonly Correction: "CORRECTION";
|
|
1397
1461
|
};
|
|
1398
1462
|
|
|
1399
1463
|
/**
|
|
@@ -1547,6 +1611,7 @@ type index$p_CategoricalScoreV1 = CategoricalScoreV1;
|
|
|
1547
1611
|
type index$p_Comment = Comment;
|
|
1548
1612
|
declare const index$p_CommentObjectType: typeof CommentObjectType;
|
|
1549
1613
|
type index$p_ConfigCategory = ConfigCategory;
|
|
1614
|
+
type index$p_CorrectionScore = CorrectionScore;
|
|
1550
1615
|
type index$p_CreateScoreValue = CreateScoreValue;
|
|
1551
1616
|
type index$p_Dataset = Dataset;
|
|
1552
1617
|
type index$p_DatasetItem = DatasetItem;
|
|
@@ -1572,6 +1637,7 @@ type index$p_PricingTierCondition = PricingTierCondition;
|
|
|
1572
1637
|
type index$p_PricingTierInput = PricingTierInput;
|
|
1573
1638
|
declare const index$p_PricingTierOperator: typeof PricingTierOperator;
|
|
1574
1639
|
type index$p_ScoreConfig = ScoreConfig;
|
|
1640
|
+
declare const index$p_ScoreConfigDataType: typeof ScoreConfigDataType;
|
|
1575
1641
|
declare const index$p_ScoreDataType: typeof ScoreDataType;
|
|
1576
1642
|
declare const index$p_ScoreSource: typeof ScoreSource;
|
|
1577
1643
|
declare const index$p_ScoreV1: typeof ScoreV1;
|
|
@@ -1583,7 +1649,7 @@ type index$p_UnauthorizedError = UnauthorizedError;
|
|
|
1583
1649
|
declare const index$p_UnauthorizedError: typeof UnauthorizedError;
|
|
1584
1650
|
type index$p_Usage = Usage;
|
|
1585
1651
|
declare namespace index$p {
|
|
1586
|
-
export { index$p_AccessDeniedError as AccessDeniedError, type index$p_BaseScore as BaseScore, type index$p_BaseScoreV1 as BaseScoreV1, type index$p_BooleanScore as BooleanScore, type index$p_BooleanScoreV1 as BooleanScoreV1, type index$p_CategoricalScore as CategoricalScore, type index$p_CategoricalScoreV1 as CategoricalScoreV1, type index$p_Comment as Comment, index$p_CommentObjectType as CommentObjectType, type index$p_ConfigCategory as ConfigCategory, type index$p_CreateScoreValue as CreateScoreValue, type index$p_Dataset as Dataset, type index$p_DatasetItem as DatasetItem, type index$p_DatasetRun as DatasetRun, type index$p_DatasetRunItem as DatasetRunItem, type index$p_DatasetRunWithItems as DatasetRunWithItems, index$p_DatasetStatus as DatasetStatus, Error$1 as Error, type index$p_MapValue as MapValue, index$p_MethodNotAllowedError as MethodNotAllowedError, type index$p_Model as Model, type index$p_ModelPrice as ModelPrice, index$p_ModelUsageUnit as ModelUsageUnit, index$p_NotFoundError as NotFoundError, type index$p_NumericScore as NumericScore, type index$p_NumericScoreV1 as NumericScoreV1, type index$p_Observation as Observation, index$p_ObservationLevel as ObservationLevel, type index$p_ObservationsView as ObservationsView, type index$p_PricingTier as PricingTier, type index$p_PricingTierCondition as PricingTierCondition, type index$p_PricingTierInput as PricingTierInput, index$p_PricingTierOperator as PricingTierOperator, Score$1 as Score, type index$p_ScoreConfig as ScoreConfig, index$p_ScoreDataType as ScoreDataType, index$p_ScoreSource as ScoreSource, index$p_ScoreV1 as ScoreV1, type index$p_Session as Session, type index$p_SessionWithTraces as SessionWithTraces, type Trace$1 as Trace, type index$p_TraceWithDetails as TraceWithDetails, type index$p_TraceWithFullDetails as TraceWithFullDetails, index$p_UnauthorizedError as UnauthorizedError, type index$p_Usage as Usage };
|
|
1652
|
+
export { index$p_AccessDeniedError as AccessDeniedError, type index$p_BaseScore as BaseScore, type index$p_BaseScoreV1 as BaseScoreV1, type index$p_BooleanScore as BooleanScore, type index$p_BooleanScoreV1 as BooleanScoreV1, type index$p_CategoricalScore as CategoricalScore, type index$p_CategoricalScoreV1 as CategoricalScoreV1, type index$p_Comment as Comment, index$p_CommentObjectType as CommentObjectType, type index$p_ConfigCategory as ConfigCategory, type index$p_CorrectionScore as CorrectionScore, type index$p_CreateScoreValue as CreateScoreValue, type index$p_Dataset as Dataset, type index$p_DatasetItem as DatasetItem, type index$p_DatasetRun as DatasetRun, type index$p_DatasetRunItem as DatasetRunItem, type index$p_DatasetRunWithItems as DatasetRunWithItems, index$p_DatasetStatus as DatasetStatus, Error$1 as Error, type index$p_MapValue as MapValue, index$p_MethodNotAllowedError as MethodNotAllowedError, type index$p_Model as Model, type index$p_ModelPrice as ModelPrice, index$p_ModelUsageUnit as ModelUsageUnit, index$p_NotFoundError as NotFoundError, type index$p_NumericScore as NumericScore, type index$p_NumericScoreV1 as NumericScoreV1, type index$p_Observation as Observation, index$p_ObservationLevel as ObservationLevel, type index$p_ObservationsView as ObservationsView, type index$p_PricingTier as PricingTier, type index$p_PricingTierCondition as PricingTierCondition, type index$p_PricingTierInput as PricingTierInput, index$p_PricingTierOperator as PricingTierOperator, Score$1 as Score, type index$p_ScoreConfig as ScoreConfig, index$p_ScoreConfigDataType as ScoreConfigDataType, index$p_ScoreDataType as ScoreDataType, index$p_ScoreSource as ScoreSource, index$p_ScoreV1 as ScoreV1, type index$p_Session as Session, type index$p_SessionWithTraces as SessionWithTraces, type Trace$1 as Trace, type index$p_TraceWithDetails as TraceWithDetails, type index$p_TraceWithFullDetails as TraceWithFullDetails, index$p_UnauthorizedError as UnauthorizedError, type index$p_Usage as Usage };
|
|
1587
1653
|
}
|
|
1588
1654
|
|
|
1589
1655
|
/**
|
|
@@ -1631,6 +1697,12 @@ interface GetDatasetItemsRequest {
|
|
|
1631
1697
|
datasetName?: string;
|
|
1632
1698
|
sourceTraceId?: string;
|
|
1633
1699
|
sourceObservationId?: string;
|
|
1700
|
+
/**
|
|
1701
|
+
* ISO 8601 timestamp (RFC 3339, Section 5.6) in UTC (e.g., "2026-01-21T14:35:42Z").
|
|
1702
|
+
* If provided, returns state of dataset at this timestamp.
|
|
1703
|
+
* If not provided, returns the latest version. Requires datasetName to be specified.
|
|
1704
|
+
*/
|
|
1705
|
+
version?: string;
|
|
1634
1706
|
/** page number, starts at 1 */
|
|
1635
1707
|
page?: number;
|
|
1636
1708
|
/** limit of items per page */
|
|
@@ -1658,6 +1730,13 @@ interface CreateDatasetRunItemRequest {
|
|
|
1658
1730
|
observationId?: string;
|
|
1659
1731
|
/** traceId should always be provided. For compatibility with older SDK versions it can also be inferred from the provided observationId. */
|
|
1660
1732
|
traceId?: string;
|
|
1733
|
+
/**
|
|
1734
|
+
* ISO 8601 timestamp (RFC 3339, Section 5.6) in UTC (e.g., "2026-01-21T14:35:42Z").
|
|
1735
|
+
* Specifies the dataset version to use for this experiment run.
|
|
1736
|
+
* If provided, the experiment will use dataset items as they existed at or before this timestamp.
|
|
1737
|
+
* If not provided, uses the latest version of dataset items.
|
|
1738
|
+
*/
|
|
1739
|
+
datasetVersion?: string;
|
|
1661
1740
|
}
|
|
1662
1741
|
|
|
1663
1742
|
/**
|
|
@@ -2119,6 +2198,7 @@ interface ScoreBody {
|
|
|
2119
2198
|
sessionId?: string;
|
|
2120
2199
|
observationId?: string;
|
|
2121
2200
|
datasetRunId?: string;
|
|
2201
|
+
/** The name of the score. Always overrides "output" for correction scores. */
|
|
2122
2202
|
name: string;
|
|
2123
2203
|
environment?: string;
|
|
2124
2204
|
/** The annotation queue referenced by the score. Indicates if score was initially created while processing annotation queue. */
|
|
@@ -2895,6 +2975,13 @@ interface GetObservationsV2Request {
|
|
|
2895
2975
|
* Example: "basic,usage,model"
|
|
2896
2976
|
*/
|
|
2897
2977
|
fields?: string;
|
|
2978
|
+
/**
|
|
2979
|
+
* Comma-separated list of metadata keys to return non-truncated.
|
|
2980
|
+
* By default, metadata values over 200 characters are truncated.
|
|
2981
|
+
* Use this parameter to retrieve full values for specific keys.
|
|
2982
|
+
* Example: "key1,key2"
|
|
2983
|
+
*/
|
|
2984
|
+
expandMetadata?: string;
|
|
2898
2985
|
/** Number of items to return per page. Maximum 1000, default 50. */
|
|
2899
2986
|
limit?: number;
|
|
2900
2987
|
/** Base64-encoded cursor for pagination. Use the cursor from the previous response to get the next page. */
|
|
@@ -3482,9 +3569,22 @@ interface Projects$1 {
|
|
|
3482
3569
|
/**
|
|
3483
3570
|
* This file was auto-generated by Fern from our API Definition.
|
|
3484
3571
|
*/
|
|
3572
|
+
interface Organization {
|
|
3573
|
+
/** The unique identifier of the organization */
|
|
3574
|
+
id: string;
|
|
3575
|
+
/** The name of the organization */
|
|
3576
|
+
name: string;
|
|
3577
|
+
}
|
|
3578
|
+
|
|
3579
|
+
/**
|
|
3580
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3581
|
+
*/
|
|
3582
|
+
|
|
3485
3583
|
interface Project {
|
|
3486
3584
|
id: string;
|
|
3487
3585
|
name: string;
|
|
3586
|
+
/** The organization this project belongs to */
|
|
3587
|
+
organization: Organization;
|
|
3488
3588
|
/** Metadata for the project */
|
|
3489
3589
|
metadata: Record<string, unknown>;
|
|
3490
3590
|
/** Number of days to retain data. Null or 0 means no retention. Omitted if no retention is configured. */
|
|
@@ -3578,15 +3678,20 @@ interface CreateProjectRequest {
|
|
|
3578
3678
|
* {
|
|
3579
3679
|
* name: "name",
|
|
3580
3680
|
* metadata: undefined,
|
|
3581
|
-
* retention:
|
|
3681
|
+
* retention: undefined
|
|
3582
3682
|
* }
|
|
3583
3683
|
*/
|
|
3584
3684
|
interface UpdateProjectRequest {
|
|
3585
3685
|
name: string;
|
|
3586
3686
|
/** Optional metadata for the project */
|
|
3587
3687
|
metadata?: Record<string, unknown>;
|
|
3588
|
-
/**
|
|
3589
|
-
|
|
3688
|
+
/**
|
|
3689
|
+
* Number of days to retain data.
|
|
3690
|
+
* Must be 0 or at least 3 days.
|
|
3691
|
+
* Requires data-retention entitlement for non-zero values.
|
|
3692
|
+
* Optional. Will retain existing retention setting if omitted.
|
|
3693
|
+
*/
|
|
3694
|
+
retention?: number;
|
|
3590
3695
|
}
|
|
3591
3696
|
|
|
3592
3697
|
/**
|
|
@@ -3615,11 +3720,12 @@ type index$a_ApiKeyResponse = ApiKeyResponse;
|
|
|
3615
3720
|
type index$a_ApiKeySummary = ApiKeySummary;
|
|
3616
3721
|
type index$a_CreateApiKeyRequest = CreateApiKeyRequest;
|
|
3617
3722
|
type index$a_CreateProjectRequest = CreateProjectRequest;
|
|
3723
|
+
type index$a_Organization = Organization;
|
|
3618
3724
|
type index$a_Project = Project;
|
|
3619
3725
|
type index$a_ProjectDeletionResponse = ProjectDeletionResponse;
|
|
3620
3726
|
type index$a_UpdateProjectRequest = UpdateProjectRequest;
|
|
3621
3727
|
declare namespace index$a {
|
|
3622
|
-
export type { index$a_ApiKeyDeletionResponse as ApiKeyDeletionResponse, index$a_ApiKeyList as ApiKeyList, index$a_ApiKeyResponse as ApiKeyResponse, index$a_ApiKeySummary as ApiKeySummary, index$a_CreateApiKeyRequest as CreateApiKeyRequest, index$a_CreateProjectRequest as CreateProjectRequest, index$a_Project as Project, index$a_ProjectDeletionResponse as ProjectDeletionResponse, Projects$1 as Projects, index$a_UpdateProjectRequest as UpdateProjectRequest };
|
|
3728
|
+
export type { index$a_ApiKeyDeletionResponse as ApiKeyDeletionResponse, index$a_ApiKeyList as ApiKeyList, index$a_ApiKeyResponse as ApiKeyResponse, index$a_ApiKeySummary as ApiKeySummary, index$a_CreateApiKeyRequest as CreateApiKeyRequest, index$a_CreateProjectRequest as CreateProjectRequest, index$a_Organization as Organization, index$a_Project as Project, index$a_ProjectDeletionResponse as ProjectDeletionResponse, Projects$1 as Projects, index$a_UpdateProjectRequest as UpdateProjectRequest };
|
|
3623
3729
|
}
|
|
3624
3730
|
|
|
3625
3731
|
/**
|
|
@@ -4103,7 +4209,7 @@ interface ScoreConfigs$1 {
|
|
|
4103
4209
|
|
|
4104
4210
|
interface CreateScoreConfigRequest {
|
|
4105
4211
|
name: string;
|
|
4106
|
-
dataType:
|
|
4212
|
+
dataType: ScoreConfigDataType;
|
|
4107
4213
|
/** 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 */
|
|
4108
4214
|
categories?: ConfigCategory[];
|
|
4109
4215
|
/** Configure a minimum value for numerical scores. If not set, the minimum value defaults to -∞ */
|
|
@@ -4194,7 +4300,15 @@ interface GetScoresResponseDataBoolean extends BooleanScore {
|
|
|
4194
4300
|
* This file was auto-generated by Fern from our API Definition.
|
|
4195
4301
|
*/
|
|
4196
4302
|
|
|
4197
|
-
|
|
4303
|
+
interface GetScoresResponseDataCorrection extends CorrectionScore {
|
|
4304
|
+
trace?: GetScoresResponseTraceData;
|
|
4305
|
+
}
|
|
4306
|
+
|
|
4307
|
+
/**
|
|
4308
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4309
|
+
*/
|
|
4310
|
+
|
|
4311
|
+
type GetScoresResponseData = GetScoresResponseData.Numeric | GetScoresResponseData.Categorical | GetScoresResponseData.Boolean | GetScoresResponseData.Correction;
|
|
4198
4312
|
declare namespace GetScoresResponseData {
|
|
4199
4313
|
interface Numeric extends GetScoresResponseDataNumeric {
|
|
4200
4314
|
dataType: "NUMERIC";
|
|
@@ -4205,6 +4319,9 @@ declare namespace GetScoresResponseData {
|
|
|
4205
4319
|
interface Boolean extends GetScoresResponseDataBoolean {
|
|
4206
4320
|
dataType: "BOOLEAN";
|
|
4207
4321
|
}
|
|
4322
|
+
interface Correction extends GetScoresResponseDataCorrection {
|
|
4323
|
+
dataType: "CORRECTION";
|
|
4324
|
+
}
|
|
4208
4325
|
}
|
|
4209
4326
|
|
|
4210
4327
|
/**
|
|
@@ -4261,6 +4378,8 @@ interface GetScoresRequest {
|
|
|
4261
4378
|
dataType?: ScoreDataType;
|
|
4262
4379
|
/** Only scores linked to traces that include all of these tags will be returned. */
|
|
4263
4380
|
traceTags?: string | string[];
|
|
4381
|
+
/** Comma-separated list of field groups to include in the response. Available field groups: 'score' (core score fields), 'trace' (trace properties: userId, tags, environment). If not specified, both 'score' and 'trace' are returned by default. Example: 'score' to exclude trace data, 'score,trace' to include both. Note: When filtering by trace properties (using userId or traceTags parameters), the 'trace' field group must be included, otherwise a 400 error will be returned. */
|
|
4382
|
+
fields?: string;
|
|
4264
4383
|
}
|
|
4265
4384
|
|
|
4266
4385
|
type index$6_GetScoresRequest = GetScoresRequest;
|
|
@@ -4268,10 +4387,11 @@ type index$6_GetScoresResponse = GetScoresResponse;
|
|
|
4268
4387
|
declare const index$6_GetScoresResponseData: typeof GetScoresResponseData;
|
|
4269
4388
|
type index$6_GetScoresResponseDataBoolean = GetScoresResponseDataBoolean;
|
|
4270
4389
|
type index$6_GetScoresResponseDataCategorical = GetScoresResponseDataCategorical;
|
|
4390
|
+
type index$6_GetScoresResponseDataCorrection = GetScoresResponseDataCorrection;
|
|
4271
4391
|
type index$6_GetScoresResponseDataNumeric = GetScoresResponseDataNumeric;
|
|
4272
4392
|
type index$6_GetScoresResponseTraceData = GetScoresResponseTraceData;
|
|
4273
4393
|
declare namespace index$6 {
|
|
4274
|
-
export { type index$6_GetScoresRequest as GetScoresRequest, type index$6_GetScoresResponse as GetScoresResponse, index$6_GetScoresResponseData as GetScoresResponseData, type index$6_GetScoresResponseDataBoolean as GetScoresResponseDataBoolean, type index$6_GetScoresResponseDataCategorical as GetScoresResponseDataCategorical, type index$6_GetScoresResponseDataNumeric as GetScoresResponseDataNumeric, type index$6_GetScoresResponseTraceData as GetScoresResponseTraceData };
|
|
4394
|
+
export { type index$6_GetScoresRequest as GetScoresRequest, type index$6_GetScoresResponse as GetScoresResponse, index$6_GetScoresResponseData as GetScoresResponseData, type index$6_GetScoresResponseDataBoolean as GetScoresResponseDataBoolean, type index$6_GetScoresResponseDataCategorical as GetScoresResponseDataCategorical, type index$6_GetScoresResponseDataCorrection as GetScoresResponseDataCorrection, type index$6_GetScoresResponseDataNumeric as GetScoresResponseDataNumeric, type index$6_GetScoresResponseTraceData as GetScoresResponseTraceData };
|
|
4275
4395
|
}
|
|
4276
4396
|
|
|
4277
4397
|
/**
|
|
@@ -5173,7 +5293,8 @@ declare class DatasetItems {
|
|
|
5173
5293
|
get(id: string, requestOptions?: DatasetItems.RequestOptions): HttpResponsePromise<DatasetItem>;
|
|
5174
5294
|
private __get;
|
|
5175
5295
|
/**
|
|
5176
|
-
* Get dataset items
|
|
5296
|
+
* Get dataset items. Optionally specify a version to get the items as they existed at that point in time.
|
|
5297
|
+
* Note: If version parameter is provided, datasetName must also be provided.
|
|
5177
5298
|
*
|
|
5178
5299
|
* @param {LangfuseAPI.GetDatasetItemsRequest} request
|
|
5179
5300
|
* @param {DatasetItems.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -5270,7 +5391,8 @@ declare class DatasetRunItems {
|
|
|
5270
5391
|
* metadata: undefined,
|
|
5271
5392
|
* datasetItemId: "datasetItemId",
|
|
5272
5393
|
* observationId: undefined,
|
|
5273
|
-
* traceId: undefined
|
|
5394
|
+
* traceId: undefined,
|
|
5395
|
+
* datasetVersion: undefined
|
|
5274
5396
|
* })
|
|
5275
5397
|
*/
|
|
5276
5398
|
create(request: CreateDatasetRunItemRequest, requestOptions?: DatasetRunItems.RequestOptions): HttpResponsePromise<DatasetRunItem>;
|
|
@@ -6050,6 +6172,8 @@ declare class Metrics {
|
|
|
6050
6172
|
/**
|
|
6051
6173
|
* Get metrics from the Langfuse project using a query object.
|
|
6052
6174
|
*
|
|
6175
|
+
* Consider using the [v2 metrics endpoint](/api-reference#tag/metricsv2/GET/api/public/v2/metrics) for better performance.
|
|
6176
|
+
*
|
|
6053
6177
|
* For more details, see the [Metrics API documentation](https://langfuse.com/docs/metrics/features/metrics-api).
|
|
6054
6178
|
*
|
|
6055
6179
|
* @param {LangfuseAPI.GetMetricsRequest} request
|
|
@@ -6251,7 +6375,7 @@ declare class ObservationsV2 {
|
|
|
6251
6375
|
* - `basic` - name, level, statusMessage, version, environment, bookmarked, public, userId, sessionId
|
|
6252
6376
|
* - `time` - completionStartTime, createdAt, updatedAt
|
|
6253
6377
|
* - `io` - input, output
|
|
6254
|
-
* - `metadata` - metadata
|
|
6378
|
+
* - `metadata` - metadata (truncated to 200 chars by default, use `expandMetadata` to get full values)
|
|
6255
6379
|
* - `model` - providedModelName, internalModelId, modelParameters
|
|
6256
6380
|
* - `usage` - usageDetails, costDetails, totalCost
|
|
6257
6381
|
* - `prompt` - promptId, promptName, promptVersion
|
|
@@ -6340,7 +6464,9 @@ declare class Observations {
|
|
|
6340
6464
|
get(observationId: string, requestOptions?: Observations.RequestOptions): HttpResponsePromise<ObservationsView>;
|
|
6341
6465
|
private __get;
|
|
6342
6466
|
/**
|
|
6343
|
-
* Get a list of observations
|
|
6467
|
+
* Get a list of observations.
|
|
6468
|
+
*
|
|
6469
|
+
* Consider using the [v2 observations endpoint](/api-reference#tag/observationsv2/GET/api/public/v2/observations) for cursor-based pagination and field selection.
|
|
6344
6470
|
*
|
|
6345
6471
|
* @param {LangfuseAPI.GetObservationsRequest} request
|
|
6346
6472
|
* @param {Observations.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -6759,7 +6885,7 @@ declare class Projects {
|
|
|
6759
6885
|
* await client.projects.update("projectId", {
|
|
6760
6886
|
* name: "name",
|
|
6761
6887
|
* metadata: undefined,
|
|
6762
|
-
* retention:
|
|
6888
|
+
* retention: undefined
|
|
6763
6889
|
* })
|
|
6764
6890
|
*/
|
|
6765
6891
|
update(projectId: string, request: UpdateProjectRequest, requestOptions?: Projects.RequestOptions): HttpResponsePromise<Project>;
|
|
@@ -8166,4 +8292,4 @@ interface PropagateAttributesParams {
|
|
|
8166
8292
|
declare function propagateAttributes<A extends unknown[], F extends (...args: A) => ReturnType<F>>(params: PropagateAttributesParams, fn: F): ReturnType<F>;
|
|
8167
8293
|
declare function getPropagatedAttributesFromContext(context: Context): Record<string, string | string[]>;
|
|
8168
8294
|
|
|
8169
|
-
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 DeletePromptRequest, 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 GetMetricsV2Request, type GetModelsRequest, type GetObservationsRequest, type GetObservationsV2Request, 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 MetricsV2Response, type Model, type ModelPrice, ModelUsageUnit, NotFoundError, type NumericScore, type NumericScoreV1, type Observation, type ObservationBody, ObservationLevel, ObservationType, type Observations$1 as Observations, type ObservationsV2Meta, type ObservationsV2Response, 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 PricingTier, type PricingTierCondition, type PricingTierInput, PricingTierOperator, 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$s as annotationQueues, base64Decode, base64Encode, base64ToBytes, index$r as blobStorageIntegrations, bytesToBase64, index$q as comments, index$p as commons, configureGlobalLogger, createExperimentId, createExperimentItemId, createLogger, index$o as datasetItems, index$n as datasetRunItems, index$m as datasets, generateUUID, getEnv, getGlobalLogger, getPropagatedAttributesFromContext, index$l as health, index$k as ingestion, index$j as llmConnections, LoggerSingleton as logger, index$i as media, index$g as metrics, index$h as metricsV2, index$f as models, index$d as observations, index$e as observationsV2, 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 };
|
|
8295
|
+
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 CorrectionScore, 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 DeletePromptRequest, 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 GetMetricsV2Request, type GetModelsRequest, type GetObservationsRequest, type GetObservationsV2Request, type GetPromptRequest, type GetScoreConfigsRequest, type GetScoresRequest, type GetScoresResponse, GetScoresResponseData, type GetScoresResponseDataBoolean, type GetScoresResponseDataCategorical, type GetScoresResponseDataCorrection, 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 MetricsV2Response, type Model, type ModelPrice, ModelUsageUnit, NotFoundError, type NumericScore, type NumericScoreV1, type Observation, type ObservationBody, ObservationLevel, ObservationType, type Observations$1 as Observations, type ObservationsV2Meta, type ObservationsV2Response, type ObservationsView, type ObservationsViews, type OpenAiCompletionUsageSchema, type OpenAiResponseUsageSchema, type OpenAiUsage, type OptionalObservationBody, type Organization, 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 PricingTier, type PricingTierCondition, type PricingTierInput, PricingTierOperator, 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, ScoreConfigDataType, 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$s as annotationQueues, base64Decode, base64Encode, base64ToBytes, index$r as blobStorageIntegrations, bytesToBase64, index$q as comments, index$p as commons, configureGlobalLogger, createExperimentId, createExperimentItemId, createLogger, index$o as datasetItems, index$n as datasetRunItems, index$m as datasets, generateUUID, getEnv, getGlobalLogger, getPropagatedAttributesFromContext, index$l as health, index$k as ingestion, index$j as llmConnections, LoggerSingleton as logger, index$i as media, index$g as metrics, index$h as metricsV2, index$f as models, index$d as observations, index$e as observationsV2, 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 };
|