asteroid-odyssey 0.1.21__py3-none-any.whl → 1.0.0__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.
- asteroid_odyssey/__init__.py +20 -34
- asteroid_odyssey/client.py +387 -337
- asteroid_odyssey/openapi_client/__init__.py +73 -0
- asteroid_odyssey/openapi_client/api/__init__.py +7 -0
- asteroid_odyssey/openapi_client/api/api_api.py +516 -0
- asteroid_odyssey/openapi_client/api/execution_api.py +335 -0
- asteroid_odyssey/openapi_client/api/sdk_api.py +1434 -0
- asteroid_odyssey/openapi_client/api_client.py +801 -0
- asteroid_odyssey/openapi_client/api_response.py +21 -0
- asteroid_odyssey/openapi_client/configuration.py +606 -0
- asteroid_odyssey/openapi_client/exceptions.py +216 -0
- asteroid_odyssey/openapi_client/models/__init__.py +27 -0
- asteroid_odyssey/openapi_client/models/browser_session_recording_response.py +87 -0
- asteroid_odyssey/openapi_client/models/error_response.py +87 -0
- asteroid_odyssey/openapi_client/models/execution_response.py +87 -0
- asteroid_odyssey/openapi_client/models/execution_result.py +101 -0
- asteroid_odyssey/openapi_client/models/execution_result_response.py +100 -0
- asteroid_odyssey/openapi_client/models/execution_status_response.py +95 -0
- asteroid_odyssey/openapi_client/models/health_check200_response.py +87 -0
- asteroid_odyssey/openapi_client/models/health_check500_response.py +87 -0
- asteroid_odyssey/openapi_client/models/status.py +43 -0
- asteroid_odyssey/openapi_client/models/structured_agent_execution_request.py +89 -0
- asteroid_odyssey/openapi_client/models/upload_execution_files200_response.py +89 -0
- asteroid_odyssey/openapi_client/rest.py +258 -0
- asteroid_odyssey-1.0.0.dist-info/METADATA +208 -0
- asteroid_odyssey-1.0.0.dist-info/RECORD +29 -0
- {asteroid_odyssey-0.1.21.dist-info → asteroid_odyssey-1.0.0.dist-info}/WHEEL +1 -1
- asteroid_odyssey/api/generated/asteroid_agents_api_client/__init__.py +0 -8
- asteroid_odyssey/api/generated/asteroid_agents_api_client/api/__init__.py +0 -1
- asteroid_odyssey/api/generated/asteroid_agents_api_client/api/agent/get_agents.py +0 -127
- asteroid_odyssey/api/generated/asteroid_agents_api_client/api/api/__init__.py +0 -0
- asteroid_odyssey/api/generated/asteroid_agents_api_client/api/api/get_open_api.py +0 -79
- asteroid_odyssey/api/generated/asteroid_agents_api_client/api/api/health_check.py +0 -131
- asteroid_odyssey/api/generated/asteroid_agents_api_client/api/credentials/__init__.py +0 -0
- asteroid_odyssey/api/generated/asteroid_agents_api_client/api/credentials/get_credentials_public_key.py +0 -127
- asteroid_odyssey/api/generated/asteroid_agents_api_client/api/execution/__init__.py +0 -0
- asteroid_odyssey/api/generated/asteroid_agents_api_client/api/execution/delete_execution.py +0 -156
- asteroid_odyssey/api/generated/asteroid_agents_api_client/api/execution/get_browser_session.py +0 -154
- asteroid_odyssey/api/generated/asteroid_agents_api_client/api/execution/get_execution.py +0 -154
- asteroid_odyssey/api/generated/asteroid_agents_api_client/api/execution/get_execution_files.py +0 -159
- asteroid_odyssey/api/generated/asteroid_agents_api_client/api/execution/get_execution_progress.py +0 -159
- asteroid_odyssey/api/generated/asteroid_agents_api_client/api/execution/get_executions_for_workflow.py +0 -156
- asteroid_odyssey/api/generated/asteroid_agents_api_client/api/execution/update_execution_status.py +0 -115
- asteroid_odyssey/api/generated/asteroid_agents_api_client/api/notifications/__init__.py +0 -0
- asteroid_odyssey/api/generated/asteroid_agents_api_client/api/notifications/set_slack_channel.py +0 -107
- asteroid_odyssey/api/generated/asteroid_agents_api_client/api/optimiser/__init__.py +0 -0
- asteroid_odyssey/api/generated/asteroid_agents_api_client/api/optimiser/queue_optimisation_job.py +0 -103
- asteroid_odyssey/api/generated/asteroid_agents_api_client/api/workflow/__init__.py +0 -0
- asteroid_odyssey/api/generated/asteroid_agents_api_client/api/workflow/add_workflow_credential.py +0 -111
- asteroid_odyssey/api/generated/asteroid_agents_api_client/api/workflow/create_workflow.py +0 -174
- asteroid_odyssey/api/generated/asteroid_agents_api_client/api/workflow/delete_workflow.py +0 -156
- asteroid_odyssey/api/generated/asteroid_agents_api_client/api/workflow/delete_workflow_credentials.py +0 -96
- asteroid_odyssey/api/generated/asteroid_agents_api_client/api/workflow/execute_workflow.py +0 -179
- asteroid_odyssey/api/generated/asteroid_agents_api_client/api/workflow/get_agent_workflow_executions.py +0 -155
- asteroid_odyssey/api/generated/asteroid_agents_api_client/api/workflow/get_workflow.py +0 -154
- asteroid_odyssey/api/generated/asteroid_agents_api_client/api/workflow/get_workflow_credentials.py +0 -154
- asteroid_odyssey/api/generated/asteroid_agents_api_client/api/workflow/get_workflow_versions.py +0 -159
- asteroid_odyssey/api/generated/asteroid_agents_api_client/client.py +0 -268
- asteroid_odyssey/api/generated/asteroid_agents_api_client/errors.py +0 -16
- asteroid_odyssey/api/generated/asteroid_agents_api_client/models/__init__.py +0 -61
- asteroid_odyssey/api/generated/asteroid_agents_api_client/models/agent.py +0 -90
- asteroid_odyssey/api/generated/asteroid_agents_api_client/models/browser_session.py +0 -136
- asteroid_odyssey/api/generated/asteroid_agents_api_client/models/create_workflow_request.py +0 -126
- asteroid_odyssey/api/generated/asteroid_agents_api_client/models/create_workflow_request_fields.py +0 -48
- asteroid_odyssey/api/generated/asteroid_agents_api_client/models/create_workflow_request_provider.py +0 -9
- asteroid_odyssey/api/generated/asteroid_agents_api_client/models/credential.py +0 -66
- asteroid_odyssey/api/generated/asteroid_agents_api_client/models/credentials_request.py +0 -72
- asteroid_odyssey/api/generated/asteroid_agents_api_client/models/credentials_response.py +0 -80
- asteroid_odyssey/api/generated/asteroid_agents_api_client/models/delete_execution_response_200.py +0 -58
- asteroid_odyssey/api/generated/asteroid_agents_api_client/models/delete_execution_response_404.py +0 -58
- asteroid_odyssey/api/generated/asteroid_agents_api_client/models/delete_workflow_response_200.py +0 -58
- asteroid_odyssey/api/generated/asteroid_agents_api_client/models/delete_workflow_response_404.py +0 -58
- asteroid_odyssey/api/generated/asteroid_agents_api_client/models/execution.py +0 -147
- asteroid_odyssey/api/generated/asteroid_agents_api_client/models/execution_dynamic_data.py +0 -48
- asteroid_odyssey/api/generated/asteroid_agents_api_client/models/execution_result.py +0 -43
- asteroid_odyssey/api/generated/asteroid_agents_api_client/models/execution_status.py +0 -89
- asteroid_odyssey/api/generated/asteroid_agents_api_client/models/file.py +0 -127
- asteroid_odyssey/api/generated/asteroid_agents_api_client/models/health_check_response_200.py +0 -58
- asteroid_odyssey/api/generated/asteroid_agents_api_client/models/health_check_response_500.py +0 -58
- asteroid_odyssey/api/generated/asteroid_agents_api_client/models/optimisation_request.py +0 -59
- asteroid_odyssey/api/generated/asteroid_agents_api_client/models/progress_update.py +0 -77
- asteroid_odyssey/api/generated/asteroid_agents_api_client/models/result_schema.py +0 -51
- asteroid_odyssey/api/generated/asteroid_agents_api_client/models/slack_channel_request.py +0 -58
- asteroid_odyssey/api/generated/asteroid_agents_api_client/models/status.py +0 -13
- asteroid_odyssey/api/generated/asteroid_agents_api_client/models/workflow.py +0 -152
- asteroid_odyssey/api/generated/asteroid_agents_api_client/models/workflow_execution.py +0 -82
- asteroid_odyssey/api/generated/asteroid_agents_api_client/models/workflow_execution_request.py +0 -48
- asteroid_odyssey/api/generated/asteroid_agents_api_client/models/workflow_fields.py +0 -48
- asteroid_odyssey/api/generated/asteroid_agents_api_client/py.typed +0 -1
- asteroid_odyssey/api/generated/asteroid_agents_api_client/types.py +0 -45
- asteroid_odyssey/exceptions.py +0 -15
- asteroid_odyssey-0.1.21.dist-info/METADATA +0 -31
- asteroid_odyssey-0.1.21.dist-info/RECORD +0 -72
- asteroid_odyssey-0.1.21.dist-info/entry_points.txt +0 -2
- /asteroid_odyssey/{api/generated/asteroid_agents_api_client/api/agent/__init__.py → openapi_client/py.typed} +0 -0
- {asteroid_odyssey-0.1.21.dist-info → asteroid_odyssey-1.0.0.dist-info}/top_level.txt +0 -0
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
import datetime
|
|
2
|
-
from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union
|
|
3
|
-
from uuid import UUID
|
|
4
|
-
|
|
5
|
-
from attrs import define as _attrs_define
|
|
6
|
-
from attrs import field as _attrs_field
|
|
7
|
-
from dateutil.parser import isoparse
|
|
8
|
-
|
|
9
|
-
from ..types import UNSET, Unset
|
|
10
|
-
|
|
11
|
-
if TYPE_CHECKING:
|
|
12
|
-
from ..models.execution_dynamic_data import ExecutionDynamicData
|
|
13
|
-
from ..models.execution_result import ExecutionResult
|
|
14
|
-
from ..models.execution_status import ExecutionStatus
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
T = TypeVar("T", bound="Execution")
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
@_attrs_define
|
|
21
|
-
class Execution:
|
|
22
|
-
"""
|
|
23
|
-
Attributes:
|
|
24
|
-
id (UUID): Execution identifier.
|
|
25
|
-
run_id (UUID): Run ID.
|
|
26
|
-
workflow_id (UUID): Workflow ID.
|
|
27
|
-
result (ExecutionResult): The result of the execution.
|
|
28
|
-
created_at (datetime.datetime): The date and time the execution was created.
|
|
29
|
-
dynamic_data (Union[Unset, ExecutionDynamicData]): Dynamic data to be merged into the saved workflow
|
|
30
|
-
configuration. Example: {'name': 'Alice', 'model': 'gpt-4o'}.
|
|
31
|
-
status (Union[Unset, ExecutionStatus]):
|
|
32
|
-
error (Union[Unset, str]): The error that occurred during the execution.
|
|
33
|
-
"""
|
|
34
|
-
|
|
35
|
-
id: UUID
|
|
36
|
-
run_id: UUID
|
|
37
|
-
workflow_id: UUID
|
|
38
|
-
result: "ExecutionResult"
|
|
39
|
-
created_at: datetime.datetime
|
|
40
|
-
dynamic_data: Union[Unset, "ExecutionDynamicData"] = UNSET
|
|
41
|
-
status: Union[Unset, "ExecutionStatus"] = UNSET
|
|
42
|
-
error: Union[Unset, str] = UNSET
|
|
43
|
-
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
44
|
-
|
|
45
|
-
def to_dict(self) -> Dict[str, Any]:
|
|
46
|
-
id = str(self.id)
|
|
47
|
-
|
|
48
|
-
run_id = str(self.run_id)
|
|
49
|
-
|
|
50
|
-
workflow_id = str(self.workflow_id)
|
|
51
|
-
|
|
52
|
-
result = self.result.to_dict()
|
|
53
|
-
|
|
54
|
-
created_at = self.created_at.isoformat()
|
|
55
|
-
|
|
56
|
-
dynamic_data: Union[Unset, Dict[str, Any]] = UNSET
|
|
57
|
-
if not isinstance(self.dynamic_data, Unset):
|
|
58
|
-
dynamic_data = self.dynamic_data.to_dict()
|
|
59
|
-
|
|
60
|
-
status: Union[Unset, Dict[str, Any]] = UNSET
|
|
61
|
-
if not isinstance(self.status, Unset):
|
|
62
|
-
status = self.status.to_dict()
|
|
63
|
-
|
|
64
|
-
error = self.error
|
|
65
|
-
|
|
66
|
-
field_dict: Dict[str, Any] = {}
|
|
67
|
-
field_dict.update(self.additional_properties)
|
|
68
|
-
field_dict.update(
|
|
69
|
-
{
|
|
70
|
-
"id": id,
|
|
71
|
-
"run_id": run_id,
|
|
72
|
-
"workflow_id": workflow_id,
|
|
73
|
-
"result": result,
|
|
74
|
-
"created_at": created_at,
|
|
75
|
-
}
|
|
76
|
-
)
|
|
77
|
-
if dynamic_data is not UNSET:
|
|
78
|
-
field_dict["dynamic_data"] = dynamic_data
|
|
79
|
-
if status is not UNSET:
|
|
80
|
-
field_dict["status"] = status
|
|
81
|
-
if error is not UNSET:
|
|
82
|
-
field_dict["error"] = error
|
|
83
|
-
|
|
84
|
-
return field_dict
|
|
85
|
-
|
|
86
|
-
@classmethod
|
|
87
|
-
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
88
|
-
from ..models.execution_dynamic_data import ExecutionDynamicData
|
|
89
|
-
from ..models.execution_result import ExecutionResult
|
|
90
|
-
from ..models.execution_status import ExecutionStatus
|
|
91
|
-
|
|
92
|
-
d = src_dict.copy()
|
|
93
|
-
id = UUID(d.pop("id"))
|
|
94
|
-
|
|
95
|
-
run_id = UUID(d.pop("run_id"))
|
|
96
|
-
|
|
97
|
-
workflow_id = UUID(d.pop("workflow_id"))
|
|
98
|
-
|
|
99
|
-
result = ExecutionResult.from_dict(d.pop("result"))
|
|
100
|
-
|
|
101
|
-
created_at = isoparse(d.pop("created_at"))
|
|
102
|
-
|
|
103
|
-
_dynamic_data = d.pop("dynamic_data", UNSET)
|
|
104
|
-
dynamic_data: Union[Unset, ExecutionDynamicData]
|
|
105
|
-
if isinstance(_dynamic_data, Unset):
|
|
106
|
-
dynamic_data = UNSET
|
|
107
|
-
else:
|
|
108
|
-
dynamic_data = ExecutionDynamicData.from_dict(_dynamic_data)
|
|
109
|
-
|
|
110
|
-
_status = d.pop("status", UNSET)
|
|
111
|
-
status: Union[Unset, ExecutionStatus]
|
|
112
|
-
if isinstance(_status, Unset):
|
|
113
|
-
status = UNSET
|
|
114
|
-
else:
|
|
115
|
-
status = ExecutionStatus.from_dict(_status)
|
|
116
|
-
|
|
117
|
-
error = d.pop("error", UNSET)
|
|
118
|
-
|
|
119
|
-
execution = cls(
|
|
120
|
-
id=id,
|
|
121
|
-
run_id=run_id,
|
|
122
|
-
workflow_id=workflow_id,
|
|
123
|
-
result=result,
|
|
124
|
-
created_at=created_at,
|
|
125
|
-
dynamic_data=dynamic_data,
|
|
126
|
-
status=status,
|
|
127
|
-
error=error,
|
|
128
|
-
)
|
|
129
|
-
|
|
130
|
-
execution.additional_properties = d
|
|
131
|
-
return execution
|
|
132
|
-
|
|
133
|
-
@property
|
|
134
|
-
def additional_keys(self) -> List[str]:
|
|
135
|
-
return list(self.additional_properties.keys())
|
|
136
|
-
|
|
137
|
-
def __getitem__(self, key: str) -> Any:
|
|
138
|
-
return self.additional_properties[key]
|
|
139
|
-
|
|
140
|
-
def __setitem__(self, key: str, value: Any) -> None:
|
|
141
|
-
self.additional_properties[key] = value
|
|
142
|
-
|
|
143
|
-
def __delitem__(self, key: str) -> None:
|
|
144
|
-
del self.additional_properties[key]
|
|
145
|
-
|
|
146
|
-
def __contains__(self, key: str) -> bool:
|
|
147
|
-
return key in self.additional_properties
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
from typing import Any, Dict, List, Type, TypeVar
|
|
2
|
-
|
|
3
|
-
from attrs import define as _attrs_define
|
|
4
|
-
from attrs import field as _attrs_field
|
|
5
|
-
|
|
6
|
-
T = TypeVar("T", bound="ExecutionDynamicData")
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
@_attrs_define
|
|
10
|
-
class ExecutionDynamicData:
|
|
11
|
-
"""Dynamic data to be merged into the saved workflow configuration.
|
|
12
|
-
|
|
13
|
-
Example:
|
|
14
|
-
{'name': 'Alice', 'model': 'gpt-4o'}
|
|
15
|
-
|
|
16
|
-
"""
|
|
17
|
-
|
|
18
|
-
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
19
|
-
|
|
20
|
-
def to_dict(self) -> Dict[str, Any]:
|
|
21
|
-
field_dict: Dict[str, Any] = {}
|
|
22
|
-
field_dict.update(self.additional_properties)
|
|
23
|
-
|
|
24
|
-
return field_dict
|
|
25
|
-
|
|
26
|
-
@classmethod
|
|
27
|
-
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
28
|
-
d = src_dict.copy()
|
|
29
|
-
execution_dynamic_data = cls()
|
|
30
|
-
|
|
31
|
-
execution_dynamic_data.additional_properties = d
|
|
32
|
-
return execution_dynamic_data
|
|
33
|
-
|
|
34
|
-
@property
|
|
35
|
-
def additional_keys(self) -> List[str]:
|
|
36
|
-
return list(self.additional_properties.keys())
|
|
37
|
-
|
|
38
|
-
def __getitem__(self, key: str) -> Any:
|
|
39
|
-
return self.additional_properties[key]
|
|
40
|
-
|
|
41
|
-
def __setitem__(self, key: str, value: Any) -> None:
|
|
42
|
-
self.additional_properties[key] = value
|
|
43
|
-
|
|
44
|
-
def __delitem__(self, key: str) -> None:
|
|
45
|
-
del self.additional_properties[key]
|
|
46
|
-
|
|
47
|
-
def __contains__(self, key: str) -> bool:
|
|
48
|
-
return key in self.additional_properties
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
from typing import Any, Dict, List, Type, TypeVar
|
|
2
|
-
|
|
3
|
-
from attrs import define as _attrs_define
|
|
4
|
-
from attrs import field as _attrs_field
|
|
5
|
-
|
|
6
|
-
T = TypeVar("T", bound="ExecutionResult")
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
@_attrs_define
|
|
10
|
-
class ExecutionResult:
|
|
11
|
-
"""The result of the execution."""
|
|
12
|
-
|
|
13
|
-
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
14
|
-
|
|
15
|
-
def to_dict(self) -> Dict[str, Any]:
|
|
16
|
-
field_dict: Dict[str, Any] = {}
|
|
17
|
-
field_dict.update(self.additional_properties)
|
|
18
|
-
|
|
19
|
-
return field_dict
|
|
20
|
-
|
|
21
|
-
@classmethod
|
|
22
|
-
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
23
|
-
d = src_dict.copy()
|
|
24
|
-
execution_result = cls()
|
|
25
|
-
|
|
26
|
-
execution_result.additional_properties = d
|
|
27
|
-
return execution_result
|
|
28
|
-
|
|
29
|
-
@property
|
|
30
|
-
def additional_keys(self) -> List[str]:
|
|
31
|
-
return list(self.additional_properties.keys())
|
|
32
|
-
|
|
33
|
-
def __getitem__(self, key: str) -> Any:
|
|
34
|
-
return self.additional_properties[key]
|
|
35
|
-
|
|
36
|
-
def __setitem__(self, key: str, value: Any) -> None:
|
|
37
|
-
self.additional_properties[key] = value
|
|
38
|
-
|
|
39
|
-
def __delitem__(self, key: str) -> None:
|
|
40
|
-
del self.additional_properties[key]
|
|
41
|
-
|
|
42
|
-
def __contains__(self, key: str) -> bool:
|
|
43
|
-
return key in self.additional_properties
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import datetime
|
|
2
|
-
from typing import Any, Dict, List, Type, TypeVar, Union
|
|
3
|
-
from uuid import UUID
|
|
4
|
-
|
|
5
|
-
from attrs import define as _attrs_define
|
|
6
|
-
from attrs import field as _attrs_field
|
|
7
|
-
from dateutil.parser import isoparse
|
|
8
|
-
|
|
9
|
-
from ..models.status import Status
|
|
10
|
-
from ..types import UNSET, Unset
|
|
11
|
-
|
|
12
|
-
T = TypeVar("T", bound="ExecutionStatus")
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
@_attrs_define
|
|
16
|
-
class ExecutionStatus:
|
|
17
|
-
"""
|
|
18
|
-
Attributes:
|
|
19
|
-
execution_id (UUID): Execution ID.
|
|
20
|
-
status (Status): Status of the execution.
|
|
21
|
-
created_at (datetime.datetime): The date and time the execution status was created.
|
|
22
|
-
reason (Union[Unset, str]): Reason for the status.
|
|
23
|
-
"""
|
|
24
|
-
|
|
25
|
-
execution_id: UUID
|
|
26
|
-
status: Status
|
|
27
|
-
created_at: datetime.datetime
|
|
28
|
-
reason: Union[Unset, str] = UNSET
|
|
29
|
-
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
30
|
-
|
|
31
|
-
def to_dict(self) -> Dict[str, Any]:
|
|
32
|
-
execution_id = str(self.execution_id)
|
|
33
|
-
|
|
34
|
-
status = self.status.value
|
|
35
|
-
|
|
36
|
-
created_at = self.created_at.isoformat()
|
|
37
|
-
|
|
38
|
-
reason = self.reason
|
|
39
|
-
|
|
40
|
-
field_dict: Dict[str, Any] = {}
|
|
41
|
-
field_dict.update(self.additional_properties)
|
|
42
|
-
field_dict.update(
|
|
43
|
-
{
|
|
44
|
-
"execution_id": execution_id,
|
|
45
|
-
"status": status,
|
|
46
|
-
"created_at": created_at,
|
|
47
|
-
}
|
|
48
|
-
)
|
|
49
|
-
if reason is not UNSET:
|
|
50
|
-
field_dict["reason"] = reason
|
|
51
|
-
|
|
52
|
-
return field_dict
|
|
53
|
-
|
|
54
|
-
@classmethod
|
|
55
|
-
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
56
|
-
d = src_dict.copy()
|
|
57
|
-
execution_id = UUID(d.pop("execution_id"))
|
|
58
|
-
|
|
59
|
-
status = Status(d.pop("status"))
|
|
60
|
-
|
|
61
|
-
created_at = isoparse(d.pop("created_at"))
|
|
62
|
-
|
|
63
|
-
reason = d.pop("reason", UNSET)
|
|
64
|
-
|
|
65
|
-
execution_status = cls(
|
|
66
|
-
execution_id=execution_id,
|
|
67
|
-
status=status,
|
|
68
|
-
created_at=created_at,
|
|
69
|
-
reason=reason,
|
|
70
|
-
)
|
|
71
|
-
|
|
72
|
-
execution_status.additional_properties = d
|
|
73
|
-
return execution_status
|
|
74
|
-
|
|
75
|
-
@property
|
|
76
|
-
def additional_keys(self) -> List[str]:
|
|
77
|
-
return list(self.additional_properties.keys())
|
|
78
|
-
|
|
79
|
-
def __getitem__(self, key: str) -> Any:
|
|
80
|
-
return self.additional_properties[key]
|
|
81
|
-
|
|
82
|
-
def __setitem__(self, key: str, value: Any) -> None:
|
|
83
|
-
self.additional_properties[key] = value
|
|
84
|
-
|
|
85
|
-
def __delitem__(self, key: str) -> None:
|
|
86
|
-
del self.additional_properties[key]
|
|
87
|
-
|
|
88
|
-
def __contains__(self, key: str) -> bool:
|
|
89
|
-
return key in self.additional_properties
|
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
import datetime
|
|
2
|
-
from typing import Any, Dict, List, Type, TypeVar
|
|
3
|
-
from uuid import UUID
|
|
4
|
-
|
|
5
|
-
from attrs import define as _attrs_define
|
|
6
|
-
from attrs import field as _attrs_field
|
|
7
|
-
from dateutil.parser import isoparse
|
|
8
|
-
|
|
9
|
-
T = TypeVar("T", bound="File")
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
@_attrs_define
|
|
13
|
-
class File:
|
|
14
|
-
"""
|
|
15
|
-
Attributes:
|
|
16
|
-
id (UUID): Unique file identifier. Example: 1.
|
|
17
|
-
execution_id (UUID): Execution ID associated with the file. Example: 123e4567-e89b-12d3-a456-426614174000.
|
|
18
|
-
file_path (str): Full GCS object path (e.g., "2023-10-21_14-05-01/1697892305-screenshot.png"). Example:
|
|
19
|
-
2023-10-21_14-05-01/1697892305-screenshot.png.
|
|
20
|
-
file_ext (str): File extension. Example: png.
|
|
21
|
-
file_name (str): File name. Example: 1697892305-screenshot.png.
|
|
22
|
-
file_size (int): Size of the file in bytes. Example: 2048.
|
|
23
|
-
mime_type (str): MIME type of the file. Example: image/png.
|
|
24
|
-
created_at (datetime.datetime): Timestamp when the file record was created. Example: 2023-10-21T14:05:01Z.
|
|
25
|
-
signed_url (str): Signed URL to download the file. Example: https://storage.googleapis.com/asteroid-
|
|
26
|
-
files/123e4567-e89b-12d3-a456-426614174000/2023-10-21_14-05-01/1697892305-screenshot.png.
|
|
27
|
-
"""
|
|
28
|
-
|
|
29
|
-
id: UUID
|
|
30
|
-
execution_id: UUID
|
|
31
|
-
file_path: str
|
|
32
|
-
file_ext: str
|
|
33
|
-
file_name: str
|
|
34
|
-
file_size: int
|
|
35
|
-
mime_type: str
|
|
36
|
-
created_at: datetime.datetime
|
|
37
|
-
signed_url: str
|
|
38
|
-
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
39
|
-
|
|
40
|
-
def to_dict(self) -> Dict[str, Any]:
|
|
41
|
-
id = str(self.id)
|
|
42
|
-
|
|
43
|
-
execution_id = str(self.execution_id)
|
|
44
|
-
|
|
45
|
-
file_path = self.file_path
|
|
46
|
-
|
|
47
|
-
file_ext = self.file_ext
|
|
48
|
-
|
|
49
|
-
file_name = self.file_name
|
|
50
|
-
|
|
51
|
-
file_size = self.file_size
|
|
52
|
-
|
|
53
|
-
mime_type = self.mime_type
|
|
54
|
-
|
|
55
|
-
created_at = self.created_at.isoformat()
|
|
56
|
-
|
|
57
|
-
signed_url = self.signed_url
|
|
58
|
-
|
|
59
|
-
field_dict: Dict[str, Any] = {}
|
|
60
|
-
field_dict.update(self.additional_properties)
|
|
61
|
-
field_dict.update(
|
|
62
|
-
{
|
|
63
|
-
"id": id,
|
|
64
|
-
"execution_id": execution_id,
|
|
65
|
-
"file_path": file_path,
|
|
66
|
-
"file_ext": file_ext,
|
|
67
|
-
"file_name": file_name,
|
|
68
|
-
"file_size": file_size,
|
|
69
|
-
"mime_type": mime_type,
|
|
70
|
-
"created_at": created_at,
|
|
71
|
-
"signed_url": signed_url,
|
|
72
|
-
}
|
|
73
|
-
)
|
|
74
|
-
|
|
75
|
-
return field_dict
|
|
76
|
-
|
|
77
|
-
@classmethod
|
|
78
|
-
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
79
|
-
d = src_dict.copy()
|
|
80
|
-
id = UUID(d.pop("id"))
|
|
81
|
-
|
|
82
|
-
execution_id = UUID(d.pop("execution_id"))
|
|
83
|
-
|
|
84
|
-
file_path = d.pop("file_path")
|
|
85
|
-
|
|
86
|
-
file_ext = d.pop("file_ext")
|
|
87
|
-
|
|
88
|
-
file_name = d.pop("file_name")
|
|
89
|
-
|
|
90
|
-
file_size = d.pop("file_size")
|
|
91
|
-
|
|
92
|
-
mime_type = d.pop("mime_type")
|
|
93
|
-
|
|
94
|
-
created_at = isoparse(d.pop("created_at"))
|
|
95
|
-
|
|
96
|
-
signed_url = d.pop("signed_url")
|
|
97
|
-
|
|
98
|
-
file = cls(
|
|
99
|
-
id=id,
|
|
100
|
-
execution_id=execution_id,
|
|
101
|
-
file_path=file_path,
|
|
102
|
-
file_ext=file_ext,
|
|
103
|
-
file_name=file_name,
|
|
104
|
-
file_size=file_size,
|
|
105
|
-
mime_type=mime_type,
|
|
106
|
-
created_at=created_at,
|
|
107
|
-
signed_url=signed_url,
|
|
108
|
-
)
|
|
109
|
-
|
|
110
|
-
file.additional_properties = d
|
|
111
|
-
return file
|
|
112
|
-
|
|
113
|
-
@property
|
|
114
|
-
def additional_keys(self) -> List[str]:
|
|
115
|
-
return list(self.additional_properties.keys())
|
|
116
|
-
|
|
117
|
-
def __getitem__(self, key: str) -> Any:
|
|
118
|
-
return self.additional_properties[key]
|
|
119
|
-
|
|
120
|
-
def __setitem__(self, key: str, value: Any) -> None:
|
|
121
|
-
self.additional_properties[key] = value
|
|
122
|
-
|
|
123
|
-
def __delitem__(self, key: str) -> None:
|
|
124
|
-
del self.additional_properties[key]
|
|
125
|
-
|
|
126
|
-
def __contains__(self, key: str) -> bool:
|
|
127
|
-
return key in self.additional_properties
|
asteroid_odyssey/api/generated/asteroid_agents_api_client/models/health_check_response_200.py
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
from typing import Any, Dict, List, Type, TypeVar, Union
|
|
2
|
-
|
|
3
|
-
from attrs import define as _attrs_define
|
|
4
|
-
from attrs import field as _attrs_field
|
|
5
|
-
|
|
6
|
-
from ..types import UNSET, Unset
|
|
7
|
-
|
|
8
|
-
T = TypeVar("T", bound="HealthCheckResponse200")
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
@_attrs_define
|
|
12
|
-
class HealthCheckResponse200:
|
|
13
|
-
"""
|
|
14
|
-
Attributes:
|
|
15
|
-
status (Union[Unset, str]): The health status of the API Example: ok.
|
|
16
|
-
"""
|
|
17
|
-
|
|
18
|
-
status: Union[Unset, str] = UNSET
|
|
19
|
-
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
20
|
-
|
|
21
|
-
def to_dict(self) -> Dict[str, Any]:
|
|
22
|
-
status = self.status
|
|
23
|
-
|
|
24
|
-
field_dict: Dict[str, Any] = {}
|
|
25
|
-
field_dict.update(self.additional_properties)
|
|
26
|
-
field_dict.update({})
|
|
27
|
-
if status is not UNSET:
|
|
28
|
-
field_dict["status"] = status
|
|
29
|
-
|
|
30
|
-
return field_dict
|
|
31
|
-
|
|
32
|
-
@classmethod
|
|
33
|
-
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
34
|
-
d = src_dict.copy()
|
|
35
|
-
status = d.pop("status", UNSET)
|
|
36
|
-
|
|
37
|
-
health_check_response_200 = cls(
|
|
38
|
-
status=status,
|
|
39
|
-
)
|
|
40
|
-
|
|
41
|
-
health_check_response_200.additional_properties = d
|
|
42
|
-
return health_check_response_200
|
|
43
|
-
|
|
44
|
-
@property
|
|
45
|
-
def additional_keys(self) -> List[str]:
|
|
46
|
-
return list(self.additional_properties.keys())
|
|
47
|
-
|
|
48
|
-
def __getitem__(self, key: str) -> Any:
|
|
49
|
-
return self.additional_properties[key]
|
|
50
|
-
|
|
51
|
-
def __setitem__(self, key: str, value: Any) -> None:
|
|
52
|
-
self.additional_properties[key] = value
|
|
53
|
-
|
|
54
|
-
def __delitem__(self, key: str) -> None:
|
|
55
|
-
del self.additional_properties[key]
|
|
56
|
-
|
|
57
|
-
def __contains__(self, key: str) -> bool:
|
|
58
|
-
return key in self.additional_properties
|
asteroid_odyssey/api/generated/asteroid_agents_api_client/models/health_check_response_500.py
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
from typing import Any, Dict, List, Type, TypeVar, Union
|
|
2
|
-
|
|
3
|
-
from attrs import define as _attrs_define
|
|
4
|
-
from attrs import field as _attrs_field
|
|
5
|
-
|
|
6
|
-
from ..types import UNSET, Unset
|
|
7
|
-
|
|
8
|
-
T = TypeVar("T", bound="HealthCheckResponse500")
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
@_attrs_define
|
|
12
|
-
class HealthCheckResponse500:
|
|
13
|
-
"""
|
|
14
|
-
Attributes:
|
|
15
|
-
error (Union[Unset, str]): The error message Example: Internal server error.
|
|
16
|
-
"""
|
|
17
|
-
|
|
18
|
-
error: Union[Unset, str] = UNSET
|
|
19
|
-
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
20
|
-
|
|
21
|
-
def to_dict(self) -> Dict[str, Any]:
|
|
22
|
-
error = self.error
|
|
23
|
-
|
|
24
|
-
field_dict: Dict[str, Any] = {}
|
|
25
|
-
field_dict.update(self.additional_properties)
|
|
26
|
-
field_dict.update({})
|
|
27
|
-
if error is not UNSET:
|
|
28
|
-
field_dict["error"] = error
|
|
29
|
-
|
|
30
|
-
return field_dict
|
|
31
|
-
|
|
32
|
-
@classmethod
|
|
33
|
-
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
34
|
-
d = src_dict.copy()
|
|
35
|
-
error = d.pop("error", UNSET)
|
|
36
|
-
|
|
37
|
-
health_check_response_500 = cls(
|
|
38
|
-
error=error,
|
|
39
|
-
)
|
|
40
|
-
|
|
41
|
-
health_check_response_500.additional_properties = d
|
|
42
|
-
return health_check_response_500
|
|
43
|
-
|
|
44
|
-
@property
|
|
45
|
-
def additional_keys(self) -> List[str]:
|
|
46
|
-
return list(self.additional_properties.keys())
|
|
47
|
-
|
|
48
|
-
def __getitem__(self, key: str) -> Any:
|
|
49
|
-
return self.additional_properties[key]
|
|
50
|
-
|
|
51
|
-
def __setitem__(self, key: str, value: Any) -> None:
|
|
52
|
-
self.additional_properties[key] = value
|
|
53
|
-
|
|
54
|
-
def __delitem__(self, key: str) -> None:
|
|
55
|
-
del self.additional_properties[key]
|
|
56
|
-
|
|
57
|
-
def __contains__(self, key: str) -> bool:
|
|
58
|
-
return key in self.additional_properties
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
from typing import Any, Dict, List, Type, TypeVar
|
|
2
|
-
from uuid import UUID
|
|
3
|
-
|
|
4
|
-
from attrs import define as _attrs_define
|
|
5
|
-
from attrs import field as _attrs_field
|
|
6
|
-
|
|
7
|
-
T = TypeVar("T", bound="OptimisationRequest")
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
@_attrs_define
|
|
11
|
-
class OptimisationRequest:
|
|
12
|
-
"""
|
|
13
|
-
Attributes:
|
|
14
|
-
run_id (UUID): The run ID that we want to subject to optimisation Example: 123e4567-e89b-12d3-a456-426614174000.
|
|
15
|
-
"""
|
|
16
|
-
|
|
17
|
-
run_id: UUID
|
|
18
|
-
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
19
|
-
|
|
20
|
-
def to_dict(self) -> Dict[str, Any]:
|
|
21
|
-
run_id = str(self.run_id)
|
|
22
|
-
|
|
23
|
-
field_dict: Dict[str, Any] = {}
|
|
24
|
-
field_dict.update(self.additional_properties)
|
|
25
|
-
field_dict.update(
|
|
26
|
-
{
|
|
27
|
-
"run_id": run_id,
|
|
28
|
-
}
|
|
29
|
-
)
|
|
30
|
-
|
|
31
|
-
return field_dict
|
|
32
|
-
|
|
33
|
-
@classmethod
|
|
34
|
-
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
35
|
-
d = src_dict.copy()
|
|
36
|
-
run_id = UUID(d.pop("run_id"))
|
|
37
|
-
|
|
38
|
-
optimisation_request = cls(
|
|
39
|
-
run_id=run_id,
|
|
40
|
-
)
|
|
41
|
-
|
|
42
|
-
optimisation_request.additional_properties = d
|
|
43
|
-
return optimisation_request
|
|
44
|
-
|
|
45
|
-
@property
|
|
46
|
-
def additional_keys(self) -> List[str]:
|
|
47
|
-
return list(self.additional_properties.keys())
|
|
48
|
-
|
|
49
|
-
def __getitem__(self, key: str) -> Any:
|
|
50
|
-
return self.additional_properties[key]
|
|
51
|
-
|
|
52
|
-
def __setitem__(self, key: str, value: Any) -> None:
|
|
53
|
-
self.additional_properties[key] = value
|
|
54
|
-
|
|
55
|
-
def __delitem__(self, key: str) -> None:
|
|
56
|
-
del self.additional_properties[key]
|
|
57
|
-
|
|
58
|
-
def __contains__(self, key: str) -> bool:
|
|
59
|
-
return key in self.additional_properties
|