airia 0.1.15__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.
- airia/client/pipelines_config/async_pipelines_config.py +61 -1
- airia/client/pipelines_config/base_pipelines_config.py +34 -0
- airia/client/pipelines_config/sync_pipelines_config.py +61 -1
- airia/types/api/pipelines_config/__init__.py +52 -0
- airia/types/api/pipelines_config/export_pipeline_definition.py +940 -0
- {airia-0.1.15.dist-info → airia-0.1.16.dist-info}/METADATA +1 -1
- {airia-0.1.15.dist-info → airia-0.1.16.dist-info}/RECORD +10 -9
- {airia-0.1.15.dist-info → airia-0.1.16.dist-info}/WHEEL +0 -0
- {airia-0.1.15.dist-info → airia-0.1.16.dist-info}/licenses/LICENSE +0 -0
- {airia-0.1.15.dist-info → airia-0.1.16.dist-info}/top_level.txt +0 -0
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
from typing import Optional
|
|
2
2
|
|
|
3
3
|
from ...types._api_version import ApiVersion
|
|
4
|
-
from ...types.api.pipelines_config import
|
|
4
|
+
from ...types.api.pipelines_config import (
|
|
5
|
+
PipelineConfigResponse,
|
|
6
|
+
ExportPipelineDefinitionResponse,
|
|
7
|
+
)
|
|
5
8
|
from .._request_handler import AsyncRequestHandler
|
|
6
9
|
from .base_pipelines_config import BasePipelinesConfig
|
|
7
10
|
|
|
@@ -63,3 +66,60 @@ class AsyncPipelinesConfig(BasePipelinesConfig):
|
|
|
63
66
|
resp = await self._request_handler.make_request("GET", request_data)
|
|
64
67
|
|
|
65
68
|
return PipelineConfigResponse(**resp)
|
|
69
|
+
|
|
70
|
+
async def export_pipeline_definition(
|
|
71
|
+
self, pipeline_id: str, correlation_id: Optional[str] = None
|
|
72
|
+
) -> ExportPipelineDefinitionResponse:
|
|
73
|
+
"""
|
|
74
|
+
Export the complete definition of a pipeline including all its components.
|
|
75
|
+
|
|
76
|
+
This method retrieves a comprehensive export of a pipeline definition including
|
|
77
|
+
metadata, agent configuration, data sources, prompts, tools, models, memories,
|
|
78
|
+
Python code blocks, routers, and deployment information.
|
|
79
|
+
|
|
80
|
+
Args:
|
|
81
|
+
pipeline_id (str): The unique identifier of the pipeline to export
|
|
82
|
+
definition for.
|
|
83
|
+
correlation_id (str, optional): A unique identifier for request tracing
|
|
84
|
+
and logging. If not provided, one will be automatically generated.
|
|
85
|
+
|
|
86
|
+
Returns:
|
|
87
|
+
ExportPipelineDefinitionResponse: A response object containing the complete
|
|
88
|
+
pipeline definition export.
|
|
89
|
+
|
|
90
|
+
Raises:
|
|
91
|
+
AiriaAPIError: If the API request fails, including cases where:
|
|
92
|
+
- The pipeline_id doesn't exist (404)
|
|
93
|
+
- Authentication fails (401)
|
|
94
|
+
- Access is forbidden (403)
|
|
95
|
+
- Server errors (5xx)
|
|
96
|
+
|
|
97
|
+
Example:
|
|
98
|
+
```python
|
|
99
|
+
from airia import AiriaAsyncClient
|
|
100
|
+
|
|
101
|
+
client = AiriaAsyncClient(api_key="your_api_key")
|
|
102
|
+
|
|
103
|
+
# Export pipeline definition
|
|
104
|
+
export = await client.pipelines_config.export_pipeline_definition(
|
|
105
|
+
pipeline_id="your_pipeline_id"
|
|
106
|
+
)
|
|
107
|
+
|
|
108
|
+
print(f"Pipeline: {export.agent.name}")
|
|
109
|
+
print(f"Export version: {export.metadata.export_version}")
|
|
110
|
+
print(f"Data sources: {len(export.data_sources or [])}")
|
|
111
|
+
print(f"Tools: {len(export.tools or [])}")
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
Note:
|
|
115
|
+
This method exports the complete pipeline definition which can be used
|
|
116
|
+
for backup, version control, or importing into other environments.
|
|
117
|
+
"""
|
|
118
|
+
request_data = self._pre_export_pipeline_definition(
|
|
119
|
+
pipeline_id=pipeline_id,
|
|
120
|
+
correlation_id=correlation_id,
|
|
121
|
+
api_version=ApiVersion.V1.value,
|
|
122
|
+
)
|
|
123
|
+
resp = await self._request_handler.make_request("GET", request_data)
|
|
124
|
+
|
|
125
|
+
return ExportPipelineDefinitionResponse(**resp)
|
|
@@ -42,3 +42,37 @@ class BasePipelinesConfig:
|
|
|
42
42
|
)
|
|
43
43
|
|
|
44
44
|
return request_data
|
|
45
|
+
|
|
46
|
+
def _pre_export_pipeline_definition(
|
|
47
|
+
self,
|
|
48
|
+
pipeline_id: str,
|
|
49
|
+
correlation_id: Optional[str] = None,
|
|
50
|
+
api_version: str = ApiVersion.V1.value,
|
|
51
|
+
):
|
|
52
|
+
"""
|
|
53
|
+
Prepare request data for exporting pipeline definition endpoint.
|
|
54
|
+
|
|
55
|
+
Args:
|
|
56
|
+
pipeline_id: ID of the pipeline to export definition for
|
|
57
|
+
correlation_id: Optional correlation ID for tracing
|
|
58
|
+
api_version: API version to use for the request
|
|
59
|
+
|
|
60
|
+
Returns:
|
|
61
|
+
RequestData: Prepared request data for the export pipeline definition endpoint
|
|
62
|
+
|
|
63
|
+
Raises:
|
|
64
|
+
ValueError: If an invalid API version is provided
|
|
65
|
+
"""
|
|
66
|
+
if api_version not in ApiVersion.as_list():
|
|
67
|
+
raise ValueError(
|
|
68
|
+
f"Invalid API version: {api_version}. Valid versions are: {', '.join(ApiVersion.as_list())}"
|
|
69
|
+
)
|
|
70
|
+
url = urljoin(
|
|
71
|
+
self._request_handler.base_url,
|
|
72
|
+
f"{api_version}/PipelinesConfig/export/{pipeline_id}",
|
|
73
|
+
)
|
|
74
|
+
request_data = self._request_handler.prepare_request(
|
|
75
|
+
url, correlation_id=correlation_id
|
|
76
|
+
)
|
|
77
|
+
|
|
78
|
+
return request_data
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
from typing import Optional
|
|
2
2
|
|
|
3
3
|
from ...types._api_version import ApiVersion
|
|
4
|
-
from ...types.api.pipelines_config import
|
|
4
|
+
from ...types.api.pipelines_config import (
|
|
5
|
+
PipelineConfigResponse,
|
|
6
|
+
ExportPipelineDefinitionResponse,
|
|
7
|
+
)
|
|
5
8
|
from .._request_handler import RequestHandler
|
|
6
9
|
from .base_pipelines_config import BasePipelinesConfig
|
|
7
10
|
|
|
@@ -63,3 +66,60 @@ class PipelinesConfig(BasePipelinesConfig):
|
|
|
63
66
|
resp = self._request_handler.make_request("GET", request_data)
|
|
64
67
|
|
|
65
68
|
return PipelineConfigResponse(**resp)
|
|
69
|
+
|
|
70
|
+
def export_pipeline_definition(
|
|
71
|
+
self, pipeline_id: str, correlation_id: Optional[str] = None
|
|
72
|
+
) -> ExportPipelineDefinitionResponse:
|
|
73
|
+
"""
|
|
74
|
+
Export the complete definition of a pipeline including all its components.
|
|
75
|
+
|
|
76
|
+
This method retrieves a comprehensive export of a pipeline definition including
|
|
77
|
+
metadata, agent configuration, data sources, prompts, tools, models, memories,
|
|
78
|
+
Python code blocks, routers, and deployment information.
|
|
79
|
+
|
|
80
|
+
Args:
|
|
81
|
+
pipeline_id (str): The unique identifier of the pipeline to export
|
|
82
|
+
definition for.
|
|
83
|
+
correlation_id (str, optional): A unique identifier for request tracing
|
|
84
|
+
and logging. If not provided, one will be automatically generated.
|
|
85
|
+
|
|
86
|
+
Returns:
|
|
87
|
+
ExportPipelineDefinitionResponse: A response object containing the complete
|
|
88
|
+
pipeline definition export.
|
|
89
|
+
|
|
90
|
+
Raises:
|
|
91
|
+
AiriaAPIError: If the API request fails, including cases where:
|
|
92
|
+
- The pipeline_id doesn't exist (404)
|
|
93
|
+
- Authentication fails (401)
|
|
94
|
+
- Access is forbidden (403)
|
|
95
|
+
- Server errors (5xx)
|
|
96
|
+
|
|
97
|
+
Example:
|
|
98
|
+
```python
|
|
99
|
+
from airia import AiriaClient
|
|
100
|
+
|
|
101
|
+
client = AiriaClient(api_key="your_api_key")
|
|
102
|
+
|
|
103
|
+
# Export pipeline definition
|
|
104
|
+
export = client.pipelines_config.export_pipeline_definition(
|
|
105
|
+
pipeline_id="your_pipeline_id"
|
|
106
|
+
)
|
|
107
|
+
|
|
108
|
+
print(f"Pipeline: {export.agent.name}")
|
|
109
|
+
print(f"Export version: {export.metadata.export_version}")
|
|
110
|
+
print(f"Data sources: {len(export.data_sources or [])}")
|
|
111
|
+
print(f"Tools: {len(export.tools or [])}")
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
Note:
|
|
115
|
+
This method exports the complete pipeline definition which can be used
|
|
116
|
+
for backup, version control, or importing into other environments.
|
|
117
|
+
"""
|
|
118
|
+
request_data = self._pre_export_pipeline_definition(
|
|
119
|
+
pipeline_id=pipeline_id,
|
|
120
|
+
correlation_id=correlation_id,
|
|
121
|
+
api_version=ApiVersion.V1.value,
|
|
122
|
+
)
|
|
123
|
+
resp = self._request_handler.make_request("GET", request_data)
|
|
124
|
+
|
|
125
|
+
return ExportPipelineDefinitionResponse(**resp)
|
|
@@ -16,6 +16,33 @@ from .get_pipeline_config import (
|
|
|
16
16
|
PipelineStepPosition,
|
|
17
17
|
PipelineVersion,
|
|
18
18
|
)
|
|
19
|
+
from .export_pipeline_definition import (
|
|
20
|
+
AgentDetailItemDefinition,
|
|
21
|
+
ExportPipelineDefinitionResponse,
|
|
22
|
+
ExportChunkingConfig,
|
|
23
|
+
ExportCredentialDataList,
|
|
24
|
+
ExportCredentials,
|
|
25
|
+
ExportDataSource,
|
|
26
|
+
ExportDataSourceFile,
|
|
27
|
+
ExportDependency,
|
|
28
|
+
ExportDeployment,
|
|
29
|
+
ExportHandle,
|
|
30
|
+
ExportMemory,
|
|
31
|
+
ExportMetadata,
|
|
32
|
+
ExportModel,
|
|
33
|
+
ExportPipeline,
|
|
34
|
+
ExportPipelineStep,
|
|
35
|
+
ExportPosition,
|
|
36
|
+
ExportPrompt,
|
|
37
|
+
ExportPromptMessageList,
|
|
38
|
+
ExportPythonCodeBlock,
|
|
39
|
+
ExportRouter,
|
|
40
|
+
ExportRouterConfig,
|
|
41
|
+
ExportTool,
|
|
42
|
+
ExportToolHeaders,
|
|
43
|
+
ExportToolParameters,
|
|
44
|
+
ExportUserPrompt,
|
|
45
|
+
)
|
|
19
46
|
|
|
20
47
|
__all__ = [
|
|
21
48
|
"AboutDeploymentMetadata",
|
|
@@ -24,6 +51,7 @@ __all__ = [
|
|
|
24
51
|
"Deployment",
|
|
25
52
|
"DeploymentAssignment",
|
|
26
53
|
"DeploymentUserPrompt",
|
|
54
|
+
"ExportPipelineDefinitionResponse",
|
|
27
55
|
"Pipeline",
|
|
28
56
|
"PipelineConfigResponse",
|
|
29
57
|
"PipelineExecutionStats",
|
|
@@ -32,4 +60,28 @@ __all__ = [
|
|
|
32
60
|
"PipelineStepHandle",
|
|
33
61
|
"PipelineStepPosition",
|
|
34
62
|
"PipelineVersion",
|
|
63
|
+
"AgentDetailItemDefinition",
|
|
64
|
+
"ExportChunkingConfig",
|
|
65
|
+
"ExportCredentialDataList",
|
|
66
|
+
"ExportCredentials",
|
|
67
|
+
"ExportDataSource",
|
|
68
|
+
"ExportDataSourceFile",
|
|
69
|
+
"ExportDependency",
|
|
70
|
+
"ExportDeployment",
|
|
71
|
+
"ExportHandle",
|
|
72
|
+
"ExportMemory",
|
|
73
|
+
"ExportMetadata",
|
|
74
|
+
"ExportModel",
|
|
75
|
+
"ExportPipeline",
|
|
76
|
+
"ExportPipelineStep",
|
|
77
|
+
"ExportPosition",
|
|
78
|
+
"ExportPrompt",
|
|
79
|
+
"ExportPromptMessageList",
|
|
80
|
+
"ExportPythonCodeBlock",
|
|
81
|
+
"ExportRouter",
|
|
82
|
+
"ExportRouterConfig",
|
|
83
|
+
"ExportTool",
|
|
84
|
+
"ExportToolHeaders",
|
|
85
|
+
"ExportToolParameters",
|
|
86
|
+
"ExportUserPrompt",
|
|
35
87
|
]
|
|
@@ -0,0 +1,940 @@
|
|
|
1
|
+
"""Types for the export_pipeline_definition API response.
|
|
2
|
+
|
|
3
|
+
This module defines comprehensive data structures for pipeline export functionality,
|
|
4
|
+
including complete pipeline definitions, data sources, tools, models, and all
|
|
5
|
+
associated metadata required for pipeline import/export operations.
|
|
6
|
+
"""
|
|
7
|
+
|
|
8
|
+
from typing import Dict, List, Optional
|
|
9
|
+
|
|
10
|
+
from pydantic import BaseModel, Field
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class ExportCredentialDataList(BaseModel):
|
|
14
|
+
"""Represents a key-value pair within credential data.
|
|
15
|
+
|
|
16
|
+
Used to store credential information as structured key-value pairs
|
|
17
|
+
for authentication and authorization purposes.
|
|
18
|
+
|
|
19
|
+
Attributes:
|
|
20
|
+
key: The key name for the credential data
|
|
21
|
+
value: The value associated with the key
|
|
22
|
+
"""
|
|
23
|
+
key: str = Field(..., description="Gets or sets the key.")
|
|
24
|
+
value: str = Field(..., description="Gets or sets the value.")
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
class ExportCredentials(BaseModel):
|
|
28
|
+
"""Represents credential information for external service authentication.
|
|
29
|
+
|
|
30
|
+
Defines the complete credential configuration including type, source,
|
|
31
|
+
and associated data required for authenticating with external services.
|
|
32
|
+
|
|
33
|
+
Attributes:
|
|
34
|
+
name: The name of the credential set
|
|
35
|
+
credential_type: The type of credential (API key, OAuth, etc.)
|
|
36
|
+
source_type: The source where the credential originates
|
|
37
|
+
credential_data_list: List of key-value pairs containing credential data
|
|
38
|
+
id: The unique identifier for the credential set
|
|
39
|
+
"""
|
|
40
|
+
name: str = Field(..., description="Gets or sets the name.")
|
|
41
|
+
credential_type: str = Field(
|
|
42
|
+
..., description="Gets or sets the type.", alias="credentialType"
|
|
43
|
+
)
|
|
44
|
+
source_type: str = Field(
|
|
45
|
+
..., description="Gets or sets the source type.", alias="sourceType"
|
|
46
|
+
)
|
|
47
|
+
credential_data_list: List[ExportCredentialDataList] = Field(
|
|
48
|
+
...,
|
|
49
|
+
description="Gets or sets the credential data list.",
|
|
50
|
+
alias="credentialDataList",
|
|
51
|
+
)
|
|
52
|
+
id: str = Field(..., description="Gets or sets the ID.")
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
class ExportPosition(BaseModel):
|
|
56
|
+
"""Represents the position coordinates for UI elements.
|
|
57
|
+
|
|
58
|
+
Defines X and Y coordinates for positioning elements within
|
|
59
|
+
the visual pipeline editor interface.
|
|
60
|
+
|
|
61
|
+
Attributes:
|
|
62
|
+
x: The X-coordinate position
|
|
63
|
+
y: The Y-coordinate position
|
|
64
|
+
"""
|
|
65
|
+
x: str = Field(..., description="Gets or sets the X.")
|
|
66
|
+
y: str = Field(..., description="Gets or sets the Y.")
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
class ExportHandle(BaseModel):
|
|
70
|
+
"""Represents a connection handle for pipeline steps.
|
|
71
|
+
|
|
72
|
+
Handles are connection points that allow data flow between pipeline steps.
|
|
73
|
+
They define input and output points with positioning and labeling information.
|
|
74
|
+
|
|
75
|
+
Attributes:
|
|
76
|
+
uuid: The unique identifier of the handle
|
|
77
|
+
type: The type of handle (source or target)
|
|
78
|
+
label: Optional display label for the handle
|
|
79
|
+
tooltip: Optional tooltip text for the handle
|
|
80
|
+
x: The X-coordinate position of the handle
|
|
81
|
+
y: The Y-coordinate position of the handle
|
|
82
|
+
"""
|
|
83
|
+
uuid: str = Field(..., description="Gets or sets the UUID of the handle.")
|
|
84
|
+
type: str = Field(
|
|
85
|
+
...,
|
|
86
|
+
description="Gets or sets the type of the handle (source or target).",
|
|
87
|
+
max_length=6,
|
|
88
|
+
)
|
|
89
|
+
label: Optional[str] = Field(
|
|
90
|
+
None, description="Gets or sets the label of the handle.", max_length=100
|
|
91
|
+
)
|
|
92
|
+
tooltip: Optional[str] = Field(
|
|
93
|
+
None, description="Gets or sets the tooltip of the handle."
|
|
94
|
+
)
|
|
95
|
+
x: float = Field(
|
|
96
|
+
...,
|
|
97
|
+
description="Gets or sets the X-coordinate of the pipeline step in a 2D space.",
|
|
98
|
+
)
|
|
99
|
+
y: float = Field(
|
|
100
|
+
...,
|
|
101
|
+
description="Gets or sets the Y-coordinate of the pipeline step in a 2D space.",
|
|
102
|
+
)
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
class ExportDependency(BaseModel):
|
|
106
|
+
"""Represents a dependency relationship between pipeline steps.
|
|
107
|
+
|
|
108
|
+
Defines the connection between a parent step's output handle and
|
|
109
|
+
a child step's input handle, establishing data flow dependencies.
|
|
110
|
+
|
|
111
|
+
Attributes:
|
|
112
|
+
parent_id: The UUID of the parent pipeline step
|
|
113
|
+
parent_handle_id: The UUID of the parent's output handle
|
|
114
|
+
handle_id: The UUID of the child's input handle
|
|
115
|
+
"""
|
|
116
|
+
parent_id: str = Field(
|
|
117
|
+
...,
|
|
118
|
+
description="Gets or sets the UUID of the parent pipeline step.",
|
|
119
|
+
alias="parentId",
|
|
120
|
+
)
|
|
121
|
+
parent_handle_id: str = Field(
|
|
122
|
+
...,
|
|
123
|
+
description="Gets or sets the UUID of the parent handle (source).",
|
|
124
|
+
alias="parentHandleId",
|
|
125
|
+
)
|
|
126
|
+
handle_id: str = Field(
|
|
127
|
+
...,
|
|
128
|
+
description="Gets or sets the UUID of this handle (target).",
|
|
129
|
+
alias="handleId",
|
|
130
|
+
)
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
class ExportPipelineStep(BaseModel):
|
|
134
|
+
"""Represents a complete pipeline step definition for export.
|
|
135
|
+
|
|
136
|
+
Contains all configuration and metadata for a single step in a pipeline,
|
|
137
|
+
including positioning, connections, and step-specific parameters.
|
|
138
|
+
|
|
139
|
+
Attributes:
|
|
140
|
+
id: The unique identifier of the step
|
|
141
|
+
step_type: The type of step (LLM, retrieval, etc.)
|
|
142
|
+
position: The visual position of the step
|
|
143
|
+
handles: List of connection handles for the step
|
|
144
|
+
dependencies_object: List of input dependencies from other steps
|
|
145
|
+
temperature: Optional temperature setting for LLM steps
|
|
146
|
+
include_date_time_context: Whether to include datetime context
|
|
147
|
+
prompt_id: Optional ID of the associated prompt
|
|
148
|
+
model_id: Optional ID of the associated model
|
|
149
|
+
tool_ids: Optional list of tool IDs used by this step
|
|
150
|
+
tool_params: Optional default parameters for tools
|
|
151
|
+
data_source_id: Optional ID of the associated data source
|
|
152
|
+
top_k: Optional number of top results to retrieve
|
|
153
|
+
relevance_threshold: Optional relevance threshold for retrieval
|
|
154
|
+
neighboring_chunks_count: Optional number of neighboring chunks
|
|
155
|
+
hybrid_search_alpha: Optional alpha parameter for hybrid search
|
|
156
|
+
database_type: Optional database type for data operations
|
|
157
|
+
memory_id: Optional ID of the associated memory
|
|
158
|
+
python_code_block_id: Optional ID of the associated Python code
|
|
159
|
+
background_color: Optional background color for the step
|
|
160
|
+
content: Optional content or configuration data
|
|
161
|
+
step_title: The human-readable title of the step
|
|
162
|
+
"""
|
|
163
|
+
id: str = Field(..., description="Gets or sets the ID.")
|
|
164
|
+
step_type: str = Field(
|
|
165
|
+
..., description="Gets or sets the step type.", alias="stepType"
|
|
166
|
+
)
|
|
167
|
+
position: ExportPosition = Field(..., description="Gets or sets the position.")
|
|
168
|
+
handles: List[ExportHandle] = Field(..., description="Gets or sets the handles.")
|
|
169
|
+
dependencies_object: List[ExportDependency] = Field(
|
|
170
|
+
..., description="Gets or sets the dependencies.", alias="dependenciesObject"
|
|
171
|
+
)
|
|
172
|
+
temperature: Optional[float] = Field(
|
|
173
|
+
None, description="Gets or sets the temperature."
|
|
174
|
+
)
|
|
175
|
+
include_date_time_context: Optional[bool] = Field(
|
|
176
|
+
None,
|
|
177
|
+
description="Gets or sets a value indicating whether to include date time context.",
|
|
178
|
+
alias="includeDateTimeContext",
|
|
179
|
+
)
|
|
180
|
+
prompt_id: Optional[str] = Field(
|
|
181
|
+
None, description="Gets or sets the prompt ID.", alias="promptId"
|
|
182
|
+
)
|
|
183
|
+
model_id: Optional[str] = Field(
|
|
184
|
+
None, description="Gets or sets the model ID.", alias="modelId"
|
|
185
|
+
)
|
|
186
|
+
tool_ids: Optional[List[str]] = Field(
|
|
187
|
+
None, description="Gets or sets the tool IDs.", alias="toolIds"
|
|
188
|
+
)
|
|
189
|
+
tool_params: Optional[Dict[str, str]] = Field(
|
|
190
|
+
None, description="Gets or sets the tool default params.", alias="toolParams"
|
|
191
|
+
)
|
|
192
|
+
data_source_id: Optional[str] = Field(
|
|
193
|
+
None, description="Gets or sets the data source.", alias="dataSourceId"
|
|
194
|
+
)
|
|
195
|
+
top_k: Optional[int] = Field(
|
|
196
|
+
None, description="Gets or sets the top K.", alias="topK"
|
|
197
|
+
)
|
|
198
|
+
relevance_threshold: Optional[int] = Field(
|
|
199
|
+
None,
|
|
200
|
+
description="Gets or sets the relevance threshold.",
|
|
201
|
+
alias="relevanceThreshold",
|
|
202
|
+
)
|
|
203
|
+
neighboring_chunks_count: Optional[int] = Field(
|
|
204
|
+
None,
|
|
205
|
+
description="Gets or sets the neighboring chunks count.",
|
|
206
|
+
alias="neighboringChunksCount",
|
|
207
|
+
)
|
|
208
|
+
hybrid_search_alpha: Optional[float] = Field(
|
|
209
|
+
None,
|
|
210
|
+
description="Gets or sets the hybrid search Alpha parameter.",
|
|
211
|
+
alias="hybridSearchAlpha",
|
|
212
|
+
)
|
|
213
|
+
database_type: Optional[str] = Field(
|
|
214
|
+
None, description="Gets or sets the database type.", alias="databaseType"
|
|
215
|
+
)
|
|
216
|
+
memory_id: Optional[str] = Field(
|
|
217
|
+
None, description="Gets or sets the memory.", alias="memoryId"
|
|
218
|
+
)
|
|
219
|
+
python_code_block_id: Optional[str] = Field(
|
|
220
|
+
None, description="Gets or sets the code.", alias="pythonCodeBlockId"
|
|
221
|
+
)
|
|
222
|
+
background_color: Optional[str] = Field(
|
|
223
|
+
None, description="Gets or sets the backgroundColor.", alias="backgroundColor"
|
|
224
|
+
)
|
|
225
|
+
content: Optional[str] = Field(None, description="Gets or sets the content.")
|
|
226
|
+
step_title: str = Field(
|
|
227
|
+
..., description="Gets or sets the Step Title.", alias="stepTitle"
|
|
228
|
+
)
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
class AgentDetailItemDefinition(BaseModel):
|
|
232
|
+
"""Represents a single configuration item for agent details.
|
|
233
|
+
|
|
234
|
+
Defines configurable parameters for agent behavior, including input types,
|
|
235
|
+
values, and available options for form-based configuration.
|
|
236
|
+
|
|
237
|
+
Attributes:
|
|
238
|
+
item_type: The type of input control (text, select, multiselect, etc.)
|
|
239
|
+
name: The parameter name for this configuration item
|
|
240
|
+
value: The current value of the parameter
|
|
241
|
+
options: Optional list of available options for select/multiselect types
|
|
242
|
+
"""
|
|
243
|
+
item_type: str = Field(
|
|
244
|
+
...,
|
|
245
|
+
description="Gets or sets the entries for the agent details item input type.",
|
|
246
|
+
alias="itemType",
|
|
247
|
+
)
|
|
248
|
+
name: str = Field(
|
|
249
|
+
...,
|
|
250
|
+
description="Gets or sets the entries for the agent details item input value.",
|
|
251
|
+
)
|
|
252
|
+
value: str = Field(
|
|
253
|
+
...,
|
|
254
|
+
description="Gets or sets the entries for the agent details item input value.",
|
|
255
|
+
)
|
|
256
|
+
options: Optional[List[str]] = Field(
|
|
257
|
+
None,
|
|
258
|
+
description="Gets or sets the entries for the agent details item options if it is a select or multiselect.",
|
|
259
|
+
)
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
class ExportPipeline(BaseModel):
|
|
263
|
+
"""Represents a complete pipeline definition for export.
|
|
264
|
+
|
|
265
|
+
Contains all metadata and configuration for a pipeline, including
|
|
266
|
+
identification, description, industry classification, and step definitions.
|
|
267
|
+
|
|
268
|
+
Attributes:
|
|
269
|
+
name: The name of the pipeline
|
|
270
|
+
execution_name: The name used for programmatic execution
|
|
271
|
+
agent_description: Detailed description of the pipeline's purpose
|
|
272
|
+
video_link: Optional URL to instructional video
|
|
273
|
+
industry: The primary industry served by this pipeline
|
|
274
|
+
sub_industries: Additional industry classifications
|
|
275
|
+
agent_details: Dictionary of configurable agent parameters
|
|
276
|
+
id: The unique identifier of the pipeline
|
|
277
|
+
agent_icon: Optional base64-encoded icon image
|
|
278
|
+
steps: List of pipeline steps that make up the workflow
|
|
279
|
+
"""
|
|
280
|
+
name: str = Field(..., description="Gets or sets the name.")
|
|
281
|
+
execution_name: str = Field(
|
|
282
|
+
..., description="Gets or sets the execution name.", alias="executionName"
|
|
283
|
+
)
|
|
284
|
+
agent_description: str = Field(
|
|
285
|
+
..., description="Gets or sets the description.", alias="agentDescription"
|
|
286
|
+
)
|
|
287
|
+
video_link: Optional[str] = Field(
|
|
288
|
+
None, description="Gets or sets the video link.", alias="videoLink"
|
|
289
|
+
)
|
|
290
|
+
industry: Optional[str] = Field(None, description="Gets or sets the industry.")
|
|
291
|
+
sub_industries: Optional[List[str]] = Field(
|
|
292
|
+
None, description="Gets or sets the sub industries.", alias="subIndustries"
|
|
293
|
+
)
|
|
294
|
+
agent_details: Optional[Dict[str, List[AgentDetailItemDefinition]]] = Field(
|
|
295
|
+
None, description="Gets or sets the industry.", alias="agentDetails"
|
|
296
|
+
)
|
|
297
|
+
id: str = Field(..., description="Gets or sets the ID.")
|
|
298
|
+
agent_icon: Optional[str] = Field(
|
|
299
|
+
None, description="Gets or sets the Agent Icon.", alias="agentIcon"
|
|
300
|
+
)
|
|
301
|
+
steps: List[ExportPipelineStep] = Field(..., description="Gets or sets the steps.")
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
class ExportDataSourceFile(BaseModel):
|
|
305
|
+
"""Represents a file within a data source for export.
|
|
306
|
+
|
|
307
|
+
Defines file information including location, path, and access tokens
|
|
308
|
+
for files associated with data sources.
|
|
309
|
+
|
|
310
|
+
Attributes:
|
|
311
|
+
data_source_id: The ID of the associated data source
|
|
312
|
+
file_path: Optional path or location of the file
|
|
313
|
+
input_token: Optional access token for the file
|
|
314
|
+
"""
|
|
315
|
+
data_source_id: str = Field(
|
|
316
|
+
...,
|
|
317
|
+
description="Gets or sets the ID of the associated DataSource.",
|
|
318
|
+
alias="dataSourceId",
|
|
319
|
+
)
|
|
320
|
+
file_path: Optional[str] = Field(
|
|
321
|
+
None,
|
|
322
|
+
description="Gets or sets the file path or location within the data source.",
|
|
323
|
+
alias="filePath",
|
|
324
|
+
)
|
|
325
|
+
input_token: Optional[str] = Field(
|
|
326
|
+
None,
|
|
327
|
+
description="Gets or sets the InputToken for the file.",
|
|
328
|
+
alias="inputToken",
|
|
329
|
+
)
|
|
330
|
+
|
|
331
|
+
|
|
332
|
+
class ExportChunkingConfig(BaseModel):
|
|
333
|
+
"""Represents chunking configuration for data processing.
|
|
334
|
+
|
|
335
|
+
Defines how documents are split into chunks for vector storage
|
|
336
|
+
and retrieval operations.
|
|
337
|
+
|
|
338
|
+
Attributes:
|
|
339
|
+
id: The unique identifier of the chunking configuration
|
|
340
|
+
chunk_size: The size of each chunk in characters or tokens
|
|
341
|
+
chunk_overlap: The number of characters/tokens that overlap between chunks
|
|
342
|
+
strategy_type: The chunking strategy used (sentence, paragraph, etc.)
|
|
343
|
+
"""
|
|
344
|
+
id: str = Field(
|
|
345
|
+
..., description="Gets or sets the chunking configuration identifier."
|
|
346
|
+
)
|
|
347
|
+
chunk_size: int = Field(
|
|
348
|
+
..., description="Gets or sets the chunk size.", alias="chunkSize"
|
|
349
|
+
)
|
|
350
|
+
chunk_overlap: int = Field(
|
|
351
|
+
..., description="Gets or sets the chunk overlap.", alias="chunkOverlap"
|
|
352
|
+
)
|
|
353
|
+
strategy_type: str = Field(
|
|
354
|
+
..., description="Gets or sets the strategy type.", alias="strategyType"
|
|
355
|
+
)
|
|
356
|
+
|
|
357
|
+
|
|
358
|
+
class ExportDataSource(BaseModel):
|
|
359
|
+
"""Represents a complete data source definition for export.
|
|
360
|
+
|
|
361
|
+
Contains all configuration and metadata for a data source, including
|
|
362
|
+
chunking settings, database configuration, and associated files.
|
|
363
|
+
|
|
364
|
+
Attributes:
|
|
365
|
+
id: The unique identifier of the data source
|
|
366
|
+
name: Optional name of the data source
|
|
367
|
+
execution_name: Optional execution name for programmatic access
|
|
368
|
+
chunking_config: The chunking configuration for document processing
|
|
369
|
+
data_source_type: The type of data source (file, database, etc.)
|
|
370
|
+
database_type: The database type for storage
|
|
371
|
+
embedding_provider: The provider for text embeddings
|
|
372
|
+
is_user_specific: Whether the data source is user-specific
|
|
373
|
+
files: Optional list of files associated with the data source
|
|
374
|
+
file_count: Optional count of files in the data source
|
|
375
|
+
configuration_json: Optional JSON configuration string
|
|
376
|
+
credentials: Optional credential information for access
|
|
377
|
+
is_image_processing_enabled: Whether image processing is enabled
|
|
378
|
+
"""
|
|
379
|
+
id: str = Field(..., description="Gets the id.")
|
|
380
|
+
name: Optional[str] = Field(None, description="Gets the Name.")
|
|
381
|
+
execution_name: Optional[str] = Field(
|
|
382
|
+
None,
|
|
383
|
+
description="Gets or sets the execution name of the datasource.",
|
|
384
|
+
alias="executionName",
|
|
385
|
+
)
|
|
386
|
+
chunking_config: ExportChunkingConfig = Field(
|
|
387
|
+
..., description="Gets the chunking config.", alias="chunkingConfig"
|
|
388
|
+
)
|
|
389
|
+
data_source_type: str = Field(
|
|
390
|
+
..., description="Gets the data source type.", alias="dataSourceType"
|
|
391
|
+
)
|
|
392
|
+
database_type: str = Field(
|
|
393
|
+
..., description="Gets the database type.", alias="databaseType"
|
|
394
|
+
)
|
|
395
|
+
embedding_provider: str = Field(
|
|
396
|
+
..., description="Gets the Embedding provider type.", alias="embeddingProvider"
|
|
397
|
+
)
|
|
398
|
+
is_user_specific: bool = Field(
|
|
399
|
+
...,
|
|
400
|
+
description="Gets or sets a value indicating whether defines if a Data Source is user specific.",
|
|
401
|
+
alias="isUserSpecific",
|
|
402
|
+
)
|
|
403
|
+
files: Optional[List[ExportDataSourceFile]] = Field(
|
|
404
|
+
None,
|
|
405
|
+
description="Gets or sets the collection of files associated with this data source.",
|
|
406
|
+
)
|
|
407
|
+
file_count: Optional[int] = Field(
|
|
408
|
+
None, description="Gets the file count.", alias="fileCount"
|
|
409
|
+
)
|
|
410
|
+
configuration_json: Optional[str] = Field(
|
|
411
|
+
None,
|
|
412
|
+
description="Gets or sets the configuration json.",
|
|
413
|
+
alias="configurationJson",
|
|
414
|
+
)
|
|
415
|
+
credentials: Optional[ExportCredentials] = Field(
|
|
416
|
+
None, description="Gets or sets the Credentials."
|
|
417
|
+
)
|
|
418
|
+
is_image_processing_enabled: bool = Field(
|
|
419
|
+
...,
|
|
420
|
+
description="Gets or sets a value indicating whether the image processing is enabled.",
|
|
421
|
+
alias="isImageProcessingEnabled",
|
|
422
|
+
)
|
|
423
|
+
|
|
424
|
+
|
|
425
|
+
class ExportPromptMessageList(BaseModel):
|
|
426
|
+
"""Represents a single message within a prompt sequence.
|
|
427
|
+
|
|
428
|
+
Defines individual messages that make up a prompt, including
|
|
429
|
+
content and ordering information.
|
|
430
|
+
|
|
431
|
+
Attributes:
|
|
432
|
+
text: The content of the message
|
|
433
|
+
order: The order of this message in the prompt sequence
|
|
434
|
+
"""
|
|
435
|
+
text: str = Field(..., description="Gets or sets the text.")
|
|
436
|
+
order: int = Field(..., description="Gets or sets the order.")
|
|
437
|
+
|
|
438
|
+
|
|
439
|
+
class ExportPrompt(BaseModel):
|
|
440
|
+
"""Represents a complete prompt definition for export.
|
|
441
|
+
|
|
442
|
+
Contains all information for a prompt including name, version information,
|
|
443
|
+
and the sequence of messages that make up the prompt.
|
|
444
|
+
|
|
445
|
+
Attributes:
|
|
446
|
+
name: The name of the prompt
|
|
447
|
+
version_change_description: Description of changes in this version
|
|
448
|
+
prompt_message_list: List of messages that make up the prompt
|
|
449
|
+
id: The unique identifier of the prompt
|
|
450
|
+
"""
|
|
451
|
+
name: str = Field(..., description="Gets or sets the name.")
|
|
452
|
+
version_change_description: str = Field(
|
|
453
|
+
...,
|
|
454
|
+
description="Gets or sets the version change description.",
|
|
455
|
+
alias="versionChangeDescription",
|
|
456
|
+
)
|
|
457
|
+
prompt_message_list: List[ExportPromptMessageList] = Field(
|
|
458
|
+
...,
|
|
459
|
+
description="Gets or sets the prompt message list.",
|
|
460
|
+
alias="promptMessageList",
|
|
461
|
+
)
|
|
462
|
+
id: str = Field(..., description="Gets or sets the ID.")
|
|
463
|
+
|
|
464
|
+
|
|
465
|
+
class ExportToolHeaders(BaseModel):
|
|
466
|
+
"""Represents HTTP headers for tool API calls.
|
|
467
|
+
|
|
468
|
+
Defines key-value pairs for HTTP headers used when making
|
|
469
|
+
API calls to external tools.
|
|
470
|
+
|
|
471
|
+
Attributes:
|
|
472
|
+
key: The header name
|
|
473
|
+
value: The header value
|
|
474
|
+
"""
|
|
475
|
+
key: str = Field(..., description="Gets or sets the key of the header.")
|
|
476
|
+
value: str = Field(..., description="Gets or sets the value of the header.")
|
|
477
|
+
|
|
478
|
+
|
|
479
|
+
class ExportToolParameters(BaseModel):
|
|
480
|
+
"""Represents a parameter definition for external tools.
|
|
481
|
+
|
|
482
|
+
Defines input parameters for external tools including type,
|
|
483
|
+
description, default values, and validation options.
|
|
484
|
+
|
|
485
|
+
Attributes:
|
|
486
|
+
name: The parameter name
|
|
487
|
+
parameter_type: The data type of the parameter
|
|
488
|
+
parameter_description: Description of the parameter's purpose
|
|
489
|
+
default: The default value for the parameter
|
|
490
|
+
valid_options: Optional list of valid values for the parameter
|
|
491
|
+
id: The unique identifier of the parameter
|
|
492
|
+
"""
|
|
493
|
+
name: str = Field(..., description="Gets or sets the name.")
|
|
494
|
+
parameter_type: str = Field(
|
|
495
|
+
..., description="Gets or sets the type.", alias="parameterType"
|
|
496
|
+
)
|
|
497
|
+
parameter_description: str = Field(
|
|
498
|
+
..., description="Gets or sets the description.", alias="parameterDescription"
|
|
499
|
+
)
|
|
500
|
+
default: str = Field(..., description="Gets or sets the default value.")
|
|
501
|
+
valid_options: Optional[List[str]] = Field(
|
|
502
|
+
None,
|
|
503
|
+
description="Gets or sets the list of valid options.",
|
|
504
|
+
alias="validOptions",
|
|
505
|
+
)
|
|
506
|
+
id: str = Field(..., description="Gets or sets the ID.")
|
|
507
|
+
|
|
508
|
+
|
|
509
|
+
class ExportTool(BaseModel):
|
|
510
|
+
"""Represents a complete external tool definition for export.
|
|
511
|
+
|
|
512
|
+
Contains all configuration and metadata for an external tool,
|
|
513
|
+
including API endpoints, authentication, and parameter definitions.
|
|
514
|
+
|
|
515
|
+
Attributes:
|
|
516
|
+
tool_type: The type of tool (native, external, etc.)
|
|
517
|
+
name: The name of the tool
|
|
518
|
+
standardized_name: The standardized name for the tool
|
|
519
|
+
tool_description: Description of the tool's functionality
|
|
520
|
+
purpose: The purpose or use case for the tool
|
|
521
|
+
api_endpoint: The API endpoint URL for the tool
|
|
522
|
+
credentials_definition: Optional credential requirements
|
|
523
|
+
headers_definition: Optional HTTP headers for API calls
|
|
524
|
+
body: Optional request body template
|
|
525
|
+
parameters_definition: Optional parameter definitions
|
|
526
|
+
method_type: The HTTP method type (GET, POST, etc.)
|
|
527
|
+
route_through_acc: Whether to route through the Access Control Center
|
|
528
|
+
use_user_credentials: Whether to use user-specific credentials
|
|
529
|
+
use_user_credentials_type: The type of user credentials to use
|
|
530
|
+
id: The unique identifier of the tool
|
|
531
|
+
"""
|
|
532
|
+
tool_type: str = Field(
|
|
533
|
+
...,
|
|
534
|
+
description="Gets or sets a value indicating whether flag that indicates if the tool is native.",
|
|
535
|
+
alias="toolType",
|
|
536
|
+
)
|
|
537
|
+
name: str = Field(..., description="Gets or sets the name.")
|
|
538
|
+
standardized_name: str = Field(
|
|
539
|
+
..., description="Gets or sets the standardized name.", alias="standardizedName"
|
|
540
|
+
)
|
|
541
|
+
tool_description: str = Field(
|
|
542
|
+
..., description="Gets or sets the description.", alias="toolDescription"
|
|
543
|
+
)
|
|
544
|
+
purpose: str = Field(..., description="Gets or sets the purpose.")
|
|
545
|
+
api_endpoint: str = Field(
|
|
546
|
+
..., description="Gets or sets the API endpoint.", alias="apiEndpoint"
|
|
547
|
+
)
|
|
548
|
+
credentials_definition: Optional[ExportCredentials] = Field(
|
|
549
|
+
None,
|
|
550
|
+
description="Gets or sets the authentication.",
|
|
551
|
+
alias="credentialsDefinition",
|
|
552
|
+
)
|
|
553
|
+
headers_definition: Optional[List[ExportToolHeaders]] = Field(
|
|
554
|
+
None, description="Gets or sets the headers.", alias="headersDefinition"
|
|
555
|
+
)
|
|
556
|
+
body: Optional[str] = Field(None, description="Gets or sets the body.")
|
|
557
|
+
parameters_definition: Optional[List[ExportToolParameters]] = Field(
|
|
558
|
+
None, description="Gets or sets the parameters.", alias="parametersDefinition"
|
|
559
|
+
)
|
|
560
|
+
method_type: str = Field(
|
|
561
|
+
..., description="Gets or sets the method type.", alias="methodType"
|
|
562
|
+
)
|
|
563
|
+
route_through_acc: bool = Field(
|
|
564
|
+
...,
|
|
565
|
+
description="Gets or sets a value indicating whether the tool should route through the ACC.",
|
|
566
|
+
alias="routeThroughACC",
|
|
567
|
+
)
|
|
568
|
+
use_user_credentials: bool = Field(
|
|
569
|
+
...,
|
|
570
|
+
description="Gets or sets a value indicating whether the tool should use user based credentials.",
|
|
571
|
+
alias="useUserCredentials",
|
|
572
|
+
)
|
|
573
|
+
use_user_credentials_type: str = Field(
|
|
574
|
+
...,
|
|
575
|
+
description="Gets or sets a value indicating what the credential type is when the tool use user based credentials.",
|
|
576
|
+
alias="useUserCredentialsType",
|
|
577
|
+
)
|
|
578
|
+
id: str = Field(..., description="Gets or sets the ID.")
|
|
579
|
+
|
|
580
|
+
|
|
581
|
+
class ExportModel(BaseModel):
|
|
582
|
+
"""Represents a complete AI model definition for export.
|
|
583
|
+
|
|
584
|
+
Contains all configuration and metadata for an AI model,
|
|
585
|
+
including deployment settings, pricing, and capability information.
|
|
586
|
+
|
|
587
|
+
Attributes:
|
|
588
|
+
id: The unique identifier of the model
|
|
589
|
+
display_name: The human-readable name for display
|
|
590
|
+
model_name: Optional internal model name
|
|
591
|
+
prompt_id: Optional ID of the associated system prompt
|
|
592
|
+
system_prompt_definition: Optional system prompt definition
|
|
593
|
+
url: Optional API endpoint URL for the model
|
|
594
|
+
input_type: The type of input the model accepts
|
|
595
|
+
provider: The AI provider (OpenAI, Anthropic, etc.)
|
|
596
|
+
credentials_definition: Optional credential requirements
|
|
597
|
+
deployment_type: The deployment type (cloud, on-premises, etc.)
|
|
598
|
+
source_type: The source type of the model
|
|
599
|
+
connection_string: Optional connection string for deployment
|
|
600
|
+
container_name: Optional container name for deployment
|
|
601
|
+
deployed_key: Optional deployment key
|
|
602
|
+
deployed_url: Optional deployed URL
|
|
603
|
+
state: Optional current state of the model
|
|
604
|
+
uploaded_container_id: Optional ID of uploaded container
|
|
605
|
+
library_model_id: Optional ID of the library model
|
|
606
|
+
input_token_price: Optional pricing for input tokens
|
|
607
|
+
output_token_price: Optional pricing for output tokens
|
|
608
|
+
token_units: Optional token unit multiplier
|
|
609
|
+
has_tool_support: Whether the model supports tool calling
|
|
610
|
+
allow_airia_credentials: Whether to allow Airia-provided credentials
|
|
611
|
+
allow_byok_credentials: Whether to allow bring-your-own-key credentials
|
|
612
|
+
author: Optional author information
|
|
613
|
+
price_type: The pricing model type
|
|
614
|
+
"""
|
|
615
|
+
id: str = Field(..., description="Gets or sets the ID.")
|
|
616
|
+
display_name: str = Field(
|
|
617
|
+
..., description="Gets or sets the display name.", alias="displayName"
|
|
618
|
+
)
|
|
619
|
+
model_name: Optional[str] = Field(
|
|
620
|
+
None, description="Gets or sets the model name.", alias="modelName"
|
|
621
|
+
)
|
|
622
|
+
prompt_id: Optional[str] = Field(
|
|
623
|
+
None, description="Gets or sets the prompt ID.", alias="promptId"
|
|
624
|
+
)
|
|
625
|
+
system_prompt_definition: Optional[ExportPrompt] = Field(
|
|
626
|
+
None,
|
|
627
|
+
description="Gets or sets the system prompt.",
|
|
628
|
+
alias="systemPromptDefinition",
|
|
629
|
+
)
|
|
630
|
+
url: Optional[str] = Field(None, description="Gets or sets the URL.")
|
|
631
|
+
input_type: str = Field(
|
|
632
|
+
..., description="Gets or sets the type.", alias="inputType"
|
|
633
|
+
)
|
|
634
|
+
provider: str = Field(..., description="Gets or sets the provider.")
|
|
635
|
+
credentials_definition: Optional[ExportCredentials] = Field(
|
|
636
|
+
None, description="Gets or sets the credentials.", alias="credentialsDefinition"
|
|
637
|
+
)
|
|
638
|
+
deployment_type: str = Field(
|
|
639
|
+
..., description="Gets or sets the deployment type.", alias="deploymentType"
|
|
640
|
+
)
|
|
641
|
+
source_type: str = Field(
|
|
642
|
+
..., description="Gets or sets the source type.", alias="sourceType"
|
|
643
|
+
)
|
|
644
|
+
connection_string: Optional[str] = Field(
|
|
645
|
+
None,
|
|
646
|
+
description="Gets or sets the connection string.",
|
|
647
|
+
alias="connectionString",
|
|
648
|
+
)
|
|
649
|
+
container_name: Optional[str] = Field(
|
|
650
|
+
None, description="Gets or sets the container name.", alias="containerName"
|
|
651
|
+
)
|
|
652
|
+
deployed_key: Optional[str] = Field(
|
|
653
|
+
None, description="Gets or sets the deployed key.", alias="deployedKey"
|
|
654
|
+
)
|
|
655
|
+
deployed_url: Optional[str] = Field(
|
|
656
|
+
None, description="Gets or sets the deployed URL.", alias="deployedUrl"
|
|
657
|
+
)
|
|
658
|
+
state: Optional[str] = Field(None, description="Gets or sets the state.")
|
|
659
|
+
uploaded_container_id: Optional[str] = Field(
|
|
660
|
+
None,
|
|
661
|
+
description="Gets or sets the uploaded container ID.",
|
|
662
|
+
alias="uploadedContainerId",
|
|
663
|
+
)
|
|
664
|
+
library_model_id: Optional[str] = Field(
|
|
665
|
+
None, description="Gets or sets the library model ID.", alias="libraryModelId"
|
|
666
|
+
)
|
|
667
|
+
input_token_price: Optional[str] = Field(
|
|
668
|
+
None, description="Gets or sets the input token price.", alias="inputTokenPrice"
|
|
669
|
+
)
|
|
670
|
+
output_token_price: Optional[str] = Field(
|
|
671
|
+
None,
|
|
672
|
+
description="Gets or sets the output token price.",
|
|
673
|
+
alias="outputTokenPrice",
|
|
674
|
+
)
|
|
675
|
+
token_units: Optional[int] = Field(
|
|
676
|
+
None, description="Gets or sets the token units.", alias="tokenUnits"
|
|
677
|
+
)
|
|
678
|
+
has_tool_support: bool = Field(
|
|
679
|
+
...,
|
|
680
|
+
description="Gets or sets a value indicating whether the model has tool support.",
|
|
681
|
+
alias="hasToolSupport",
|
|
682
|
+
)
|
|
683
|
+
allow_airia_credentials: bool = Field(
|
|
684
|
+
...,
|
|
685
|
+
description="Gets or sets a value indicating whether to allow Airia credentials.",
|
|
686
|
+
alias="allowAiriaCredentials",
|
|
687
|
+
)
|
|
688
|
+
allow_byok_credentials: bool = Field(
|
|
689
|
+
...,
|
|
690
|
+
description="Gets or sets a value indicating whether to allow BYOK credentials.",
|
|
691
|
+
alias="allowBYOKCredentials",
|
|
692
|
+
)
|
|
693
|
+
author: Optional[str] = Field(None, description="Gets or sets the author.")
|
|
694
|
+
price_type: str = Field(
|
|
695
|
+
..., description="Gets or sets the price type.", alias="priceType"
|
|
696
|
+
)
|
|
697
|
+
|
|
698
|
+
|
|
699
|
+
class ExportMemory(BaseModel):
|
|
700
|
+
"""Represents a memory definition for export.
|
|
701
|
+
|
|
702
|
+
Defines persistent memory storage for maintaining context
|
|
703
|
+
and state across pipeline executions.
|
|
704
|
+
|
|
705
|
+
Attributes:
|
|
706
|
+
id: The unique identifier of the memory
|
|
707
|
+
name: The name of the memory
|
|
708
|
+
is_user_specific: Whether the memory is specific to individual users
|
|
709
|
+
"""
|
|
710
|
+
id: str = Field(..., description="Gets or sets the memory id.")
|
|
711
|
+
name: str = Field(..., description="Gets or sets the memory name.")
|
|
712
|
+
is_user_specific: bool = Field(
|
|
713
|
+
...,
|
|
714
|
+
description="Gets or sets a value indicating whether the memory is user specific.",
|
|
715
|
+
alias="isUserSpecific",
|
|
716
|
+
)
|
|
717
|
+
|
|
718
|
+
|
|
719
|
+
class ExportPythonCodeBlock(BaseModel):
|
|
720
|
+
"""Represents a Python code block for export.
|
|
721
|
+
|
|
722
|
+
Defines executable Python code that can be used within
|
|
723
|
+
pipeline steps for custom processing logic.
|
|
724
|
+
|
|
725
|
+
Attributes:
|
|
726
|
+
id: The unique identifier of the code block
|
|
727
|
+
code: The Python code content
|
|
728
|
+
"""
|
|
729
|
+
id: str = Field(..., description="Gets or sets the memory id.")
|
|
730
|
+
code: str = Field(..., description="Gets or sets the code.")
|
|
731
|
+
|
|
732
|
+
|
|
733
|
+
class ExportRouterConfig(BaseModel):
|
|
734
|
+
"""Represents router configuration for conditional execution.
|
|
735
|
+
|
|
736
|
+
Defines routing rules and conditions for directing pipeline
|
|
737
|
+
execution flow based on content analysis.
|
|
738
|
+
|
|
739
|
+
Attributes:
|
|
740
|
+
id: The unique identifier of the router configuration
|
|
741
|
+
prompt: The prompt used for routing decisions
|
|
742
|
+
is_default: Whether this is the default routing option
|
|
743
|
+
"""
|
|
744
|
+
id: str = Field(..., description="Gets or sets the Id.")
|
|
745
|
+
prompt: str = Field(..., description="Gets or sets the Prompt.")
|
|
746
|
+
is_default: Optional[bool] = Field(
|
|
747
|
+
None,
|
|
748
|
+
description="Gets or sets a value indicating whether this is a default route.",
|
|
749
|
+
alias="isDefault",
|
|
750
|
+
)
|
|
751
|
+
|
|
752
|
+
|
|
753
|
+
class ExportRouter(BaseModel):
|
|
754
|
+
"""Represents a complete router definition for export.
|
|
755
|
+
|
|
756
|
+
Contains all configuration for intelligent routing of pipeline
|
|
757
|
+
execution based on content analysis and decision logic.
|
|
758
|
+
|
|
759
|
+
Attributes:
|
|
760
|
+
id: The unique identifier of the router
|
|
761
|
+
model_id: Optional ID of the model used for routing decisions
|
|
762
|
+
model: Optional AI model definition for routing
|
|
763
|
+
router_config: Dictionary of routing configurations
|
|
764
|
+
"""
|
|
765
|
+
id: str = Field(..., description="Gets or sets the Router identifier.")
|
|
766
|
+
model_id: Optional[str] = Field(
|
|
767
|
+
None, description="Gets or sets the Model identifier.", alias="modelId"
|
|
768
|
+
)
|
|
769
|
+
model: Optional[ExportModel] = Field(None, description="Gets or sets the AI Model.")
|
|
770
|
+
router_config: Dict[str, ExportRouterConfig] = Field(
|
|
771
|
+
..., description="Gets or sets the Router Configuration.", alias="routerConfig"
|
|
772
|
+
)
|
|
773
|
+
|
|
774
|
+
|
|
775
|
+
class ExportUserPrompt(BaseModel):
|
|
776
|
+
"""Represents a user prompt template for export.
|
|
777
|
+
|
|
778
|
+
Defines predefined prompts that users can select from
|
|
779
|
+
when interacting with deployed pipelines.
|
|
780
|
+
|
|
781
|
+
Attributes:
|
|
782
|
+
name: The name of the user prompt
|
|
783
|
+
message: The prompt message content
|
|
784
|
+
prompt_description: Description of the prompt's purpose
|
|
785
|
+
"""
|
|
786
|
+
name: str = Field(..., description="Gets or sets the name of the UserPrompt.")
|
|
787
|
+
message: str = Field(..., description="Gets or sets the UserPrompt Message.")
|
|
788
|
+
prompt_description: str = Field(
|
|
789
|
+
...,
|
|
790
|
+
description="Gets or sets the UserPrompt Description.",
|
|
791
|
+
alias="promptDescription",
|
|
792
|
+
)
|
|
793
|
+
|
|
794
|
+
|
|
795
|
+
class ExportDeployment(BaseModel):
|
|
796
|
+
"""Represents a deployment configuration for export.
|
|
797
|
+
|
|
798
|
+
Contains all settings for deploying a pipeline to end users,
|
|
799
|
+
including branding, user prompts, and access controls.
|
|
800
|
+
|
|
801
|
+
Attributes:
|
|
802
|
+
name: The name of the deployment
|
|
803
|
+
deployment_icon: Optional base64-encoded icon for the deployment
|
|
804
|
+
deployment_description: Description of the deployment's purpose
|
|
805
|
+
user_prompts: Optional list of predefined user prompts
|
|
806
|
+
deployment_prompt: Optional hardcoded system prompt
|
|
807
|
+
is_recommended: Whether this is a featured/recommended deployment
|
|
808
|
+
tags: Optional list of tags for categorization
|
|
809
|
+
deployment_type: The type of deployment
|
|
810
|
+
conversation_type: The type of conversation interface
|
|
811
|
+
about_json: Optional JSON metadata about the deployment
|
|
812
|
+
"""
|
|
813
|
+
name: str = Field(..., description="Gets the Deployment Name.")
|
|
814
|
+
deployment_icon: Optional[str] = Field(
|
|
815
|
+
None, description="Gets the Deployment Icon.", alias="deploymentIcon"
|
|
816
|
+
)
|
|
817
|
+
deployment_description: str = Field(
|
|
818
|
+
...,
|
|
819
|
+
description="Gets the description of the deployment.",
|
|
820
|
+
alias="deploymentDescription",
|
|
821
|
+
)
|
|
822
|
+
user_prompts: Optional[List[ExportUserPrompt]] = Field(
|
|
823
|
+
None, description="Gets the DeploymentUserPrompts.", alias="userPrompts"
|
|
824
|
+
)
|
|
825
|
+
deployment_prompt: Optional[str] = Field(
|
|
826
|
+
None,
|
|
827
|
+
description="Gets the DeploymentPrompt. Optional hardcoded prompt.",
|
|
828
|
+
alias="deploymentPrompt",
|
|
829
|
+
)
|
|
830
|
+
is_recommended: bool = Field(
|
|
831
|
+
...,
|
|
832
|
+
description="Gets a value indicating whether this is a recommended/featured deployment.",
|
|
833
|
+
alias="isRecommended",
|
|
834
|
+
)
|
|
835
|
+
tags: Optional[List[str]] = Field(None, description="Gets the Tags.")
|
|
836
|
+
deployment_type: str = Field(
|
|
837
|
+
..., description="Gets the deployment type.", alias="deploymentType"
|
|
838
|
+
)
|
|
839
|
+
conversation_type: str = Field(
|
|
840
|
+
..., description="Gets the conversation type.", alias="conversationType"
|
|
841
|
+
)
|
|
842
|
+
about_json: Optional[str] = Field(
|
|
843
|
+
None,
|
|
844
|
+
description="Gets information about the deployment. This is a json value.",
|
|
845
|
+
alias="aboutJson",
|
|
846
|
+
)
|
|
847
|
+
|
|
848
|
+
|
|
849
|
+
class ExportMetadata(BaseModel):
|
|
850
|
+
"""Represents metadata for pipeline export operations.
|
|
851
|
+
|
|
852
|
+
Contains versioning, description, and export configuration
|
|
853
|
+
information for pipeline import/export operations.
|
|
854
|
+
|
|
855
|
+
Attributes:
|
|
856
|
+
id: The unique identifier of the export metadata
|
|
857
|
+
export_version: Optional version timestamp for the export
|
|
858
|
+
tagline: A brief tagline describing the pipeline
|
|
859
|
+
agent_description: Detailed description of the agent
|
|
860
|
+
industry: The primary industry served
|
|
861
|
+
tasks: Description of tasks the pipeline performs
|
|
862
|
+
credential_export_option: How credentials are handled in export
|
|
863
|
+
data_source_export_option: How data sources are handled in export
|
|
864
|
+
version_information: Information about the pipeline version
|
|
865
|
+
state: The current state of the agent
|
|
866
|
+
"""
|
|
867
|
+
id: str = Field(..., description="Gets or sets the id.")
|
|
868
|
+
export_version: Optional[str] = Field(
|
|
869
|
+
None,
|
|
870
|
+
description="Gets or sets the export version (EF Migration timestamp).",
|
|
871
|
+
alias="exportVersion",
|
|
872
|
+
)
|
|
873
|
+
tagline: str = Field(..., description="Gets or sets the tag line.")
|
|
874
|
+
agent_description: str = Field(
|
|
875
|
+
..., description="Gets or sets the name.", alias="agentDescription"
|
|
876
|
+
)
|
|
877
|
+
industry: str = Field(..., description="Gets or sets the industry.")
|
|
878
|
+
tasks: str = Field(..., description="Gets or sets the tasks.")
|
|
879
|
+
credential_export_option: str = Field(
|
|
880
|
+
...,
|
|
881
|
+
description="Gets or sets the credential export option.",
|
|
882
|
+
alias="credentialExportOption",
|
|
883
|
+
)
|
|
884
|
+
data_source_export_option: str = Field(
|
|
885
|
+
...,
|
|
886
|
+
description="Gets or sets the data source export option.",
|
|
887
|
+
alias="dataSourceExportOption",
|
|
888
|
+
)
|
|
889
|
+
version_information: str = Field(
|
|
890
|
+
...,
|
|
891
|
+
description="Gets or sets the version information.",
|
|
892
|
+
alias="versionInformation",
|
|
893
|
+
)
|
|
894
|
+
state: str = Field(..., description="Gets or sets the state of the agent.")
|
|
895
|
+
|
|
896
|
+
|
|
897
|
+
class ExportPipelineDefinitionResponse(BaseModel):
|
|
898
|
+
"""Represents the complete response for pipeline export operations.
|
|
899
|
+
|
|
900
|
+
The main response object containing all components of a pipeline export,
|
|
901
|
+
including the pipeline definition, associated resources, and metadata.
|
|
902
|
+
|
|
903
|
+
Attributes:
|
|
904
|
+
metadata: Export metadata and configuration information
|
|
905
|
+
agent: The main pipeline definition and configuration
|
|
906
|
+
data_sources: Optional list of data sources used by the pipeline
|
|
907
|
+
prompts: Optional list of prompts used by the pipeline
|
|
908
|
+
tools: Optional list of external tools used by the pipeline
|
|
909
|
+
models: Optional list of AI models used by the pipeline
|
|
910
|
+
memories: Optional list of memory definitions used by the pipeline
|
|
911
|
+
python_code_blocks: Optional list of Python code blocks used by the pipeline
|
|
912
|
+
routers: Optional list of router configurations used by the pipeline
|
|
913
|
+
deployment: Optional deployment configuration for the pipeline
|
|
914
|
+
"""
|
|
915
|
+
metadata: ExportMetadata = Field(..., description="Gets or sets the Metadata.")
|
|
916
|
+
agent: ExportPipeline = Field(..., description="Gets or sets the pipeline.")
|
|
917
|
+
data_sources: Optional[List[ExportDataSource]] = Field(
|
|
918
|
+
None, description="Gets or sets the Steps.", alias="dataSources"
|
|
919
|
+
)
|
|
920
|
+
prompts: Optional[List[ExportPrompt]] = Field(
|
|
921
|
+
None, description="Gets or sets the Prompt."
|
|
922
|
+
)
|
|
923
|
+
tools: Optional[List[ExportTool]] = Field(
|
|
924
|
+
None, description="Gets or sets the Tools."
|
|
925
|
+
)
|
|
926
|
+
models: Optional[List[ExportModel]] = Field(
|
|
927
|
+
None, description="Gets or sets the Models."
|
|
928
|
+
)
|
|
929
|
+
memories: Optional[List[ExportMemory]] = Field(
|
|
930
|
+
None, description="Gets or sets the Memories."
|
|
931
|
+
)
|
|
932
|
+
python_code_blocks: Optional[List[ExportPythonCodeBlock]] = Field(
|
|
933
|
+
None, description="Gets or sets the code blocks.", alias="pythonCodeBlocks"
|
|
934
|
+
)
|
|
935
|
+
routers: Optional[List[ExportRouter]] = Field(
|
|
936
|
+
None, description="Gets or sets the Routers."
|
|
937
|
+
)
|
|
938
|
+
deployment: Optional[ExportDeployment] = Field(
|
|
939
|
+
None, description="Gets or sets the deployment."
|
|
940
|
+
)
|
|
@@ -23,9 +23,9 @@ airia/client/pipeline_execution/async_pipeline_execution.py,sha256=tesbtLYuTffPP
|
|
|
23
23
|
airia/client/pipeline_execution/base_pipeline_execution.py,sha256=Jkpp_D2OrNg3koudrIua-d0VKwI4hlATDqi8WwRCifY,3965
|
|
24
24
|
airia/client/pipeline_execution/sync_pipeline_execution.py,sha256=wIifP_KjRvBgXeqs1g237IlAXiuU7ThxS5YDj6qB7gM,7392
|
|
25
25
|
airia/client/pipelines_config/__init__.py,sha256=Mjn3ie-bQo6zjayxrJDvoJG2vKis72yGt_CQkvtREw4,163
|
|
26
|
-
airia/client/pipelines_config/async_pipelines_config.py,sha256=
|
|
27
|
-
airia/client/pipelines_config/base_pipelines_config.py,sha256=
|
|
28
|
-
airia/client/pipelines_config/sync_pipelines_config.py,sha256=
|
|
26
|
+
airia/client/pipelines_config/async_pipelines_config.py,sha256=69Viozs4iIW564D4i9yNCAIJsyDk67bxge-z8s5pbuA,4812
|
|
27
|
+
airia/client/pipelines_config/base_pipelines_config.py,sha256=GcK7hXisM87Qqq8HPtvr60kOTA9oFzjLolTSezFDp4c,2665
|
|
28
|
+
airia/client/pipelines_config/sync_pipelines_config.py,sha256=Eex9vQIAzedA-_ilNYwLIPtaVcQhwsXfNCoCOnKXU48,4741
|
|
29
29
|
airia/client/project/__init__.py,sha256=GGEGfxtNzSO_BMAJ8Wfo8ZTq8BIdR6MHf6gSwhPv9mE,113
|
|
30
30
|
airia/client/project/async_project.py,sha256=OrIiqopKSXAhkYJi6yjoR-YYVUxzll1ldDJkJW1rIBM,4534
|
|
31
31
|
airia/client/project/base_project.py,sha256=4vP_dKGAt17mdzp3eW3ER8E0C0XMQ9P7JAEH2EH0imE,2432
|
|
@@ -45,7 +45,8 @@ airia/types/api/deployments/get_deployment.py,sha256=KBr9edTu-e-tC3u9bpAdz0CMWzk
|
|
|
45
45
|
airia/types/api/deployments/get_deployments.py,sha256=5Dm7pTkEFmIZ4p4Scle9x9p3Nqy5tnXxeft3H4O_Fa8,8718
|
|
46
46
|
airia/types/api/pipeline_execution/__init__.py,sha256=01Cf0Cx-RZygtgQvYajSrikxmtUYbsDcBzFk7hkNnGc,360
|
|
47
47
|
airia/types/api/pipeline_execution/_pipeline_execution.py,sha256=cJ2icsQvG5K15crNNbymje9B2tJduc_D64OnNXF043U,2429
|
|
48
|
-
airia/types/api/pipelines_config/__init__.py,sha256=
|
|
48
|
+
airia/types/api/pipelines_config/__init__.py,sha256=9UPbFQU0wQYjZo06Wnn1pRP1XXcKthQDxPDMIGRywh0,2034
|
|
49
|
+
airia/types/api/pipelines_config/export_pipeline_definition.py,sha256=Mc6S0N8gVG9amkFwQjS-47AuP5XxQQ88Sq5AknyGo50,38032
|
|
49
50
|
airia/types/api/pipelines_config/get_pipeline_config.py,sha256=UEGnvzBPHAJMJEcMOKLZWXenaL96iyYoWt0zZjyzEUg,23514
|
|
50
51
|
airia/types/api/project/__init__.py,sha256=ervHvCeqt08JkMRsSrG1ZnQshE70of-8kf4VeW2HG9c,113
|
|
51
52
|
airia/types/api/project/get_projects.py,sha256=Ot8mq6VnXrGXZs7FQ0UuRYSyuCeER7YeCCZlGb4ZyQo,3646
|
|
@@ -55,8 +56,8 @@ airia/types/api/store/get_files.py,sha256=v22zmOuTSFqzrS73L5JL_FgBeF5a5wutv1nK4I
|
|
|
55
56
|
airia/types/sse/__init__.py,sha256=KWnNTfsQnthfrU128pUX6ounvSS7DvjC-Y21FE-OdMk,1863
|
|
56
57
|
airia/types/sse/sse_messages.py,sha256=asq9KG5plT2XSgQMz-Nqo0WcKlXvE8UT3E-WLhCegPk,30244
|
|
57
58
|
airia/utils/sse_parser.py,sha256=XCTkuaroYWaVQOgBq8VpbseQYSAVruF69AvKUwZQKTA,4251
|
|
58
|
-
airia-0.1.
|
|
59
|
-
airia-0.1.
|
|
60
|
-
airia-0.1.
|
|
61
|
-
airia-0.1.
|
|
62
|
-
airia-0.1.
|
|
59
|
+
airia-0.1.16.dist-info/licenses/LICENSE,sha256=R3ClUMMKPRItIcZ0svzyj2taZZnFYw568YDNzN9KQ1Q,1066
|
|
60
|
+
airia-0.1.16.dist-info/METADATA,sha256=N87oh79yN5biWflJYAfnMyfIEJ-c-v0uizq6aDDz4o4,4506
|
|
61
|
+
airia-0.1.16.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
62
|
+
airia-0.1.16.dist-info/top_level.txt,sha256=qUQEKfs_hdOYTwjKj1JZbRhS5YeXDNaKQaVTrzabS6w,6
|
|
63
|
+
airia-0.1.16.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|