airia 0.1.13__py3-none-any.whl → 0.1.15__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 +27 -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/deployments/__init__.py +11 -0
- airia/client/deployments/async_deployments.py +112 -0
- airia/client/deployments/base_deployments.py +95 -0
- airia/client/deployments/sync_deployments.py +112 -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 +65 -0
- airia/client/pipelines_config/base_pipelines_config.py +44 -0
- airia/client/pipelines_config/sync_pipelines_config.py +65 -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 +27 -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 +13 -0
- airia/types/api/{conversations.py → conversations/_conversations.py} +49 -12
- airia/types/api/deployments/__init__.py +26 -0
- airia/types/api/deployments/get_deployment.py +106 -0
- airia/types/api/deployments/get_deployments.py +224 -0
- 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 +35 -0
- airia/types/api/pipelines_config/get_pipeline_config.py +554 -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 +19 -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 +364 -48
- airia/utils/sse_parser.py +5 -4
- {airia-0.1.13.dist-info → airia-0.1.15.dist-info}/METADATA +4 -2
- airia-0.1.15.dist-info/RECORD +62 -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.15.dist-info}/WHEEL +0 -0
- {airia-0.1.13.dist-info → airia-0.1.15.dist-info}/licenses/LICENSE +0 -0
- {airia-0.1.13.dist-info → airia-0.1.15.dist-info}/top_level.txt +0 -0
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.15
|
|
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,62 @@
|
|
|
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=aeFRugnHfQHGVx3R3XVFGC1PH0q_OqCbZjGKNopaE4g,6901
|
|
7
|
+
airia/client/base_client.py,sha256=ftyLi2E3Hb4CQFYfiknitJA0sWDTylCiUbde0qkWYhg,3182
|
|
8
|
+
airia/client/sync_client.py,sha256=p2qUfDnzBMgiAjoECI43O15sLOoL9nrtcCkA9LT0bPU,6770
|
|
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/deployments/__init__.py,sha256=Xu_MqbeUrtqYE4tH6hbmvUk8eQScWJ6MEyYFlVEwlRw,310
|
|
18
|
+
airia/client/deployments/async_deployments.py,sha256=IqRQZtkulBxxuviHpbcoi4UFQ-XRH4oRqZ90Q4H-FXs,4321
|
|
19
|
+
airia/client/deployments/base_deployments.py,sha256=luiw4Fuj2YxD0j0-rXrsWkae_CNipxwRV7wIrHBFxpI,3230
|
|
20
|
+
airia/client/deployments/sync_deployments.py,sha256=gEq2M0uUi5GLw8lxf8QasAHx48FZHzzRwrt7TAcyA9s,4230
|
|
21
|
+
airia/client/pipeline_execution/__init__.py,sha256=7qEZsPRTLySC71zlwYioBuJs6B4BwRCgFL3TQyFWXmc,175
|
|
22
|
+
airia/client/pipeline_execution/async_pipeline_execution.py,sha256=tesbtLYuTffPPHb3a2lw8aNzSzuDQ80yRWboSFEhyRs,7477
|
|
23
|
+
airia/client/pipeline_execution/base_pipeline_execution.py,sha256=Jkpp_D2OrNg3koudrIua-d0VKwI4hlATDqi8WwRCifY,3965
|
|
24
|
+
airia/client/pipeline_execution/sync_pipeline_execution.py,sha256=wIifP_KjRvBgXeqs1g237IlAXiuU7ThxS5YDj6qB7gM,7392
|
|
25
|
+
airia/client/pipelines_config/__init__.py,sha256=Mjn3ie-bQo6zjayxrJDvoJG2vKis72yGt_CQkvtREw4,163
|
|
26
|
+
airia/client/pipelines_config/async_pipelines_config.py,sha256=CzwEMQKnJlMPPixvRenSP4AEUtBEhc2H_ApxnGQ2aIA,2442
|
|
27
|
+
airia/client/pipelines_config/base_pipelines_config.py,sha256=w7o9eZL0xLCpAPOrQlPayUqW9YD0MZE3PifSz4-QKJ8,1492
|
|
28
|
+
airia/client/pipelines_config/sync_pipelines_config.py,sha256=ENlgwwaw5a1rjJM6GXMFkdaM7UINKJVyPzOy528SQfs,2399
|
|
29
|
+
airia/client/project/__init__.py,sha256=GGEGfxtNzSO_BMAJ8Wfo8ZTq8BIdR6MHf6gSwhPv9mE,113
|
|
30
|
+
airia/client/project/async_project.py,sha256=OrIiqopKSXAhkYJi6yjoR-YYVUxzll1ldDJkJW1rIBM,4534
|
|
31
|
+
airia/client/project/base_project.py,sha256=4vP_dKGAt17mdzp3eW3ER8E0C0XMQ9P7JAEH2EH0imE,2432
|
|
32
|
+
airia/client/project/sync_project.py,sha256=sbDt02WKH-65p_hCgz4tpUJVhp0T1oneeXPccRQ06sw,4449
|
|
33
|
+
airia/client/store/__init__.py,sha256=-rbtYQ8PTaFA6Fs2dm7Db2C3RDNvagaK3iE4PpLRcjg,101
|
|
34
|
+
airia/client/store/async_store.py,sha256=wlYbK2AlTuJCrk3otdpO68W208166xyKpZymtuA5PyA,13557
|
|
35
|
+
airia/client/store/base_store.py,sha256=RUIGkKb2KiKZfzmDJIiPrLSes_VAnJA4xouIqxkEazI,8106
|
|
36
|
+
airia/client/store/sync_store.py,sha256=DNBhTckdoVnTqTVwFp_J42l-XkSHX3sCKVR7J4b79RU,12578
|
|
37
|
+
airia/types/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
38
|
+
airia/types/_api_version.py,sha256=Uzom6O2ZG92HN_Z2h-lTydmO2XYX9RVs4Yi4DJmXytE,255
|
|
39
|
+
airia/types/_request_data.py,sha256=q8t7KfO2WvgbPVYPvPWiwYb8LyP0kovlOgHFhZIU6ns,1278
|
|
40
|
+
airia/types/api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
41
|
+
airia/types/api/conversations/__init__.py,sha256=W6GlNVZCAY5eViJOoPl1bY9_etRBWeUnYZJJt7WHtfI,269
|
|
42
|
+
airia/types/api/conversations/_conversations.py,sha256=O7VHs2_Ykg0s6Phe0sAVvbO7YVu6d6R2M2-JkWAipxI,4845
|
|
43
|
+
airia/types/api/deployments/__init__.py,sha256=ONQgkKr_8i6FhcBsHyzT4mYOP_H0OPUAsxvxroZWBMU,538
|
|
44
|
+
airia/types/api/deployments/get_deployment.py,sha256=KBr9edTu-e-tC3u9bpAdz0CMWzk0DFQxusrVU6OZ7mc,4398
|
|
45
|
+
airia/types/api/deployments/get_deployments.py,sha256=5Dm7pTkEFmIZ4p4Scle9x9p3Nqy5tnXxeft3H4O_Fa8,8718
|
|
46
|
+
airia/types/api/pipeline_execution/__init__.py,sha256=01Cf0Cx-RZygtgQvYajSrikxmtUYbsDcBzFk7hkNnGc,360
|
|
47
|
+
airia/types/api/pipeline_execution/_pipeline_execution.py,sha256=cJ2icsQvG5K15crNNbymje9B2tJduc_D64OnNXF043U,2429
|
|
48
|
+
airia/types/api/pipelines_config/__init__.py,sha256=peAX82IUN_ZM1kp3Opv0Zk-1NgIHmeL_IOUihBHfnUQ,780
|
|
49
|
+
airia/types/api/pipelines_config/get_pipeline_config.py,sha256=UEGnvzBPHAJMJEcMOKLZWXenaL96iyYoWt0zZjyzEUg,23514
|
|
50
|
+
airia/types/api/project/__init__.py,sha256=ervHvCeqt08JkMRsSrG1ZnQshE70of-8kf4VeW2HG9c,113
|
|
51
|
+
airia/types/api/project/get_projects.py,sha256=Ot8mq6VnXrGXZs7FQ0UuRYSyuCeER7YeCCZlGb4ZyQo,3646
|
|
52
|
+
airia/types/api/store/__init__.py,sha256=BgViwV_SHE9cxtilPnA2xWRk6MkAbxYxansmGeZR3nw,341
|
|
53
|
+
airia/types/api/store/get_file.py,sha256=Li3CpWUktQruNeoKSTlHJPXzNMaysG_Zy-fXGji8zs8,6174
|
|
54
|
+
airia/types/api/store/get_files.py,sha256=v22zmOuTSFqzrS73L5JL_FgBeF5a5wutv1nK4IHAoW0,700
|
|
55
|
+
airia/types/sse/__init__.py,sha256=KWnNTfsQnthfrU128pUX6ounvSS7DvjC-Y21FE-OdMk,1863
|
|
56
|
+
airia/types/sse/sse_messages.py,sha256=asq9KG5plT2XSgQMz-Nqo0WcKlXvE8UT3E-WLhCegPk,30244
|
|
57
|
+
airia/utils/sse_parser.py,sha256=XCTkuaroYWaVQOgBq8VpbseQYSAVruF69AvKUwZQKTA,4251
|
|
58
|
+
airia-0.1.15.dist-info/licenses/LICENSE,sha256=R3ClUMMKPRItIcZ0svzyj2taZZnFYw568YDNzN9KQ1Q,1066
|
|
59
|
+
airia-0.1.15.dist-info/METADATA,sha256=rp4FO6skpbu9Lz13R0gyI61GnVrHAcnwHVwMZS9s22o,4506
|
|
60
|
+
airia-0.1.15.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
61
|
+
airia-0.1.15.dist-info/top_level.txt,sha256=qUQEKfs_hdOYTwjKj1JZbRhS5YeXDNaKQaVTrzabS6w,6
|
|
62
|
+
airia-0.1.15.dist-info/RECORD,,
|
|
@@ -1,214 +0,0 @@
|
|
|
1
|
-
"""
|
|
2
|
-
Pydantic models for pipeline configuration API responses.
|
|
3
|
-
|
|
4
|
-
This module defines comprehensive data structures for pipeline configuration exports,
|
|
5
|
-
including all components like agents, models, tools, data sources, and deployment settings.
|
|
6
|
-
"""
|
|
7
|
-
from typing import Any, Dict, List, Optional
|
|
8
|
-
|
|
9
|
-
from pydantic import BaseModel, Field
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
class Metadata(BaseModel):
|
|
13
|
-
"""
|
|
14
|
-
Pipeline metadata and export configuration.
|
|
15
|
-
|
|
16
|
-
Contains version information, export settings, and descriptive metadata
|
|
17
|
-
about the pipeline configuration.
|
|
18
|
-
"""
|
|
19
|
-
id: str
|
|
20
|
-
export_version: str = Field(alias="exportVersion")
|
|
21
|
-
tagline: Optional[str] = None
|
|
22
|
-
agent_description: Optional[str] = Field(alias="agentDescription", default=None)
|
|
23
|
-
industry: Optional[str] = None
|
|
24
|
-
tasks: Optional[str] = None
|
|
25
|
-
credential_export_option: str = Field(alias="credentialExportOption")
|
|
26
|
-
data_source_export_option: str = Field(alias="dataSourceExportOption")
|
|
27
|
-
version_information: str = Field(alias="versionInformation")
|
|
28
|
-
state: str
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
class Agent(BaseModel):
|
|
32
|
-
"""
|
|
33
|
-
AI agent configuration and workflow definition.
|
|
34
|
-
|
|
35
|
-
Represents the core agent that executes the pipeline, including its
|
|
36
|
-
identity, industry specialization, and step-by-step workflow configuration.
|
|
37
|
-
"""
|
|
38
|
-
name: str
|
|
39
|
-
execution_name: str = Field(alias="executionName")
|
|
40
|
-
agent_description: Optional[str] = Field(alias="agentDescription", default=None)
|
|
41
|
-
video_link: Optional[str] = Field(alias="videoLink", default=None)
|
|
42
|
-
industry: Optional[str] = None
|
|
43
|
-
sub_industries: List[str] = Field(alias="subIndustries", default_factory=list)
|
|
44
|
-
agent_details: Dict[str, Any] = Field(alias="agentDetails", default_factory=dict)
|
|
45
|
-
id: str
|
|
46
|
-
agent_icon: Optional[str] = Field(alias="agentIcon", default=None)
|
|
47
|
-
steps: List[Dict[str, Any]]
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
class PromptMessage(BaseModel):
|
|
51
|
-
text: str
|
|
52
|
-
order: int
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
class Prompt(BaseModel):
|
|
56
|
-
name: str
|
|
57
|
-
version_change_description: str = Field(alias="versionChangeDescription")
|
|
58
|
-
prompt_message_list: List[PromptMessage] = Field(alias="promptMessageList")
|
|
59
|
-
id: str
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
class CredentialData(BaseModel):
|
|
63
|
-
key: str
|
|
64
|
-
value: str
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
class CredentialsDefinition(BaseModel):
|
|
68
|
-
name: str
|
|
69
|
-
credential_type: str = Field(alias="credentialType")
|
|
70
|
-
source_type: str = Field(alias="sourceType")
|
|
71
|
-
credential_data_list: List[CredentialData] = Field(alias="credentialDataList")
|
|
72
|
-
id: str
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
class HeaderDefinition(BaseModel):
|
|
76
|
-
key: str
|
|
77
|
-
value: str
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
class ParameterDefinition(BaseModel):
|
|
81
|
-
name: str
|
|
82
|
-
parameter_type: str = Field(alias="parameterType")
|
|
83
|
-
parameter_description: str = Field(alias="parameterDescription")
|
|
84
|
-
default: str
|
|
85
|
-
valid_options: List[str] = Field(alias="validOptions", default_factory=list)
|
|
86
|
-
id: str
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
class Tool(BaseModel):
|
|
90
|
-
tool_type: str = Field(alias="toolType")
|
|
91
|
-
name: str
|
|
92
|
-
standardized_name: str = Field(alias="standardizedName")
|
|
93
|
-
tool_description: str = Field(alias="toolDescription")
|
|
94
|
-
purpose: str
|
|
95
|
-
api_endpoint: str = Field(alias="apiEndpoint")
|
|
96
|
-
credentials_definition: Optional[CredentialsDefinition] = Field(
|
|
97
|
-
alias="credentialsDefinition"
|
|
98
|
-
)
|
|
99
|
-
headers_definition: List[HeaderDefinition] = Field(alias="headersDefinition")
|
|
100
|
-
body: str
|
|
101
|
-
parameters_definition: List[ParameterDefinition] = Field(
|
|
102
|
-
alias="parametersDefinition"
|
|
103
|
-
)
|
|
104
|
-
method_type: str = Field(alias="methodType")
|
|
105
|
-
route_through_acc: bool = Field(alias="routeThroughACC")
|
|
106
|
-
use_user_credentials: bool = Field(alias="useUserCredentials")
|
|
107
|
-
use_user_credentials_type: str = Field(alias="useUserCredentialsType")
|
|
108
|
-
id: str
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
class Model(BaseModel):
|
|
112
|
-
"""
|
|
113
|
-
Language model configuration and deployment settings.
|
|
114
|
-
|
|
115
|
-
Defines an AI model used in the pipeline, including its deployment details,
|
|
116
|
-
pricing configuration, authentication settings, and capabilities.
|
|
117
|
-
"""
|
|
118
|
-
id: str
|
|
119
|
-
display_name: str = Field(alias="displayName")
|
|
120
|
-
model_name: str = Field(alias="modelName")
|
|
121
|
-
prompt_id: Optional[str] = Field(alias="promptId", default=None)
|
|
122
|
-
system_prompt_definition: Optional[Any] = Field(
|
|
123
|
-
alias="systemPromptDefinition", default=None
|
|
124
|
-
)
|
|
125
|
-
url: str
|
|
126
|
-
input_type: str = Field(alias="inputType")
|
|
127
|
-
provider: str
|
|
128
|
-
credentials_definition: Optional[CredentialsDefinition] = Field(
|
|
129
|
-
alias="credentialsDefinition"
|
|
130
|
-
)
|
|
131
|
-
deployment_type: str = Field(alias="deploymentType")
|
|
132
|
-
source_type: str = Field(alias="sourceType")
|
|
133
|
-
connection_string: Optional[str] = Field(alias="connectionString", default=None)
|
|
134
|
-
container_name: Optional[str] = Field(alias="containerName", default=None)
|
|
135
|
-
deployed_key: Optional[str] = Field(alias="deployedKey", default=None)
|
|
136
|
-
deployed_url: Optional[str] = Field(alias="deployedUrl", default=None)
|
|
137
|
-
state: Optional[str] = None
|
|
138
|
-
uploaded_container_id: Optional[str] = Field(
|
|
139
|
-
alias="uploadedContainerId", default=None
|
|
140
|
-
)
|
|
141
|
-
library_model_id: Optional[str] = Field(alias="libraryModelId")
|
|
142
|
-
input_token_price: str = Field(alias="inputTokenPrice")
|
|
143
|
-
output_token_price: str = Field(alias="outputTokenPrice")
|
|
144
|
-
token_units: int = Field(alias="tokenUnits")
|
|
145
|
-
has_tool_support: bool = Field(alias="hasToolSupport")
|
|
146
|
-
allow_airia_credentials: bool = Field(alias="allowAiriaCredentials")
|
|
147
|
-
allow_byok_credentials: bool = Field(alias="allowBYOKCredentials")
|
|
148
|
-
author: Optional[str]
|
|
149
|
-
price_type: str = Field(alias="priceType")
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
class PythonCodeBlock(BaseModel):
|
|
153
|
-
id: str
|
|
154
|
-
code: str
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
class Router(BaseModel):
|
|
158
|
-
id: str
|
|
159
|
-
model_id: str = Field(alias="modelId")
|
|
160
|
-
model: Optional[Any] = None
|
|
161
|
-
router_config: Dict[str, Dict[str, Any]] = Field(alias="routerConfig")
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
class ChunkingConfig(BaseModel):
|
|
165
|
-
id: str
|
|
166
|
-
chunk_size: int = Field(alias="chunkSize")
|
|
167
|
-
chunk_overlap: int = Field(alias="chunkOverlap")
|
|
168
|
-
strategy_type: str = Field(alias="strategyType")
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
class DataSourceFile(BaseModel):
|
|
172
|
-
data_source_id: str = Field(alias="dataSourceId")
|
|
173
|
-
file_path: Optional[str] = Field(None, alias="filePath")
|
|
174
|
-
input_token: Optional[str] = Field(None, alias="inputToken")
|
|
175
|
-
file_count: Optional[int] = Field(None, alias="fileCount")
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
class DataSource(BaseModel):
|
|
179
|
-
id: str = Field(alias="id")
|
|
180
|
-
name: Optional[str] = None
|
|
181
|
-
execution_name: Optional[str] = Field(None, alias="executionName")
|
|
182
|
-
chunking_config: ChunkingConfig = Field(alias="chunkingConfig")
|
|
183
|
-
data_source_type: str = Field(alias="dataSourceType")
|
|
184
|
-
database_type: str = Field(alias="databaseType")
|
|
185
|
-
embedding_provider: str = Field(alias="embeddingProvider")
|
|
186
|
-
is_user_specific: bool = Field(alias="isUserSpecific")
|
|
187
|
-
files: Optional[List[DataSourceFile]] = None
|
|
188
|
-
configuration_json: Optional[str] = Field(None, alias="configurationJson")
|
|
189
|
-
credentials: Optional[CredentialsDefinition]
|
|
190
|
-
is_image_processing_enabled: bool = Field(alias="isImageProcessingEnabled")
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
class GetPipelineConfigResponse(BaseModel):
|
|
194
|
-
"""
|
|
195
|
-
Complete pipeline configuration export response.
|
|
196
|
-
|
|
197
|
-
This is the root response model containing all components of a pipeline
|
|
198
|
-
configuration, including the agent definition, associated resources,
|
|
199
|
-
and deployment settings.
|
|
200
|
-
"""
|
|
201
|
-
metadata: Metadata
|
|
202
|
-
agent: Agent
|
|
203
|
-
data_sources: Optional[List[DataSource]] = Field(
|
|
204
|
-
alias="dataSources", default_factory=list
|
|
205
|
-
)
|
|
206
|
-
prompts: Optional[List[Prompt]] = Field(default_factory=list)
|
|
207
|
-
tools: Optional[List[Tool]] = Field(default_factory=list)
|
|
208
|
-
models: Optional[List[Model]] = Field(default_factory=list)
|
|
209
|
-
memories: Optional[Any] = None
|
|
210
|
-
python_code_blocks: Optional[List[PythonCodeBlock]] = Field(
|
|
211
|
-
alias="pythonCodeBlocks", default_factory=list
|
|
212
|
-
)
|
|
213
|
-
routers: Optional[List[Router]] = Field(default_factory=list)
|
|
214
|
-
deployment: Optional[Any] = None
|
airia-0.1.13.dist-info/RECORD
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
airia/__init__.py,sha256=T39gO8E5T5zxlw-JP78ruxOu7-LeKOJCJzz6t40kdQo,231
|
|
2
|
-
airia/constants.py,sha256=QDCxP-j3QQp5JGftYIYoqMu1fwXd56KZYAPD6_5YmPU,646
|
|
3
|
-
airia/exceptions.py,sha256=4Z55n-cRJrtTa5-pZBIK2oZD4-Z99aUtKx_kfTFYY5o,1146
|
|
4
|
-
airia/logs.py,sha256=_JO55-TcCtS1aVmmWUWEFKd2bMW1oYsz1j_8ajgPIdA,4570
|
|
5
|
-
airia/client/__init__.py,sha256=6gSQ9bl7j79q1HPE0o5py3IRdkwWWuU_7J4h05Dd2o8,127
|
|
6
|
-
airia/client/async_client.py,sha256=smYbJj90gBer24eLi4vwl_5z5jgPU6KA0wAWSv8GDxw,33290
|
|
7
|
-
airia/client/base_client.py,sha256=LdAcTU1URuq6b1XXStd-7Sa-LiYm8H2TgzDyJSYegls,17456
|
|
8
|
-
airia/client/sync_client.py,sha256=gH0VISV1ZGUjP53ignIrn8yN_iUOPgFV0EFZ8TsafVk,32118
|
|
9
|
-
airia/types/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
10
|
-
airia/types/_api_version.py,sha256=Uzom6O2ZG92HN_Z2h-lTydmO2XYX9RVs4Yi4DJmXytE,255
|
|
11
|
-
airia/types/_request_data.py,sha256=EUYMWQzKlX8Isf_VYP1bcb3uau6fjzRm9guXSaXPiwE,1041
|
|
12
|
-
airia/types/api/__init__.py,sha256=gP4vOYxOG8Gfq8E2EEe1K_KW73nbJ--HUt3n7BUzu4A,913
|
|
13
|
-
airia/types/api/conversations.py,sha256=Kkb3ybdBCQBCBVHe-gRUjGV2wqGA4Y5d5EGTitMuJ1Q,2981
|
|
14
|
-
airia/types/api/get_pipeline_config.py,sha256=GTmY2IoCmXNCCmwOI9gQ5pkEJTyhQdaJxzhWaQhEmsM,7781
|
|
15
|
-
airia/types/api/get_projects.py,sha256=krGV2gAxH81E_5OtUzUNdWZN7S-2jkAV5TiqJmW8A48,3479
|
|
16
|
-
airia/types/api/pipeline_execution.py,sha256=-lcae-UqNrXqqy8DuyXEbMFBm3dVXQj0cl2jpeFeb78,1831
|
|
17
|
-
airia/types/sse/__init__.py,sha256=DOFbw7DASl96g_UQwSS8iHY1mX4T6CLX7It5QWxtwJ0,1862
|
|
18
|
-
airia/types/sse/sse_messages.py,sha256=q4DOqcYbYnsS3mBYO_-V7rZScGIChrCuh15jrcO0aII,14320
|
|
19
|
-
airia/utils/sse_parser.py,sha256=YCnlXHqkAFUeKoy60RH-IUgQ9ZkrzK_UQ4VsnQldCUU,4274
|
|
20
|
-
airia-0.1.13.dist-info/licenses/LICENSE,sha256=R3ClUMMKPRItIcZ0svzyj2taZZnFYw568YDNzN9KQ1Q,1066
|
|
21
|
-
airia-0.1.13.dist-info/METADATA,sha256=coFoSzERDhm84fg0oaXgYalPIBAWWWOiJ3uexckVLRI,4364
|
|
22
|
-
airia-0.1.13.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
23
|
-
airia-0.1.13.dist-info/top_level.txt,sha256=qUQEKfs_hdOYTwjKj1JZbRhS5YeXDNaKQaVTrzabS6w,6
|
|
24
|
-
airia-0.1.13.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|