airia 0.1.13__py3-none-any.whl → 0.1.14__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.
- airia/client/_request_handler/__init__.py +4 -0
- airia/client/_request_handler/async_request_handler.py +272 -0
- airia/client/_request_handler/base_request_handler.py +108 -0
- airia/client/_request_handler/sync_request_handler.py +255 -0
- airia/client/async_client.py +25 -678
- airia/client/base_client.py +2 -368
- airia/client/conversations/__init__.py +4 -0
- airia/client/conversations/async_conversations.py +187 -0
- airia/client/conversations/base_conversations.py +135 -0
- airia/client/conversations/sync_conversations.py +182 -0
- airia/client/pipeline_execution/__init__.py +4 -0
- airia/client/pipeline_execution/async_pipeline_execution.py +178 -0
- airia/client/pipeline_execution/base_pipeline_execution.py +96 -0
- airia/client/pipeline_execution/sync_pipeline_execution.py +178 -0
- airia/client/pipelines_config/__init__.py +4 -0
- airia/client/pipelines_config/async_pipelines_config.py +127 -0
- airia/client/pipelines_config/base_pipelines_config.py +76 -0
- airia/client/pipelines_config/sync_pipelines_config.py +127 -0
- airia/client/project/__init__.py +4 -0
- airia/client/project/async_project.py +122 -0
- airia/client/project/base_project.py +74 -0
- airia/client/project/sync_project.py +120 -0
- airia/client/store/__init__.py +4 -0
- airia/client/store/async_store.py +377 -0
- airia/client/store/base_store.py +243 -0
- airia/client/store/sync_store.py +352 -0
- airia/client/sync_client.py +25 -656
- airia/constants.py +1 -1
- airia/exceptions.py +8 -8
- airia/logs.py +9 -9
- airia/types/_request_data.py +11 -4
- airia/types/api/__init__.py +0 -27
- airia/types/api/conversations/__init__.py +3 -0
- airia/types/api/{conversations.py → conversations/_conversations.py} +49 -12
- airia/types/api/pipeline_execution/__init__.py +13 -0
- airia/types/api/{pipeline_execution.py → pipeline_execution/_pipeline_execution.py} +30 -13
- airia/types/api/pipelines_config/__init__.py +3 -0
- airia/types/api/pipelines_config/get_pipeline_config.py +401 -0
- airia/types/api/project/__init__.py +3 -0
- airia/types/api/{get_projects.py → project/get_projects.py} +16 -4
- airia/types/api/store/__init__.py +4 -0
- airia/types/api/store/get_file.py +145 -0
- airia/types/api/store/get_files.py +21 -0
- airia/types/sse/__init__.py +1 -0
- airia/types/sse/sse_messages.py +55 -21
- airia/utils/sse_parser.py +5 -4
- {airia-0.1.13.dist-info → airia-0.1.14.dist-info}/METADATA +4 -2
- airia-0.1.14.dist-info/RECORD +55 -0
- airia/types/api/get_pipeline_config.py +0 -214
- airia-0.1.13.dist-info/RECORD +0 -24
- {airia-0.1.13.dist-info → airia-0.1.14.dist-info}/WHEEL +0 -0
- {airia-0.1.13.dist-info → airia-0.1.14.dist-info}/licenses/LICENSE +0 -0
- {airia-0.1.13.dist-info → airia-0.1.14.dist-info}/top_level.txt +0 -0
airia/types/sse/sse_messages.py
CHANGED
|
@@ -5,6 +5,7 @@ This module defines all possible SSE message types that can be received during
|
|
|
5
5
|
pipeline execution, including agent lifecycle events, processing steps, model
|
|
6
6
|
streaming, and tool execution messages.
|
|
7
7
|
"""
|
|
8
|
+
|
|
8
9
|
from datetime import datetime, time
|
|
9
10
|
from enum import Enum
|
|
10
11
|
from typing import Optional, Union
|
|
@@ -15,10 +16,11 @@ from pydantic import BaseModel, ConfigDict
|
|
|
15
16
|
class MessageType(str, Enum):
|
|
16
17
|
"""
|
|
17
18
|
Enumeration of all possible SSE message types from the Airia API.
|
|
18
|
-
|
|
19
|
+
|
|
19
20
|
These message types correspond to different events that occur during
|
|
20
21
|
pipeline execution, agent processing, and streaming responses.
|
|
21
22
|
"""
|
|
23
|
+
|
|
22
24
|
AGENT_PING = "AgentPingMessage"
|
|
23
25
|
AGENT_START = "AgentStartMessage"
|
|
24
26
|
AGENT_INPUT = "AgentInputMessage"
|
|
@@ -50,10 +52,11 @@ class MessageType(str, Enum):
|
|
|
50
52
|
class BaseSSEMessage(BaseModel):
|
|
51
53
|
"""
|
|
52
54
|
Base class for all Server-Sent Event (SSE) messages from the Airia API.
|
|
53
|
-
|
|
55
|
+
|
|
54
56
|
All SSE messages include a message_type field that identifies the specific
|
|
55
57
|
type of event being reported.
|
|
56
58
|
"""
|
|
59
|
+
|
|
57
60
|
model_config = ConfigDict(use_enum_values=True)
|
|
58
61
|
message_type: MessageType
|
|
59
62
|
|
|
@@ -61,10 +64,11 @@ class BaseSSEMessage(BaseModel):
|
|
|
61
64
|
class AgentPingMessage(BaseSSEMessage):
|
|
62
65
|
"""
|
|
63
66
|
Ping message sent periodically to maintain connection health.
|
|
64
|
-
|
|
67
|
+
|
|
65
68
|
These messages help verify that the connection is still active during
|
|
66
69
|
long-running pipeline executions.
|
|
67
70
|
"""
|
|
71
|
+
|
|
68
72
|
message_type: MessageType = MessageType.AGENT_PING
|
|
69
73
|
timestamp: datetime
|
|
70
74
|
|
|
@@ -75,10 +79,11 @@ class AgentPingMessage(BaseSSEMessage):
|
|
|
75
79
|
class BaseAgentMessage(BaseSSEMessage):
|
|
76
80
|
"""
|
|
77
81
|
Base class for messages related to agent execution.
|
|
78
|
-
|
|
82
|
+
|
|
79
83
|
All agent messages include identifiers for the specific agent
|
|
80
84
|
and execution session.
|
|
81
85
|
"""
|
|
86
|
+
|
|
82
87
|
agent_id: str
|
|
83
88
|
execution_id: str
|
|
84
89
|
|
|
@@ -87,6 +92,7 @@ class AgentStartMessage(BaseAgentMessage):
|
|
|
87
92
|
"""
|
|
88
93
|
Message indicating that an agent has started processing.
|
|
89
94
|
"""
|
|
95
|
+
|
|
90
96
|
message_type: MessageType = MessageType.AGENT_START
|
|
91
97
|
|
|
92
98
|
|
|
@@ -94,6 +100,7 @@ class AgentInputMessage(BaseAgentMessage):
|
|
|
94
100
|
"""
|
|
95
101
|
Message indicating that an agent has received input to process.
|
|
96
102
|
"""
|
|
103
|
+
|
|
97
104
|
message_type: MessageType = MessageType.AGENT_INPUT
|
|
98
105
|
|
|
99
106
|
|
|
@@ -101,6 +108,7 @@ class AgentEndMessage(BaseAgentMessage):
|
|
|
101
108
|
"""
|
|
102
109
|
Message indicating that an agent has finished processing.
|
|
103
110
|
"""
|
|
111
|
+
|
|
104
112
|
message_type: MessageType = MessageType.AGENT_END
|
|
105
113
|
|
|
106
114
|
|
|
@@ -110,10 +118,11 @@ class AgentEndMessage(BaseAgentMessage):
|
|
|
110
118
|
class BaseStepMessage(BaseAgentMessage):
|
|
111
119
|
"""
|
|
112
120
|
Base class for messages related to individual processing steps within an agent.
|
|
113
|
-
|
|
121
|
+
|
|
114
122
|
Steps represent discrete operations or tasks that an agent performs
|
|
115
123
|
as part of its overall processing workflow.
|
|
116
124
|
"""
|
|
125
|
+
|
|
117
126
|
step_id: str
|
|
118
127
|
step_type: str
|
|
119
128
|
step_title: Optional[str] = None
|
|
@@ -123,6 +132,7 @@ class AgentStepStartMessage(BaseStepMessage):
|
|
|
123
132
|
"""
|
|
124
133
|
Message indicating that a processing step has started.
|
|
125
134
|
"""
|
|
135
|
+
|
|
126
136
|
message_type: MessageType = MessageType.AGENT_STEP_START
|
|
127
137
|
start_time: datetime
|
|
128
138
|
|
|
@@ -130,10 +140,11 @@ class AgentStepStartMessage(BaseStepMessage):
|
|
|
130
140
|
class AgentStepHaltMessage(BaseStepMessage):
|
|
131
141
|
"""
|
|
132
142
|
Message indicating that a step has been halted pending approval.
|
|
133
|
-
|
|
143
|
+
|
|
134
144
|
This occurs when human approval is required before proceeding
|
|
135
145
|
with potentially sensitive or high-impact operations.
|
|
136
146
|
"""
|
|
147
|
+
|
|
137
148
|
message_type: MessageType = MessageType.AGENT_STEP_HALT
|
|
138
149
|
approval_id: str
|
|
139
150
|
|
|
@@ -141,9 +152,10 @@ class AgentStepHaltMessage(BaseStepMessage):
|
|
|
141
152
|
class AgentStepEndMessage(BaseStepMessage):
|
|
142
153
|
"""
|
|
143
154
|
Message indicating that a processing step has completed.
|
|
144
|
-
|
|
155
|
+
|
|
145
156
|
Includes timing information and the final status of the step.
|
|
146
157
|
"""
|
|
158
|
+
|
|
147
159
|
message_type: MessageType = MessageType.AGENT_STEP_END
|
|
148
160
|
end_time: datetime
|
|
149
161
|
duration: time
|
|
@@ -154,6 +166,7 @@ class AgentOutputMessage(BaseStepMessage):
|
|
|
154
166
|
"""
|
|
155
167
|
Message containing the output result from a completed step.
|
|
156
168
|
"""
|
|
169
|
+
|
|
157
170
|
message_type: MessageType = MessageType.AGENT_OUTPUT
|
|
158
171
|
step_result: str
|
|
159
172
|
|
|
@@ -164,20 +177,22 @@ class AgentOutputMessage(BaseStepMessage):
|
|
|
164
177
|
class BaseStatusMessage(BaseStepMessage):
|
|
165
178
|
"""
|
|
166
179
|
Base class for status update messages within processing steps.
|
|
167
|
-
|
|
180
|
+
|
|
168
181
|
Status messages provide real-time updates about what operations
|
|
169
182
|
are being performed during step execution.
|
|
170
183
|
"""
|
|
184
|
+
|
|
171
185
|
pass
|
|
172
186
|
|
|
173
187
|
|
|
174
188
|
class AgentAgentCardMessage(BaseStatusMessage):
|
|
175
189
|
"""
|
|
176
190
|
Message indicating that an agent card step is being processed.
|
|
177
|
-
|
|
191
|
+
|
|
178
192
|
Agent cards represent interactive UI components or displays
|
|
179
193
|
that provide rich information to users during pipeline execution.
|
|
180
194
|
"""
|
|
195
|
+
|
|
181
196
|
message_type: MessageType = MessageType.AGENT_AGENT_CARD
|
|
182
197
|
step_name: str
|
|
183
198
|
|
|
@@ -185,10 +200,11 @@ class AgentAgentCardMessage(BaseStatusMessage):
|
|
|
185
200
|
class AgentDatasearchMessage(BaseStatusMessage):
|
|
186
201
|
"""
|
|
187
202
|
Message indicating that data source search is being performed.
|
|
188
|
-
|
|
203
|
+
|
|
189
204
|
This message is sent when an agent is querying or searching
|
|
190
205
|
through configured data sources to retrieve relevant information.
|
|
191
206
|
"""
|
|
207
|
+
|
|
192
208
|
message_type: MessageType = MessageType.AGENT_DATASEARCH
|
|
193
209
|
datastore_id: str
|
|
194
210
|
datastore_type: str
|
|
@@ -198,10 +214,11 @@ class AgentDatasearchMessage(BaseStatusMessage):
|
|
|
198
214
|
class AgentInvocationMessage(BaseStatusMessage):
|
|
199
215
|
"""
|
|
200
216
|
Message indicating that another agent is being invoked.
|
|
201
|
-
|
|
217
|
+
|
|
202
218
|
This occurs when the current agent calls or delegates work
|
|
203
219
|
to another specialized agent in the pipeline.
|
|
204
220
|
"""
|
|
221
|
+
|
|
205
222
|
message_type: MessageType = MessageType.AGENT_INVOCATION
|
|
206
223
|
agent_name: str
|
|
207
224
|
|
|
@@ -209,10 +226,11 @@ class AgentInvocationMessage(BaseStatusMessage):
|
|
|
209
226
|
class AgentModelMessage(BaseStatusMessage):
|
|
210
227
|
"""
|
|
211
228
|
Message indicating that a language model is being called.
|
|
212
|
-
|
|
229
|
+
|
|
213
230
|
This message is sent when an agent begins interacting with
|
|
214
231
|
a language model for text generation or processing.
|
|
215
232
|
"""
|
|
233
|
+
|
|
216
234
|
message_type: MessageType = MessageType.AGENT_MODEL
|
|
217
235
|
model_name: str
|
|
218
236
|
|
|
@@ -220,10 +238,11 @@ class AgentModelMessage(BaseStatusMessage):
|
|
|
220
238
|
class AgentPythonCodeMessage(BaseStatusMessage):
|
|
221
239
|
"""
|
|
222
240
|
Message indicating that Python code execution is taking place.
|
|
223
|
-
|
|
241
|
+
|
|
224
242
|
This message is sent when an agent executes custom Python code
|
|
225
243
|
blocks as part of its processing workflow.
|
|
226
244
|
"""
|
|
245
|
+
|
|
227
246
|
message_type: MessageType = MessageType.AGENT_PYTHON_CODE
|
|
228
247
|
step_name: str
|
|
229
248
|
|
|
@@ -231,10 +250,11 @@ class AgentPythonCodeMessage(BaseStatusMessage):
|
|
|
231
250
|
class AgentToolActionMessage(BaseStatusMessage):
|
|
232
251
|
"""
|
|
233
252
|
Message indicating that a tool or external service is being called.
|
|
234
|
-
|
|
253
|
+
|
|
235
254
|
This message is sent when an agent invokes an external tool,
|
|
236
255
|
API, or service to perform a specific action or retrieve data.
|
|
237
256
|
"""
|
|
257
|
+
|
|
238
258
|
message_type: MessageType = MessageType.AGENT_TOOL_ACTION
|
|
239
259
|
step_name: str
|
|
240
260
|
tool_name: str
|
|
@@ -246,10 +266,11 @@ class AgentToolActionMessage(BaseStatusMessage):
|
|
|
246
266
|
class BaseModelStreamMessage(BaseAgentMessage):
|
|
247
267
|
"""
|
|
248
268
|
Base class for language model streaming messages.
|
|
249
|
-
|
|
269
|
+
|
|
250
270
|
Model streaming allows real-time display of text generation
|
|
251
271
|
as it occurs, providing better user experience for long responses.
|
|
252
272
|
"""
|
|
273
|
+
|
|
253
274
|
step_id: str
|
|
254
275
|
stream_id: str
|
|
255
276
|
|
|
@@ -258,6 +279,7 @@ class AgentModelStreamStartMessage(BaseModelStreamMessage):
|
|
|
258
279
|
"""
|
|
259
280
|
Message indicating that model text streaming has begun.
|
|
260
281
|
"""
|
|
282
|
+
|
|
261
283
|
message_type: MessageType = MessageType.AGENT_MODEL_STREAM_START
|
|
262
284
|
model_name: str
|
|
263
285
|
|
|
@@ -266,6 +288,7 @@ class AgentModelStreamErrorMessage(BaseModelStreamMessage):
|
|
|
266
288
|
"""
|
|
267
289
|
Message indicating that an error occurred during model streaming.
|
|
268
290
|
"""
|
|
291
|
+
|
|
269
292
|
message_type: MessageType = MessageType.AGENT_MODEL_STREAM_ERROR
|
|
270
293
|
error_message: str
|
|
271
294
|
|
|
@@ -273,10 +296,11 @@ class AgentModelStreamErrorMessage(BaseModelStreamMessage):
|
|
|
273
296
|
class AgentModelStreamFragmentMessage(BaseModelStreamMessage):
|
|
274
297
|
"""
|
|
275
298
|
Fragment of streaming text content from a language model.
|
|
276
|
-
|
|
299
|
+
|
|
277
300
|
These messages contain individual chunks of text as they are generated
|
|
278
301
|
by the model, allowing for real-time display of results.
|
|
279
302
|
"""
|
|
303
|
+
|
|
280
304
|
message_type: MessageType = MessageType.AGENT_MODEL_STREAM_FRAGMENT
|
|
281
305
|
index: int
|
|
282
306
|
content: Optional[str] = None
|
|
@@ -286,6 +310,7 @@ class AgentModelStreamEndMessage(BaseModelStreamMessage):
|
|
|
286
310
|
"""
|
|
287
311
|
Message indicating that model text streaming has completed.
|
|
288
312
|
"""
|
|
313
|
+
|
|
289
314
|
message_type: MessageType = MessageType.AGENT_MODEL_STREAM_END
|
|
290
315
|
content_id: str
|
|
291
316
|
duration: Optional[float] = None
|
|
@@ -295,6 +320,7 @@ class AgentModelStreamUsageMessage(BaseModelStreamMessage):
|
|
|
295
320
|
"""
|
|
296
321
|
Message containing token usage and cost information for model calls.
|
|
297
322
|
"""
|
|
323
|
+
|
|
298
324
|
message_type: MessageType = MessageType.AGENT_MODEL_STREAM_USAGE
|
|
299
325
|
token: Optional[int] = None
|
|
300
326
|
tokens_cost: Optional[float] = None
|
|
@@ -306,10 +332,11 @@ class AgentModelStreamUsageMessage(BaseModelStreamMessage):
|
|
|
306
332
|
class BaseAgentAgentCardStreamMessage(BaseAgentMessage):
|
|
307
333
|
"""
|
|
308
334
|
Base class for agent card streaming messages.
|
|
309
|
-
|
|
335
|
+
|
|
310
336
|
Agent card streaming allows real-time updates to interactive
|
|
311
337
|
UI components during their generation or processing.
|
|
312
338
|
"""
|
|
339
|
+
|
|
313
340
|
step_id: str
|
|
314
341
|
stream_id: str
|
|
315
342
|
|
|
@@ -318,6 +345,7 @@ class AgentAgentCardStreamStartMessage(BaseAgentAgentCardStreamMessage):
|
|
|
318
345
|
"""
|
|
319
346
|
Message indicating that agent card streaming has begun.
|
|
320
347
|
"""
|
|
348
|
+
|
|
321
349
|
message_type: MessageType = MessageType.AGENT_AGENT_CARD_STREAM_START
|
|
322
350
|
content: Optional[str] = None
|
|
323
351
|
|
|
@@ -326,6 +354,7 @@ class AgentAgentCardStreamErrorMessage(BaseAgentAgentCardStreamMessage):
|
|
|
326
354
|
"""
|
|
327
355
|
Message indicating that an error occurred during agent card streaming.
|
|
328
356
|
"""
|
|
357
|
+
|
|
329
358
|
message_type: MessageType = MessageType.AGENT_AGENT_CARD_STREAM_ERROR
|
|
330
359
|
error_message: str
|
|
331
360
|
|
|
@@ -333,10 +362,11 @@ class AgentAgentCardStreamErrorMessage(BaseAgentAgentCardStreamMessage):
|
|
|
333
362
|
class AgentAgentCardStreamFragmentMessage(BaseAgentAgentCardStreamMessage):
|
|
334
363
|
"""
|
|
335
364
|
Fragment of streaming agent card content.
|
|
336
|
-
|
|
365
|
+
|
|
337
366
|
These messages contain individual chunks of agent card data
|
|
338
367
|
as they are generated, allowing for real-time UI updates.
|
|
339
368
|
"""
|
|
369
|
+
|
|
340
370
|
message_type: MessageType = MessageType.AGENT_AGENT_CARD_STREAM_FRAGMENT
|
|
341
371
|
index: int
|
|
342
372
|
content: Optional[str]
|
|
@@ -346,6 +376,7 @@ class AgentAgentCardStreamEndMessage(BaseAgentAgentCardStreamMessage):
|
|
|
346
376
|
"""
|
|
347
377
|
Message indicating that agent card streaming has completed.
|
|
348
378
|
"""
|
|
379
|
+
|
|
349
380
|
message_type: MessageType = MessageType.AGENT_AGENT_CARD_STREAM_END
|
|
350
381
|
content: Optional[str] = None
|
|
351
382
|
|
|
@@ -356,10 +387,11 @@ class AgentAgentCardStreamEndMessage(BaseAgentAgentCardStreamMessage):
|
|
|
356
387
|
class BaseAgentToolMessage(BaseStepMessage):
|
|
357
388
|
"""
|
|
358
389
|
Base class for tool execution messages.
|
|
359
|
-
|
|
390
|
+
|
|
360
391
|
Tool messages track the lifecycle of external tool or service
|
|
361
392
|
calls made by agents during pipeline execution.
|
|
362
393
|
"""
|
|
394
|
+
|
|
363
395
|
id: str
|
|
364
396
|
name: str
|
|
365
397
|
|
|
@@ -367,20 +399,22 @@ class BaseAgentToolMessage(BaseStepMessage):
|
|
|
367
399
|
class AgentToolRequestMessage(BaseAgentToolMessage):
|
|
368
400
|
"""
|
|
369
401
|
Message indicating that a tool request has been initiated.
|
|
370
|
-
|
|
402
|
+
|
|
371
403
|
This message is sent when an agent begins calling an external
|
|
372
404
|
tool or service to perform a specific operation.
|
|
373
405
|
"""
|
|
406
|
+
|
|
374
407
|
message_type: MessageType = MessageType.AGENT_TOOL_REQUEST
|
|
375
408
|
|
|
376
409
|
|
|
377
410
|
class AgentToolResponseMessage(BaseAgentToolMessage):
|
|
378
411
|
"""
|
|
379
412
|
Message indicating that a tool request has completed.
|
|
380
|
-
|
|
413
|
+
|
|
381
414
|
This message contains the results and timing information
|
|
382
415
|
from a completed tool or service call.
|
|
383
416
|
"""
|
|
417
|
+
|
|
384
418
|
message_type: MessageType = MessageType.AGENT_TOOL_RESPONSE
|
|
385
419
|
duration: time
|
|
386
420
|
success: bool
|
airia/utils/sse_parser.py
CHANGED
|
@@ -5,6 +5,7 @@ This module provides functions for parsing SSE streams from both synchronous and
|
|
|
5
5
|
asynchronous HTTP responses. It handles the SSE protocol format and converts
|
|
6
6
|
raw stream data into typed message objects.
|
|
7
7
|
"""
|
|
8
|
+
|
|
8
9
|
import json
|
|
9
10
|
import re
|
|
10
11
|
from typing import AsyncIterable, AsyncIterator, Iterable, Iterator
|
|
@@ -28,7 +29,7 @@ def _to_snake_case(name: str) -> str:
|
|
|
28
29
|
def parse_sse_stream_chunked(stream_chunks: Iterable[bytes]) -> Iterator[SSEMessage]:
|
|
29
30
|
"""
|
|
30
31
|
Parse Server-Sent Events (SSE) stream from an iterable of byte chunks.
|
|
31
|
-
|
|
32
|
+
|
|
32
33
|
This function processes streaming data from HTTP responses that follow the SSE protocol,
|
|
33
34
|
parsing event blocks and converting them into typed SSE message objects. It handles
|
|
34
35
|
incomplete chunks by buffering data until complete events are received.
|
|
@@ -38,7 +39,7 @@ def parse_sse_stream_chunked(stream_chunks: Iterable[bytes]) -> Iterator[SSEMess
|
|
|
38
39
|
|
|
39
40
|
Yields:
|
|
40
41
|
SSEMessage: Typed SSE message objects corresponding to the parsed events
|
|
41
|
-
|
|
42
|
+
|
|
42
43
|
Note:
|
|
43
44
|
Events are expected to follow the SSE format with 'event:' and 'data:' lines,
|
|
44
45
|
terminated by double newlines (\n\n). The data portion should contain valid JSON.
|
|
@@ -78,7 +79,7 @@ async def async_parse_sse_stream_chunked(
|
|
|
78
79
|
) -> AsyncIterator[SSEMessage]:
|
|
79
80
|
"""
|
|
80
81
|
Asynchronously parse Server-Sent Events (SSE) stream from an async iterable of byte chunks.
|
|
81
|
-
|
|
82
|
+
|
|
82
83
|
This is the async version of parse_sse_stream_chunked, designed for use with
|
|
83
84
|
asynchronous HTTP clients. It processes streaming data that follows the SSE protocol,
|
|
84
85
|
parsing event blocks and converting them into typed SSE message objects.
|
|
@@ -88,7 +89,7 @@ async def async_parse_sse_stream_chunked(
|
|
|
88
89
|
|
|
89
90
|
Yields:
|
|
90
91
|
SSEMessage: Typed SSE message objects corresponding to the parsed events
|
|
91
|
-
|
|
92
|
+
|
|
92
93
|
Note:
|
|
93
94
|
Events are expected to follow the SSE format with 'event:' and 'data:' lines,
|
|
94
95
|
terminated by double newlines (\n\n). The data portion should contain valid JSON.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: airia
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.14
|
|
4
4
|
Summary: Python SDK for Airia API
|
|
5
5
|
Author-email: Airia LLC <support@airia.com>
|
|
6
6
|
License: MIT
|
|
@@ -47,7 +47,9 @@ The Airia Python library provides a clean and intuitive interface to interact wi
|
|
|
47
47
|
|
|
48
48
|
## Documentation and Quick Start Guides
|
|
49
49
|
|
|
50
|
-
|
|
50
|
+
Full documentation and quick start guides are available [here](https://airiallc.github.io/airia-python).
|
|
51
|
+
|
|
52
|
+
You can also run the documentation page locally with `mkdocs`:
|
|
51
53
|
|
|
52
54
|
1. [Install development dependencies](#install-with-development-dependencies)
|
|
53
55
|
2. Run `mkdocs serve` to start the local server
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
airia/__init__.py,sha256=T39gO8E5T5zxlw-JP78ruxOu7-LeKOJCJzz6t40kdQo,231
|
|
2
|
+
airia/constants.py,sha256=oKABowOTsJPIQ1AgtVpNN73oKuhh1DekBC5axYSm8lY,647
|
|
3
|
+
airia/exceptions.py,sha256=M98aESxodebVLafqDQSqCKLUUT_b-lNSVOpYGJ6Cmn0,1114
|
|
4
|
+
airia/logs.py,sha256=oHU8ByekHu-udBB-5abY39wUct_26t8io-A1Kcl7D3U,4538
|
|
5
|
+
airia/client/__init__.py,sha256=6gSQ9bl7j79q1HPE0o5py3IRdkwWWuU_7J4h05Dd2o8,127
|
|
6
|
+
airia/client/async_client.py,sha256=-PHKGBmbtw1SL589052-mZ11YfmVxcd5_iCpw9LzoHs,6792
|
|
7
|
+
airia/client/base_client.py,sha256=ftyLi2E3Hb4CQFYfiknitJA0sWDTylCiUbde0qkWYhg,3182
|
|
8
|
+
airia/client/sync_client.py,sha256=5xSoYjJDDbtnEd5mFpQCvvHJIKPXiAbjZDilbHuiPMA,6671
|
|
9
|
+
airia/client/_request_handler/__init__.py,sha256=FOdJMfzjN0Tw0TeD8mDJwHgte70Fw_j08EljtfulCvw,157
|
|
10
|
+
airia/client/_request_handler/async_request_handler.py,sha256=8225uM82kgOFu1E2DULVuk0qBN7vmPmcBtYXstUZaR8,10931
|
|
11
|
+
airia/client/_request_handler/base_request_handler.py,sha256=nYZIpWw-we0WMfBIOv1ZD5cNDT6hdNrbrFSTuBb6rbU,3838
|
|
12
|
+
airia/client/_request_handler/sync_request_handler.py,sha256=IFMauU8Fk3AvrMQrSOMTuWwUw44zmWimeW8LkIYj7Ws,10132
|
|
13
|
+
airia/client/conversations/__init__.py,sha256=5gbcHEYLHOn5cK95tlM52GPOmar8gpyK-BivyASmFEo,149
|
|
14
|
+
airia/client/conversations/async_conversations.py,sha256=XbSErt_6RKcQwDdGHKr_roSf2EkxhR6ogBiN3oMFNhk,7448
|
|
15
|
+
airia/client/conversations/base_conversations.py,sha256=YpIvA66xFZbOC4L8P17pISCqyWlJvju34FHX7Pcj8Aw,4848
|
|
16
|
+
airia/client/conversations/sync_conversations.py,sha256=IelRpGuoV0sBwOfZd44igV3i5P35Hv-zzZwCC7y6mlA,7200
|
|
17
|
+
airia/client/pipeline_execution/__init__.py,sha256=7qEZsPRTLySC71zlwYioBuJs6B4BwRCgFL3TQyFWXmc,175
|
|
18
|
+
airia/client/pipeline_execution/async_pipeline_execution.py,sha256=tesbtLYuTffPPHb3a2lw8aNzSzuDQ80yRWboSFEhyRs,7477
|
|
19
|
+
airia/client/pipeline_execution/base_pipeline_execution.py,sha256=Jkpp_D2OrNg3koudrIua-d0VKwI4hlATDqi8WwRCifY,3965
|
|
20
|
+
airia/client/pipeline_execution/sync_pipeline_execution.py,sha256=wIifP_KjRvBgXeqs1g237IlAXiuU7ThxS5YDj6qB7gM,7392
|
|
21
|
+
airia/client/pipelines_config/__init__.py,sha256=Mjn3ie-bQo6zjayxrJDvoJG2vKis72yGt_CQkvtREw4,163
|
|
22
|
+
airia/client/pipelines_config/async_pipelines_config.py,sha256=iC6B5nVlQOA02LsUY_oBWTGpJ6bf8micwrGwWtXZhBI,4971
|
|
23
|
+
airia/client/pipelines_config/base_pipelines_config.py,sha256=gfbjXzNUDxsRS2a55YtGMd-k7ii0MHnonflKVH72qe0,2701
|
|
24
|
+
airia/client/pipelines_config/sync_pipelines_config.py,sha256=vJuNpbTtt13G2KuJZnvKaD52MQ-Ru2b65QBylIad50s,4894
|
|
25
|
+
airia/client/project/__init__.py,sha256=GGEGfxtNzSO_BMAJ8Wfo8ZTq8BIdR6MHf6gSwhPv9mE,113
|
|
26
|
+
airia/client/project/async_project.py,sha256=OrIiqopKSXAhkYJi6yjoR-YYVUxzll1ldDJkJW1rIBM,4534
|
|
27
|
+
airia/client/project/base_project.py,sha256=4vP_dKGAt17mdzp3eW3ER8E0C0XMQ9P7JAEH2EH0imE,2432
|
|
28
|
+
airia/client/project/sync_project.py,sha256=sbDt02WKH-65p_hCgz4tpUJVhp0T1oneeXPccRQ06sw,4449
|
|
29
|
+
airia/client/store/__init__.py,sha256=-rbtYQ8PTaFA6Fs2dm7Db2C3RDNvagaK3iE4PpLRcjg,101
|
|
30
|
+
airia/client/store/async_store.py,sha256=wlYbK2AlTuJCrk3otdpO68W208166xyKpZymtuA5PyA,13557
|
|
31
|
+
airia/client/store/base_store.py,sha256=RUIGkKb2KiKZfzmDJIiPrLSes_VAnJA4xouIqxkEazI,8106
|
|
32
|
+
airia/client/store/sync_store.py,sha256=DNBhTckdoVnTqTVwFp_J42l-XkSHX3sCKVR7J4b79RU,12578
|
|
33
|
+
airia/types/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
34
|
+
airia/types/_api_version.py,sha256=Uzom6O2ZG92HN_Z2h-lTydmO2XYX9RVs4Yi4DJmXytE,255
|
|
35
|
+
airia/types/_request_data.py,sha256=q8t7KfO2WvgbPVYPvPWiwYb8LyP0kovlOgHFhZIU6ns,1278
|
|
36
|
+
airia/types/api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
37
|
+
airia/types/api/conversations/__init__.py,sha256=POaFtK2Wi5qpObAEz5--vJf3AT6vfPIb0P0Qe2_YvLQ,149
|
|
38
|
+
airia/types/api/conversations/_conversations.py,sha256=O7VHs2_Ykg0s6Phe0sAVvbO7YVu6d6R2M2-JkWAipxI,4845
|
|
39
|
+
airia/types/api/pipeline_execution/__init__.py,sha256=01Cf0Cx-RZygtgQvYajSrikxmtUYbsDcBzFk7hkNnGc,360
|
|
40
|
+
airia/types/api/pipeline_execution/_pipeline_execution.py,sha256=cJ2icsQvG5K15crNNbymje9B2tJduc_D64OnNXF043U,2429
|
|
41
|
+
airia/types/api/pipelines_config/__init__.py,sha256=A_udsGV3tvMoGu4HcK91r0HxdT47AEn8uobN_nj1TJ0,100
|
|
42
|
+
airia/types/api/pipelines_config/get_pipeline_config.py,sha256=M-2w5ER8MsdTJobVeArBwc9fhqXMDOuhsTpIrT-Rh1Q,15365
|
|
43
|
+
airia/types/api/project/__init__.py,sha256=W2X2D9NrIDXH3bXWr2FNt9SVe999gsWKlhtJ0zY1VsU,65
|
|
44
|
+
airia/types/api/project/get_projects.py,sha256=Ot8mq6VnXrGXZs7FQ0UuRYSyuCeER7YeCCZlGb4ZyQo,3646
|
|
45
|
+
airia/types/api/store/__init__.py,sha256=sj4_I4lfaHnw5U_-dRmyK5Nr-wuAEjT5S3upJxbuRtc,143
|
|
46
|
+
airia/types/api/store/get_file.py,sha256=Li3CpWUktQruNeoKSTlHJPXzNMaysG_Zy-fXGji8zs8,6174
|
|
47
|
+
airia/types/api/store/get_files.py,sha256=v22zmOuTSFqzrS73L5JL_FgBeF5a5wutv1nK4IHAoW0,700
|
|
48
|
+
airia/types/sse/__init__.py,sha256=KWnNTfsQnthfrU128pUX6ounvSS7DvjC-Y21FE-OdMk,1863
|
|
49
|
+
airia/types/sse/sse_messages.py,sha256=-jnOD-ZkmIC6tm1occDLkZ88l_ZHxMFQPAgJf4Z4HNc,14270
|
|
50
|
+
airia/utils/sse_parser.py,sha256=XCTkuaroYWaVQOgBq8VpbseQYSAVruF69AvKUwZQKTA,4251
|
|
51
|
+
airia-0.1.14.dist-info/licenses/LICENSE,sha256=R3ClUMMKPRItIcZ0svzyj2taZZnFYw568YDNzN9KQ1Q,1066
|
|
52
|
+
airia-0.1.14.dist-info/METADATA,sha256=kP3EFgdsqUsR5o1l0jIG156RyJjGmGP11Gw02ISTpkU,4506
|
|
53
|
+
airia-0.1.14.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
54
|
+
airia-0.1.14.dist-info/top_level.txt,sha256=qUQEKfs_hdOYTwjKj1JZbRhS5YeXDNaKQaVTrzabS6w,6
|
|
55
|
+
airia-0.1.14.dist-info/RECORD,,
|