langfuse.api.scores_v3
1# This file was auto-generated by Fern from our API Definition. 2 3# isort: skip_file 4 5import typing 6from importlib import import_module 7 8if typing.TYPE_CHECKING: 9 from .types import ( 10 BaseScoreV3, 11 BooleanScoreV3, 12 CategoricalScoreV3, 13 CorrectionScoreV3, 14 GetScoresV3Meta, 15 GetScoresV3Response, 16 NumericScoreV3, 17 ScoreSubjectExperimentV3, 18 ScoreSubjectObservationV3, 19 ScoreSubjectSessionV3, 20 ScoreSubjectTraceV3, 21 ScoreSubjectV3, 22 ScoreSubjectV3_Experiment, 23 ScoreSubjectV3_Observation, 24 ScoreSubjectV3_Session, 25 ScoreSubjectV3_Trace, 26 ScoreV3, 27 ScoreV3_Boolean, 28 ScoreV3_Categorical, 29 ScoreV3_Correction, 30 ScoreV3_Numeric, 31 ScoreV3_Text, 32 TextScoreV3, 33 ) 34_dynamic_imports: typing.Dict[str, str] = { 35 "BaseScoreV3": ".types", 36 "BooleanScoreV3": ".types", 37 "CategoricalScoreV3": ".types", 38 "CorrectionScoreV3": ".types", 39 "GetScoresV3Meta": ".types", 40 "GetScoresV3Response": ".types", 41 "NumericScoreV3": ".types", 42 "ScoreSubjectExperimentV3": ".types", 43 "ScoreSubjectObservationV3": ".types", 44 "ScoreSubjectSessionV3": ".types", 45 "ScoreSubjectTraceV3": ".types", 46 "ScoreSubjectV3": ".types", 47 "ScoreSubjectV3_Experiment": ".types", 48 "ScoreSubjectV3_Observation": ".types", 49 "ScoreSubjectV3_Session": ".types", 50 "ScoreSubjectV3_Trace": ".types", 51 "ScoreV3": ".types", 52 "ScoreV3_Boolean": ".types", 53 "ScoreV3_Categorical": ".types", 54 "ScoreV3_Correction": ".types", 55 "ScoreV3_Numeric": ".types", 56 "ScoreV3_Text": ".types", 57 "TextScoreV3": ".types", 58} 59 60 61def __getattr__(attr_name: str) -> typing.Any: 62 module_name = _dynamic_imports.get(attr_name) 63 if module_name is None: 64 raise AttributeError( 65 f"No {attr_name} found in _dynamic_imports for module name -> {__name__}" 66 ) 67 try: 68 module = import_module(module_name, __package__) 69 if module_name == f".{attr_name}": 70 return module 71 else: 72 return getattr(module, attr_name) 73 except ImportError as e: 74 raise ImportError( 75 f"Failed to import {attr_name} from {module_name}: {e}" 76 ) from e 77 except AttributeError as e: 78 raise AttributeError( 79 f"Failed to get {attr_name} from {module_name}: {e}" 80 ) from e 81 82 83def __dir__(): 84 lazy_attrs = list(_dynamic_imports.keys()) 85 return sorted(lazy_attrs) 86 87 88__all__ = [ 89 "BaseScoreV3", 90 "BooleanScoreV3", 91 "CategoricalScoreV3", 92 "CorrectionScoreV3", 93 "GetScoresV3Meta", 94 "GetScoresV3Response", 95 "NumericScoreV3", 96 "ScoreSubjectExperimentV3", 97 "ScoreSubjectObservationV3", 98 "ScoreSubjectSessionV3", 99 "ScoreSubjectTraceV3", 100 "ScoreSubjectV3", 101 "ScoreSubjectV3_Experiment", 102 "ScoreSubjectV3_Observation", 103 "ScoreSubjectV3_Session", 104 "ScoreSubjectV3_Trace", 105 "ScoreV3", 106 "ScoreV3_Boolean", 107 "ScoreV3_Categorical", 108 "ScoreV3_Correction", 109 "ScoreV3_Numeric", 110 "ScoreV3_Text", 111 "TextScoreV3", 112]
BaseScoreV3
BooleanScoreV3
CategoricalScoreV3
CorrectionScoreV3
GetScoresV3Meta
GetScoresV3Response
NumericScoreV3
ScoreSubjectExperimentV3
ScoreSubjectObservationV3
ScoreSubjectSessionV3
ScoreSubjectTraceV3
ScoreSubjectV3
ScoreSubjectV3_Experiment
ScoreSubjectV3_Observation
ScoreSubjectV3_Session
ScoreSubjectV3_Trace
ScoreV3
ScoreV3_Boolean
ScoreV3_Categorical
ScoreV3_Correction
ScoreV3_Numeric
ScoreV3_Text
TextScoreV3