asteroid-odyssey 1.3.2__tar.gz → 1.3.3__tar.gz
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-1.3.2 → asteroid_odyssey-1.3.3}/PKG-INFO +2 -1
- {asteroid_odyssey-1.3.2 → asteroid_odyssey-1.3.3}/pyproject.toml +3 -2
- {asteroid_odyssey-1.3.2 → asteroid_odyssey-1.3.3}/src/asteroid_odyssey/agents_v2_gen/__init__.py +65 -1
- asteroid_odyssey-1.3.3/src/asteroid_odyssey/agents_v2_gen/api/__init__.py +20 -0
- {asteroid_odyssey-1.3.2 → asteroid_odyssey-1.3.3}/src/asteroid_odyssey/agents_v2_gen/api/execution_api.py +270 -6
- {asteroid_odyssey-1.3.2 → asteroid_odyssey-1.3.3}/src/asteroid_odyssey/agents_v2_gen/api_client.py +4 -1
- asteroid_odyssey-1.3.3/src/asteroid_odyssey/agents_v2_gen/models/__init__.py +93 -0
- {asteroid_odyssey-1.3.2 → asteroid_odyssey-1.3.3}/src/asteroid_odyssey/agents_v2_gen/models/execution_activity.py +4 -3
- {asteroid_odyssey-1.3.2 → asteroid_odyssey-1.3.3}/src/asteroid_odyssey/agents_v2_gen/models/execution_activity_transitioned_node_payload.py +2 -1
- {asteroid_odyssey-1.3.2 → asteroid_odyssey-1.3.3}/src/asteroid_odyssey/agents_v2_gen/models/execution_activity_user_message_received_payload.py +2 -1
- asteroid_odyssey-1.3.3/src/asteroid_odyssey/agents_v2_gen/models/file.py +109 -0
- {asteroid_odyssey-1.3.2 → asteroid_odyssey-1.3.3}/src/asteroid_odyssey/client.py +172 -0
- {asteroid_odyssey-1.3.2 → asteroid_odyssey-1.3.3}/src/asteroid_odyssey.egg-info/PKG-INFO +2 -1
- {asteroid_odyssey-1.3.2 → asteroid_odyssey-1.3.3}/src/asteroid_odyssey.egg-info/SOURCES.txt +1 -0
- {asteroid_odyssey-1.3.2 → asteroid_odyssey-1.3.3}/src/asteroid_odyssey.egg-info/requires.txt +1 -0
- asteroid_odyssey-1.3.2/src/asteroid_odyssey/agents_v2_gen/api/__init__.py +0 -5
- asteroid_odyssey-1.3.2/src/asteroid_odyssey/agents_v2_gen/models/__init__.py +0 -46
- {asteroid_odyssey-1.3.2 → asteroid_odyssey-1.3.3}/README.md +0 -0
- {asteroid_odyssey-1.3.2 → asteroid_odyssey-1.3.3}/setup.cfg +0 -0
- {asteroid_odyssey-1.3.2 → asteroid_odyssey-1.3.3}/src/asteroid_odyssey/__init__.py +0 -0
- {asteroid_odyssey-1.3.2 → asteroid_odyssey-1.3.3}/src/asteroid_odyssey/agents_v1_gen/__init__.py +0 -0
- {asteroid_odyssey-1.3.2 → asteroid_odyssey-1.3.3}/src/asteroid_odyssey/agents_v1_gen/api/__init__.py +0 -0
- {asteroid_odyssey-1.3.2 → asteroid_odyssey-1.3.3}/src/asteroid_odyssey/agents_v1_gen/api/agent_profile_api.py +0 -0
- {asteroid_odyssey-1.3.2 → asteroid_odyssey-1.3.3}/src/asteroid_odyssey/agents_v1_gen/api/api_api.py +0 -0
- {asteroid_odyssey-1.3.2 → asteroid_odyssey-1.3.3}/src/asteroid_odyssey/agents_v1_gen/api/execution_api.py +0 -0
- {asteroid_odyssey-1.3.2 → asteroid_odyssey-1.3.3}/src/asteroid_odyssey/agents_v1_gen/api_client.py +0 -0
- {asteroid_odyssey-1.3.2 → asteroid_odyssey-1.3.3}/src/asteroid_odyssey/agents_v1_gen/api_response.py +0 -0
- {asteroid_odyssey-1.3.2 → asteroid_odyssey-1.3.3}/src/asteroid_odyssey/agents_v1_gen/configuration.py +0 -0
- {asteroid_odyssey-1.3.2 → asteroid_odyssey-1.3.3}/src/asteroid_odyssey/agents_v1_gen/exceptions.py +0 -0
- {asteroid_odyssey-1.3.2 → asteroid_odyssey-1.3.3}/src/asteroid_odyssey/agents_v1_gen/models/__init__.py +0 -0
- {asteroid_odyssey-1.3.2 → asteroid_odyssey-1.3.3}/src/asteroid_odyssey/agents_v1_gen/models/agent_profile.py +0 -0
- {asteroid_odyssey-1.3.2 → asteroid_odyssey-1.3.3}/src/asteroid_odyssey/agents_v1_gen/models/browser_session_recording_response.py +0 -0
- {asteroid_odyssey-1.3.2 → asteroid_odyssey-1.3.3}/src/asteroid_odyssey/agents_v1_gen/models/cookie.py +0 -0
- {asteroid_odyssey-1.3.2 → asteroid_odyssey-1.3.3}/src/asteroid_odyssey/agents_v1_gen/models/country_code.py +0 -0
- {asteroid_odyssey-1.3.2 → asteroid_odyssey-1.3.3}/src/asteroid_odyssey/agents_v1_gen/models/create_agent_profile_request.py +0 -0
- {asteroid_odyssey-1.3.2 → asteroid_odyssey-1.3.3}/src/asteroid_odyssey/agents_v1_gen/models/credential.py +0 -0
- {asteroid_odyssey-1.3.2 → asteroid_odyssey-1.3.3}/src/asteroid_odyssey/agents_v1_gen/models/delete_agent_profile200_response.py +0 -0
- {asteroid_odyssey-1.3.2 → asteroid_odyssey-1.3.3}/src/asteroid_odyssey/agents_v1_gen/models/error_response.py +0 -0
- {asteroid_odyssey-1.3.2 → asteroid_odyssey-1.3.3}/src/asteroid_odyssey/agents_v1_gen/models/execution_response.py +0 -0
- {asteroid_odyssey-1.3.2 → asteroid_odyssey-1.3.3}/src/asteroid_odyssey/agents_v1_gen/models/execution_result.py +0 -0
- {asteroid_odyssey-1.3.2 → asteroid_odyssey-1.3.3}/src/asteroid_odyssey/agents_v1_gen/models/execution_result_response.py +0 -0
- {asteroid_odyssey-1.3.2 → asteroid_odyssey-1.3.3}/src/asteroid_odyssey/agents_v1_gen/models/execution_status_response.py +0 -0
- {asteroid_odyssey-1.3.2 → asteroid_odyssey-1.3.3}/src/asteroid_odyssey/agents_v1_gen/models/health_check200_response.py +0 -0
- {asteroid_odyssey-1.3.2 → asteroid_odyssey-1.3.3}/src/asteroid_odyssey/agents_v1_gen/models/health_check500_response.py +0 -0
- {asteroid_odyssey-1.3.2 → asteroid_odyssey-1.3.3}/src/asteroid_odyssey/agents_v1_gen/models/proxy_type.py +0 -0
- {asteroid_odyssey-1.3.2 → asteroid_odyssey-1.3.3}/src/asteroid_odyssey/agents_v1_gen/models/status.py +0 -0
- {asteroid_odyssey-1.3.2 → asteroid_odyssey-1.3.3}/src/asteroid_odyssey/agents_v1_gen/models/structured_agent_execution_request.py +0 -0
- {asteroid_odyssey-1.3.2 → asteroid_odyssey-1.3.3}/src/asteroid_odyssey/agents_v1_gen/models/update_agent_profile_request.py +0 -0
- {asteroid_odyssey-1.3.2 → asteroid_odyssey-1.3.3}/src/asteroid_odyssey/agents_v1_gen/models/upload_execution_files200_response.py +0 -0
- {asteroid_odyssey-1.3.2 → asteroid_odyssey-1.3.3}/src/asteroid_odyssey/agents_v1_gen/py.typed +0 -0
- {asteroid_odyssey-1.3.2 → asteroid_odyssey-1.3.3}/src/asteroid_odyssey/agents_v1_gen/rest.py +0 -0
- {asteroid_odyssey-1.3.2 → asteroid_odyssey-1.3.3}/src/asteroid_odyssey/agents_v2_gen/api_response.py +0 -0
- {asteroid_odyssey-1.3.2 → asteroid_odyssey-1.3.3}/src/asteroid_odyssey/agents_v2_gen/configuration.py +0 -0
- {asteroid_odyssey-1.3.2 → asteroid_odyssey-1.3.3}/src/asteroid_odyssey/agents_v2_gen/exceptions.py +0 -0
- {asteroid_odyssey-1.3.2 → asteroid_odyssey-1.3.3}/src/asteroid_odyssey/agents_v2_gen/models/activity_payload_union_action_completed.py +0 -0
- {asteroid_odyssey-1.3.2 → asteroid_odyssey-1.3.3}/src/asteroid_odyssey/agents_v2_gen/models/activity_payload_union_action_failed.py +0 -0
- {asteroid_odyssey-1.3.2 → asteroid_odyssey-1.3.3}/src/asteroid_odyssey/agents_v2_gen/models/activity_payload_union_action_started.py +0 -0
- {asteroid_odyssey-1.3.2 → asteroid_odyssey-1.3.3}/src/asteroid_odyssey/agents_v2_gen/models/activity_payload_union_generic.py +0 -0
- {asteroid_odyssey-1.3.2 → asteroid_odyssey-1.3.3}/src/asteroid_odyssey/agents_v2_gen/models/activity_payload_union_status_changed.py +0 -0
- {asteroid_odyssey-1.3.2 → asteroid_odyssey-1.3.3}/src/asteroid_odyssey/agents_v2_gen/models/activity_payload_union_step_completed.py +0 -0
- {asteroid_odyssey-1.3.2 → asteroid_odyssey-1.3.3}/src/asteroid_odyssey/agents_v2_gen/models/activity_payload_union_step_started.py +0 -0
- {asteroid_odyssey-1.3.2 → asteroid_odyssey-1.3.3}/src/asteroid_odyssey/agents_v2_gen/models/activity_payload_union_terminal.py +0 -0
- {asteroid_odyssey-1.3.2 → asteroid_odyssey-1.3.3}/src/asteroid_odyssey/agents_v2_gen/models/activity_payload_union_transitioned_node.py +0 -0
- {asteroid_odyssey-1.3.2 → asteroid_odyssey-1.3.3}/src/asteroid_odyssey/agents_v2_gen/models/activity_payload_union_user_message_received.py +0 -0
- {asteroid_odyssey-1.3.2 → asteroid_odyssey-1.3.3}/src/asteroid_odyssey/agents_v2_gen/models/error.py +0 -0
- {asteroid_odyssey-1.3.2 → asteroid_odyssey-1.3.3}/src/asteroid_odyssey/agents_v2_gen/models/execution_activity_action_completed_payload.py +0 -0
- {asteroid_odyssey-1.3.2 → asteroid_odyssey-1.3.3}/src/asteroid_odyssey/agents_v2_gen/models/execution_activity_action_failed_payload.py +0 -0
- {asteroid_odyssey-1.3.2 → asteroid_odyssey-1.3.3}/src/asteroid_odyssey/agents_v2_gen/models/execution_activity_action_started_payload.py +0 -0
- {asteroid_odyssey-1.3.2 → asteroid_odyssey-1.3.3}/src/asteroid_odyssey/agents_v2_gen/models/execution_activity_generic_payload.py +0 -0
- {asteroid_odyssey-1.3.2 → asteroid_odyssey-1.3.3}/src/asteroid_odyssey/agents_v2_gen/models/execution_activity_payload_union.py +0 -0
- {asteroid_odyssey-1.3.2 → asteroid_odyssey-1.3.3}/src/asteroid_odyssey/agents_v2_gen/models/execution_activity_status_changed_payload.py +0 -0
- {asteroid_odyssey-1.3.2 → asteroid_odyssey-1.3.3}/src/asteroid_odyssey/agents_v2_gen/models/execution_activity_step_completed_payload.py +0 -0
- {asteroid_odyssey-1.3.2 → asteroid_odyssey-1.3.3}/src/asteroid_odyssey/agents_v2_gen/models/execution_activity_step_started_payload.py +0 -0
- {asteroid_odyssey-1.3.2 → asteroid_odyssey-1.3.3}/src/asteroid_odyssey/agents_v2_gen/models/execution_awaiting_confirmation_payload.py +0 -0
- {asteroid_odyssey-1.3.2 → asteroid_odyssey-1.3.3}/src/asteroid_odyssey/agents_v2_gen/models/execution_completed_payload.py +0 -0
- {asteroid_odyssey-1.3.2 → asteroid_odyssey-1.3.3}/src/asteroid_odyssey/agents_v2_gen/models/execution_failed_payload.py +0 -0
- {asteroid_odyssey-1.3.2 → asteroid_odyssey-1.3.3}/src/asteroid_odyssey/agents_v2_gen/models/execution_paused_payload.py +0 -0
- {asteroid_odyssey-1.3.2 → asteroid_odyssey-1.3.3}/src/asteroid_odyssey/agents_v2_gen/models/execution_status.py +0 -0
- {asteroid_odyssey-1.3.2 → asteroid_odyssey-1.3.3}/src/asteroid_odyssey/agents_v2_gen/models/execution_terminal_payload.py +0 -0
- {asteroid_odyssey-1.3.2 → asteroid_odyssey-1.3.3}/src/asteroid_odyssey/agents_v2_gen/models/execution_user_messages_add_text_body.py +0 -0
- {asteroid_odyssey-1.3.2 → asteroid_odyssey-1.3.3}/src/asteroid_odyssey/agents_v2_gen/models/versions.py +0 -0
- {asteroid_odyssey-1.3.2 → asteroid_odyssey-1.3.3}/src/asteroid_odyssey/agents_v2_gen/py.typed +0 -0
- {asteroid_odyssey-1.3.2 → asteroid_odyssey-1.3.3}/src/asteroid_odyssey/agents_v2_gen/rest.py +0 -0
- {asteroid_odyssey-1.3.2 → asteroid_odyssey-1.3.3}/src/asteroid_odyssey.egg-info/dependency_links.txt +0 -0
- {asteroid_odyssey-1.3.2 → asteroid_odyssey-1.3.3}/src/asteroid_odyssey.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: asteroid-odyssey
|
|
3
|
-
Version: 1.3.
|
|
3
|
+
Version: 1.3.3
|
|
4
4
|
Summary: A Python SDK for browser automation using Asteroid platform.
|
|
5
5
|
Author-email: David Mlcoch <founders@asteroid.com>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -22,6 +22,7 @@ Requires-Dist: pydantic>=2
|
|
|
22
22
|
Requires-Dist: typing-extensions>=4.7.1
|
|
23
23
|
Requires-Dist: requests>=2.28.0
|
|
24
24
|
Requires-Dist: cryptography>=41.0.0
|
|
25
|
+
Requires-Dist: lazy-imports>=1.0.0
|
|
25
26
|
Provides-Extra: dev
|
|
26
27
|
Requires-Dist: pytest>=7.2.1; extra == "dev"
|
|
27
28
|
Requires-Dist: pytest-cov>=2.8.1; extra == "dev"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "asteroid-odyssey"
|
|
3
|
-
version = "1.3.
|
|
3
|
+
version = "1.3.3"
|
|
4
4
|
authors = [
|
|
5
5
|
{ name = "David Mlcoch", email = "founders@asteroid.com" },
|
|
6
6
|
]
|
|
@@ -16,7 +16,8 @@ dependencies = [
|
|
|
16
16
|
"pydantic>=2",
|
|
17
17
|
"typing-extensions>=4.7.1",
|
|
18
18
|
"requests>=2.28.0",
|
|
19
|
-
"cryptography>=41.0.0"
|
|
19
|
+
"cryptography>=41.0.0",
|
|
20
|
+
"lazy-imports>=1.0.0"
|
|
20
21
|
]
|
|
21
22
|
classifiers = [
|
|
22
23
|
"Programming Language :: Python :: 3",
|
{asteroid_odyssey-1.3.2 → asteroid_odyssey-1.3.3}/src/asteroid_odyssey/agents_v2_gen/__init__.py
RENAMED
|
@@ -57,10 +57,67 @@ __all__ = [
|
|
|
57
57
|
"ExecutionStatus",
|
|
58
58
|
"ExecutionTerminalPayload",
|
|
59
59
|
"ExecutionUserMessagesAddTextBody",
|
|
60
|
+
"File",
|
|
60
61
|
"Versions",
|
|
61
62
|
]
|
|
62
63
|
|
|
63
|
-
|
|
64
|
+
if __import__("typing").TYPE_CHECKING:
|
|
65
|
+
# import apis into sdk package
|
|
66
|
+
from asteroid_odyssey.agents_v2_gen.api.execution_api import ExecutionApi as ExecutionApi
|
|
67
|
+
|
|
68
|
+
# import ApiClient
|
|
69
|
+
from asteroid_odyssey.agents_v2_gen.api_response import ApiResponse as ApiResponse
|
|
70
|
+
from asteroid_odyssey.agents_v2_gen.api_client import ApiClient as ApiClient
|
|
71
|
+
from asteroid_odyssey.agents_v2_gen.configuration import Configuration as Configuration
|
|
72
|
+
from asteroid_odyssey.agents_v2_gen.exceptions import OpenApiException as OpenApiException
|
|
73
|
+
from asteroid_odyssey.agents_v2_gen.exceptions import ApiTypeError as ApiTypeError
|
|
74
|
+
from asteroid_odyssey.agents_v2_gen.exceptions import ApiValueError as ApiValueError
|
|
75
|
+
from asteroid_odyssey.agents_v2_gen.exceptions import ApiKeyError as ApiKeyError
|
|
76
|
+
from asteroid_odyssey.agents_v2_gen.exceptions import ApiAttributeError as ApiAttributeError
|
|
77
|
+
from asteroid_odyssey.agents_v2_gen.exceptions import ApiException as ApiException
|
|
78
|
+
|
|
79
|
+
# import models into sdk package
|
|
80
|
+
from asteroid_odyssey.agents_v2_gen.models.activity_payload_union_action_completed import ActivityPayloadUnionActionCompleted as ActivityPayloadUnionActionCompleted
|
|
81
|
+
from asteroid_odyssey.agents_v2_gen.models.activity_payload_union_action_failed import ActivityPayloadUnionActionFailed as ActivityPayloadUnionActionFailed
|
|
82
|
+
from asteroid_odyssey.agents_v2_gen.models.activity_payload_union_action_started import ActivityPayloadUnionActionStarted as ActivityPayloadUnionActionStarted
|
|
83
|
+
from asteroid_odyssey.agents_v2_gen.models.activity_payload_union_generic import ActivityPayloadUnionGeneric as ActivityPayloadUnionGeneric
|
|
84
|
+
from asteroid_odyssey.agents_v2_gen.models.activity_payload_union_status_changed import ActivityPayloadUnionStatusChanged as ActivityPayloadUnionStatusChanged
|
|
85
|
+
from asteroid_odyssey.agents_v2_gen.models.activity_payload_union_step_completed import ActivityPayloadUnionStepCompleted as ActivityPayloadUnionStepCompleted
|
|
86
|
+
from asteroid_odyssey.agents_v2_gen.models.activity_payload_union_step_started import ActivityPayloadUnionStepStarted as ActivityPayloadUnionStepStarted
|
|
87
|
+
from asteroid_odyssey.agents_v2_gen.models.activity_payload_union_terminal import ActivityPayloadUnionTerminal as ActivityPayloadUnionTerminal
|
|
88
|
+
from asteroid_odyssey.agents_v2_gen.models.activity_payload_union_transitioned_node import ActivityPayloadUnionTransitionedNode as ActivityPayloadUnionTransitionedNode
|
|
89
|
+
from asteroid_odyssey.agents_v2_gen.models.activity_payload_union_user_message_received import ActivityPayloadUnionUserMessageReceived as ActivityPayloadUnionUserMessageReceived
|
|
90
|
+
from asteroid_odyssey.agents_v2_gen.models.error import Error as Error
|
|
91
|
+
from asteroid_odyssey.agents_v2_gen.models.execution_activity import ExecutionActivity as ExecutionActivity
|
|
92
|
+
from asteroid_odyssey.agents_v2_gen.models.execution_activity_action_completed_payload import ExecutionActivityActionCompletedPayload as ExecutionActivityActionCompletedPayload
|
|
93
|
+
from asteroid_odyssey.agents_v2_gen.models.execution_activity_action_failed_payload import ExecutionActivityActionFailedPayload as ExecutionActivityActionFailedPayload
|
|
94
|
+
from asteroid_odyssey.agents_v2_gen.models.execution_activity_action_started_payload import ExecutionActivityActionStartedPayload as ExecutionActivityActionStartedPayload
|
|
95
|
+
from asteroid_odyssey.agents_v2_gen.models.execution_activity_generic_payload import ExecutionActivityGenericPayload as ExecutionActivityGenericPayload
|
|
96
|
+
from asteroid_odyssey.agents_v2_gen.models.execution_activity_payload_union import ExecutionActivityPayloadUnion as ExecutionActivityPayloadUnion
|
|
97
|
+
from asteroid_odyssey.agents_v2_gen.models.execution_activity_status_changed_payload import ExecutionActivityStatusChangedPayload as ExecutionActivityStatusChangedPayload
|
|
98
|
+
from asteroid_odyssey.agents_v2_gen.models.execution_activity_step_completed_payload import ExecutionActivityStepCompletedPayload as ExecutionActivityStepCompletedPayload
|
|
99
|
+
from asteroid_odyssey.agents_v2_gen.models.execution_activity_step_started_payload import ExecutionActivityStepStartedPayload as ExecutionActivityStepStartedPayload
|
|
100
|
+
from asteroid_odyssey.agents_v2_gen.models.execution_activity_transitioned_node_payload import ExecutionActivityTransitionedNodePayload as ExecutionActivityTransitionedNodePayload
|
|
101
|
+
from asteroid_odyssey.agents_v2_gen.models.execution_activity_user_message_received_payload import ExecutionActivityUserMessageReceivedPayload as ExecutionActivityUserMessageReceivedPayload
|
|
102
|
+
from asteroid_odyssey.agents_v2_gen.models.execution_awaiting_confirmation_payload import ExecutionAwaitingConfirmationPayload as ExecutionAwaitingConfirmationPayload
|
|
103
|
+
from asteroid_odyssey.agents_v2_gen.models.execution_completed_payload import ExecutionCompletedPayload as ExecutionCompletedPayload
|
|
104
|
+
from asteroid_odyssey.agents_v2_gen.models.execution_failed_payload import ExecutionFailedPayload as ExecutionFailedPayload
|
|
105
|
+
from asteroid_odyssey.agents_v2_gen.models.execution_paused_payload import ExecutionPausedPayload as ExecutionPausedPayload
|
|
106
|
+
from asteroid_odyssey.agents_v2_gen.models.execution_status import ExecutionStatus as ExecutionStatus
|
|
107
|
+
from asteroid_odyssey.agents_v2_gen.models.execution_terminal_payload import ExecutionTerminalPayload as ExecutionTerminalPayload
|
|
108
|
+
from asteroid_odyssey.agents_v2_gen.models.execution_user_messages_add_text_body import ExecutionUserMessagesAddTextBody as ExecutionUserMessagesAddTextBody
|
|
109
|
+
from asteroid_odyssey.agents_v2_gen.models.file import File as File
|
|
110
|
+
from asteroid_odyssey.agents_v2_gen.models.versions import Versions as Versions
|
|
111
|
+
|
|
112
|
+
else:
|
|
113
|
+
from lazy_imports import LazyModule, as_package, load
|
|
114
|
+
|
|
115
|
+
load(
|
|
116
|
+
LazyModule(
|
|
117
|
+
*as_package(__file__),
|
|
118
|
+
("__version__", __version__),
|
|
119
|
+
("__all__", __all__),
|
|
120
|
+
"""# import apis into sdk package
|
|
64
121
|
from asteroid_odyssey.agents_v2_gen.api.execution_api import ExecutionApi as ExecutionApi
|
|
65
122
|
|
|
66
123
|
# import ApiClient
|
|
@@ -104,4 +161,11 @@ from asteroid_odyssey.agents_v2_gen.models.execution_paused_payload import Execu
|
|
|
104
161
|
from asteroid_odyssey.agents_v2_gen.models.execution_status import ExecutionStatus as ExecutionStatus
|
|
105
162
|
from asteroid_odyssey.agents_v2_gen.models.execution_terminal_payload import ExecutionTerminalPayload as ExecutionTerminalPayload
|
|
106
163
|
from asteroid_odyssey.agents_v2_gen.models.execution_user_messages_add_text_body import ExecutionUserMessagesAddTextBody as ExecutionUserMessagesAddTextBody
|
|
164
|
+
from asteroid_odyssey.agents_v2_gen.models.file import File as File
|
|
107
165
|
from asteroid_odyssey.agents_v2_gen.models.versions import Versions as Versions
|
|
166
|
+
|
|
167
|
+
""",
|
|
168
|
+
name=__name__,
|
|
169
|
+
doc=__doc__,
|
|
170
|
+
)
|
|
171
|
+
)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# flake8: noqa
|
|
2
|
+
|
|
3
|
+
if __import__("typing").TYPE_CHECKING:
|
|
4
|
+
# import apis into api package
|
|
5
|
+
from asteroid_odyssey.agents_v2_gen.api.execution_api import ExecutionApi
|
|
6
|
+
|
|
7
|
+
else:
|
|
8
|
+
from lazy_imports import LazyModule, as_package, load
|
|
9
|
+
|
|
10
|
+
load(
|
|
11
|
+
LazyModule(
|
|
12
|
+
*as_package(__file__),
|
|
13
|
+
"""# import apis into api package
|
|
14
|
+
from asteroid_odyssey.agents_v2_gen.api.execution_api import ExecutionApi
|
|
15
|
+
|
|
16
|
+
""",
|
|
17
|
+
name=__name__,
|
|
18
|
+
doc=__doc__,
|
|
19
|
+
)
|
|
20
|
+
)
|
|
@@ -19,8 +19,10 @@ from typing_extensions import Annotated
|
|
|
19
19
|
from pydantic import Field, StrictInt, StrictStr, field_validator
|
|
20
20
|
from typing import List, Optional
|
|
21
21
|
from typing_extensions import Annotated
|
|
22
|
+
from uuid import UUID
|
|
22
23
|
from asteroid_odyssey.agents_v2_gen.models.execution_activity import ExecutionActivity
|
|
23
24
|
from asteroid_odyssey.agents_v2_gen.models.execution_user_messages_add_text_body import ExecutionUserMessagesAddTextBody
|
|
25
|
+
from asteroid_odyssey.agents_v2_gen.models.file import File
|
|
24
26
|
|
|
25
27
|
from asteroid_odyssey.agents_v2_gen.api_client import ApiClient, RequestSerialized
|
|
26
28
|
from asteroid_odyssey.agents_v2_gen.api_response import ApiResponse
|
|
@@ -43,7 +45,7 @@ class ExecutionApi:
|
|
|
43
45
|
@validate_call
|
|
44
46
|
def activities_get(
|
|
45
47
|
self,
|
|
46
|
-
execution_id: Annotated[
|
|
48
|
+
execution_id: Annotated[UUID, Field(description="The unique identifier of the execution")],
|
|
47
49
|
order: Annotated[Optional[StrictStr], Field(description="Sort order for activities by timestamp")] = None,
|
|
48
50
|
limit: Annotated[Optional[StrictInt], Field(description="Maximum number of activities to return")] = None,
|
|
49
51
|
_request_timeout: Union[
|
|
@@ -118,7 +120,7 @@ class ExecutionApi:
|
|
|
118
120
|
@validate_call
|
|
119
121
|
def activities_get_with_http_info(
|
|
120
122
|
self,
|
|
121
|
-
execution_id: Annotated[
|
|
123
|
+
execution_id: Annotated[UUID, Field(description="The unique identifier of the execution")],
|
|
122
124
|
order: Annotated[Optional[StrictStr], Field(description="Sort order for activities by timestamp")] = None,
|
|
123
125
|
limit: Annotated[Optional[StrictInt], Field(description="Maximum number of activities to return")] = None,
|
|
124
126
|
_request_timeout: Union[
|
|
@@ -193,7 +195,7 @@ class ExecutionApi:
|
|
|
193
195
|
@validate_call
|
|
194
196
|
def activities_get_without_preload_content(
|
|
195
197
|
self,
|
|
196
|
-
execution_id: Annotated[
|
|
198
|
+
execution_id: Annotated[UUID, Field(description="The unique identifier of the execution")],
|
|
197
199
|
order: Annotated[Optional[StrictStr], Field(description="Sort order for activities by timestamp")] = None,
|
|
198
200
|
limit: Annotated[Optional[StrictInt], Field(description="Maximum number of activities to return")] = None,
|
|
199
201
|
_request_timeout: Union[
|
|
@@ -335,10 +337,272 @@ class ExecutionApi:
|
|
|
335
337
|
|
|
336
338
|
|
|
337
339
|
|
|
340
|
+
@validate_call
|
|
341
|
+
def context_files_get(
|
|
342
|
+
self,
|
|
343
|
+
execution_id: UUID,
|
|
344
|
+
_request_timeout: Union[
|
|
345
|
+
None,
|
|
346
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
347
|
+
Tuple[
|
|
348
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
349
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
350
|
+
]
|
|
351
|
+
] = None,
|
|
352
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
353
|
+
_content_type: Optional[StrictStr] = None,
|
|
354
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
355
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
356
|
+
) -> List[File]:
|
|
357
|
+
"""context_files_get
|
|
358
|
+
|
|
359
|
+
|
|
360
|
+
:param execution_id: (required)
|
|
361
|
+
:type execution_id: str
|
|
362
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
363
|
+
number provided, it will be total request
|
|
364
|
+
timeout. It can also be a pair (tuple) of
|
|
365
|
+
(connection, read) timeouts.
|
|
366
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
367
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
368
|
+
request; this effectively ignores the
|
|
369
|
+
authentication in the spec for a single request.
|
|
370
|
+
:type _request_auth: dict, optional
|
|
371
|
+
:param _content_type: force content-type for the request.
|
|
372
|
+
:type _content_type: str, Optional
|
|
373
|
+
:param _headers: set to override the headers for a single
|
|
374
|
+
request; this effectively ignores the headers
|
|
375
|
+
in the spec for a single request.
|
|
376
|
+
:type _headers: dict, optional
|
|
377
|
+
:param _host_index: set to override the host_index for a single
|
|
378
|
+
request; this effectively ignores the host_index
|
|
379
|
+
in the spec for a single request.
|
|
380
|
+
:type _host_index: int, optional
|
|
381
|
+
:return: Returns the result object.
|
|
382
|
+
""" # noqa: E501
|
|
383
|
+
|
|
384
|
+
_param = self._context_files_get_serialize(
|
|
385
|
+
execution_id=execution_id,
|
|
386
|
+
_request_auth=_request_auth,
|
|
387
|
+
_content_type=_content_type,
|
|
388
|
+
_headers=_headers,
|
|
389
|
+
_host_index=_host_index
|
|
390
|
+
)
|
|
391
|
+
|
|
392
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
393
|
+
'200': "List[File]",
|
|
394
|
+
'404': "str",
|
|
395
|
+
}
|
|
396
|
+
response_data = self.api_client.call_api(
|
|
397
|
+
*_param,
|
|
398
|
+
_request_timeout=_request_timeout
|
|
399
|
+
)
|
|
400
|
+
response_data.read()
|
|
401
|
+
return self.api_client.response_deserialize(
|
|
402
|
+
response_data=response_data,
|
|
403
|
+
response_types_map=_response_types_map,
|
|
404
|
+
).data
|
|
405
|
+
|
|
406
|
+
|
|
407
|
+
@validate_call
|
|
408
|
+
def context_files_get_with_http_info(
|
|
409
|
+
self,
|
|
410
|
+
execution_id: UUID,
|
|
411
|
+
_request_timeout: Union[
|
|
412
|
+
None,
|
|
413
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
414
|
+
Tuple[
|
|
415
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
416
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
417
|
+
]
|
|
418
|
+
] = None,
|
|
419
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
420
|
+
_content_type: Optional[StrictStr] = None,
|
|
421
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
422
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
423
|
+
) -> ApiResponse[List[File]]:
|
|
424
|
+
"""context_files_get
|
|
425
|
+
|
|
426
|
+
|
|
427
|
+
:param execution_id: (required)
|
|
428
|
+
:type execution_id: str
|
|
429
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
430
|
+
number provided, it will be total request
|
|
431
|
+
timeout. It can also be a pair (tuple) of
|
|
432
|
+
(connection, read) timeouts.
|
|
433
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
434
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
435
|
+
request; this effectively ignores the
|
|
436
|
+
authentication in the spec for a single request.
|
|
437
|
+
:type _request_auth: dict, optional
|
|
438
|
+
:param _content_type: force content-type for the request.
|
|
439
|
+
:type _content_type: str, Optional
|
|
440
|
+
:param _headers: set to override the headers for a single
|
|
441
|
+
request; this effectively ignores the headers
|
|
442
|
+
in the spec for a single request.
|
|
443
|
+
:type _headers: dict, optional
|
|
444
|
+
:param _host_index: set to override the host_index for a single
|
|
445
|
+
request; this effectively ignores the host_index
|
|
446
|
+
in the spec for a single request.
|
|
447
|
+
:type _host_index: int, optional
|
|
448
|
+
:return: Returns the result object.
|
|
449
|
+
""" # noqa: E501
|
|
450
|
+
|
|
451
|
+
_param = self._context_files_get_serialize(
|
|
452
|
+
execution_id=execution_id,
|
|
453
|
+
_request_auth=_request_auth,
|
|
454
|
+
_content_type=_content_type,
|
|
455
|
+
_headers=_headers,
|
|
456
|
+
_host_index=_host_index
|
|
457
|
+
)
|
|
458
|
+
|
|
459
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
460
|
+
'200': "List[File]",
|
|
461
|
+
'404': "str",
|
|
462
|
+
}
|
|
463
|
+
response_data = self.api_client.call_api(
|
|
464
|
+
*_param,
|
|
465
|
+
_request_timeout=_request_timeout
|
|
466
|
+
)
|
|
467
|
+
response_data.read()
|
|
468
|
+
return self.api_client.response_deserialize(
|
|
469
|
+
response_data=response_data,
|
|
470
|
+
response_types_map=_response_types_map,
|
|
471
|
+
)
|
|
472
|
+
|
|
473
|
+
|
|
474
|
+
@validate_call
|
|
475
|
+
def context_files_get_without_preload_content(
|
|
476
|
+
self,
|
|
477
|
+
execution_id: UUID,
|
|
478
|
+
_request_timeout: Union[
|
|
479
|
+
None,
|
|
480
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
481
|
+
Tuple[
|
|
482
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
483
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
484
|
+
]
|
|
485
|
+
] = None,
|
|
486
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
487
|
+
_content_type: Optional[StrictStr] = None,
|
|
488
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
489
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
490
|
+
) -> RESTResponseType:
|
|
491
|
+
"""context_files_get
|
|
492
|
+
|
|
493
|
+
|
|
494
|
+
:param execution_id: (required)
|
|
495
|
+
:type execution_id: str
|
|
496
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
497
|
+
number provided, it will be total request
|
|
498
|
+
timeout. It can also be a pair (tuple) of
|
|
499
|
+
(connection, read) timeouts.
|
|
500
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
501
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
502
|
+
request; this effectively ignores the
|
|
503
|
+
authentication in the spec for a single request.
|
|
504
|
+
:type _request_auth: dict, optional
|
|
505
|
+
:param _content_type: force content-type for the request.
|
|
506
|
+
:type _content_type: str, Optional
|
|
507
|
+
:param _headers: set to override the headers for a single
|
|
508
|
+
request; this effectively ignores the headers
|
|
509
|
+
in the spec for a single request.
|
|
510
|
+
:type _headers: dict, optional
|
|
511
|
+
:param _host_index: set to override the host_index for a single
|
|
512
|
+
request; this effectively ignores the host_index
|
|
513
|
+
in the spec for a single request.
|
|
514
|
+
:type _host_index: int, optional
|
|
515
|
+
:return: Returns the result object.
|
|
516
|
+
""" # noqa: E501
|
|
517
|
+
|
|
518
|
+
_param = self._context_files_get_serialize(
|
|
519
|
+
execution_id=execution_id,
|
|
520
|
+
_request_auth=_request_auth,
|
|
521
|
+
_content_type=_content_type,
|
|
522
|
+
_headers=_headers,
|
|
523
|
+
_host_index=_host_index
|
|
524
|
+
)
|
|
525
|
+
|
|
526
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
527
|
+
'200': "List[File]",
|
|
528
|
+
'404': "str",
|
|
529
|
+
}
|
|
530
|
+
response_data = self.api_client.call_api(
|
|
531
|
+
*_param,
|
|
532
|
+
_request_timeout=_request_timeout
|
|
533
|
+
)
|
|
534
|
+
return response_data.response
|
|
535
|
+
|
|
536
|
+
|
|
537
|
+
def _context_files_get_serialize(
|
|
538
|
+
self,
|
|
539
|
+
execution_id,
|
|
540
|
+
_request_auth,
|
|
541
|
+
_content_type,
|
|
542
|
+
_headers,
|
|
543
|
+
_host_index,
|
|
544
|
+
) -> RequestSerialized:
|
|
545
|
+
|
|
546
|
+
_host = None
|
|
547
|
+
|
|
548
|
+
_collection_formats: Dict[str, str] = {
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
_path_params: Dict[str, str] = {}
|
|
552
|
+
_query_params: List[Tuple[str, str]] = []
|
|
553
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
554
|
+
_form_params: List[Tuple[str, str]] = []
|
|
555
|
+
_files: Dict[
|
|
556
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
557
|
+
] = {}
|
|
558
|
+
_body_params: Optional[bytes] = None
|
|
559
|
+
|
|
560
|
+
# process the path parameters
|
|
561
|
+
if execution_id is not None:
|
|
562
|
+
_path_params['executionId'] = execution_id
|
|
563
|
+
# process the query parameters
|
|
564
|
+
# process the header parameters
|
|
565
|
+
# process the form parameters
|
|
566
|
+
# process the body parameter
|
|
567
|
+
|
|
568
|
+
|
|
569
|
+
# set the HTTP header `Accept`
|
|
570
|
+
if 'Accept' not in _header_params:
|
|
571
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
572
|
+
[
|
|
573
|
+
'application/json',
|
|
574
|
+
'text/plain'
|
|
575
|
+
]
|
|
576
|
+
)
|
|
577
|
+
|
|
578
|
+
|
|
579
|
+
# authentication setting
|
|
580
|
+
_auth_settings: List[str] = [
|
|
581
|
+
'ApiKeyAuth'
|
|
582
|
+
]
|
|
583
|
+
|
|
584
|
+
return self.api_client.param_serialize(
|
|
585
|
+
method='GET',
|
|
586
|
+
resource_path='/executions/{executionId}/context-files',
|
|
587
|
+
path_params=_path_params,
|
|
588
|
+
query_params=_query_params,
|
|
589
|
+
header_params=_header_params,
|
|
590
|
+
body=_body_params,
|
|
591
|
+
post_params=_form_params,
|
|
592
|
+
files=_files,
|
|
593
|
+
auth_settings=_auth_settings,
|
|
594
|
+
collection_formats=_collection_formats,
|
|
595
|
+
_host=_host,
|
|
596
|
+
_request_auth=_request_auth
|
|
597
|
+
)
|
|
598
|
+
|
|
599
|
+
|
|
600
|
+
|
|
601
|
+
|
|
338
602
|
@validate_call
|
|
339
603
|
def user_messages_add(
|
|
340
604
|
self,
|
|
341
|
-
execution_id: Annotated[
|
|
605
|
+
execution_id: Annotated[UUID, Field(description="The unique identifier of the execution")],
|
|
342
606
|
execution_user_messages_add_text_body: Annotated[ExecutionUserMessagesAddTextBody, Field(description="The message content to send")],
|
|
343
607
|
_request_timeout: Union[
|
|
344
608
|
None,
|
|
@@ -409,7 +673,7 @@ class ExecutionApi:
|
|
|
409
673
|
@validate_call
|
|
410
674
|
def user_messages_add_with_http_info(
|
|
411
675
|
self,
|
|
412
|
-
execution_id: Annotated[
|
|
676
|
+
execution_id: Annotated[UUID, Field(description="The unique identifier of the execution")],
|
|
413
677
|
execution_user_messages_add_text_body: Annotated[ExecutionUserMessagesAddTextBody, Field(description="The message content to send")],
|
|
414
678
|
_request_timeout: Union[
|
|
415
679
|
None,
|
|
@@ -480,7 +744,7 @@ class ExecutionApi:
|
|
|
480
744
|
@validate_call
|
|
481
745
|
def user_messages_add_without_preload_content(
|
|
482
746
|
self,
|
|
483
|
-
execution_id: Annotated[
|
|
747
|
+
execution_id: Annotated[UUID, Field(description="The unique identifier of the execution")],
|
|
484
748
|
execution_user_messages_add_text_body: Annotated[ExecutionUserMessagesAddTextBody, Field(description="The message content to send")],
|
|
485
749
|
_request_timeout: Union[
|
|
486
750
|
None,
|
{asteroid_odyssey-1.3.2 → asteroid_odyssey-1.3.3}/src/asteroid_odyssey/agents_v2_gen/api_client.py
RENAMED
|
@@ -21,6 +21,7 @@ import mimetypes
|
|
|
21
21
|
import os
|
|
22
22
|
import re
|
|
23
23
|
import tempfile
|
|
24
|
+
import uuid
|
|
24
25
|
|
|
25
26
|
from urllib.parse import quote
|
|
26
27
|
from typing import Tuple, Optional, List, Dict, Union
|
|
@@ -356,6 +357,8 @@ class ApiClient:
|
|
|
356
357
|
return obj.get_secret_value()
|
|
357
358
|
elif isinstance(obj, self.PRIMITIVE_TYPES):
|
|
358
359
|
return obj
|
|
360
|
+
elif isinstance(obj, uuid.UUID):
|
|
361
|
+
return str(obj)
|
|
359
362
|
elif isinstance(obj, list):
|
|
360
363
|
return [
|
|
361
364
|
self.sanitize_for_serialization(sub_obj) for sub_obj in obj
|
|
@@ -408,7 +411,7 @@ class ApiClient:
|
|
|
408
411
|
data = json.loads(response_text)
|
|
409
412
|
except ValueError:
|
|
410
413
|
data = response_text
|
|
411
|
-
elif re.match(r'^application/(json|[\w
|
|
414
|
+
elif re.match(r'^application/(json|[\w!#$&.+\-^_]+\+json)\s*(;|$)', content_type, re.IGNORECASE):
|
|
412
415
|
if response_text == "":
|
|
413
416
|
data = ""
|
|
414
417
|
else:
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
# flake8: noqa
|
|
4
|
+
"""
|
|
5
|
+
Agent Service
|
|
6
|
+
|
|
7
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
8
|
+
|
|
9
|
+
The version of the OpenAPI document: v2
|
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
|
+
|
|
12
|
+
Do not edit the class manually.
|
|
13
|
+
""" # noqa: E501
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
if __import__("typing").TYPE_CHECKING:
|
|
17
|
+
# import models into model package
|
|
18
|
+
from asteroid_odyssey.agents_v2_gen.models.activity_payload_union_action_completed import ActivityPayloadUnionActionCompleted
|
|
19
|
+
from asteroid_odyssey.agents_v2_gen.models.activity_payload_union_action_failed import ActivityPayloadUnionActionFailed
|
|
20
|
+
from asteroid_odyssey.agents_v2_gen.models.activity_payload_union_action_started import ActivityPayloadUnionActionStarted
|
|
21
|
+
from asteroid_odyssey.agents_v2_gen.models.activity_payload_union_generic import ActivityPayloadUnionGeneric
|
|
22
|
+
from asteroid_odyssey.agents_v2_gen.models.activity_payload_union_status_changed import ActivityPayloadUnionStatusChanged
|
|
23
|
+
from asteroid_odyssey.agents_v2_gen.models.activity_payload_union_step_completed import ActivityPayloadUnionStepCompleted
|
|
24
|
+
from asteroid_odyssey.agents_v2_gen.models.activity_payload_union_step_started import ActivityPayloadUnionStepStarted
|
|
25
|
+
from asteroid_odyssey.agents_v2_gen.models.activity_payload_union_terminal import ActivityPayloadUnionTerminal
|
|
26
|
+
from asteroid_odyssey.agents_v2_gen.models.activity_payload_union_transitioned_node import ActivityPayloadUnionTransitionedNode
|
|
27
|
+
from asteroid_odyssey.agents_v2_gen.models.activity_payload_union_user_message_received import ActivityPayloadUnionUserMessageReceived
|
|
28
|
+
from asteroid_odyssey.agents_v2_gen.models.error import Error
|
|
29
|
+
from asteroid_odyssey.agents_v2_gen.models.execution_activity import ExecutionActivity
|
|
30
|
+
from asteroid_odyssey.agents_v2_gen.models.execution_activity_action_completed_payload import ExecutionActivityActionCompletedPayload
|
|
31
|
+
from asteroid_odyssey.agents_v2_gen.models.execution_activity_action_failed_payload import ExecutionActivityActionFailedPayload
|
|
32
|
+
from asteroid_odyssey.agents_v2_gen.models.execution_activity_action_started_payload import ExecutionActivityActionStartedPayload
|
|
33
|
+
from asteroid_odyssey.agents_v2_gen.models.execution_activity_generic_payload import ExecutionActivityGenericPayload
|
|
34
|
+
from asteroid_odyssey.agents_v2_gen.models.execution_activity_payload_union import ExecutionActivityPayloadUnion
|
|
35
|
+
from asteroid_odyssey.agents_v2_gen.models.execution_activity_status_changed_payload import ExecutionActivityStatusChangedPayload
|
|
36
|
+
from asteroid_odyssey.agents_v2_gen.models.execution_activity_step_completed_payload import ExecutionActivityStepCompletedPayload
|
|
37
|
+
from asteroid_odyssey.agents_v2_gen.models.execution_activity_step_started_payload import ExecutionActivityStepStartedPayload
|
|
38
|
+
from asteroid_odyssey.agents_v2_gen.models.execution_activity_transitioned_node_payload import ExecutionActivityTransitionedNodePayload
|
|
39
|
+
from asteroid_odyssey.agents_v2_gen.models.execution_activity_user_message_received_payload import ExecutionActivityUserMessageReceivedPayload
|
|
40
|
+
from asteroid_odyssey.agents_v2_gen.models.execution_awaiting_confirmation_payload import ExecutionAwaitingConfirmationPayload
|
|
41
|
+
from asteroid_odyssey.agents_v2_gen.models.execution_completed_payload import ExecutionCompletedPayload
|
|
42
|
+
from asteroid_odyssey.agents_v2_gen.models.execution_failed_payload import ExecutionFailedPayload
|
|
43
|
+
from asteroid_odyssey.agents_v2_gen.models.execution_paused_payload import ExecutionPausedPayload
|
|
44
|
+
from asteroid_odyssey.agents_v2_gen.models.execution_status import ExecutionStatus
|
|
45
|
+
from asteroid_odyssey.agents_v2_gen.models.execution_terminal_payload import ExecutionTerminalPayload
|
|
46
|
+
from asteroid_odyssey.agents_v2_gen.models.execution_user_messages_add_text_body import ExecutionUserMessagesAddTextBody
|
|
47
|
+
from asteroid_odyssey.agents_v2_gen.models.file import File
|
|
48
|
+
from asteroid_odyssey.agents_v2_gen.models.versions import Versions
|
|
49
|
+
|
|
50
|
+
else:
|
|
51
|
+
from lazy_imports import LazyModule, as_package, load
|
|
52
|
+
|
|
53
|
+
load(
|
|
54
|
+
LazyModule(
|
|
55
|
+
*as_package(__file__),
|
|
56
|
+
"""# import models into model package
|
|
57
|
+
from asteroid_odyssey.agents_v2_gen.models.activity_payload_union_action_completed import ActivityPayloadUnionActionCompleted
|
|
58
|
+
from asteroid_odyssey.agents_v2_gen.models.activity_payload_union_action_failed import ActivityPayloadUnionActionFailed
|
|
59
|
+
from asteroid_odyssey.agents_v2_gen.models.activity_payload_union_action_started import ActivityPayloadUnionActionStarted
|
|
60
|
+
from asteroid_odyssey.agents_v2_gen.models.activity_payload_union_generic import ActivityPayloadUnionGeneric
|
|
61
|
+
from asteroid_odyssey.agents_v2_gen.models.activity_payload_union_status_changed import ActivityPayloadUnionStatusChanged
|
|
62
|
+
from asteroid_odyssey.agents_v2_gen.models.activity_payload_union_step_completed import ActivityPayloadUnionStepCompleted
|
|
63
|
+
from asteroid_odyssey.agents_v2_gen.models.activity_payload_union_step_started import ActivityPayloadUnionStepStarted
|
|
64
|
+
from asteroid_odyssey.agents_v2_gen.models.activity_payload_union_terminal import ActivityPayloadUnionTerminal
|
|
65
|
+
from asteroid_odyssey.agents_v2_gen.models.activity_payload_union_transitioned_node import ActivityPayloadUnionTransitionedNode
|
|
66
|
+
from asteroid_odyssey.agents_v2_gen.models.activity_payload_union_user_message_received import ActivityPayloadUnionUserMessageReceived
|
|
67
|
+
from asteroid_odyssey.agents_v2_gen.models.error import Error
|
|
68
|
+
from asteroid_odyssey.agents_v2_gen.models.execution_activity import ExecutionActivity
|
|
69
|
+
from asteroid_odyssey.agents_v2_gen.models.execution_activity_action_completed_payload import ExecutionActivityActionCompletedPayload
|
|
70
|
+
from asteroid_odyssey.agents_v2_gen.models.execution_activity_action_failed_payload import ExecutionActivityActionFailedPayload
|
|
71
|
+
from asteroid_odyssey.agents_v2_gen.models.execution_activity_action_started_payload import ExecutionActivityActionStartedPayload
|
|
72
|
+
from asteroid_odyssey.agents_v2_gen.models.execution_activity_generic_payload import ExecutionActivityGenericPayload
|
|
73
|
+
from asteroid_odyssey.agents_v2_gen.models.execution_activity_payload_union import ExecutionActivityPayloadUnion
|
|
74
|
+
from asteroid_odyssey.agents_v2_gen.models.execution_activity_status_changed_payload import ExecutionActivityStatusChangedPayload
|
|
75
|
+
from asteroid_odyssey.agents_v2_gen.models.execution_activity_step_completed_payload import ExecutionActivityStepCompletedPayload
|
|
76
|
+
from asteroid_odyssey.agents_v2_gen.models.execution_activity_step_started_payload import ExecutionActivityStepStartedPayload
|
|
77
|
+
from asteroid_odyssey.agents_v2_gen.models.execution_activity_transitioned_node_payload import ExecutionActivityTransitionedNodePayload
|
|
78
|
+
from asteroid_odyssey.agents_v2_gen.models.execution_activity_user_message_received_payload import ExecutionActivityUserMessageReceivedPayload
|
|
79
|
+
from asteroid_odyssey.agents_v2_gen.models.execution_awaiting_confirmation_payload import ExecutionAwaitingConfirmationPayload
|
|
80
|
+
from asteroid_odyssey.agents_v2_gen.models.execution_completed_payload import ExecutionCompletedPayload
|
|
81
|
+
from asteroid_odyssey.agents_v2_gen.models.execution_failed_payload import ExecutionFailedPayload
|
|
82
|
+
from asteroid_odyssey.agents_v2_gen.models.execution_paused_payload import ExecutionPausedPayload
|
|
83
|
+
from asteroid_odyssey.agents_v2_gen.models.execution_status import ExecutionStatus
|
|
84
|
+
from asteroid_odyssey.agents_v2_gen.models.execution_terminal_payload import ExecutionTerminalPayload
|
|
85
|
+
from asteroid_odyssey.agents_v2_gen.models.execution_user_messages_add_text_body import ExecutionUserMessagesAddTextBody
|
|
86
|
+
from asteroid_odyssey.agents_v2_gen.models.file import File
|
|
87
|
+
from asteroid_odyssey.agents_v2_gen.models.versions import Versions
|
|
88
|
+
|
|
89
|
+
""",
|
|
90
|
+
name=__name__,
|
|
91
|
+
doc=__doc__,
|
|
92
|
+
)
|
|
93
|
+
)
|
|
@@ -18,8 +18,9 @@ import re # noqa: F401
|
|
|
18
18
|
import json
|
|
19
19
|
|
|
20
20
|
from datetime import datetime
|
|
21
|
-
from pydantic import BaseModel, ConfigDict, Field
|
|
21
|
+
from pydantic import BaseModel, ConfigDict, Field
|
|
22
22
|
from typing import Any, ClassVar, Dict, List
|
|
23
|
+
from uuid import UUID
|
|
23
24
|
from asteroid_odyssey.agents_v2_gen.models.execution_activity_payload_union import ExecutionActivityPayloadUnion
|
|
24
25
|
from typing import Optional, Set
|
|
25
26
|
from typing_extensions import Self
|
|
@@ -28,8 +29,8 @@ class ExecutionActivity(BaseModel):
|
|
|
28
29
|
"""
|
|
29
30
|
ExecutionActivity
|
|
30
31
|
""" # noqa: E501
|
|
31
|
-
execution_id:
|
|
32
|
-
id:
|
|
32
|
+
execution_id: UUID = Field(alias="executionId")
|
|
33
|
+
id: UUID
|
|
33
34
|
payload: ExecutionActivityPayloadUnion
|
|
34
35
|
timestamp: datetime
|
|
35
36
|
__properties: ClassVar[List[str]] = ["executionId", "id", "payload", "timestamp"]
|
|
@@ -19,6 +19,7 @@ import json
|
|
|
19
19
|
|
|
20
20
|
from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
|
21
21
|
from typing import Any, ClassVar, Dict, List
|
|
22
|
+
from uuid import UUID
|
|
22
23
|
from typing import Optional, Set
|
|
23
24
|
from typing_extensions import Self
|
|
24
25
|
|
|
@@ -27,7 +28,7 @@ class ExecutionActivityTransitionedNodePayload(BaseModel):
|
|
|
27
28
|
ExecutionActivityTransitionedNodePayload
|
|
28
29
|
""" # noqa: E501
|
|
29
30
|
new_node_name: StrictStr = Field(alias="newNodeName")
|
|
30
|
-
new_node_uuid:
|
|
31
|
+
new_node_uuid: UUID = Field(alias="newNodeUUID")
|
|
31
32
|
__properties: ClassVar[List[str]] = ["newNodeName", "newNodeUUID"]
|
|
32
33
|
|
|
33
34
|
model_config = ConfigDict(
|
|
@@ -19,6 +19,7 @@ import json
|
|
|
19
19
|
|
|
20
20
|
from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
|
21
21
|
from typing import Any, ClassVar, Dict, List
|
|
22
|
+
from uuid import UUID
|
|
22
23
|
from typing import Optional, Set
|
|
23
24
|
from typing_extensions import Self
|
|
24
25
|
|
|
@@ -27,7 +28,7 @@ class ExecutionActivityUserMessageReceivedPayload(BaseModel):
|
|
|
27
28
|
ExecutionActivityUserMessageReceivedPayload
|
|
28
29
|
""" # noqa: E501
|
|
29
30
|
message: StrictStr
|
|
30
|
-
user_uuid:
|
|
31
|
+
user_uuid: UUID = Field(alias="userUUID")
|
|
31
32
|
__properties: ClassVar[List[str]] = ["message", "userUUID"]
|
|
32
33
|
|
|
33
34
|
model_config = ConfigDict(
|