airia 0.1.24__py3-none-any.whl → 0.1.26__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/async_request_handler.py +29 -8
- airia/client/_request_handler/sync_request_handler.py +25 -8
- airia/client/async_client.py +4 -0
- airia/client/library/__init__.py +1 -1
- airia/client/library/async_library.py +9 -9
- airia/client/library/sync_library.py +1 -1
- airia/client/models/__init__.py +4 -0
- airia/client/models/async_models.py +96 -0
- airia/client/models/base_models.py +68 -0
- airia/client/models/sync_models.py +96 -0
- airia/client/pipeline_execution/async_pipeline_execution.py +3 -3
- airia/client/pipeline_execution/base_pipeline_execution.py +1 -1
- airia/client/pipeline_execution/sync_pipeline_execution.py +3 -3
- airia/client/pipeline_import/__init__.py +4 -0
- airia/client/pipeline_import/async_pipeline_import.py +147 -0
- airia/client/pipeline_import/base_pipeline_import.py +95 -0
- airia/client/pipeline_import/sync_pipeline_import.py +143 -0
- airia/client/sync_client.py +4 -0
- airia/exceptions.py +4 -3
- airia/types/api/__init__.py +2 -0
- airia/types/api/library/_library_models.py +20 -10
- airia/types/api/models/__init__.py +13 -0
- airia/types/api/models/list_models.py +129 -0
- airia/types/api/pipeline_import/__init__.py +11 -0
- airia/types/api/pipeline_import/create_agent_from_pipeline_definition.py +108 -0
- airia/types/api/pipelines_config/get_pipeline_config.py +1 -1
- {airia-0.1.24.dist-info → airia-0.1.26.dist-info}/METADATA +1 -1
- {airia-0.1.24.dist-info → airia-0.1.26.dist-info}/RECORD +31 -19
- {airia-0.1.24.dist-info → airia-0.1.26.dist-info}/WHEEL +0 -0
- {airia-0.1.24.dist-info → airia-0.1.26.dist-info}/licenses/LICENSE +0 -0
- {airia-0.1.24.dist-info → airia-0.1.26.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
"""Types for the create_agent_from_pipeline_definition API response.
|
|
2
|
+
|
|
3
|
+
This module defines data structures for pipeline import results,
|
|
4
|
+
including information about created, updated, and skipped entities
|
|
5
|
+
during the pipeline import process.
|
|
6
|
+
"""
|
|
7
|
+
|
|
8
|
+
from typing import List, Literal, Optional
|
|
9
|
+
|
|
10
|
+
from pydantic import BaseModel, Field
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class PipelineImportedEntity(BaseModel):
|
|
14
|
+
"""Pipeline imported entity result.
|
|
15
|
+
|
|
16
|
+
Represents an entity that was processed during pipeline import,
|
|
17
|
+
including its type, name, ID, and the action taken (created, updated, or skipped).
|
|
18
|
+
|
|
19
|
+
Attributes:
|
|
20
|
+
entity_type: The type of entity (e.g., Pipeline, DataSource, Tool)
|
|
21
|
+
entity_name: The name of the entity
|
|
22
|
+
entity_id: The unique identifier of the entity
|
|
23
|
+
reason: Optional explanation for why the entity was created/updated/skipped
|
|
24
|
+
action: The action taken on the entity (Created, Updated, or Skipped)
|
|
25
|
+
prompt_id: Optional prompt ID associated with this entity (used for step-level prompts)
|
|
26
|
+
"""
|
|
27
|
+
|
|
28
|
+
entity_type: str = Field(
|
|
29
|
+
..., description="Gets the entity type.", alias="entityType"
|
|
30
|
+
)
|
|
31
|
+
entity_name: Optional[str] = Field(
|
|
32
|
+
None, description="Gets the entity name.", alias="entityName"
|
|
33
|
+
)
|
|
34
|
+
entity_id: str = Field(..., description="Gets the entity id.", alias="entityId")
|
|
35
|
+
reason: Optional[str] = Field(
|
|
36
|
+
None,
|
|
37
|
+
description="Gets or sets an optional value indication why the entity was skipped/updated/created.",
|
|
38
|
+
)
|
|
39
|
+
action: Literal["Created", "Updated", "Skipped"] = Field(
|
|
40
|
+
..., description="Gets or sets the action taken on the entity."
|
|
41
|
+
)
|
|
42
|
+
prompt_id: Optional[str] = Field(
|
|
43
|
+
None,
|
|
44
|
+
description="Gets or sets the prompt ID associated with this entity (used to set the prompt at the step level on import).",
|
|
45
|
+
alias="promptId",
|
|
46
|
+
)
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
class CreateAgentFromPipelineDefinitionResponse(BaseModel):
|
|
50
|
+
"""Pipeline import result.
|
|
51
|
+
|
|
52
|
+
Contains the complete result of a pipeline import operation,
|
|
53
|
+
including the created pipeline information, any errors encountered,
|
|
54
|
+
and detailed lists of all entities that were created, updated, or skipped.
|
|
55
|
+
|
|
56
|
+
Attributes:
|
|
57
|
+
pipeline_id: The ID of the imported pipeline
|
|
58
|
+
department_id: The department ID if the pipeline was imported into a specific department
|
|
59
|
+
pipeline_name: The name of the imported pipeline
|
|
60
|
+
deployment_id: The deployment ID if the pipeline was deployed during import
|
|
61
|
+
error_message: An error message if the import failed
|
|
62
|
+
error_details: Detailed error messages if the import failed
|
|
63
|
+
created_entities: List of entities that were created during import
|
|
64
|
+
skipped_entities: List of entities that were skipped during import
|
|
65
|
+
updated_entities: List of entities that were updated during import
|
|
66
|
+
"""
|
|
67
|
+
|
|
68
|
+
pipeline_id: Optional[str] = Field(
|
|
69
|
+
None, description="Gets the pipeline id.", alias="pipelineId"
|
|
70
|
+
)
|
|
71
|
+
department_id: Optional[str] = Field(
|
|
72
|
+
None,
|
|
73
|
+
description="Gets the department id if the pipeline was imported into a specific department.",
|
|
74
|
+
alias="departmentId",
|
|
75
|
+
)
|
|
76
|
+
pipeline_name: Optional[str] = Field(
|
|
77
|
+
None, description="Gets the pipeline name.", alias="pipelineName"
|
|
78
|
+
)
|
|
79
|
+
deployment_id: Optional[str] = Field(
|
|
80
|
+
None,
|
|
81
|
+
description="Gets the deployment id if the pipeline was deployed during the import.",
|
|
82
|
+
alias="deploymentId",
|
|
83
|
+
)
|
|
84
|
+
error_message: Optional[str] = Field(
|
|
85
|
+
None,
|
|
86
|
+
description="Gets an error message if the import failed.",
|
|
87
|
+
alias="errorMessage",
|
|
88
|
+
)
|
|
89
|
+
error_details: Optional[List[str]] = Field(
|
|
90
|
+
None,
|
|
91
|
+
description="Gets the error details if the import failed.",
|
|
92
|
+
alias="errorDetails",
|
|
93
|
+
)
|
|
94
|
+
created_entities: Optional[List[PipelineImportedEntity]] = Field(
|
|
95
|
+
None,
|
|
96
|
+
description="Gets the list of created entities during the import process.",
|
|
97
|
+
alias="createdEntities",
|
|
98
|
+
)
|
|
99
|
+
skipped_entities: Optional[List[PipelineImportedEntity]] = Field(
|
|
100
|
+
None,
|
|
101
|
+
description="Gets the list of skipped entities during the import process.",
|
|
102
|
+
alias="skippedEntities",
|
|
103
|
+
)
|
|
104
|
+
updated_entities: Optional[List[PipelineImportedEntity]] = Field(
|
|
105
|
+
None,
|
|
106
|
+
description="Gets the list of skipped entities during the import process.",
|
|
107
|
+
alias="updatedEntities",
|
|
108
|
+
)
|
|
@@ -309,7 +309,7 @@ class Deployment(BaseModel):
|
|
|
309
309
|
alias="isRecommended",
|
|
310
310
|
description="Whether this is a recommended/featured deployment",
|
|
311
311
|
)
|
|
312
|
-
tags: List[str] = Field(description="The Tags")
|
|
312
|
+
tags: Optional[List[str]] = Field(description="The Tags", default=None)
|
|
313
313
|
conversation_type: str = Field(
|
|
314
314
|
alias="conversationType", description="The Conversation Start Type"
|
|
315
315
|
)
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
airia/__init__.py,sha256=T39gO8E5T5zxlw-JP78ruxOu7-LeKOJCJzz6t40kdQo,231
|
|
2
2
|
airia/constants.py,sha256=oKABowOTsJPIQ1AgtVpNN73oKuhh1DekBC5axYSm8lY,647
|
|
3
|
-
airia/exceptions.py,sha256=
|
|
3
|
+
airia/exceptions.py,sha256=l1FCKlWC6tONvAxSxv4YEAXjpHEM-eQQQ3mEtSkJvhc,1233
|
|
4
4
|
airia/logs.py,sha256=oHU8ByekHu-udBB-5abY39wUct_26t8io-A1Kcl7D3U,4538
|
|
5
5
|
airia/client/__init__.py,sha256=6gSQ9bl7j79q1HPE0o5py3IRdkwWWuU_7J4h05Dd2o8,127
|
|
6
|
-
airia/client/async_client.py,sha256=
|
|
6
|
+
airia/client/async_client.py,sha256=1jWgAF2LPaFDWDJI2Yn8t-ApmbnZUvU1xR2z2VBqJmg,7448
|
|
7
7
|
airia/client/base_client.py,sha256=ftyLi2E3Hb4CQFYfiknitJA0sWDTylCiUbde0qkWYhg,3182
|
|
8
|
-
airia/client/sync_client.py,sha256=
|
|
8
|
+
airia/client/sync_client.py,sha256=Y29uwPJ-yxpkpYK6PmbmTQh4bf9OCJynpZ8LGmpwOag,7267
|
|
9
9
|
airia/client/_request_handler/__init__.py,sha256=FOdJMfzjN0Tw0TeD8mDJwHgte70Fw_j08EljtfulCvw,157
|
|
10
|
-
airia/client/_request_handler/async_request_handler.py,sha256=
|
|
10
|
+
airia/client/_request_handler/async_request_handler.py,sha256=yvPaGDTb6GZwU5V9-AuLv-z0XJ-NhOg974VKzD46vl4,11556
|
|
11
11
|
airia/client/_request_handler/base_request_handler.py,sha256=dObRK6e_V_cGslHzC3WrNQ5lZqmMamjxNhVpb7P1L_w,3516
|
|
12
|
-
airia/client/_request_handler/sync_request_handler.py,sha256=
|
|
12
|
+
airia/client/_request_handler/sync_request_handler.py,sha256=rSyhzREmcEQKTKY-UqLuMQK_ybvX5q4Im2xYsW7tYXY,10668
|
|
13
13
|
airia/client/attachments/__init__.py,sha256=EId17aIpzEs6Qw1R2DNzetpxYDJZDzLN4J_IrH2wYE8,137
|
|
14
14
|
airia/client/attachments/async_attachments.py,sha256=FhMQdQBM5zCrxwcTdje39fEvvVOH3lyryBMuIoMWb4o,1771
|
|
15
15
|
airia/client/attachments/base_attachments.py,sha256=Gaqtm5Gc-vSm8uoJT-qm6yawUR0LhIcg6_CPR0-NELY,1777
|
|
@@ -26,14 +26,22 @@ airia/client/deployments/__init__.py,sha256=Xu_MqbeUrtqYE4tH6hbmvUk8eQScWJ6MEyYF
|
|
|
26
26
|
airia/client/deployments/async_deployments.py,sha256=IqRQZtkulBxxuviHpbcoi4UFQ-XRH4oRqZ90Q4H-FXs,4321
|
|
27
27
|
airia/client/deployments/base_deployments.py,sha256=luiw4Fuj2YxD0j0-rXrsWkae_CNipxwRV7wIrHBFxpI,3230
|
|
28
28
|
airia/client/deployments/sync_deployments.py,sha256=gEq2M0uUi5GLw8lxf8QasAHx48FZHzzRwrt7TAcyA9s,4230
|
|
29
|
-
airia/client/library/__init__.py,sha256=
|
|
30
|
-
airia/client/library/async_library.py,sha256=
|
|
29
|
+
airia/client/library/__init__.py,sha256=QuZgSjwbJ2nmvbWEy56YP_35VSs3IB9tt7YbBM-h94Y,166
|
|
30
|
+
airia/client/library/async_library.py,sha256=fRG3eUxZkXDMnDTAt18KxD1LQMC5VB6cssWu85451TA,4239
|
|
31
31
|
airia/client/library/base_library.py,sha256=VkcWr25fp2es2sRB97tORQmtAi59NZ6YRzwLymlQHIk,4664
|
|
32
|
-
airia/client/library/sync_library.py,sha256=
|
|
32
|
+
airia/client/library/sync_library.py,sha256=u_oBscUTYRNcsDbxCgpx_UvY5UAGgum2DW7eWt8y_i8,4191
|
|
33
|
+
airia/client/models/__init__.py,sha256=YbxGLwMb7RQKfPo_2L_O_W9j8Szwnb0vtWiUNxkScfs,107
|
|
34
|
+
airia/client/models/async_models.py,sha256=kcFywYQr4Ni1_eSH3dnC3ZVfDoHIAJZDb94Zsegt3pQ,3797
|
|
35
|
+
airia/client/models/base_models.py,sha256=rBXPK3f5YPn1ntkmXNdHyMlzYpOH5d3CA0hHvQM1GTI,2361
|
|
36
|
+
airia/client/models/sync_models.py,sha256=O_nD2bD9N3EIWz6nCt5KUQaRmIGaBhrLs006B-1d65U,3748
|
|
33
37
|
airia/client/pipeline_execution/__init__.py,sha256=7qEZsPRTLySC71zlwYioBuJs6B4BwRCgFL3TQyFWXmc,175
|
|
34
|
-
airia/client/pipeline_execution/async_pipeline_execution.py,sha256=
|
|
35
|
-
airia/client/pipeline_execution/base_pipeline_execution.py,sha256=
|
|
36
|
-
airia/client/pipeline_execution/sync_pipeline_execution.py,sha256=
|
|
38
|
+
airia/client/pipeline_execution/async_pipeline_execution.py,sha256=alglTaHtWEipJx56WOUdV8MNhpOmo4GuhCXI9wkv7Mw,18022
|
|
39
|
+
airia/client/pipeline_execution/base_pipeline_execution.py,sha256=fVGG__zHPpKLZdcwOL3GYmEyjCC7V4GZVuZ4CagGRP4,9608
|
|
40
|
+
airia/client/pipeline_execution/sync_pipeline_execution.py,sha256=tvzo05lKgcUT-_LgFbyU7HdyV-EFWQMPAgC6znRKLzI,18106
|
|
41
|
+
airia/client/pipeline_import/__init__.py,sha256=ELSVZbekuhTnGDWFZsqE3-ILWsyHUwj9J_-Z75zGz_0,157
|
|
42
|
+
airia/client/pipeline_import/async_pipeline_import.py,sha256=BC6HkkMNiU7_7H8vAhXwehV_Q5781xuNLTik6ehTgiU,7251
|
|
43
|
+
airia/client/pipeline_import/base_pipeline_import.py,sha256=_6AHf_bL3RABDaIQN3-ivL3Z8NR1l0J7A4S0ilJCluY,3844
|
|
44
|
+
airia/client/pipeline_import/sync_pipeline_import.py,sha256=SaF8uIWGFhk5i0e45JGY2WXLVNyJPq4WXwUA78m7Yv8,7000
|
|
37
45
|
airia/client/pipelines_config/__init__.py,sha256=Mjn3ie-bQo6zjayxrJDvoJG2vKis72yGt_CQkvtREw4,163
|
|
38
46
|
airia/client/pipelines_config/async_pipelines_config.py,sha256=H3W5yCUWsd93cq1i-PdQXyq6MG_dW0Jq7pjU2ZfqNf0,7611
|
|
39
47
|
airia/client/pipelines_config/base_pipelines_config.py,sha256=UotK6-SB19fUSlUEHM_aNQTWD4GLlRUynF-Gs0Nvu0c,3917
|
|
@@ -49,7 +57,7 @@ airia/client/store/sync_store.py,sha256=DNBhTckdoVnTqTVwFp_J42l-XkSHX3sCKVR7J4b7
|
|
|
49
57
|
airia/types/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
50
58
|
airia/types/_api_version.py,sha256=Uzom6O2ZG92HN_Z2h-lTydmO2XYX9RVs4Yi4DJmXytE,255
|
|
51
59
|
airia/types/_request_data.py,sha256=q8t7KfO2WvgbPVYPvPWiwYb8LyP0kovlOgHFhZIU6ns,1278
|
|
52
|
-
airia/types/api/__init__.py,sha256=
|
|
60
|
+
airia/types/api/__init__.py,sha256=gXayaXdsdHABeaH9501uO7A6146j7cVteUz_z61WnAo,121
|
|
53
61
|
airia/types/api/attachments/__init__.py,sha256=zFSCwsmPr05I7NJRG6MCWME3AKhBpL0MhgOBOaF7rok,78
|
|
54
62
|
airia/types/api/attachments/upload_file.py,sha256=XBCm1lZJAloFxmyp_3fbtuJ9Y28O-mbAfwy6D0EvTgQ,457
|
|
55
63
|
airia/types/api/conversations/__init__.py,sha256=W6GlNVZCAY5eViJOoPl1bY9_etRBWeUnYZJJt7WHtfI,269
|
|
@@ -60,12 +68,16 @@ airia/types/api/deployments/__init__.py,sha256=ONQgkKr_8i6FhcBsHyzT4mYOP_H0OPUAs
|
|
|
60
68
|
airia/types/api/deployments/get_deployment.py,sha256=KBr9edTu-e-tC3u9bpAdz0CMWzk0DFQxusrVU6OZ7mc,4398
|
|
61
69
|
airia/types/api/deployments/get_deployments.py,sha256=5Dm7pTkEFmIZ4p4Scle9x9p3Nqy5tnXxeft3H4O_Fa8,8718
|
|
62
70
|
airia/types/api/library/__init__.py,sha256=b2TLWT90EhQ41f8LcGMtvzEftd3ol_eKc41ian6zXX8,201
|
|
63
|
-
airia/types/api/library/_library_models.py,sha256=
|
|
71
|
+
airia/types/api/library/_library_models.py,sha256=d0YbmKNuUDXrieSRZh1IkhW_2aKrnaU08yuxqij98Dg,10486
|
|
72
|
+
airia/types/api/models/__init__.py,sha256=bm4Rn86Tuk7q3988bJ_gvS5zY7t-sqCFt1BYb0nS7Xo,224
|
|
73
|
+
airia/types/api/models/list_models.py,sha256=6tZRi_MBiMaQZb6whU2Ky8VRnUw_JDMkDZPY0PS3vQA,5451
|
|
64
74
|
airia/types/api/pipeline_execution/__init__.py,sha256=jlBLNN3yzd9TBQEfi7JJWlp3ur2NfXmON3YDnMkYdEY,674
|
|
65
75
|
airia/types/api/pipeline_execution/_pipeline_execution.py,sha256=4E8rmr3Ok9EHkTzHjeZHQFlQVIXQIXIpbEeDtKAh3sQ,6425
|
|
76
|
+
airia/types/api/pipeline_import/__init__.py,sha256=5m8e4faOYGCEFLQWJgj-v5H4NXPNtnlAKAxA4tGJUbw,267
|
|
77
|
+
airia/types/api/pipeline_import/create_agent_from_pipeline_definition.py,sha256=vn2aZGPnahmstHYKKMMN1hyTMRWFa2uAjpAYGwaI2xg,4394
|
|
66
78
|
airia/types/api/pipelines_config/__init__.py,sha256=tNYV8AEGsKMfH4nMb-KGDfH1kvHO2b6VSoTB7TYQ7N8,2188
|
|
67
79
|
airia/types/api/pipelines_config/export_pipeline_definition.py,sha256=UdXoG2c_MpzRF7apLz-4K-wsSyu_Jw0xAliCkCWlFD8,38156
|
|
68
|
-
airia/types/api/pipelines_config/get_pipeline_config.py,sha256=
|
|
80
|
+
airia/types/api/pipelines_config/get_pipeline_config.py,sha256=gvyp_xGpxr3Elcsu04JSQRPDvjmxRCPDAAR0rbE-oGs,23538
|
|
69
81
|
airia/types/api/pipelines_config/get_pipelines_config.py,sha256=RbiX5zISxzGRxzPGHe7QpO-Ro-0woQsPGLxtiP4Y4K4,15955
|
|
70
82
|
airia/types/api/project/__init__.py,sha256=ervHvCeqt08JkMRsSrG1ZnQshE70of-8kf4VeW2HG9c,113
|
|
71
83
|
airia/types/api/project/get_projects.py,sha256=Ot8mq6VnXrGXZs7FQ0UuRYSyuCeER7YeCCZlGb4ZyQo,3646
|
|
@@ -75,8 +87,8 @@ airia/types/api/store/get_files.py,sha256=v22zmOuTSFqzrS73L5JL_FgBeF5a5wutv1nK4I
|
|
|
75
87
|
airia/types/sse/__init__.py,sha256=KWnNTfsQnthfrU128pUX6ounvSS7DvjC-Y21FE-OdMk,1863
|
|
76
88
|
airia/types/sse/sse_messages.py,sha256=asq9KG5plT2XSgQMz-Nqo0WcKlXvE8UT3E-WLhCegPk,30244
|
|
77
89
|
airia/utils/sse_parser.py,sha256=XCTkuaroYWaVQOgBq8VpbseQYSAVruF69AvKUwZQKTA,4251
|
|
78
|
-
airia-0.1.
|
|
79
|
-
airia-0.1.
|
|
80
|
-
airia-0.1.
|
|
81
|
-
airia-0.1.
|
|
82
|
-
airia-0.1.
|
|
90
|
+
airia-0.1.26.dist-info/licenses/LICENSE,sha256=R3ClUMMKPRItIcZ0svzyj2taZZnFYw568YDNzN9KQ1Q,1066
|
|
91
|
+
airia-0.1.26.dist-info/METADATA,sha256=jBegGTV52UEAp9zWWlbp8tklZc0sAUAgleVKkQOfEjY,4506
|
|
92
|
+
airia-0.1.26.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
93
|
+
airia-0.1.26.dist-info/top_level.txt,sha256=qUQEKfs_hdOYTwjKj1JZbRhS5YeXDNaKQaVTrzabS6w,6
|
|
94
|
+
airia-0.1.26.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|