langfuse.api.health
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 HealthResponse 10 from .errors import ServiceUnavailableError 11_dynamic_imports: typing.Dict[str, str] = { 12 "HealthResponse": ".types", 13 "ServiceUnavailableError": ".errors", 14} 15 16 17def __getattr__(attr_name: str) -> typing.Any: 18 module_name = _dynamic_imports.get(attr_name) 19 if module_name is None: 20 raise AttributeError( 21 f"No {attr_name} found in _dynamic_imports for module name -> {__name__}" 22 ) 23 try: 24 module = import_module(module_name, __package__) 25 if module_name == f".{attr_name}": 26 return module 27 else: 28 return getattr(module, attr_name) 29 except ImportError as e: 30 raise ImportError( 31 f"Failed to import {attr_name} from {module_name}: {e}" 32 ) from e 33 except AttributeError as e: 34 raise AttributeError( 35 f"Failed to get {attr_name} from {module_name}: {e}" 36 ) from e 37 38 39def __dir__(): 40 lazy_attrs = list(_dynamic_imports.keys()) 41 return sorted(lazy_attrs) 42 43 44__all__ = ["HealthResponse", "ServiceUnavailableError"]
HealthResponse