asteroid-odyssey 1.3.7__py3-none-any.whl → 1.3.8__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 +4 -2
- asteroid_odyssey/agents_v1_gen/__init__.py +0 -1
- asteroid_odyssey/agents_v1_gen/api/execution_api.py +26 -311
- asteroid_odyssey/agents_v1_gen/models/__init__.py +0 -1
- asteroid_odyssey/agents_v1_gen/models/agent_profile.py +1 -3
- asteroid_odyssey/agents_v1_gen/models/create_agent_profile_request.py +1 -3
- asteroid_odyssey/agents_v1_gen/models/proxy_type.py +1 -0
- asteroid_odyssey/agents_v1_gen/models/update_agent_profile_request.py +1 -3
- asteroid_odyssey/agents_v2_gen/__init__.py +53 -15
- asteroid_odyssey/agents_v2_gen/api/__init__.py +3 -1
- asteroid_odyssey/agents_v2_gen/api/agents_api.py +684 -0
- asteroid_odyssey/agents_v2_gen/api/{default_api.py → execution_api.py} +381 -479
- asteroid_odyssey/agents_v2_gen/api/files_api.py +895 -0
- asteroid_odyssey/agents_v2_gen/models/__init__.py +50 -14
- asteroid_odyssey/agents_v2_gen/models/agents_agent_execute_agent_request.py +103 -0
- asteroid_odyssey/{agents_v1_gen/models/upload_execution_files200_response.py → agents_v2_gen/models/agents_agent_execute_agent_response.py} +11 -13
- asteroid_odyssey/agents_v2_gen/models/agents_execution_action_name.py +93 -0
- asteroid_odyssey/agents_v2_gen/models/agents_execution_activity_action_completed_info.py +350 -0
- asteroid_odyssey/agents_v2_gen/models/agents_execution_activity_action_completed_payload.py +25 -3
- asteroid_odyssey/agents_v2_gen/models/agents_execution_activity_action_failed_payload.py +19 -3
- asteroid_odyssey/agents_v2_gen/models/agents_execution_activity_action_started_info.py +252 -0
- asteroid_odyssey/agents_v2_gen/models/agents_execution_activity_action_started_payload.py +23 -3
- asteroid_odyssey/agents_v2_gen/models/agents_execution_activity_file_added_payload.py +10 -1
- asteroid_odyssey/agents_v2_gen/models/agents_execution_activity_generic_payload.py +11 -2
- asteroid_odyssey/agents_v2_gen/models/agents_execution_activity_payload_union.py +132 -104
- asteroid_odyssey/agents_v2_gen/models/agents_execution_activity_playwright_script_generated_payload.py +114 -0
- asteroid_odyssey/agents_v2_gen/models/{activity_payload_union_terminal.py → agents_execution_activity_reasoning_payload.py} +9 -13
- asteroid_odyssey/agents_v2_gen/models/agents_execution_activity_status_changed_payload.py +11 -2
- asteroid_odyssey/agents_v2_gen/models/agents_execution_activity_step_completed_payload.py +11 -2
- asteroid_odyssey/agents_v2_gen/models/agents_execution_activity_step_started_payload.py +11 -2
- asteroid_odyssey/agents_v2_gen/models/agents_execution_activity_transitioned_node_payload.py +20 -4
- asteroid_odyssey/agents_v2_gen/models/agents_execution_activity_user_message_received_payload.py +11 -2
- asteroid_odyssey/agents_v2_gen/models/{activity_payload_union_action_started.py → agents_execution_activity_workflow_updated_payload.py} +17 -13
- asteroid_odyssey/agents_v2_gen/models/agents_execution_comment.py +100 -0
- asteroid_odyssey/agents_v2_gen/models/agents_execution_completed_payload.py +4 -11
- asteroid_odyssey/agents_v2_gen/models/agents_execution_element_file_upload_completed_details.py +96 -0
- asteroid_odyssey/agents_v2_gen/models/agents_execution_execution_result.py +103 -0
- asteroid_odyssey/agents_v2_gen/models/agents_execution_ext_api_call_completed_details.py +102 -0
- asteroid_odyssey/agents_v2_gen/models/agents_execution_ext_get_mail_completed_details.py +98 -0
- asteroid_odyssey/agents_v2_gen/models/agents_execution_failed_payload.py +8 -2
- asteroid_odyssey/agents_v2_gen/models/{activity_payload_union_file_added.py → agents_execution_file_list_completed_details.py} +13 -17
- asteroid_odyssey/agents_v2_gen/models/agents_execution_file_read_completed_details.py +100 -0
- asteroid_odyssey/agents_v2_gen/models/agents_execution_file_stage_completed_details.py +96 -0
- asteroid_odyssey/agents_v2_gen/models/agents_execution_human_label.py +96 -0
- asteroid_odyssey/agents_v2_gen/models/agents_execution_list_item.py +141 -0
- asteroid_odyssey/agents_v2_gen/models/agents_execution_llm_call_purpose.py +40 -0
- asteroid_odyssey/agents_v2_gen/models/agents_execution_llm_call_started_details.py +97 -0
- asteroid_odyssey/agents_v2_gen/models/agents_execution_nav_to_completed_details.py +96 -0
- asteroid_odyssey/agents_v2_gen/models/agents_execution_nav_to_started_details.py +96 -0
- asteroid_odyssey/agents_v2_gen/models/agents_execution_obs_snapshot_with_selectors_completed_details.py +98 -0
- asteroid_odyssey/agents_v2_gen/models/agents_execution_rules_details.py +87 -0
- asteroid_odyssey/agents_v2_gen/models/agents_execution_scratchpad_read_completed_details.py +98 -0
- asteroid_odyssey/agents_v2_gen/models/{activity_payload_union_generic.py → agents_execution_scratchpad_read_started_details.py} +20 -17
- asteroid_odyssey/agents_v2_gen/models/agents_execution_scratchpad_write_completed_details.py +104 -0
- asteroid_odyssey/agents_v2_gen/models/{activity_payload_union_step_started.py → agents_execution_scratchpad_write_started_details.py} +20 -17
- asteroid_odyssey/agents_v2_gen/models/agents_execution_script_hybrid_playwright_completed_details.py +102 -0
- asteroid_odyssey/agents_v2_gen/models/agents_execution_script_hybrid_playwright_started_details.py +96 -0
- asteroid_odyssey/agents_v2_gen/models/agents_execution_script_pad_run_function_completed_details.py +102 -0
- asteroid_odyssey/agents_v2_gen/models/agents_execution_script_playwright_completed_details.py +102 -0
- asteroid_odyssey/agents_v2_gen/models/agents_execution_script_playwright_started_details.py +96 -0
- asteroid_odyssey/agents_v2_gen/models/agents_execution_scriptpad_read_completed_details.py +96 -0
- asteroid_odyssey/agents_v2_gen/models/agents_execution_scriptpad_read_started_details.py +98 -0
- asteroid_odyssey/agents_v2_gen/models/{activity_payload_union_action_completed.py → agents_execution_scriptpad_run_function_started_details.py} +21 -18
- asteroid_odyssey/agents_v2_gen/models/agents_execution_scriptpad_search_replace_completed_details.py +106 -0
- asteroid_odyssey/agents_v2_gen/models/agents_execution_scriptpad_search_replace_started_details.py +100 -0
- asteroid_odyssey/agents_v2_gen/models/agents_execution_scriptpad_write_completed_details.py +102 -0
- asteroid_odyssey/agents_v2_gen/models/agents_execution_sort_field.py +37 -0
- asteroid_odyssey/agents_v2_gen/models/agents_execution_terminal_payload.py +11 -2
- asteroid_odyssey/agents_v2_gen/models/{activity_payload_union_action_failed.py → agents_execution_util_get_datetime_completed_details.py} +20 -19
- asteroid_odyssey/agents_v2_gen/models/agents_execution_util_get_datetime_started_details.py +96 -0
- asteroid_odyssey/agents_v2_gen/models/{agents_execution_graph_update.py → agents_execution_workflow_update.py} +11 -5
- asteroid_odyssey/agents_v2_gen/models/agents_files_temp_file.py +89 -0
- asteroid_odyssey/agents_v2_gen/models/{agents_execution_activity_graph_updated_payload.py → agents_files_temp_files_response.py} +14 -14
- asteroid_odyssey/agents_v2_gen/models/agents_graph_models_nodes_properties_playwright_script_llm_var.py +92 -0
- asteroid_odyssey/agents_v2_gen/models/agents_graph_models_nodes_properties_playwright_script_llm_var_type.py +38 -0
- asteroid_odyssey/agents_v2_gen/models/agents_graph_models_transitions_transition_type.py +38 -0
- asteroid_odyssey/agents_v2_gen/models/common_os_error.py +87 -0
- asteroid_odyssey/agents_v2_gen/models/executions_list200_response.py +101 -0
- asteroid_odyssey/client.py +204 -33
- {asteroid_odyssey-1.3.7.dist-info → asteroid_odyssey-1.3.8.dist-info}/METADATA +1 -1
- asteroid_odyssey-1.3.8.dist-info/RECORD +132 -0
- asteroid_odyssey/agents_v2_gen/models/activity_payload_union_graph_updated.py +0 -100
- asteroid_odyssey/agents_v2_gen/models/activity_payload_union_status_changed.py +0 -100
- asteroid_odyssey/agents_v2_gen/models/activity_payload_union_step_completed.py +0 -100
- asteroid_odyssey/agents_v2_gen/models/activity_payload_union_transitioned_node.py +0 -100
- asteroid_odyssey/agents_v2_gen/models/activity_payload_union_user_message_received.py +0 -100
- asteroid_odyssey-1.3.7.dist-info/RECORD +0 -95
- {asteroid_odyssey-1.3.7.dist-info → asteroid_odyssey-1.3.8.dist-info}/WHEEL +0 -0
- {asteroid_odyssey-1.3.7.dist-info → asteroid_odyssey-1.3.8.dist-info}/top_level.txt +0 -0
|
@@ -17,25 +17,27 @@ import pprint
|
|
|
17
17
|
import re # noqa: F401
|
|
18
18
|
import json
|
|
19
19
|
|
|
20
|
-
from
|
|
20
|
+
from datetime import datetime
|
|
21
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator
|
|
21
22
|
from typing import Any, ClassVar, Dict, List
|
|
22
|
-
from asteroid_odyssey.agents_v2_gen.models.agents_execution_activity_action_failed_payload import AgentsExecutionActivityActionFailedPayload
|
|
23
23
|
from typing import Optional, Set
|
|
24
24
|
from typing_extensions import Self
|
|
25
25
|
|
|
26
|
-
class
|
|
26
|
+
class AgentsExecutionUtilGetDatetimeCompletedDetails(BaseModel):
|
|
27
27
|
"""
|
|
28
|
-
|
|
28
|
+
AgentsExecutionUtilGetDatetimeCompletedDetails
|
|
29
29
|
""" # noqa: E501
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
30
|
+
action_name: StrictStr = Field(alias="actionName")
|
|
31
|
+
datetime: datetime
|
|
32
|
+
tz_timezone_identifier: StrictStr = Field(alias="tzTimezoneIdentifier")
|
|
33
|
+
used_browser_timezone: StrictBool = Field(alias="usedBrowserTimezone")
|
|
34
|
+
__properties: ClassVar[List[str]] = ["actionName", "datetime", "tzTimezoneIdentifier", "usedBrowserTimezone"]
|
|
35
|
+
|
|
36
|
+
@field_validator('action_name')
|
|
37
|
+
def action_name_validate_enum(cls, value):
|
|
36
38
|
"""Validates the enum"""
|
|
37
|
-
if value not in set(['
|
|
38
|
-
raise ValueError("must be one of enum values ('
|
|
39
|
+
if value not in set(['util_get_datetime']):
|
|
40
|
+
raise ValueError("must be one of enum values ('util_get_datetime')")
|
|
39
41
|
return value
|
|
40
42
|
|
|
41
43
|
model_config = ConfigDict(
|
|
@@ -56,7 +58,7 @@ class ActivityPayloadUnionActionFailed(BaseModel):
|
|
|
56
58
|
|
|
57
59
|
@classmethod
|
|
58
60
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
59
|
-
"""Create an instance of
|
|
61
|
+
"""Create an instance of AgentsExecutionUtilGetDatetimeCompletedDetails from a JSON string"""
|
|
60
62
|
return cls.from_dict(json.loads(json_str))
|
|
61
63
|
|
|
62
64
|
def to_dict(self) -> Dict[str, Any]:
|
|
@@ -77,14 +79,11 @@ class ActivityPayloadUnionActionFailed(BaseModel):
|
|
|
77
79
|
exclude=excluded_fields,
|
|
78
80
|
exclude_none=True,
|
|
79
81
|
)
|
|
80
|
-
# override the default output from pydantic by calling `to_dict()` of data
|
|
81
|
-
if self.data:
|
|
82
|
-
_dict['data'] = self.data.to_dict()
|
|
83
82
|
return _dict
|
|
84
83
|
|
|
85
84
|
@classmethod
|
|
86
85
|
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
87
|
-
"""Create an instance of
|
|
86
|
+
"""Create an instance of AgentsExecutionUtilGetDatetimeCompletedDetails from a dict"""
|
|
88
87
|
if obj is None:
|
|
89
88
|
return None
|
|
90
89
|
|
|
@@ -92,8 +91,10 @@ class ActivityPayloadUnionActionFailed(BaseModel):
|
|
|
92
91
|
return cls.model_validate(obj)
|
|
93
92
|
|
|
94
93
|
_obj = cls.model_validate({
|
|
95
|
-
"
|
|
96
|
-
"
|
|
94
|
+
"actionName": obj.get("actionName"),
|
|
95
|
+
"datetime": obj.get("datetime"),
|
|
96
|
+
"tzTimezoneIdentifier": obj.get("tzTimezoneIdentifier"),
|
|
97
|
+
"usedBrowserTimezone": obj.get("usedBrowserTimezone")
|
|
97
98
|
})
|
|
98
99
|
return _obj
|
|
99
100
|
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Agent Service
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: v1
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import pprint
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import json
|
|
19
|
+
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
|
|
21
|
+
from typing import Any, ClassVar, Dict, List
|
|
22
|
+
from typing import Optional, Set
|
|
23
|
+
from typing_extensions import Self
|
|
24
|
+
|
|
25
|
+
class AgentsExecutionUtilGetDatetimeStartedDetails(BaseModel):
|
|
26
|
+
"""
|
|
27
|
+
AgentsExecutionUtilGetDatetimeStartedDetails
|
|
28
|
+
""" # noqa: E501
|
|
29
|
+
action_name: StrictStr = Field(alias="actionName")
|
|
30
|
+
tz_timezone_identifier: StrictStr = Field(alias="tzTimezoneIdentifier")
|
|
31
|
+
__properties: ClassVar[List[str]] = ["actionName", "tzTimezoneIdentifier"]
|
|
32
|
+
|
|
33
|
+
@field_validator('action_name')
|
|
34
|
+
def action_name_validate_enum(cls, value):
|
|
35
|
+
"""Validates the enum"""
|
|
36
|
+
if value not in set(['util_get_datetime']):
|
|
37
|
+
raise ValueError("must be one of enum values ('util_get_datetime')")
|
|
38
|
+
return value
|
|
39
|
+
|
|
40
|
+
model_config = ConfigDict(
|
|
41
|
+
populate_by_name=True,
|
|
42
|
+
validate_assignment=True,
|
|
43
|
+
protected_namespaces=(),
|
|
44
|
+
)
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
def to_str(self) -> str:
|
|
48
|
+
"""Returns the string representation of the model using alias"""
|
|
49
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
50
|
+
|
|
51
|
+
def to_json(self) -> str:
|
|
52
|
+
"""Returns the JSON representation of the model using alias"""
|
|
53
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
54
|
+
return json.dumps(self.to_dict())
|
|
55
|
+
|
|
56
|
+
@classmethod
|
|
57
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
58
|
+
"""Create an instance of AgentsExecutionUtilGetDatetimeStartedDetails from a JSON string"""
|
|
59
|
+
return cls.from_dict(json.loads(json_str))
|
|
60
|
+
|
|
61
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
62
|
+
"""Return the dictionary representation of the model using alias.
|
|
63
|
+
|
|
64
|
+
This has the following differences from calling pydantic's
|
|
65
|
+
`self.model_dump(by_alias=True)`:
|
|
66
|
+
|
|
67
|
+
* `None` is only added to the output dict for nullable fields that
|
|
68
|
+
were set at model initialization. Other fields with value `None`
|
|
69
|
+
are ignored.
|
|
70
|
+
"""
|
|
71
|
+
excluded_fields: Set[str] = set([
|
|
72
|
+
])
|
|
73
|
+
|
|
74
|
+
_dict = self.model_dump(
|
|
75
|
+
by_alias=True,
|
|
76
|
+
exclude=excluded_fields,
|
|
77
|
+
exclude_none=True,
|
|
78
|
+
)
|
|
79
|
+
return _dict
|
|
80
|
+
|
|
81
|
+
@classmethod
|
|
82
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
83
|
+
"""Create an instance of AgentsExecutionUtilGetDatetimeStartedDetails from a dict"""
|
|
84
|
+
if obj is None:
|
|
85
|
+
return None
|
|
86
|
+
|
|
87
|
+
if not isinstance(obj, dict):
|
|
88
|
+
return cls.model_validate(obj)
|
|
89
|
+
|
|
90
|
+
_obj = cls.model_validate({
|
|
91
|
+
"actionName": obj.get("actionName"),
|
|
92
|
+
"tzTimezoneIdentifier": obj.get("tzTimezoneIdentifier")
|
|
93
|
+
})
|
|
94
|
+
return _obj
|
|
95
|
+
|
|
96
|
+
|
|
@@ -20,19 +20,21 @@ import json
|
|
|
20
20
|
from pydantic import BaseModel, ConfigDict, Field
|
|
21
21
|
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
22
|
from asteroid_odyssey.agents_v2_gen.models.agents_execution_node_details import AgentsExecutionNodeDetails
|
|
23
|
+
from asteroid_odyssey.agents_v2_gen.models.agents_execution_rules_details import AgentsExecutionRulesDetails
|
|
23
24
|
from asteroid_odyssey.agents_v2_gen.models.agents_execution_transition_details import AgentsExecutionTransitionDetails
|
|
24
25
|
from asteroid_odyssey.agents_v2_gen.models.agents_execution_update_type import AgentsExecutionUpdateType
|
|
25
26
|
from typing import Optional, Set
|
|
26
27
|
from typing_extensions import Self
|
|
27
28
|
|
|
28
|
-
class
|
|
29
|
+
class AgentsExecutionWorkflowUpdate(BaseModel):
|
|
29
30
|
"""
|
|
30
|
-
|
|
31
|
+
AgentsExecutionWorkflowUpdate
|
|
31
32
|
""" # noqa: E501
|
|
32
33
|
node_details: Optional[AgentsExecutionNodeDetails] = Field(default=None, alias="nodeDetails")
|
|
34
|
+
rules_details: Optional[AgentsExecutionRulesDetails] = Field(default=None, alias="rulesDetails")
|
|
33
35
|
transition_details: Optional[AgentsExecutionTransitionDetails] = Field(default=None, alias="transitionDetails")
|
|
34
36
|
update_type: AgentsExecutionUpdateType = Field(alias="updateType")
|
|
35
|
-
__properties: ClassVar[List[str]] = ["nodeDetails", "transitionDetails", "updateType"]
|
|
37
|
+
__properties: ClassVar[List[str]] = ["nodeDetails", "rulesDetails", "transitionDetails", "updateType"]
|
|
36
38
|
|
|
37
39
|
model_config = ConfigDict(
|
|
38
40
|
populate_by_name=True,
|
|
@@ -52,7 +54,7 @@ class AgentsExecutionGraphUpdate(BaseModel):
|
|
|
52
54
|
|
|
53
55
|
@classmethod
|
|
54
56
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
55
|
-
"""Create an instance of
|
|
57
|
+
"""Create an instance of AgentsExecutionWorkflowUpdate from a JSON string"""
|
|
56
58
|
return cls.from_dict(json.loads(json_str))
|
|
57
59
|
|
|
58
60
|
def to_dict(self) -> Dict[str, Any]:
|
|
@@ -76,6 +78,9 @@ class AgentsExecutionGraphUpdate(BaseModel):
|
|
|
76
78
|
# override the default output from pydantic by calling `to_dict()` of node_details
|
|
77
79
|
if self.node_details:
|
|
78
80
|
_dict['nodeDetails'] = self.node_details.to_dict()
|
|
81
|
+
# override the default output from pydantic by calling `to_dict()` of rules_details
|
|
82
|
+
if self.rules_details:
|
|
83
|
+
_dict['rulesDetails'] = self.rules_details.to_dict()
|
|
79
84
|
# override the default output from pydantic by calling `to_dict()` of transition_details
|
|
80
85
|
if self.transition_details:
|
|
81
86
|
_dict['transitionDetails'] = self.transition_details.to_dict()
|
|
@@ -83,7 +88,7 @@ class AgentsExecutionGraphUpdate(BaseModel):
|
|
|
83
88
|
|
|
84
89
|
@classmethod
|
|
85
90
|
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
86
|
-
"""Create an instance of
|
|
91
|
+
"""Create an instance of AgentsExecutionWorkflowUpdate from a dict"""
|
|
87
92
|
if obj is None:
|
|
88
93
|
return None
|
|
89
94
|
|
|
@@ -92,6 +97,7 @@ class AgentsExecutionGraphUpdate(BaseModel):
|
|
|
92
97
|
|
|
93
98
|
_obj = cls.model_validate({
|
|
94
99
|
"nodeDetails": AgentsExecutionNodeDetails.from_dict(obj["nodeDetails"]) if obj.get("nodeDetails") is not None else None,
|
|
100
|
+
"rulesDetails": AgentsExecutionRulesDetails.from_dict(obj["rulesDetails"]) if obj.get("rulesDetails") is not None else None,
|
|
95
101
|
"transitionDetails": AgentsExecutionTransitionDetails.from_dict(obj["transitionDetails"]) if obj.get("transitionDetails") is not None else None,
|
|
96
102
|
"updateType": obj.get("updateType")
|
|
97
103
|
})
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Agent Service
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: v1
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import pprint
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import json
|
|
19
|
+
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, StrictStr
|
|
21
|
+
from typing import Any, ClassVar, Dict, List
|
|
22
|
+
from typing import Optional, Set
|
|
23
|
+
from typing_extensions import Self
|
|
24
|
+
|
|
25
|
+
class AgentsFilesTempFile(BaseModel):
|
|
26
|
+
"""
|
|
27
|
+
AgentsFilesTempFile
|
|
28
|
+
""" # noqa: E501
|
|
29
|
+
id: StrictStr
|
|
30
|
+
name: StrictStr
|
|
31
|
+
__properties: ClassVar[List[str]] = ["id", "name"]
|
|
32
|
+
|
|
33
|
+
model_config = ConfigDict(
|
|
34
|
+
populate_by_name=True,
|
|
35
|
+
validate_assignment=True,
|
|
36
|
+
protected_namespaces=(),
|
|
37
|
+
)
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
def to_str(self) -> str:
|
|
41
|
+
"""Returns the string representation of the model using alias"""
|
|
42
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
43
|
+
|
|
44
|
+
def to_json(self) -> str:
|
|
45
|
+
"""Returns the JSON representation of the model using alias"""
|
|
46
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
47
|
+
return json.dumps(self.to_dict())
|
|
48
|
+
|
|
49
|
+
@classmethod
|
|
50
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
51
|
+
"""Create an instance of AgentsFilesTempFile from a JSON string"""
|
|
52
|
+
return cls.from_dict(json.loads(json_str))
|
|
53
|
+
|
|
54
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
55
|
+
"""Return the dictionary representation of the model using alias.
|
|
56
|
+
|
|
57
|
+
This has the following differences from calling pydantic's
|
|
58
|
+
`self.model_dump(by_alias=True)`:
|
|
59
|
+
|
|
60
|
+
* `None` is only added to the output dict for nullable fields that
|
|
61
|
+
were set at model initialization. Other fields with value `None`
|
|
62
|
+
are ignored.
|
|
63
|
+
"""
|
|
64
|
+
excluded_fields: Set[str] = set([
|
|
65
|
+
])
|
|
66
|
+
|
|
67
|
+
_dict = self.model_dump(
|
|
68
|
+
by_alias=True,
|
|
69
|
+
exclude=excluded_fields,
|
|
70
|
+
exclude_none=True,
|
|
71
|
+
)
|
|
72
|
+
return _dict
|
|
73
|
+
|
|
74
|
+
@classmethod
|
|
75
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
76
|
+
"""Create an instance of AgentsFilesTempFile from a dict"""
|
|
77
|
+
if obj is None:
|
|
78
|
+
return None
|
|
79
|
+
|
|
80
|
+
if not isinstance(obj, dict):
|
|
81
|
+
return cls.model_validate(obj)
|
|
82
|
+
|
|
83
|
+
_obj = cls.model_validate({
|
|
84
|
+
"id": obj.get("id"),
|
|
85
|
+
"name": obj.get("name")
|
|
86
|
+
})
|
|
87
|
+
return _obj
|
|
88
|
+
|
|
89
|
+
|
|
@@ -19,16 +19,16 @@ import json
|
|
|
19
19
|
|
|
20
20
|
from pydantic import BaseModel, ConfigDict, Field
|
|
21
21
|
from typing import Any, ClassVar, Dict, List
|
|
22
|
-
from asteroid_odyssey.agents_v2_gen.models.
|
|
22
|
+
from asteroid_odyssey.agents_v2_gen.models.agents_files_temp_file import AgentsFilesTempFile
|
|
23
23
|
from typing import Optional, Set
|
|
24
24
|
from typing_extensions import Self
|
|
25
25
|
|
|
26
|
-
class
|
|
26
|
+
class AgentsFilesTempFilesResponse(BaseModel):
|
|
27
27
|
"""
|
|
28
|
-
|
|
28
|
+
AgentsFilesTempFilesResponse
|
|
29
29
|
""" # noqa: E501
|
|
30
|
-
|
|
31
|
-
__properties: ClassVar[List[str]] = ["
|
|
30
|
+
temp_files: List[AgentsFilesTempFile] = Field(alias="tempFiles")
|
|
31
|
+
__properties: ClassVar[List[str]] = ["tempFiles"]
|
|
32
32
|
|
|
33
33
|
model_config = ConfigDict(
|
|
34
34
|
populate_by_name=True,
|
|
@@ -48,7 +48,7 @@ class AgentsExecutionActivityGraphUpdatedPayload(BaseModel):
|
|
|
48
48
|
|
|
49
49
|
@classmethod
|
|
50
50
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
51
|
-
"""Create an instance of
|
|
51
|
+
"""Create an instance of AgentsFilesTempFilesResponse from a JSON string"""
|
|
52
52
|
return cls.from_dict(json.loads(json_str))
|
|
53
53
|
|
|
54
54
|
def to_dict(self) -> Dict[str, Any]:
|
|
@@ -69,18 +69,18 @@ class AgentsExecutionActivityGraphUpdatedPayload(BaseModel):
|
|
|
69
69
|
exclude=excluded_fields,
|
|
70
70
|
exclude_none=True,
|
|
71
71
|
)
|
|
72
|
-
# override the default output from pydantic by calling `to_dict()` of each item in
|
|
72
|
+
# override the default output from pydantic by calling `to_dict()` of each item in temp_files (list)
|
|
73
73
|
_items = []
|
|
74
|
-
if self.
|
|
75
|
-
for
|
|
76
|
-
if
|
|
77
|
-
_items.append(
|
|
78
|
-
_dict['
|
|
74
|
+
if self.temp_files:
|
|
75
|
+
for _item_temp_files in self.temp_files:
|
|
76
|
+
if _item_temp_files:
|
|
77
|
+
_items.append(_item_temp_files.to_dict())
|
|
78
|
+
_dict['tempFiles'] = _items
|
|
79
79
|
return _dict
|
|
80
80
|
|
|
81
81
|
@classmethod
|
|
82
82
|
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
83
|
-
"""Create an instance of
|
|
83
|
+
"""Create an instance of AgentsFilesTempFilesResponse from a dict"""
|
|
84
84
|
if obj is None:
|
|
85
85
|
return None
|
|
86
86
|
|
|
@@ -88,7 +88,7 @@ class AgentsExecutionActivityGraphUpdatedPayload(BaseModel):
|
|
|
88
88
|
return cls.model_validate(obj)
|
|
89
89
|
|
|
90
90
|
_obj = cls.model_validate({
|
|
91
|
-
"
|
|
91
|
+
"tempFiles": [AgentsFilesTempFile.from_dict(_item) for _item in obj["tempFiles"]] if obj.get("tempFiles") is not None else None
|
|
92
92
|
})
|
|
93
93
|
return _obj
|
|
94
94
|
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Agent Service
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: v1
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import pprint
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import json
|
|
19
|
+
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, StrictStr
|
|
21
|
+
from typing import Any, ClassVar, Dict, List
|
|
22
|
+
from asteroid_odyssey.agents_v2_gen.models.agents_graph_models_nodes_properties_playwright_script_llm_var_type import AgentsGraphModelsNodesPropertiesPlaywrightScriptLLMVarType
|
|
23
|
+
from typing import Optional, Set
|
|
24
|
+
from typing_extensions import Self
|
|
25
|
+
|
|
26
|
+
class AgentsGraphModelsNodesPropertiesPlaywrightScriptLLMVar(BaseModel):
|
|
27
|
+
"""
|
|
28
|
+
AgentsGraphModelsNodesPropertiesPlaywrightScriptLLMVar
|
|
29
|
+
""" # noqa: E501
|
|
30
|
+
description: StrictStr
|
|
31
|
+
name: StrictStr
|
|
32
|
+
type: AgentsGraphModelsNodesPropertiesPlaywrightScriptLLMVarType
|
|
33
|
+
__properties: ClassVar[List[str]] = ["description", "name", "type"]
|
|
34
|
+
|
|
35
|
+
model_config = ConfigDict(
|
|
36
|
+
populate_by_name=True,
|
|
37
|
+
validate_assignment=True,
|
|
38
|
+
protected_namespaces=(),
|
|
39
|
+
)
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
def to_str(self) -> str:
|
|
43
|
+
"""Returns the string representation of the model using alias"""
|
|
44
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
45
|
+
|
|
46
|
+
def to_json(self) -> str:
|
|
47
|
+
"""Returns the JSON representation of the model using alias"""
|
|
48
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
49
|
+
return json.dumps(self.to_dict())
|
|
50
|
+
|
|
51
|
+
@classmethod
|
|
52
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
53
|
+
"""Create an instance of AgentsGraphModelsNodesPropertiesPlaywrightScriptLLMVar from a JSON string"""
|
|
54
|
+
return cls.from_dict(json.loads(json_str))
|
|
55
|
+
|
|
56
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
57
|
+
"""Return the dictionary representation of the model using alias.
|
|
58
|
+
|
|
59
|
+
This has the following differences from calling pydantic's
|
|
60
|
+
`self.model_dump(by_alias=True)`:
|
|
61
|
+
|
|
62
|
+
* `None` is only added to the output dict for nullable fields that
|
|
63
|
+
were set at model initialization. Other fields with value `None`
|
|
64
|
+
are ignored.
|
|
65
|
+
"""
|
|
66
|
+
excluded_fields: Set[str] = set([
|
|
67
|
+
])
|
|
68
|
+
|
|
69
|
+
_dict = self.model_dump(
|
|
70
|
+
by_alias=True,
|
|
71
|
+
exclude=excluded_fields,
|
|
72
|
+
exclude_none=True,
|
|
73
|
+
)
|
|
74
|
+
return _dict
|
|
75
|
+
|
|
76
|
+
@classmethod
|
|
77
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
78
|
+
"""Create an instance of AgentsGraphModelsNodesPropertiesPlaywrightScriptLLMVar from a dict"""
|
|
79
|
+
if obj is None:
|
|
80
|
+
return None
|
|
81
|
+
|
|
82
|
+
if not isinstance(obj, dict):
|
|
83
|
+
return cls.model_validate(obj)
|
|
84
|
+
|
|
85
|
+
_obj = cls.model_validate({
|
|
86
|
+
"description": obj.get("description"),
|
|
87
|
+
"name": obj.get("name"),
|
|
88
|
+
"type": obj.get("type")
|
|
89
|
+
})
|
|
90
|
+
return _obj
|
|
91
|
+
|
|
92
|
+
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Agent Service
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: v1
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import json
|
|
17
|
+
from enum import Enum
|
|
18
|
+
from typing_extensions import Self
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class AgentsGraphModelsNodesPropertiesPlaywrightScriptLLMVarType(str, Enum):
|
|
22
|
+
"""
|
|
23
|
+
AgentsGraphModelsNodesPropertiesPlaywrightScriptLLMVarType
|
|
24
|
+
"""
|
|
25
|
+
|
|
26
|
+
"""
|
|
27
|
+
allowed enum values
|
|
28
|
+
"""
|
|
29
|
+
STRING = 'string'
|
|
30
|
+
NUMBER = 'number'
|
|
31
|
+
BOOLEAN = 'boolean'
|
|
32
|
+
|
|
33
|
+
@classmethod
|
|
34
|
+
def from_json(cls, json_str: str) -> Self:
|
|
35
|
+
"""Create an instance of AgentsGraphModelsNodesPropertiesPlaywrightScriptLLMVarType from a JSON string"""
|
|
36
|
+
return cls(json.loads(json_str))
|
|
37
|
+
|
|
38
|
+
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Agent Service
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: v1
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import json
|
|
17
|
+
from enum import Enum
|
|
18
|
+
from typing_extensions import Self
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class AgentsGraphModelsTransitionsTransitionType(str, Enum):
|
|
22
|
+
"""
|
|
23
|
+
AgentsGraphModelsTransitionsTransitionType
|
|
24
|
+
"""
|
|
25
|
+
|
|
26
|
+
"""
|
|
27
|
+
allowed enum values
|
|
28
|
+
"""
|
|
29
|
+
IRIS = 'iris'
|
|
30
|
+
SELECTOR = 'selector'
|
|
31
|
+
OUTCOME_SUCCESS = 'outcome_success'
|
|
32
|
+
|
|
33
|
+
@classmethod
|
|
34
|
+
def from_json(cls, json_str: str) -> Self:
|
|
35
|
+
"""Create an instance of AgentsGraphModelsTransitionsTransitionType from a JSON string"""
|
|
36
|
+
return cls(json.loads(json_str))
|
|
37
|
+
|
|
38
|
+
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Agent Service
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: v1
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import pprint
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import json
|
|
19
|
+
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, StrictStr
|
|
21
|
+
from typing import Any, ClassVar, Dict, List
|
|
22
|
+
from typing import Optional, Set
|
|
23
|
+
from typing_extensions import Self
|
|
24
|
+
|
|
25
|
+
class CommonOSError(BaseModel):
|
|
26
|
+
"""
|
|
27
|
+
CommonOSError
|
|
28
|
+
""" # noqa: E501
|
|
29
|
+
message: StrictStr
|
|
30
|
+
__properties: ClassVar[List[str]] = ["message"]
|
|
31
|
+
|
|
32
|
+
model_config = ConfigDict(
|
|
33
|
+
populate_by_name=True,
|
|
34
|
+
validate_assignment=True,
|
|
35
|
+
protected_namespaces=(),
|
|
36
|
+
)
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
def to_str(self) -> str:
|
|
40
|
+
"""Returns the string representation of the model using alias"""
|
|
41
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
42
|
+
|
|
43
|
+
def to_json(self) -> str:
|
|
44
|
+
"""Returns the JSON representation of the model using alias"""
|
|
45
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
46
|
+
return json.dumps(self.to_dict())
|
|
47
|
+
|
|
48
|
+
@classmethod
|
|
49
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
50
|
+
"""Create an instance of CommonOSError from a JSON string"""
|
|
51
|
+
return cls.from_dict(json.loads(json_str))
|
|
52
|
+
|
|
53
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
54
|
+
"""Return the dictionary representation of the model using alias.
|
|
55
|
+
|
|
56
|
+
This has the following differences from calling pydantic's
|
|
57
|
+
`self.model_dump(by_alias=True)`:
|
|
58
|
+
|
|
59
|
+
* `None` is only added to the output dict for nullable fields that
|
|
60
|
+
were set at model initialization. Other fields with value `None`
|
|
61
|
+
are ignored.
|
|
62
|
+
"""
|
|
63
|
+
excluded_fields: Set[str] = set([
|
|
64
|
+
])
|
|
65
|
+
|
|
66
|
+
_dict = self.model_dump(
|
|
67
|
+
by_alias=True,
|
|
68
|
+
exclude=excluded_fields,
|
|
69
|
+
exclude_none=True,
|
|
70
|
+
)
|
|
71
|
+
return _dict
|
|
72
|
+
|
|
73
|
+
@classmethod
|
|
74
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
75
|
+
"""Create an instance of CommonOSError from a dict"""
|
|
76
|
+
if obj is None:
|
|
77
|
+
return None
|
|
78
|
+
|
|
79
|
+
if not isinstance(obj, dict):
|
|
80
|
+
return cls.model_validate(obj)
|
|
81
|
+
|
|
82
|
+
_obj = cls.model_validate({
|
|
83
|
+
"message": obj.get("message")
|
|
84
|
+
})
|
|
85
|
+
return _obj
|
|
86
|
+
|
|
87
|
+
|