airia 0.1.25__py3-none-any.whl → 0.1.27__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 +6 -0
- 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/pipelines_config/async_pipelines_config.py +50 -0
- airia/client/pipelines_config/base_pipelines_config.py +37 -0
- airia/client/pipelines_config/sync_pipelines_config.py +50 -0
- airia/client/sync_client.py +6 -0
- airia/client/tools/__init__.py +4 -0
- airia/client/tools/async_tools.py +259 -0
- airia/client/tools/base_tools.py +153 -0
- airia/client/tools/sync_tools.py +245 -0
- airia/exceptions.py +4 -3
- airia/types/api/__init__.py +3 -0
- 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/tools/__init__.py +7 -0
- airia/types/api/tools/_tools.py +223 -0
- {airia-0.1.25.dist-info → airia-0.1.27.dist-info}/METADATA +1 -1
- {airia-0.1.25.dist-info → airia-0.1.27.dist-info}/RECORD +35 -17
- {airia-0.1.25.dist-info → airia-0.1.27.dist-info}/WHEEL +0 -0
- {airia-0.1.25.dist-info → airia-0.1.27.dist-info}/licenses/LICENSE +0 -0
- {airia-0.1.25.dist-info → airia-0.1.27.dist-info}/top_level.txt +0 -0
airia/types/api/__init__.py
CHANGED
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Pydantic models for models management API responses.
|
|
3
|
+
|
|
4
|
+
This module defines the data structures returned by models-related endpoints,
|
|
5
|
+
including model listings and associated configuration information.
|
|
6
|
+
"""
|
|
7
|
+
|
|
8
|
+
from datetime import datetime
|
|
9
|
+
from typing import Any, List, Optional
|
|
10
|
+
|
|
11
|
+
from pydantic import BaseModel, Field
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class ModelProject(BaseModel):
|
|
15
|
+
"""
|
|
16
|
+
Basic project information associated with a model.
|
|
17
|
+
|
|
18
|
+
Represents a simplified view of project data within model contexts,
|
|
19
|
+
containing only essential identification information.
|
|
20
|
+
"""
|
|
21
|
+
|
|
22
|
+
id: str
|
|
23
|
+
name: str
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
class ModelSystemPrompt(BaseModel):
|
|
27
|
+
"""
|
|
28
|
+
System prompt information associated with a model.
|
|
29
|
+
|
|
30
|
+
Contains details about the system prompt template used by the model,
|
|
31
|
+
including version tracking and project associations.
|
|
32
|
+
"""
|
|
33
|
+
|
|
34
|
+
id: str
|
|
35
|
+
name: str
|
|
36
|
+
active_version_id: Optional[str] = Field(None, alias="activeVersionId")
|
|
37
|
+
active_version: Optional[Any] = Field(None, alias="activeVersion")
|
|
38
|
+
created_at: datetime = Field(alias="createdAt")
|
|
39
|
+
updated_at: datetime = Field(alias="updatedAt")
|
|
40
|
+
project_id: Optional[str] = Field(None, alias="projectId")
|
|
41
|
+
project_name: Optional[str] = Field(None, alias="projectName")
|
|
42
|
+
project: Optional[Any] = None
|
|
43
|
+
latest_version_number: Optional[int] = Field(None, alias="latestVersionNumber")
|
|
44
|
+
is_agent_specific: bool = Field(alias="isAgentSpecific")
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
class ModelUserProvidedDetails(BaseModel):
|
|
48
|
+
"""
|
|
49
|
+
User-provided configuration details for a model.
|
|
50
|
+
|
|
51
|
+
Contains authentication, pricing, and deployment information
|
|
52
|
+
for models configured by users.
|
|
53
|
+
"""
|
|
54
|
+
|
|
55
|
+
url: str
|
|
56
|
+
credentials_id: Optional[str] = Field(None, alias="credentialsId")
|
|
57
|
+
deployment_type: str = Field(alias="deploymentType")
|
|
58
|
+
connection_string: Optional[str] = Field(None, alias="connectionString")
|
|
59
|
+
container_name: Optional[str] = Field(None, alias="containerName")
|
|
60
|
+
deployed_key: Optional[str] = Field(None, alias="deployedKey")
|
|
61
|
+
deployed_url: Optional[str] = Field(None, alias="deployedUrl")
|
|
62
|
+
state: Optional[Any] = None
|
|
63
|
+
uploaded_container_id: Optional[str] = Field(None, alias="uploadedContainerId")
|
|
64
|
+
input_token_price: float = Field(alias="inputTokenPrice")
|
|
65
|
+
output_token_price: float = Field(alias="outputTokenPrice")
|
|
66
|
+
token_units: int = Field(alias="tokenUnits")
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
class ModelItem(BaseModel):
|
|
70
|
+
"""
|
|
71
|
+
Comprehensive model information and metadata.
|
|
72
|
+
|
|
73
|
+
This model represents a complete model entity with all associated configuration,
|
|
74
|
+
pricing information, capabilities, and organizational details. Models can be
|
|
75
|
+
either library-provided or user-configured.
|
|
76
|
+
|
|
77
|
+
Attributes:
|
|
78
|
+
category: Model category (e.g., "Multimodal", "NLP", "ImageGeneration")
|
|
79
|
+
id: Unique model identifier
|
|
80
|
+
display_name: Human-readable model name
|
|
81
|
+
model_name: Technical model identifier/name
|
|
82
|
+
prompt_id: Optional system prompt identifier
|
|
83
|
+
system_prompt: Optional system prompt configuration
|
|
84
|
+
source_type: Model source ("Library" or "UserProvided")
|
|
85
|
+
type: Model type (e.g., "Text", "Image")
|
|
86
|
+
provider: AI provider (e.g., "OpenAI", "Anthropic", "Google")
|
|
87
|
+
tenant_id: Tenant/organization identifier
|
|
88
|
+
project_id: Optional project identifier
|
|
89
|
+
project_name: Optional project name
|
|
90
|
+
project: Optional project details
|
|
91
|
+
created_at: Model creation timestamp
|
|
92
|
+
updated_at: Last modification timestamp
|
|
93
|
+
user_id: User who created/configured the model
|
|
94
|
+
has_tool_support: Whether model supports tool calling
|
|
95
|
+
has_stream_support: Whether model supports streaming responses
|
|
96
|
+
library_model_id: Optional library model identifier
|
|
97
|
+
user_provided_details: Configuration details for user-provided models
|
|
98
|
+
allow_airia_credentials: Whether Airia-managed credentials are allowed
|
|
99
|
+
allow_byok_credentials: Whether bring-your-own-key credentials are allowed
|
|
100
|
+
price_type: Pricing model type
|
|
101
|
+
model_parameters: Additional model parameters
|
|
102
|
+
route_through_acc: Whether to route through Airia Credentials Controller
|
|
103
|
+
"""
|
|
104
|
+
|
|
105
|
+
category: Optional[str] = None
|
|
106
|
+
id: str
|
|
107
|
+
display_name: str = Field(alias="displayName")
|
|
108
|
+
model_name: str = Field(alias="modelName")
|
|
109
|
+
prompt_id: Optional[str] = Field(None, alias="promptId")
|
|
110
|
+
system_prompt: Optional[ModelSystemPrompt] = Field(None, alias="systemPrompt")
|
|
111
|
+
source_type: str = Field(alias="sourceType")
|
|
112
|
+
type: str
|
|
113
|
+
provider: str
|
|
114
|
+
tenant_id: str = Field(alias="tenantId")
|
|
115
|
+
project_id: Optional[str] = Field(None, alias="projectId")
|
|
116
|
+
project_name: Optional[str] = Field(None, alias="projectName")
|
|
117
|
+
project: Optional[ModelProject] = None
|
|
118
|
+
created_at: datetime = Field(alias="createdAt")
|
|
119
|
+
updated_at: datetime = Field(alias="updatedAt")
|
|
120
|
+
user_id: str = Field(alias="userId")
|
|
121
|
+
has_tool_support: bool = Field(alias="hasToolSupport")
|
|
122
|
+
has_stream_support: bool = Field(alias="hasStreamSupport")
|
|
123
|
+
library_model_id: Optional[str] = Field(None, alias="libraryModelId")
|
|
124
|
+
user_provided_details: ModelUserProvidedDetails = Field(alias="userProvidedDetails")
|
|
125
|
+
allow_airia_credentials: bool = Field(alias="allowAiriaCredentials")
|
|
126
|
+
allow_byok_credentials: bool = Field(alias="allowBYOKCredentials")
|
|
127
|
+
price_type: str = Field(alias="priceType")
|
|
128
|
+
model_parameters: List[Any] = Field(alias="modelParameters")
|
|
129
|
+
route_through_acc: bool = Field(alias="routeThroughACC")
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"""Pipeline import API response types."""
|
|
2
|
+
|
|
3
|
+
from .create_agent_from_pipeline_definition import (
|
|
4
|
+
CreateAgentFromPipelineDefinitionResponse,
|
|
5
|
+
PipelineImportedEntity,
|
|
6
|
+
)
|
|
7
|
+
|
|
8
|
+
__all__ = [
|
|
9
|
+
"CreateAgentFromPipelineDefinitionResponse",
|
|
10
|
+
"PipelineImportedEntity",
|
|
11
|
+
]
|
|
@@ -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
|
+
)
|
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Pydantic models for tool management API responses.
|
|
3
|
+
|
|
4
|
+
This module defines data structures for tool operations including
|
|
5
|
+
creation and configuration within the Airia platform.
|
|
6
|
+
"""
|
|
7
|
+
|
|
8
|
+
from typing import Optional, List
|
|
9
|
+
from datetime import datetime
|
|
10
|
+
|
|
11
|
+
from pydantic import BaseModel, Field
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class ToolHeader(BaseModel):
|
|
15
|
+
"""Key-value pair header for a tool definition.
|
|
16
|
+
|
|
17
|
+
Attributes:
|
|
18
|
+
key: The key of the header
|
|
19
|
+
value: The value of the header
|
|
20
|
+
"""
|
|
21
|
+
|
|
22
|
+
key: str
|
|
23
|
+
value: str
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
class ToolParameter(BaseModel):
|
|
27
|
+
"""Parameter definition for a tool.
|
|
28
|
+
|
|
29
|
+
Attributes:
|
|
30
|
+
name: Name of the parameter
|
|
31
|
+
type: Type of the parameter
|
|
32
|
+
description: Description of what the parameter does
|
|
33
|
+
default: Default value for the parameter
|
|
34
|
+
valid_options: List of valid options for the parameter
|
|
35
|
+
array_item_type: Type of items if this parameter is an array
|
|
36
|
+
parameters: Nested parameters for complex types
|
|
37
|
+
requirement: Whether the parameter is required or optional
|
|
38
|
+
"""
|
|
39
|
+
|
|
40
|
+
name: str
|
|
41
|
+
type: str
|
|
42
|
+
description: str
|
|
43
|
+
default: Optional[str] = None
|
|
44
|
+
valid_options: Optional[List[str]] = Field(None, alias="validOptions")
|
|
45
|
+
array_item_type: Optional[str] = Field(None, alias="arrayItemType")
|
|
46
|
+
parameters: Optional[List["ToolParameter"]] = None
|
|
47
|
+
requirement: str
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
class ToolCredentialSettings(BaseModel):
|
|
51
|
+
"""Settings for tool credentials.
|
|
52
|
+
|
|
53
|
+
Attributes:
|
|
54
|
+
available_credential_types: List of available credential types
|
|
55
|
+
default_value: Default credential value
|
|
56
|
+
platform_supported_oauth_types: List of OAuth types supported by the platform
|
|
57
|
+
"""
|
|
58
|
+
|
|
59
|
+
available_credential_types: List[str] = Field(alias="availableCredentialTypes")
|
|
60
|
+
default_value: Optional[str] = Field(None, alias="defaultValue")
|
|
61
|
+
platform_supported_oauth_types: List[str] = Field(
|
|
62
|
+
alias="platformSupportedOAuthTypes"
|
|
63
|
+
)
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
class ToolCredential(BaseModel):
|
|
67
|
+
"""Tool credential information.
|
|
68
|
+
|
|
69
|
+
Attributes:
|
|
70
|
+
id: Unique identifier for the credential
|
|
71
|
+
name: Name of the credential
|
|
72
|
+
display_identifier_name: Display name for the credential identifier
|
|
73
|
+
created_at: When the credential was created
|
|
74
|
+
project_id: ID of the project this credential belongs to
|
|
75
|
+
type: Type of credential
|
|
76
|
+
expired: Whether the credential has expired
|
|
77
|
+
expires_on: When the credential expires
|
|
78
|
+
administrative_scope: Scope of the credential (e.g., "Tenant")
|
|
79
|
+
user_id: ID of the user who owns the credential
|
|
80
|
+
"""
|
|
81
|
+
|
|
82
|
+
id: str
|
|
83
|
+
name: Optional[str] = None
|
|
84
|
+
display_identifier_name: Optional[str] = Field(None, alias="displayIdentifierName")
|
|
85
|
+
created_at: Optional[datetime] = Field(None, alias="createdAt")
|
|
86
|
+
project_id: Optional[str] = Field(None, alias="projectId")
|
|
87
|
+
type: str
|
|
88
|
+
expired: Optional[bool] = None
|
|
89
|
+
expires_on: Optional[datetime] = Field(None, alias="expiresOn")
|
|
90
|
+
administrative_scope: str = Field(alias="administrativeScope")
|
|
91
|
+
user_id: Optional[str] = Field(None, alias="userId")
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
class ToolCredentials(BaseModel):
|
|
95
|
+
"""Credentials configuration for a tool.
|
|
96
|
+
|
|
97
|
+
Attributes:
|
|
98
|
+
tool_credential_settings: Settings for tool credentials
|
|
99
|
+
tool_credentials: The actual credential object
|
|
100
|
+
tool_credentials_id: ID of the tool credentials
|
|
101
|
+
auth_required: Whether authentication is required
|
|
102
|
+
use_user_credentials: Whether to use user credentials
|
|
103
|
+
user_credential_connector_id: ID of the user credential connector
|
|
104
|
+
use_user_credentials_type: Type of user credentials to use
|
|
105
|
+
credentials_source_type: Source type of the credentials
|
|
106
|
+
use_airia_key_support: Whether Airia key support is enabled
|
|
107
|
+
"""
|
|
108
|
+
|
|
109
|
+
tool_credential_settings: ToolCredentialSettings = Field(
|
|
110
|
+
alias="toolCredentialSettings"
|
|
111
|
+
)
|
|
112
|
+
tool_credentials: Optional[ToolCredential] = Field(None, alias="toolCredentials")
|
|
113
|
+
tool_credentials_id: Optional[str] = Field(None, alias="toolCredentialsId")
|
|
114
|
+
auth_required: bool = Field(alias="authRequired")
|
|
115
|
+
use_user_credentials: bool = Field(alias="useUserCredentials")
|
|
116
|
+
user_credential_connector_id: Optional[str] = Field(
|
|
117
|
+
None, alias="userCredentialConnectorId"
|
|
118
|
+
)
|
|
119
|
+
use_user_credentials_type: str = Field(alias="useUserCredentialsType")
|
|
120
|
+
credentials_source_type: str = Field(alias="credentialsSourceType")
|
|
121
|
+
use_airia_key_support: bool = Field(alias="useAiriaKeySupport")
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
class ProjectReference(BaseModel):
|
|
125
|
+
"""Reference to a project.
|
|
126
|
+
|
|
127
|
+
Attributes:
|
|
128
|
+
id: Project ID
|
|
129
|
+
name: Project name
|
|
130
|
+
"""
|
|
131
|
+
|
|
132
|
+
id: str
|
|
133
|
+
name: str
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
class ToolMetadata(BaseModel):
|
|
137
|
+
"""Metadata key-value pair for a tool.
|
|
138
|
+
|
|
139
|
+
Attributes:
|
|
140
|
+
key: The metadata key
|
|
141
|
+
value: The metadata value
|
|
142
|
+
"""
|
|
143
|
+
|
|
144
|
+
key: str
|
|
145
|
+
value: str
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
class CreateToolResponse(BaseModel):
|
|
149
|
+
"""Response data for tool creation and retrieval operations.
|
|
150
|
+
|
|
151
|
+
This response contains complete information about a tool including
|
|
152
|
+
its configuration, credentials, parameters, and metadata.
|
|
153
|
+
|
|
154
|
+
Attributes:
|
|
155
|
+
id: Unique identifier for the tool
|
|
156
|
+
created_at: Timestamp when the tool was created
|
|
157
|
+
updated_at: Timestamp when the tool was last updated
|
|
158
|
+
tool_type: Type of the tool (e.g., "custom")
|
|
159
|
+
name: Name of the tool
|
|
160
|
+
standardized_name: Standardized version of the tool name
|
|
161
|
+
display_name: Display name of the tool (includes provider suffix for gateway tools)
|
|
162
|
+
origin: Origin of the tool
|
|
163
|
+
description: Brief description of what the tool does
|
|
164
|
+
method_type: HTTP method type (Get, Post, Put, Delete)
|
|
165
|
+
purpose: When and why to use this tool
|
|
166
|
+
api_endpoint: Web API endpoint where the tool sends requests
|
|
167
|
+
provider: Provider of the tool
|
|
168
|
+
tool_credentials: Credentials configuration for the tool
|
|
169
|
+
headers: Headers required when making API requests
|
|
170
|
+
body: Body of the request that the tool sends to the API
|
|
171
|
+
body_type: Type of the request body (Json, XFormUrlEncoded, None)
|
|
172
|
+
parameters: List of parameters the tool accepts
|
|
173
|
+
project_id: ID of the project this tool belongs to
|
|
174
|
+
project_name: Name of the project this tool belongs to
|
|
175
|
+
project: Project reference object
|
|
176
|
+
children: Child tool definitions
|
|
177
|
+
route_through_acc: Whether the tool should route through an ACC specific group
|
|
178
|
+
should_redirect: Whether the tool should redirect
|
|
179
|
+
acc_group: ACC specific group name
|
|
180
|
+
documentation: Documentation for the tool
|
|
181
|
+
tags: List of tags associated with the tool
|
|
182
|
+
tool_metadata: List of metadata key-value pairs
|
|
183
|
+
supports_pagination: Whether the tool supports pagination
|
|
184
|
+
category: Category of the tool (Action, Airia, Mcp)
|
|
185
|
+
request_timeout: Request timeout in seconds
|
|
186
|
+
"""
|
|
187
|
+
|
|
188
|
+
id: str
|
|
189
|
+
created_at: datetime = Field(alias="createdAt")
|
|
190
|
+
updated_at: datetime = Field(alias="updatedAt")
|
|
191
|
+
tool_type: str = Field(alias="toolType")
|
|
192
|
+
name: str
|
|
193
|
+
standardized_name: str = Field(alias="standardizedName")
|
|
194
|
+
display_name: Optional[str] = Field(None, alias="displayName")
|
|
195
|
+
origin: Optional[str] = None
|
|
196
|
+
description: str
|
|
197
|
+
method_type: str = Field(alias="methodType")
|
|
198
|
+
purpose: str
|
|
199
|
+
api_endpoint: str = Field(alias="apiEndpoint")
|
|
200
|
+
provider: str
|
|
201
|
+
tool_credentials: ToolCredentials = Field(alias="toolCredentials")
|
|
202
|
+
headers: List[ToolHeader]
|
|
203
|
+
body: str
|
|
204
|
+
body_type: str = Field(alias="bodyType")
|
|
205
|
+
parameters: List[ToolParameter]
|
|
206
|
+
project_id: Optional[str] = Field(None, alias="projectId")
|
|
207
|
+
project_name: Optional[str] = Field(None, alias="projectName")
|
|
208
|
+
project: Optional[ProjectReference] = None
|
|
209
|
+
children: Optional[List["CreateToolResponse"]] = None
|
|
210
|
+
route_through_acc: bool = Field(alias="routeThroughACC")
|
|
211
|
+
should_redirect: bool = Field(alias="shouldRedirect")
|
|
212
|
+
acc_group: Optional[str] = Field(None, alias="accGroup")
|
|
213
|
+
documentation: Optional[str] = None
|
|
214
|
+
tags: Optional[List[str]] = None
|
|
215
|
+
tool_metadata: Optional[List[ToolMetadata]] = Field(None, alias="toolMetadata")
|
|
216
|
+
supports_pagination: Optional[bool] = Field(None, alias="supportsPagination")
|
|
217
|
+
category: str
|
|
218
|
+
request_timeout: int = Field(alias="requestTimeout")
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
# Update forward references
|
|
222
|
+
ToolParameter.model_rebuild()
|
|
223
|
+
CreateToolResponse.model_rebuild()
|
|
@@ -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=ueHaYuPgcdm8dI0m_6LIl7oMT4lZREqa0i8-WFPtsJw,7533
|
|
7
7
|
airia/client/base_client.py,sha256=ftyLi2E3Hb4CQFYfiknitJA0sWDTylCiUbde0qkWYhg,3182
|
|
8
|
-
airia/client/sync_client.py,sha256=
|
|
8
|
+
airia/client/sync_client.py,sha256=qJoSfSQH_4kSTLRQPjEtYAeLHkLVk78bkI-Hnr8rNiU,7342
|
|
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
|
|
@@ -30,14 +30,22 @@ airia/client/library/__init__.py,sha256=QuZgSjwbJ2nmvbWEy56YP_35VSs3IB9tt7YbBM-h
|
|
|
30
30
|
airia/client/library/async_library.py,sha256=fRG3eUxZkXDMnDTAt18KxD1LQMC5VB6cssWu85451TA,4239
|
|
31
31
|
airia/client/library/base_library.py,sha256=VkcWr25fp2es2sRB97tORQmtAi59NZ6YRzwLymlQHIk,4664
|
|
32
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
|
-
airia/client/pipelines_config/async_pipelines_config.py,sha256=
|
|
39
|
-
airia/client/pipelines_config/base_pipelines_config.py,sha256=
|
|
40
|
-
airia/client/pipelines_config/sync_pipelines_config.py,sha256=
|
|
46
|
+
airia/client/pipelines_config/async_pipelines_config.py,sha256=EP5qrNyrXDyHa_xjkQDqAoc9_aAnyQ9fwS-9byhLdYs,9398
|
|
47
|
+
airia/client/pipelines_config/base_pipelines_config.py,sha256=VjMBmHn8N11ZK5Kvqfc72nWIgfQcAxy5MOu7_iloVjU,5163
|
|
48
|
+
airia/client/pipelines_config/sync_pipelines_config.py,sha256=TNZk2tCLT_UbbkbVImySESO7foXwohzcxFo72Wohgb8,9265
|
|
41
49
|
airia/client/project/__init__.py,sha256=GGEGfxtNzSO_BMAJ8Wfo8ZTq8BIdR6MHf6gSwhPv9mE,113
|
|
42
50
|
airia/client/project/async_project.py,sha256=OrIiqopKSXAhkYJi6yjoR-YYVUxzll1ldDJkJW1rIBM,4534
|
|
43
51
|
airia/client/project/base_project.py,sha256=4vP_dKGAt17mdzp3eW3ER8E0C0XMQ9P7JAEH2EH0imE,2432
|
|
@@ -46,10 +54,14 @@ airia/client/store/__init__.py,sha256=-rbtYQ8PTaFA6Fs2dm7Db2C3RDNvagaK3iE4PpLRcj
|
|
|
46
54
|
airia/client/store/async_store.py,sha256=wlYbK2AlTuJCrk3otdpO68W208166xyKpZymtuA5PyA,13557
|
|
47
55
|
airia/client/store/base_store.py,sha256=RUIGkKb2KiKZfzmDJIiPrLSes_VAnJA4xouIqxkEazI,8106
|
|
48
56
|
airia/client/store/sync_store.py,sha256=DNBhTckdoVnTqTVwFp_J42l-XkSHX3sCKVR7J4b79RU,12578
|
|
57
|
+
airia/client/tools/__init__.py,sha256=9bRyvbHD_AthBZA8YXMG79ZYoQjoGCl6mVnu5kVH1Jo,101
|
|
58
|
+
airia/client/tools/async_tools.py,sha256=Qnh0aDT-QM0P_Au3G-ehBL4iSxbMMf58TsbBBqzF1ow,11231
|
|
59
|
+
airia/client/tools/base_tools.py,sha256=YFTLESJBwvm5Z4YiRiadOQis9PH8Cwz6QC4scf1hazw,5913
|
|
60
|
+
airia/client/tools/sync_tools.py,sha256=mFWkHwbcHPf95UB58TDtAgbBvDbpXylEC1S5fRXFhAE,10618
|
|
49
61
|
airia/types/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
50
62
|
airia/types/_api_version.py,sha256=Uzom6O2ZG92HN_Z2h-lTydmO2XYX9RVs4Yi4DJmXytE,255
|
|
51
63
|
airia/types/_request_data.py,sha256=q8t7KfO2WvgbPVYPvPWiwYb8LyP0kovlOgHFhZIU6ns,1278
|
|
52
|
-
airia/types/api/__init__.py,sha256=
|
|
64
|
+
airia/types/api/__init__.py,sha256=hAkcgB07FFdYUqGAP9-7CUFTBTYUOn6DFRH4wMo2PoM,150
|
|
53
65
|
airia/types/api/attachments/__init__.py,sha256=zFSCwsmPr05I7NJRG6MCWME3AKhBpL0MhgOBOaF7rok,78
|
|
54
66
|
airia/types/api/attachments/upload_file.py,sha256=XBCm1lZJAloFxmyp_3fbtuJ9Y28O-mbAfwy6D0EvTgQ,457
|
|
55
67
|
airia/types/api/conversations/__init__.py,sha256=W6GlNVZCAY5eViJOoPl1bY9_etRBWeUnYZJJt7WHtfI,269
|
|
@@ -61,8 +73,12 @@ airia/types/api/deployments/get_deployment.py,sha256=KBr9edTu-e-tC3u9bpAdz0CMWzk
|
|
|
61
73
|
airia/types/api/deployments/get_deployments.py,sha256=5Dm7pTkEFmIZ4p4Scle9x9p3Nqy5tnXxeft3H4O_Fa8,8718
|
|
62
74
|
airia/types/api/library/__init__.py,sha256=b2TLWT90EhQ41f8LcGMtvzEftd3ol_eKc41ian6zXX8,201
|
|
63
75
|
airia/types/api/library/_library_models.py,sha256=d0YbmKNuUDXrieSRZh1IkhW_2aKrnaU08yuxqij98Dg,10486
|
|
76
|
+
airia/types/api/models/__init__.py,sha256=bm4Rn86Tuk7q3988bJ_gvS5zY7t-sqCFt1BYb0nS7Xo,224
|
|
77
|
+
airia/types/api/models/list_models.py,sha256=6tZRi_MBiMaQZb6whU2Ky8VRnUw_JDMkDZPY0PS3vQA,5451
|
|
64
78
|
airia/types/api/pipeline_execution/__init__.py,sha256=jlBLNN3yzd9TBQEfi7JJWlp3ur2NfXmON3YDnMkYdEY,674
|
|
65
79
|
airia/types/api/pipeline_execution/_pipeline_execution.py,sha256=4E8rmr3Ok9EHkTzHjeZHQFlQVIXQIXIpbEeDtKAh3sQ,6425
|
|
80
|
+
airia/types/api/pipeline_import/__init__.py,sha256=5m8e4faOYGCEFLQWJgj-v5H4NXPNtnlAKAxA4tGJUbw,267
|
|
81
|
+
airia/types/api/pipeline_import/create_agent_from_pipeline_definition.py,sha256=vn2aZGPnahmstHYKKMMN1hyTMRWFa2uAjpAYGwaI2xg,4394
|
|
66
82
|
airia/types/api/pipelines_config/__init__.py,sha256=tNYV8AEGsKMfH4nMb-KGDfH1kvHO2b6VSoTB7TYQ7N8,2188
|
|
67
83
|
airia/types/api/pipelines_config/export_pipeline_definition.py,sha256=UdXoG2c_MpzRF7apLz-4K-wsSyu_Jw0xAliCkCWlFD8,38156
|
|
68
84
|
airia/types/api/pipelines_config/get_pipeline_config.py,sha256=gvyp_xGpxr3Elcsu04JSQRPDvjmxRCPDAAR0rbE-oGs,23538
|
|
@@ -72,11 +88,13 @@ airia/types/api/project/get_projects.py,sha256=Ot8mq6VnXrGXZs7FQ0UuRYSyuCeER7YeC
|
|
|
72
88
|
airia/types/api/store/__init__.py,sha256=BgViwV_SHE9cxtilPnA2xWRk6MkAbxYxansmGeZR3nw,341
|
|
73
89
|
airia/types/api/store/get_file.py,sha256=Li3CpWUktQruNeoKSTlHJPXzNMaysG_Zy-fXGji8zs8,6174
|
|
74
90
|
airia/types/api/store/get_files.py,sha256=v22zmOuTSFqzrS73L5JL_FgBeF5a5wutv1nK4IHAoW0,700
|
|
91
|
+
airia/types/api/tools/__init__.py,sha256=r4jcHknQcLIb3jVkGR5lcmuapHqln7-rot3EBCNmZtI,146
|
|
92
|
+
airia/types/api/tools/_tools.py,sha256=M8nVRqhTpdbIzPs2z4Pi11BFtOnbgtNk3_RnDyViM_M,8348
|
|
75
93
|
airia/types/sse/__init__.py,sha256=KWnNTfsQnthfrU128pUX6ounvSS7DvjC-Y21FE-OdMk,1863
|
|
76
94
|
airia/types/sse/sse_messages.py,sha256=asq9KG5plT2XSgQMz-Nqo0WcKlXvE8UT3E-WLhCegPk,30244
|
|
77
95
|
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.
|
|
96
|
+
airia-0.1.27.dist-info/licenses/LICENSE,sha256=R3ClUMMKPRItIcZ0svzyj2taZZnFYw568YDNzN9KQ1Q,1066
|
|
97
|
+
airia-0.1.27.dist-info/METADATA,sha256=F_fbsYlh5Av4u2zFd10Yx3CFTYYeplBWx2tIZK9cdU8,4506
|
|
98
|
+
airia-0.1.27.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
99
|
+
airia-0.1.27.dist-info/top_level.txt,sha256=qUQEKfs_hdOYTwjKj1JZbRhS5YeXDNaKQaVTrzabS6w,6
|
|
100
|
+
airia-0.1.27.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|