langfuse.api.annotation_queues

 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        AnnotationQueue,
11        AnnotationQueueAssignmentRequest,
12        AnnotationQueueItem,
13        AnnotationQueueObjectType,
14        AnnotationQueueStatus,
15        CreateAnnotationQueueAssignmentResponse,
16        CreateAnnotationQueueItemRequest,
17        CreateAnnotationQueueRequest,
18        DeleteAnnotationQueueAssignmentResponse,
19        DeleteAnnotationQueueItemResponse,
20        PaginatedAnnotationQueueItems,
21        PaginatedAnnotationQueues,
22        UpdateAnnotationQueueItemRequest,
23    )
24_dynamic_imports: typing.Dict[str, str] = {
25    "AnnotationQueue": ".types",
26    "AnnotationQueueAssignmentRequest": ".types",
27    "AnnotationQueueItem": ".types",
28    "AnnotationQueueObjectType": ".types",
29    "AnnotationQueueStatus": ".types",
30    "CreateAnnotationQueueAssignmentResponse": ".types",
31    "CreateAnnotationQueueItemRequest": ".types",
32    "CreateAnnotationQueueRequest": ".types",
33    "DeleteAnnotationQueueAssignmentResponse": ".types",
34    "DeleteAnnotationQueueItemResponse": ".types",
35    "PaginatedAnnotationQueueItems": ".types",
36    "PaginatedAnnotationQueues": ".types",
37    "UpdateAnnotationQueueItemRequest": ".types",
38}
39
40
41def __getattr__(attr_name: str) -> typing.Any:
42    module_name = _dynamic_imports.get(attr_name)
43    if module_name is None:
44        raise AttributeError(
45            f"No {attr_name} found in _dynamic_imports for module name -> {__name__}"
46        )
47    try:
48        module = import_module(module_name, __package__)
49        if module_name == f".{attr_name}":
50            return module
51        else:
52            return getattr(module, attr_name)
53    except ImportError as e:
54        raise ImportError(
55            f"Failed to import {attr_name} from {module_name}: {e}"
56        ) from e
57    except AttributeError as e:
58        raise AttributeError(
59            f"Failed to get {attr_name} from {module_name}: {e}"
60        ) from e
61
62
63def __dir__():
64    lazy_attrs = list(_dynamic_imports.keys())
65    return sorted(lazy_attrs)
66
67
68__all__ = [
69    "AnnotationQueue",
70    "AnnotationQueueAssignmentRequest",
71    "AnnotationQueueItem",
72    "AnnotationQueueObjectType",
73    "AnnotationQueueStatus",
74    "CreateAnnotationQueueAssignmentResponse",
75    "CreateAnnotationQueueItemRequest",
76    "CreateAnnotationQueueRequest",
77    "DeleteAnnotationQueueAssignmentResponse",
78    "DeleteAnnotationQueueItemResponse",
79    "PaginatedAnnotationQueueItems",
80    "PaginatedAnnotationQueues",
81    "UpdateAnnotationQueueItemRequest",
82]
AnnotationQueue
AnnotationQueueAssignmentRequest
AnnotationQueueItem
AnnotationQueueObjectType
AnnotationQueueStatus
CreateAnnotationQueueAssignmentResponse
CreateAnnotationQueueItemRequest
CreateAnnotationQueueRequest
DeleteAnnotationQueueAssignmentResponse
DeleteAnnotationQueueItemResponse
PaginatedAnnotationQueueItems
PaginatedAnnotationQueues
UpdateAnnotationQueueItemRequest