airia 0.1.14__py3-none-any.whl → 0.1.16__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.
@@ -1,3 +1,3 @@
1
- from .get_projects import ProjectItem
1
+ from .get_projects import DataSource, Pipeline, ProjectItem
2
2
 
3
- __all__ = ["ProjectItem"]
3
+ __all__ = ["DataSource", "Pipeline", "ProjectItem"]
@@ -1,4 +1,19 @@
1
- from .get_file import File, GetFileResponse
1
+ from .get_file import (
2
+ DownloadInfo,
3
+ File,
4
+ GetFileResponse,
5
+ IngestionProcessingStatus,
6
+ PreviewInfo,
7
+ Timestamp,
8
+ )
2
9
  from .get_files import GetFilesResponse
3
10
 
4
- __all__ = ["GetFileResponse", "GetFilesResponse", "File"]
11
+ __all__ = [
12
+ "PreviewInfo",
13
+ "DownloadInfo",
14
+ "IngestionProcessingStatus",
15
+ "Timestamp",
16
+ "GetFileResponse",
17
+ "GetFilesResponse",
18
+ "File",
19
+ ]
@@ -19,34 +19,62 @@ class MessageType(str, Enum):
19
19
 
20
20
  These message types correspond to different events that occur during
21
21
  pipeline execution, agent processing, and streaming responses.
22
- """
23
22
 
24
- AGENT_PING = "AgentPingMessage"
25
- AGENT_START = "AgentStartMessage"
26
- AGENT_INPUT = "AgentInputMessage"
27
- AGENT_END = "AgentEndMessage"
28
- AGENT_STEP_START = "AgentStepStartMessage"
29
- AGENT_STEP_HALT = "AgentStepHaltMessage"
30
- AGENT_STEP_END = "AgentStepEndMessage"
31
- AGENT_OUTPUT = "AgentOutputMessage"
32
- AGENT_AGENT_CARD = "AgentAgentCardMessage"
33
- AGENT_DATASEARCH = "AgentDatasearchMessage"
34
- AGENT_INVOCATION = "AgentInvocationMessage"
35
- AGENT_MODEL = "AgentModelMessage"
36
- AGENT_PYTHON_CODE = "AgentPythonCodeMessage"
37
- AGENT_TOOL_ACTION = "AgentToolActionMessage"
38
- AGENT_MODEL_STREAM_START = "AgentModelStreamStartMessage"
39
- AGENT_MODEL_STREAM_END = "AgentModelStreamEndMessage"
40
- AGENT_MODEL_STREAM_ERROR = "AgentModelStreamErrorMessage"
41
- AGENT_MODEL_STREAM_USAGE = "AgentModelStreamUsageMessage"
42
- AGENT_MODEL_STREAM_FRAGMENT = "AgentModelStreamFragmentMessage"
43
- MODEL_STREAM_FRAGMENT = "ModelStreamFragment"
44
- AGENT_AGENT_CARD_STREAM_START = "AgentAgentCardStreamStartMessage"
45
- AGENT_AGENT_CARD_STREAM_ERROR = "AgentAgentCardStreamErrorMessage"
46
- AGENT_AGENT_CARD_STREAM_FRAGMENT = "AgentAgentCardStreamFragmentMessage"
47
- AGENT_AGENT_CARD_STREAM_END = "AgentAgentCardStreamEndMessage"
48
- AGENT_TOOL_REQUEST = "AgentToolRequestMessage"
49
- AGENT_TOOL_RESPONSE = "AgentToolResponseMessage"
23
+ Attributes:
24
+ AGENT_PING: Ping message sent periodically to maintain connection health.
25
+ AGENT_START: Message indicating that an agent has started processing.
26
+ AGENT_INPUT: Message indicating that an agent has received input to process.
27
+ AGENT_END: Message indicating that an agent has finished processing.
28
+ AGENT_STEP_START: Message indicating that a processing step has started.
29
+ AGENT_STEP_HALT: Message indicating that a step has been halted pending approval.
30
+ AGENT_STEP_END: Message indicating that a processing step has completed.
31
+ AGENT_OUTPUT: Message containing the output result from a completed step.
32
+ AGENT_AGENT_CARD: Message indicating that an agent card step is being processed.
33
+ AGENT_DATASEARCH: Message indicating that data source search is being performed.
34
+ AGENT_INVOCATION: Message indicating that another agent is being invoked.
35
+ AGENT_MODEL: Message indicating that a language model is being called.
36
+ AGENT_PYTHON_CODE: Message indicating that Python code execution is taking place.
37
+ AGENT_TOOL_ACTION: Message indicating that a tool or external service is being called.
38
+ AGENT_MODEL_STREAM_START: Message indicating that model text streaming has begun.
39
+ AGENT_MODEL_STREAM_END: Message indicating that model text streaming has completed.
40
+ AGENT_MODEL_STREAM_ERROR: Message indicating that an error occurred during model streaming.
41
+ AGENT_MODEL_STREAM_USAGE: Message containing token usage and cost information for model calls.
42
+ AGENT_MODEL_STREAM_FRAGMENT: Fragment of streaming text content from a language model.
43
+ MODEL_STREAM_FRAGMENT: Alternative fragment message type for model streaming.
44
+ AGENT_AGENT_CARD_STREAM_START: Message indicating that agent card streaming has begun.
45
+ AGENT_AGENT_CARD_STREAM_ERROR: Message indicating that an error occurred during agent card streaming.
46
+ AGENT_AGENT_CARD_STREAM_FRAGMENT: Fragment of streaming agent card content.
47
+ AGENT_AGENT_CARD_STREAM_END: Message indicating that agent card streaming has completed.
48
+ AGENT_TOOL_REQUEST: Message indicating that a tool request has been initiated.
49
+ AGENT_TOOL_RESPONSE: Message indicating that a tool request has completed.
50
+ """
51
+
52
+ AGENT_PING: str = "AgentPingMessage"
53
+ AGENT_START: str = "AgentStartMessage"
54
+ AGENT_INPUT: str = "AgentInputMessage"
55
+ AGENT_END: str = "AgentEndMessage"
56
+ AGENT_STEP_START: str = "AgentStepStartMessage"
57
+ AGENT_STEP_HALT: str = "AgentStepHaltMessage"
58
+ AGENT_STEP_END: str = "AgentStepEndMessage"
59
+ AGENT_OUTPUT: str = "AgentOutputMessage"
60
+ AGENT_AGENT_CARD: str = "AgentAgentCardMessage"
61
+ AGENT_DATASEARCH: str = "AgentDatasearchMessage"
62
+ AGENT_INVOCATION: str = "AgentInvocationMessage"
63
+ AGENT_MODEL: str = "AgentModelMessage"
64
+ AGENT_PYTHON_CODE: str = "AgentPythonCodeMessage"
65
+ AGENT_TOOL_ACTION: str = "AgentToolActionMessage"
66
+ AGENT_MODEL_STREAM_START: str = "AgentModelStreamStartMessage"
67
+ AGENT_MODEL_STREAM_END: str = "AgentModelStreamEndMessage"
68
+ AGENT_MODEL_STREAM_ERROR: str = "AgentModelStreamErrorMessage"
69
+ AGENT_MODEL_STREAM_USAGE: str = "AgentModelStreamUsageMessage"
70
+ AGENT_MODEL_STREAM_FRAGMENT: str = "AgentModelStreamFragmentMessage"
71
+ MODEL_STREAM_FRAGMENT: str = "ModelStreamFragment"
72
+ AGENT_AGENT_CARD_STREAM_START: str = "AgentAgentCardStreamStartMessage"
73
+ AGENT_AGENT_CARD_STREAM_ERROR: str = "AgentAgentCardStreamErrorMessage"
74
+ AGENT_AGENT_CARD_STREAM_FRAGMENT: str = "AgentAgentCardStreamFragmentMessage"
75
+ AGENT_AGENT_CARD_STREAM_END: str = "AgentAgentCardStreamEndMessage"
76
+ AGENT_TOOL_REQUEST: str = "AgentToolRequestMessage"
77
+ AGENT_TOOL_RESPONSE: str = "AgentToolResponseMessage"
50
78
 
51
79
 
52
80
  class BaseSSEMessage(BaseModel):
@@ -55,6 +83,9 @@ class BaseSSEMessage(BaseModel):
55
83
 
56
84
  All SSE messages include a message_type field that identifies the specific
57
85
  type of event being reported.
86
+
87
+ Attributes:
88
+ message_type: The type of SSE message, identifying the specific event being reported.
58
89
  """
59
90
 
60
91
  model_config = ConfigDict(use_enum_values=True)
@@ -67,6 +98,10 @@ class AgentPingMessage(BaseSSEMessage):
67
98
 
68
99
  These messages help verify that the connection is still active during
69
100
  long-running pipeline executions.
101
+
102
+ Attributes:
103
+ message_type: Always set to AGENT_PING for ping messages.
104
+ timestamp: The time when the ping message was sent.
70
105
  """
71
106
 
72
107
  message_type: MessageType = MessageType.AGENT_PING
@@ -82,6 +117,10 @@ class BaseAgentMessage(BaseSSEMessage):
82
117
 
83
118
  All agent messages include identifiers for the specific agent
84
119
  and execution session.
120
+
121
+ Attributes:
122
+ agent_id: Unique identifier for the agent generating this message.
123
+ execution_id: Unique identifier for the current execution session.
85
124
  """
86
125
 
87
126
  agent_id: str
@@ -91,6 +130,11 @@ class BaseAgentMessage(BaseSSEMessage):
91
130
  class AgentStartMessage(BaseAgentMessage):
92
131
  """
93
132
  Message indicating that an agent has started processing.
133
+
134
+ Attributes:
135
+ message_type: Always set to AGENT_START for agent start messages.
136
+ agent_id: Unique identifier for the agent that started.
137
+ execution_id: Unique identifier for the execution session.
94
138
  """
95
139
 
96
140
  message_type: MessageType = MessageType.AGENT_START
@@ -99,6 +143,11 @@ class AgentStartMessage(BaseAgentMessage):
99
143
  class AgentInputMessage(BaseAgentMessage):
100
144
  """
101
145
  Message indicating that an agent has received input to process.
146
+
147
+ Attributes:
148
+ message_type: Always set to AGENT_INPUT for agent input messages.
149
+ agent_id: Unique identifier for the agent receiving input.
150
+ execution_id: Unique identifier for the execution session.
102
151
  """
103
152
 
104
153
  message_type: MessageType = MessageType.AGENT_INPUT
@@ -107,6 +156,11 @@ class AgentInputMessage(BaseAgentMessage):
107
156
  class AgentEndMessage(BaseAgentMessage):
108
157
  """
109
158
  Message indicating that an agent has finished processing.
159
+
160
+ Attributes:
161
+ message_type: Always set to AGENT_END for agent end messages.
162
+ agent_id: Unique identifier for the agent that finished.
163
+ execution_id: Unique identifier for the execution session.
110
164
  """
111
165
 
112
166
  message_type: MessageType = MessageType.AGENT_END
@@ -121,6 +175,13 @@ class BaseStepMessage(BaseAgentMessage):
121
175
 
122
176
  Steps represent discrete operations or tasks that an agent performs
123
177
  as part of its overall processing workflow.
178
+
179
+ Attributes:
180
+ agent_id: Unique identifier for the agent performing the step.
181
+ execution_id: Unique identifier for the execution session.
182
+ step_id: Unique identifier for the processing step.
183
+ step_type: The type/category of the processing step.
184
+ step_title: Optional human-readable title for the step.
124
185
  """
125
186
 
126
187
  step_id: str
@@ -131,6 +192,15 @@ class BaseStepMessage(BaseAgentMessage):
131
192
  class AgentStepStartMessage(BaseStepMessage):
132
193
  """
133
194
  Message indicating that a processing step has started.
195
+
196
+ Attributes:
197
+ message_type: Always set to AGENT_STEP_START for step start messages.
198
+ agent_id: Unique identifier for the agent performing the step.
199
+ execution_id: Unique identifier for the execution session.
200
+ step_id: Unique identifier for the processing step that started.
201
+ step_type: The type/category of the processing step.
202
+ step_title: Optional human-readable title for the step.
203
+ start_time: The timestamp when the step began execution.
134
204
  """
135
205
 
136
206
  message_type: MessageType = MessageType.AGENT_STEP_START
@@ -143,6 +213,15 @@ class AgentStepHaltMessage(BaseStepMessage):
143
213
 
144
214
  This occurs when human approval is required before proceeding
145
215
  with potentially sensitive or high-impact operations.
216
+
217
+ Attributes:
218
+ message_type: Always set to AGENT_STEP_HALT for step halt messages.
219
+ agent_id: Unique identifier for the agent performing the step.
220
+ execution_id: Unique identifier for the execution session.
221
+ step_id: Unique identifier for the processing step that was halted.
222
+ step_type: The type/category of the processing step.
223
+ step_title: Optional human-readable title for the step.
224
+ approval_id: Unique identifier for the approval request.
146
225
  """
147
226
 
148
227
  message_type: MessageType = MessageType.AGENT_STEP_HALT
@@ -154,6 +233,17 @@ class AgentStepEndMessage(BaseStepMessage):
154
233
  Message indicating that a processing step has completed.
155
234
 
156
235
  Includes timing information and the final status of the step.
236
+
237
+ Attributes:
238
+ message_type: Always set to AGENT_STEP_END for step end messages.
239
+ agent_id: Unique identifier for the agent performing the step.
240
+ execution_id: Unique identifier for the execution session.
241
+ step_id: Unique identifier for the processing step that ended.
242
+ step_type: The type/category of the processing step.
243
+ step_title: Optional human-readable title for the step.
244
+ end_time: The timestamp when the step completed execution.
245
+ duration: The total time the step took to execute.
246
+ status: The final status of the step (e.g., 'success', 'failed').
157
247
  """
158
248
 
159
249
  message_type: MessageType = MessageType.AGENT_STEP_END
@@ -165,6 +255,15 @@ class AgentStepEndMessage(BaseStepMessage):
165
255
  class AgentOutputMessage(BaseStepMessage):
166
256
  """
167
257
  Message containing the output result from a completed step.
258
+
259
+ Attributes:
260
+ message_type: Always set to AGENT_OUTPUT for output messages.
261
+ agent_id: Unique identifier for the agent that produced the output.
262
+ execution_id: Unique identifier for the execution session.
263
+ step_id: Unique identifier for the processing step that generated output.
264
+ step_type: The type/category of the processing step.
265
+ step_title: Optional human-readable title for the step.
266
+ step_result: The output result or content from the completed step.
168
267
  """
169
268
 
170
269
  message_type: MessageType = MessageType.AGENT_OUTPUT
@@ -180,6 +279,13 @@ class BaseStatusMessage(BaseStepMessage):
180
279
 
181
280
  Status messages provide real-time updates about what operations
182
281
  are being performed during step execution.
282
+
283
+ Attributes:
284
+ agent_id: Unique identifier for the agent performing the step.
285
+ execution_id: Unique identifier for the execution session.
286
+ step_id: Unique identifier for the processing step.
287
+ step_type: The type/category of the processing step.
288
+ step_title: Optional human-readable title for the step.
183
289
  """
184
290
 
185
291
  pass
@@ -191,6 +297,15 @@ class AgentAgentCardMessage(BaseStatusMessage):
191
297
 
192
298
  Agent cards represent interactive UI components or displays
193
299
  that provide rich information to users during pipeline execution.
300
+
301
+ Attributes:
302
+ message_type: Always set to AGENT_AGENT_CARD for agent card messages.
303
+ agent_id: Unique identifier for the agent processing the card.
304
+ execution_id: Unique identifier for the execution session.
305
+ step_id: Unique identifier for the processing step.
306
+ step_type: The type/category of the processing step.
307
+ step_title: Optional human-readable title for the step.
308
+ step_name: The name of the agent card step being processed.
194
309
  """
195
310
 
196
311
  message_type: MessageType = MessageType.AGENT_AGENT_CARD
@@ -203,6 +318,17 @@ class AgentDatasearchMessage(BaseStatusMessage):
203
318
 
204
319
  This message is sent when an agent is querying or searching
205
320
  through configured data sources to retrieve relevant information.
321
+
322
+ Attributes:
323
+ message_type: Always set to AGENT_DATASEARCH for data search messages.
324
+ agent_id: Unique identifier for the agent performing the search.
325
+ execution_id: Unique identifier for the execution session.
326
+ step_id: Unique identifier for the processing step.
327
+ step_type: The type/category of the processing step.
328
+ step_title: Optional human-readable title for the step.
329
+ datastore_id: Unique identifier for the data source being searched.
330
+ datastore_type: The type of data source (e.g., 'database', 'file', 'api').
331
+ datastore_name: Human-readable name of the data source.
206
332
  """
207
333
 
208
334
  message_type: MessageType = MessageType.AGENT_DATASEARCH
@@ -217,6 +343,15 @@ class AgentInvocationMessage(BaseStatusMessage):
217
343
 
218
344
  This occurs when the current agent calls or delegates work
219
345
  to another specialized agent in the pipeline.
346
+
347
+ Attributes:
348
+ message_type: Always set to AGENT_INVOCATION for agent invocation messages.
349
+ agent_id: Unique identifier for the agent making the invocation.
350
+ execution_id: Unique identifier for the execution session.
351
+ step_id: Unique identifier for the processing step.
352
+ step_type: The type/category of the processing step.
353
+ step_title: Optional human-readable title for the step.
354
+ agent_name: The name of the agent being invoked.
220
355
  """
221
356
 
222
357
  message_type: MessageType = MessageType.AGENT_INVOCATION
@@ -229,6 +364,15 @@ class AgentModelMessage(BaseStatusMessage):
229
364
 
230
365
  This message is sent when an agent begins interacting with
231
366
  a language model for text generation or processing.
367
+
368
+ Attributes:
369
+ message_type: Always set to AGENT_MODEL for model messages.
370
+ agent_id: Unique identifier for the agent calling the model.
371
+ execution_id: Unique identifier for the execution session.
372
+ step_id: Unique identifier for the processing step.
373
+ step_type: The type/category of the processing step.
374
+ step_title: Optional human-readable title for the step.
375
+ model_name: The name of the language model being called.
232
376
  """
233
377
 
234
378
  message_type: MessageType = MessageType.AGENT_MODEL
@@ -241,6 +385,15 @@ class AgentPythonCodeMessage(BaseStatusMessage):
241
385
 
242
386
  This message is sent when an agent executes custom Python code
243
387
  blocks as part of its processing workflow.
388
+
389
+ Attributes:
390
+ message_type: Always set to AGENT_PYTHON_CODE for Python code messages.
391
+ agent_id: Unique identifier for the agent executing the code.
392
+ execution_id: Unique identifier for the execution session.
393
+ step_id: Unique identifier for the processing step.
394
+ step_type: The type/category of the processing step.
395
+ step_title: Optional human-readable title for the step.
396
+ step_name: The name of the Python code step being executed.
244
397
  """
245
398
 
246
399
  message_type: MessageType = MessageType.AGENT_PYTHON_CODE
@@ -253,6 +406,16 @@ class AgentToolActionMessage(BaseStatusMessage):
253
406
 
254
407
  This message is sent when an agent invokes an external tool,
255
408
  API, or service to perform a specific action or retrieve data.
409
+
410
+ Attributes:
411
+ message_type: Always set to AGENT_TOOL_ACTION for tool action messages.
412
+ agent_id: Unique identifier for the agent calling the tool.
413
+ execution_id: Unique identifier for the execution session.
414
+ step_id: Unique identifier for the processing step.
415
+ step_type: The type/category of the processing step.
416
+ step_title: Optional human-readable title for the step.
417
+ step_name: The name of the tool action step being performed.
418
+ tool_name: The name of the external tool being called.
256
419
  """
257
420
 
258
421
  message_type: MessageType = MessageType.AGENT_TOOL_ACTION
@@ -269,6 +432,12 @@ class BaseModelStreamMessage(BaseAgentMessage):
269
432
 
270
433
  Model streaming allows real-time display of text generation
271
434
  as it occurs, providing better user experience for long responses.
435
+
436
+ Attributes:
437
+ agent_id: Unique identifier for the agent performing the streaming.
438
+ execution_id: Unique identifier for the execution session.
439
+ step_id: Unique identifier for the processing step.
440
+ stream_id: Unique identifier for the streaming session.
272
441
  """
273
442
 
274
443
  step_id: str
@@ -278,6 +447,14 @@ class BaseModelStreamMessage(BaseAgentMessage):
278
447
  class AgentModelStreamStartMessage(BaseModelStreamMessage):
279
448
  """
280
449
  Message indicating that model text streaming has begun.
450
+
451
+ Attributes:
452
+ message_type: Always set to AGENT_MODEL_STREAM_START for stream start messages.
453
+ agent_id: Unique identifier for the agent performing the streaming.
454
+ execution_id: Unique identifier for the execution session.
455
+ step_id: Unique identifier for the processing step.
456
+ stream_id: Unique identifier for the streaming session.
457
+ model_name: The name of the language model being streamed.
281
458
  """
282
459
 
283
460
  message_type: MessageType = MessageType.AGENT_MODEL_STREAM_START
@@ -287,6 +464,14 @@ class AgentModelStreamStartMessage(BaseModelStreamMessage):
287
464
  class AgentModelStreamErrorMessage(BaseModelStreamMessage):
288
465
  """
289
466
  Message indicating that an error occurred during model streaming.
467
+
468
+ Attributes:
469
+ message_type: Always set to AGENT_MODEL_STREAM_ERROR for stream error messages.
470
+ agent_id: Unique identifier for the agent performing the streaming.
471
+ execution_id: Unique identifier for the execution session.
472
+ step_id: Unique identifier for the processing step.
473
+ stream_id: Unique identifier for the streaming session.
474
+ error_message: Description of the error that occurred during streaming.
290
475
  """
291
476
 
292
477
  message_type: MessageType = MessageType.AGENT_MODEL_STREAM_ERROR
@@ -299,6 +484,15 @@ class AgentModelStreamFragmentMessage(BaseModelStreamMessage):
299
484
 
300
485
  These messages contain individual chunks of text as they are generated
301
486
  by the model, allowing for real-time display of results.
487
+
488
+ Attributes:
489
+ message_type: Always set to AGENT_MODEL_STREAM_FRAGMENT for fragment messages.
490
+ agent_id: Unique identifier for the agent performing the streaming.
491
+ execution_id: Unique identifier for the execution session.
492
+ step_id: Unique identifier for the processing step.
493
+ stream_id: Unique identifier for the streaming session.
494
+ index: The sequential index of this fragment within the stream.
495
+ content: The text content of this fragment, or None if no content.
302
496
  """
303
497
 
304
498
  message_type: MessageType = MessageType.AGENT_MODEL_STREAM_FRAGMENT
@@ -309,6 +503,15 @@ class AgentModelStreamFragmentMessage(BaseModelStreamMessage):
309
503
  class AgentModelStreamEndMessage(BaseModelStreamMessage):
310
504
  """
311
505
  Message indicating that model text streaming has completed.
506
+
507
+ Attributes:
508
+ message_type: Always set to AGENT_MODEL_STREAM_END for stream end messages.
509
+ agent_id: Unique identifier for the agent performing the streaming.
510
+ execution_id: Unique identifier for the execution session.
511
+ step_id: Unique identifier for the processing step.
512
+ stream_id: Unique identifier for the streaming session.
513
+ content_id: Unique identifier for the generated content.
514
+ duration: Optional duration of the streaming session in seconds.
312
515
  """
313
516
 
314
517
  message_type: MessageType = MessageType.AGENT_MODEL_STREAM_END
@@ -319,6 +522,15 @@ class AgentModelStreamEndMessage(BaseModelStreamMessage):
319
522
  class AgentModelStreamUsageMessage(BaseModelStreamMessage):
320
523
  """
321
524
  Message containing token usage and cost information for model calls.
525
+
526
+ Attributes:
527
+ message_type: Always set to AGENT_MODEL_STREAM_USAGE for usage messages.
528
+ agent_id: Unique identifier for the agent performing the streaming.
529
+ execution_id: Unique identifier for the execution session.
530
+ step_id: Unique identifier for the processing step.
531
+ stream_id: Unique identifier for the streaming session.
532
+ token: Optional number of tokens used during the model call.
533
+ tokens_cost: Optional cost in dollars for the tokens used.
322
534
  """
323
535
 
324
536
  message_type: MessageType = MessageType.AGENT_MODEL_STREAM_USAGE
@@ -335,6 +547,12 @@ class BaseAgentAgentCardStreamMessage(BaseAgentMessage):
335
547
 
336
548
  Agent card streaming allows real-time updates to interactive
337
549
  UI components during their generation or processing.
550
+
551
+ Attributes:
552
+ agent_id: Unique identifier for the agent performing the streaming.
553
+ execution_id: Unique identifier for the execution session.
554
+ step_id: Unique identifier for the processing step.
555
+ stream_id: Unique identifier for the streaming session.
338
556
  """
339
557
 
340
558
  step_id: str
@@ -344,6 +562,14 @@ class BaseAgentAgentCardStreamMessage(BaseAgentMessage):
344
562
  class AgentAgentCardStreamStartMessage(BaseAgentAgentCardStreamMessage):
345
563
  """
346
564
  Message indicating that agent card streaming has begun.
565
+
566
+ Attributes:
567
+ message_type: Always set to AGENT_AGENT_CARD_STREAM_START for card stream start messages.
568
+ agent_id: Unique identifier for the agent performing the streaming.
569
+ execution_id: Unique identifier for the execution session.
570
+ step_id: Unique identifier for the processing step.
571
+ stream_id: Unique identifier for the streaming session.
572
+ content: Optional initial content for the agent card.
347
573
  """
348
574
 
349
575
  message_type: MessageType = MessageType.AGENT_AGENT_CARD_STREAM_START
@@ -353,6 +579,14 @@ class AgentAgentCardStreamStartMessage(BaseAgentAgentCardStreamMessage):
353
579
  class AgentAgentCardStreamErrorMessage(BaseAgentAgentCardStreamMessage):
354
580
  """
355
581
  Message indicating that an error occurred during agent card streaming.
582
+
583
+ Attributes:
584
+ message_type: Always set to AGENT_AGENT_CARD_STREAM_ERROR for card stream error messages.
585
+ agent_id: Unique identifier for the agent performing the streaming.
586
+ execution_id: Unique identifier for the execution session.
587
+ step_id: Unique identifier for the processing step.
588
+ stream_id: Unique identifier for the streaming session.
589
+ error_message: Description of the error that occurred during card streaming.
356
590
  """
357
591
 
358
592
  message_type: MessageType = MessageType.AGENT_AGENT_CARD_STREAM_ERROR
@@ -365,6 +599,15 @@ class AgentAgentCardStreamFragmentMessage(BaseAgentAgentCardStreamMessage):
365
599
 
366
600
  These messages contain individual chunks of agent card data
367
601
  as they are generated, allowing for real-time UI updates.
602
+
603
+ Attributes:
604
+ message_type: Always set to AGENT_AGENT_CARD_STREAM_FRAGMENT for card fragment messages.
605
+ agent_id: Unique identifier for the agent performing the streaming.
606
+ execution_id: Unique identifier for the execution session.
607
+ step_id: Unique identifier for the processing step.
608
+ stream_id: Unique identifier for the streaming session.
609
+ index: The sequential index of this fragment within the stream.
610
+ content: The card content of this fragment, or None if no content.
368
611
  """
369
612
 
370
613
  message_type: MessageType = MessageType.AGENT_AGENT_CARD_STREAM_FRAGMENT
@@ -375,6 +618,14 @@ class AgentAgentCardStreamFragmentMessage(BaseAgentAgentCardStreamMessage):
375
618
  class AgentAgentCardStreamEndMessage(BaseAgentAgentCardStreamMessage):
376
619
  """
377
620
  Message indicating that agent card streaming has completed.
621
+
622
+ Attributes:
623
+ message_type: Always set to AGENT_AGENT_CARD_STREAM_END for card stream end messages.
624
+ agent_id: Unique identifier for the agent performing the streaming.
625
+ execution_id: Unique identifier for the execution session.
626
+ step_id: Unique identifier for the processing step.
627
+ stream_id: Unique identifier for the streaming session.
628
+ content: Optional final content for the agent card.
378
629
  """
379
630
 
380
631
  message_type: MessageType = MessageType.AGENT_AGENT_CARD_STREAM_END
@@ -390,6 +641,15 @@ class BaseAgentToolMessage(BaseStepMessage):
390
641
 
391
642
  Tool messages track the lifecycle of external tool or service
392
643
  calls made by agents during pipeline execution.
644
+
645
+ Attributes:
646
+ agent_id: Unique identifier for the agent performing the step.
647
+ execution_id: Unique identifier for the execution session.
648
+ step_id: Unique identifier for the processing step.
649
+ step_type: The type/category of the processing step.
650
+ step_title: Optional human-readable title for the step.
651
+ id: Unique identifier for the tool execution.
652
+ name: The name of the tool being executed.
393
653
  """
394
654
 
395
655
  id: str
@@ -402,6 +662,16 @@ class AgentToolRequestMessage(BaseAgentToolMessage):
402
662
 
403
663
  This message is sent when an agent begins calling an external
404
664
  tool or service to perform a specific operation.
665
+
666
+ Attributes:
667
+ message_type: Always set to AGENT_TOOL_REQUEST for tool request messages.
668
+ agent_id: Unique identifier for the agent making the tool request.
669
+ execution_id: Unique identifier for the execution session.
670
+ step_id: Unique identifier for the processing step.
671
+ step_type: The type/category of the processing step.
672
+ step_title: Optional human-readable title for the step.
673
+ id: Unique identifier for the tool execution.
674
+ name: The name of the tool being requested.
405
675
  """
406
676
 
407
677
  message_type: MessageType = MessageType.AGENT_TOOL_REQUEST
@@ -413,6 +683,18 @@ class AgentToolResponseMessage(BaseAgentToolMessage):
413
683
 
414
684
  This message contains the results and timing information
415
685
  from a completed tool or service call.
686
+
687
+ Attributes:
688
+ message_type: Always set to AGENT_TOOL_RESPONSE for tool response messages.
689
+ agent_id: Unique identifier for the agent that made the tool request.
690
+ execution_id: Unique identifier for the execution session.
691
+ step_id: Unique identifier for the processing step.
692
+ step_type: The type/category of the processing step.
693
+ step_title: Optional human-readable title for the step.
694
+ id: Unique identifier for the tool execution.
695
+ name: The name of the tool that was executed.
696
+ duration: The time it took for the tool to complete execution.
697
+ success: Whether the tool execution was successful.
416
698
  """
417
699
 
418
700
  message_type: MessageType = MessageType.AGENT_TOOL_RESPONSE
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: airia
3
- Version: 0.1.14
3
+ Version: 0.1.16
4
4
  Summary: Python SDK for Airia API
5
5
  Author-email: Airia LLC <support@airia.com>
6
6
  License: MIT