orchestrator-client 5.5.2__py3-none-any.whl
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.
- orchestrator_client/__init__.py +157 -0
- orchestrator_client/client.py +1456 -0
- orchestrator_client/config.py +63 -0
- orchestrator_client/exceptions.py +74 -0
- orchestrator_client/models.py +513 -0
- orchestrator_client/socketio.py +255 -0
- orchestrator_client/sync_client.py +698 -0
- orchestrator_client-5.5.2.dist-info/METADATA +108 -0
- orchestrator_client-5.5.2.dist-info/RECORD +11 -0
- orchestrator_client-5.5.2.dist-info/WHEEL +5 -0
- orchestrator_client-5.5.2.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
"""orchestrator-client — async Python client for the DAMIT AIOps Orchestrator.
|
|
2
|
+
|
|
3
|
+
Provides a complete wrapper for the orchestrator's REST API and
|
|
4
|
+
Socket.IO realtime events, with typed responses, automatic retry,
|
|
5
|
+
and configurable auth.
|
|
6
|
+
|
|
7
|
+
Main components:
|
|
8
|
+
|
|
9
|
+
* :class:`Orchestrator` — synchronous REST client (primary interface)
|
|
10
|
+
* :class:`OrchestratorAsync` — async REST client (for async contexts)
|
|
11
|
+
* :class:`RealtimeClient` — Socket.IO event subscription layer
|
|
12
|
+
* Typed exception hierarchy (:class:`OrchestratorError` and subclasses)
|
|
13
|
+
* Typed response models (dataclasses for all response shapes)
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
from importlib.metadata import PackageNotFoundError, version
|
|
17
|
+
|
|
18
|
+
try:
|
|
19
|
+
__version__ = version("orchestrator-client")
|
|
20
|
+
except PackageNotFoundError:
|
|
21
|
+
__version__ = "0.0.0.dev"
|
|
22
|
+
|
|
23
|
+
from orchestrator_client.client import OrchestratorAsync
|
|
24
|
+
from orchestrator_client.config import OrchestratorConfig, load_config
|
|
25
|
+
from orchestrator_client.exceptions import (
|
|
26
|
+
OrchestratorAPIError,
|
|
27
|
+
OrchestratorAuthError,
|
|
28
|
+
OrchestratorConfigError,
|
|
29
|
+
OrchestratorConnectionError,
|
|
30
|
+
OrchestratorError,
|
|
31
|
+
OrchestratorNotFoundError,
|
|
32
|
+
)
|
|
33
|
+
from orchestrator_client.models import (
|
|
34
|
+
ArchivedContent,
|
|
35
|
+
AttachmentMeta,
|
|
36
|
+
# Attachments
|
|
37
|
+
AttachmentUploadResponse,
|
|
38
|
+
# Auth / WebSocket
|
|
39
|
+
AuthConfig,
|
|
40
|
+
# Compaction / Journal
|
|
41
|
+
CompactionEvent,
|
|
42
|
+
ConfigurationStatus,
|
|
43
|
+
ConversationResult,
|
|
44
|
+
ErrorCountResult,
|
|
45
|
+
# Error events
|
|
46
|
+
ErrorEvent,
|
|
47
|
+
ErrorEventDetail,
|
|
48
|
+
ErrorPurgeResult,
|
|
49
|
+
ErrorStatsResult,
|
|
50
|
+
HealthDetail,
|
|
51
|
+
# Health / Metrics
|
|
52
|
+
HealthStatus,
|
|
53
|
+
LeaderStatus,
|
|
54
|
+
MatrixConversationResult,
|
|
55
|
+
# Conversation
|
|
56
|
+
Message,
|
|
57
|
+
MetricSnapshot,
|
|
58
|
+
MioContext,
|
|
59
|
+
Pagination,
|
|
60
|
+
ReadinessResult,
|
|
61
|
+
SlotsStatus,
|
|
62
|
+
# Workflow-specific
|
|
63
|
+
SuccessResponse,
|
|
64
|
+
SummaryWorkerStatus,
|
|
65
|
+
# Configuration
|
|
66
|
+
SystemStatus,
|
|
67
|
+
SystemStatusSettings,
|
|
68
|
+
TaskCancelResponse,
|
|
69
|
+
TaskCreateResponse,
|
|
70
|
+
TaskDeleteResult,
|
|
71
|
+
TaskDetail,
|
|
72
|
+
TaskHandlerStatus,
|
|
73
|
+
TaskHandlerStatusLocal,
|
|
74
|
+
TaskJournal,
|
|
75
|
+
TaskListResult,
|
|
76
|
+
# Core task models
|
|
77
|
+
TaskSummary,
|
|
78
|
+
TokenWorkerStatus,
|
|
79
|
+
ToolCall,
|
|
80
|
+
# Tools
|
|
81
|
+
ToolInfo,
|
|
82
|
+
ToolsListResult,
|
|
83
|
+
VSATaskCreateResponse,
|
|
84
|
+
WebSocketStatus,
|
|
85
|
+
WorkflowStates,
|
|
86
|
+
)
|
|
87
|
+
from orchestrator_client.socketio import RealtimeClient
|
|
88
|
+
from orchestrator_client.sync_client import Orchestrator
|
|
89
|
+
|
|
90
|
+
__all__ = [
|
|
91
|
+
# Client classes
|
|
92
|
+
"Orchestrator",
|
|
93
|
+
"OrchestratorAsync",
|
|
94
|
+
"RealtimeClient",
|
|
95
|
+
# Config
|
|
96
|
+
"OrchestratorConfig",
|
|
97
|
+
"load_config",
|
|
98
|
+
# Exceptions
|
|
99
|
+
"OrchestratorError",
|
|
100
|
+
"OrchestratorConnectionError",
|
|
101
|
+
"OrchestratorAuthError",
|
|
102
|
+
"OrchestratorNotFoundError",
|
|
103
|
+
"OrchestratorAPIError",
|
|
104
|
+
"OrchestratorConfigError",
|
|
105
|
+
# Task models
|
|
106
|
+
"TaskSummary",
|
|
107
|
+
"TaskDetail",
|
|
108
|
+
"TaskListResult",
|
|
109
|
+
"TaskCreateResponse",
|
|
110
|
+
"TaskCancelResponse",
|
|
111
|
+
"TaskDeleteResult",
|
|
112
|
+
"Pagination",
|
|
113
|
+
# Conversation
|
|
114
|
+
"Message",
|
|
115
|
+
"ConversationResult",
|
|
116
|
+
"AttachmentMeta",
|
|
117
|
+
"ToolCall",
|
|
118
|
+
"ArchivedContent",
|
|
119
|
+
# Compaction / Journal
|
|
120
|
+
"CompactionEvent",
|
|
121
|
+
"TaskJournal",
|
|
122
|
+
# Attachments
|
|
123
|
+
"AttachmentUploadResponse",
|
|
124
|
+
# Tools
|
|
125
|
+
"ToolInfo",
|
|
126
|
+
"ToolsListResult",
|
|
127
|
+
# Error events
|
|
128
|
+
"ErrorEvent",
|
|
129
|
+
"ErrorEventDetail",
|
|
130
|
+
"ErrorStatsResult",
|
|
131
|
+
"ErrorCountResult",
|
|
132
|
+
"ErrorPurgeResult",
|
|
133
|
+
# Configuration
|
|
134
|
+
"SystemStatus",
|
|
135
|
+
"SystemStatusSettings",
|
|
136
|
+
"ConfigurationStatus",
|
|
137
|
+
"TaskHandlerStatus",
|
|
138
|
+
"TaskHandlerStatusLocal",
|
|
139
|
+
"SummaryWorkerStatus",
|
|
140
|
+
"TokenWorkerStatus",
|
|
141
|
+
"SlotsStatus",
|
|
142
|
+
# Health / Metrics
|
|
143
|
+
"HealthStatus",
|
|
144
|
+
"HealthDetail",
|
|
145
|
+
"ReadinessResult",
|
|
146
|
+
"LeaderStatus",
|
|
147
|
+
"MetricSnapshot",
|
|
148
|
+
# Auth / WebSocket
|
|
149
|
+
"AuthConfig",
|
|
150
|
+
"WebSocketStatus",
|
|
151
|
+
# Workflow-specific
|
|
152
|
+
"SuccessResponse",
|
|
153
|
+
"MioContext",
|
|
154
|
+
"MatrixConversationResult",
|
|
155
|
+
"VSATaskCreateResponse",
|
|
156
|
+
"WorkflowStates",
|
|
157
|
+
]
|