asteroid-odyssey 1.3.7__py3-none-any.whl → 1.3.9__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.9.dist-info}/METADATA +1 -1
- asteroid_odyssey-1.3.9.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.9.dist-info}/WHEEL +0 -0
- {asteroid_odyssey-1.3.7.dist-info → asteroid_odyssey-1.3.9.dist-info}/top_level.txt +0 -0
|
@@ -17,7 +17,7 @@ import pprint
|
|
|
17
17
|
import re # noqa: F401
|
|
18
18
|
import json
|
|
19
19
|
|
|
20
|
-
from pydantic import BaseModel, ConfigDict, Field, StrictInt
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator
|
|
21
21
|
from typing import Any, ClassVar, Dict, List
|
|
22
22
|
from typing import Optional, Set
|
|
23
23
|
from typing_extensions import Self
|
|
@@ -26,8 +26,16 @@ class AgentsExecutionActivityStepStartedPayload(BaseModel):
|
|
|
26
26
|
"""
|
|
27
27
|
AgentsExecutionActivityStepStartedPayload
|
|
28
28
|
""" # noqa: E501
|
|
29
|
+
activity_type: StrictStr = Field(alias="activityType")
|
|
29
30
|
step_number: StrictInt = Field(alias="stepNumber")
|
|
30
|
-
__properties: ClassVar[List[str]] = ["stepNumber"]
|
|
31
|
+
__properties: ClassVar[List[str]] = ["activityType", "stepNumber"]
|
|
32
|
+
|
|
33
|
+
@field_validator('activity_type')
|
|
34
|
+
def activity_type_validate_enum(cls, value):
|
|
35
|
+
"""Validates the enum"""
|
|
36
|
+
if value not in set(['step_started']):
|
|
37
|
+
raise ValueError("must be one of enum values ('step_started')")
|
|
38
|
+
return value
|
|
31
39
|
|
|
32
40
|
model_config = ConfigDict(
|
|
33
41
|
populate_by_name=True,
|
|
@@ -80,6 +88,7 @@ class AgentsExecutionActivityStepStartedPayload(BaseModel):
|
|
|
80
88
|
return cls.model_validate(obj)
|
|
81
89
|
|
|
82
90
|
_obj = cls.model_validate({
|
|
91
|
+
"activityType": obj.get("activityType"),
|
|
83
92
|
"stepNumber": obj.get("stepNumber")
|
|
84
93
|
})
|
|
85
94
|
return _obj
|
asteroid_odyssey/agents_v2_gen/models/agents_execution_activity_transitioned_node_payload.py
CHANGED
|
@@ -17,8 +17,9 @@ import pprint
|
|
|
17
17
|
import re # noqa: F401
|
|
18
18
|
import json
|
|
19
19
|
|
|
20
|
-
from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
|
21
|
-
from typing import Any, ClassVar, Dict, List
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator
|
|
21
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
|
+
from asteroid_odyssey.agents_v2_gen.models.agents_graph_models_transitions_transition_type import AgentsGraphModelsTransitionsTransitionType
|
|
22
23
|
from typing import Optional, Set
|
|
23
24
|
from typing_extensions import Self
|
|
24
25
|
|
|
@@ -26,9 +27,20 @@ class AgentsExecutionActivityTransitionedNodePayload(BaseModel):
|
|
|
26
27
|
"""
|
|
27
28
|
AgentsExecutionActivityTransitionedNodePayload
|
|
28
29
|
""" # noqa: E501
|
|
30
|
+
activity_type: StrictStr = Field(alias="activityType")
|
|
31
|
+
from_node_duration: Optional[StrictInt] = Field(default=None, alias="fromNodeDuration")
|
|
29
32
|
new_node_name: StrictStr = Field(alias="newNodeName")
|
|
33
|
+
new_node_type: StrictStr = Field(alias="newNodeType")
|
|
30
34
|
new_node_uuid: StrictStr = Field(alias="newNodeUUID")
|
|
31
|
-
|
|
35
|
+
transition_type: Optional[AgentsGraphModelsTransitionsTransitionType] = Field(default=None, alias="transitionType")
|
|
36
|
+
__properties: ClassVar[List[str]] = ["activityType", "fromNodeDuration", "newNodeName", "newNodeType", "newNodeUUID", "transitionType"]
|
|
37
|
+
|
|
38
|
+
@field_validator('activity_type')
|
|
39
|
+
def activity_type_validate_enum(cls, value):
|
|
40
|
+
"""Validates the enum"""
|
|
41
|
+
if value not in set(['transitioned_node']):
|
|
42
|
+
raise ValueError("must be one of enum values ('transitioned_node')")
|
|
43
|
+
return value
|
|
32
44
|
|
|
33
45
|
model_config = ConfigDict(
|
|
34
46
|
populate_by_name=True,
|
|
@@ -81,8 +93,12 @@ class AgentsExecutionActivityTransitionedNodePayload(BaseModel):
|
|
|
81
93
|
return cls.model_validate(obj)
|
|
82
94
|
|
|
83
95
|
_obj = cls.model_validate({
|
|
96
|
+
"activityType": obj.get("activityType"),
|
|
97
|
+
"fromNodeDuration": obj.get("fromNodeDuration"),
|
|
84
98
|
"newNodeName": obj.get("newNodeName"),
|
|
85
|
-
"
|
|
99
|
+
"newNodeType": obj.get("newNodeType"),
|
|
100
|
+
"newNodeUUID": obj.get("newNodeUUID"),
|
|
101
|
+
"transitionType": obj.get("transitionType")
|
|
86
102
|
})
|
|
87
103
|
return _obj
|
|
88
104
|
|
asteroid_odyssey/agents_v2_gen/models/agents_execution_activity_user_message_received_payload.py
CHANGED
|
@@ -17,7 +17,7 @@ import pprint
|
|
|
17
17
|
import re # noqa: F401
|
|
18
18
|
import json
|
|
19
19
|
|
|
20
|
-
from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
|
|
21
21
|
from typing import Any, ClassVar, Dict, List
|
|
22
22
|
from typing import Optional, Set
|
|
23
23
|
from typing_extensions import Self
|
|
@@ -26,9 +26,17 @@ class AgentsExecutionActivityUserMessageReceivedPayload(BaseModel):
|
|
|
26
26
|
"""
|
|
27
27
|
AgentsExecutionActivityUserMessageReceivedPayload
|
|
28
28
|
""" # noqa: E501
|
|
29
|
+
activity_type: StrictStr = Field(alias="activityType")
|
|
29
30
|
message: StrictStr
|
|
30
31
|
user_uuid: StrictStr = Field(alias="userUUID")
|
|
31
|
-
__properties: ClassVar[List[str]] = ["message", "userUUID"]
|
|
32
|
+
__properties: ClassVar[List[str]] = ["activityType", "message", "userUUID"]
|
|
33
|
+
|
|
34
|
+
@field_validator('activity_type')
|
|
35
|
+
def activity_type_validate_enum(cls, value):
|
|
36
|
+
"""Validates the enum"""
|
|
37
|
+
if value not in set(['user_message_received']):
|
|
38
|
+
raise ValueError("must be one of enum values ('user_message_received')")
|
|
39
|
+
return value
|
|
32
40
|
|
|
33
41
|
model_config = ConfigDict(
|
|
34
42
|
populate_by_name=True,
|
|
@@ -81,6 +89,7 @@ class AgentsExecutionActivityUserMessageReceivedPayload(BaseModel):
|
|
|
81
89
|
return cls.model_validate(obj)
|
|
82
90
|
|
|
83
91
|
_obj = cls.model_validate({
|
|
92
|
+
"activityType": obj.get("activityType"),
|
|
84
93
|
"message": obj.get("message"),
|
|
85
94
|
"userUUID": obj.get("userUUID")
|
|
86
95
|
})
|
|
@@ -19,23 +19,23 @@ import json
|
|
|
19
19
|
|
|
20
20
|
from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
|
|
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_execution_workflow_update import AgentsExecutionWorkflowUpdate
|
|
23
23
|
from typing import Optional, Set
|
|
24
24
|
from typing_extensions import Self
|
|
25
25
|
|
|
26
|
-
class
|
|
26
|
+
class AgentsExecutionActivityWorkflowUpdatedPayload(BaseModel):
|
|
27
27
|
"""
|
|
28
|
-
|
|
28
|
+
AgentsExecutionActivityWorkflowUpdatedPayload
|
|
29
29
|
""" # noqa: E501
|
|
30
30
|
activity_type: StrictStr = Field(alias="activityType")
|
|
31
|
-
|
|
32
|
-
__properties: ClassVar[List[str]] = ["activityType", "
|
|
31
|
+
workflow_update: List[AgentsExecutionWorkflowUpdate] = Field(alias="workflowUpdate")
|
|
32
|
+
__properties: ClassVar[List[str]] = ["activityType", "workflowUpdate"]
|
|
33
33
|
|
|
34
34
|
@field_validator('activity_type')
|
|
35
35
|
def activity_type_validate_enum(cls, value):
|
|
36
36
|
"""Validates the enum"""
|
|
37
|
-
if value not in set(['
|
|
38
|
-
raise ValueError("must be one of enum values ('
|
|
37
|
+
if value not in set(['workflow_updated']):
|
|
38
|
+
raise ValueError("must be one of enum values ('workflow_updated')")
|
|
39
39
|
return value
|
|
40
40
|
|
|
41
41
|
model_config = ConfigDict(
|
|
@@ -56,7 +56,7 @@ class ActivityPayloadUnionActionStarted(BaseModel):
|
|
|
56
56
|
|
|
57
57
|
@classmethod
|
|
58
58
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
59
|
-
"""Create an instance of
|
|
59
|
+
"""Create an instance of AgentsExecutionActivityWorkflowUpdatedPayload from a JSON string"""
|
|
60
60
|
return cls.from_dict(json.loads(json_str))
|
|
61
61
|
|
|
62
62
|
def to_dict(self) -> Dict[str, Any]:
|
|
@@ -77,14 +77,18 @@ class ActivityPayloadUnionActionStarted(BaseModel):
|
|
|
77
77
|
exclude=excluded_fields,
|
|
78
78
|
exclude_none=True,
|
|
79
79
|
)
|
|
80
|
-
# override the default output from pydantic by calling `to_dict()` of
|
|
81
|
-
|
|
82
|
-
|
|
80
|
+
# override the default output from pydantic by calling `to_dict()` of each item in workflow_update (list)
|
|
81
|
+
_items = []
|
|
82
|
+
if self.workflow_update:
|
|
83
|
+
for _item_workflow_update in self.workflow_update:
|
|
84
|
+
if _item_workflow_update:
|
|
85
|
+
_items.append(_item_workflow_update.to_dict())
|
|
86
|
+
_dict['workflowUpdate'] = _items
|
|
83
87
|
return _dict
|
|
84
88
|
|
|
85
89
|
@classmethod
|
|
86
90
|
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
87
|
-
"""Create an instance of
|
|
91
|
+
"""Create an instance of AgentsExecutionActivityWorkflowUpdatedPayload from a dict"""
|
|
88
92
|
if obj is None:
|
|
89
93
|
return None
|
|
90
94
|
|
|
@@ -93,7 +97,7 @@ class ActivityPayloadUnionActionStarted(BaseModel):
|
|
|
93
97
|
|
|
94
98
|
_obj = cls.model_validate({
|
|
95
99
|
"activityType": obj.get("activityType"),
|
|
96
|
-
"
|
|
100
|
+
"workflowUpdate": [AgentsExecutionWorkflowUpdate.from_dict(_item) for _item in obj["workflowUpdate"]] if obj.get("workflowUpdate") is not None else None
|
|
97
101
|
})
|
|
98
102
|
return _obj
|
|
99
103
|
|
|
@@ -0,0 +1,100 @@
|
|
|
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 datetime import datetime
|
|
21
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr
|
|
22
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
23
|
+
from typing import Optional, Set
|
|
24
|
+
from typing_extensions import Self
|
|
25
|
+
|
|
26
|
+
class AgentsExecutionComment(BaseModel):
|
|
27
|
+
"""
|
|
28
|
+
User comment on an execution
|
|
29
|
+
""" # noqa: E501
|
|
30
|
+
content: StrictStr = Field(description="Comment content")
|
|
31
|
+
created_at: datetime = Field(description="When the comment was created", alias="createdAt")
|
|
32
|
+
execution_id: StrictStr = Field(description="Execution this comment belongs to", alias="executionId")
|
|
33
|
+
id: StrictStr = Field(description="Unique identifier for the comment")
|
|
34
|
+
public: StrictBool = Field(description="Whether the comment is public")
|
|
35
|
+
updated_at: Optional[datetime] = Field(default=None, description="When the comment was last updated", alias="updatedAt")
|
|
36
|
+
user_id: StrictStr = Field(description="User who created the comment", alias="userId")
|
|
37
|
+
__properties: ClassVar[List[str]] = ["content", "createdAt", "executionId", "id", "public", "updatedAt", "userId"]
|
|
38
|
+
|
|
39
|
+
model_config = ConfigDict(
|
|
40
|
+
populate_by_name=True,
|
|
41
|
+
validate_assignment=True,
|
|
42
|
+
protected_namespaces=(),
|
|
43
|
+
)
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
def to_str(self) -> str:
|
|
47
|
+
"""Returns the string representation of the model using alias"""
|
|
48
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
49
|
+
|
|
50
|
+
def to_json(self) -> str:
|
|
51
|
+
"""Returns the JSON representation of the model using alias"""
|
|
52
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
53
|
+
return json.dumps(self.to_dict())
|
|
54
|
+
|
|
55
|
+
@classmethod
|
|
56
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
57
|
+
"""Create an instance of AgentsExecutionComment from a JSON string"""
|
|
58
|
+
return cls.from_dict(json.loads(json_str))
|
|
59
|
+
|
|
60
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
61
|
+
"""Return the dictionary representation of the model using alias.
|
|
62
|
+
|
|
63
|
+
This has the following differences from calling pydantic's
|
|
64
|
+
`self.model_dump(by_alias=True)`:
|
|
65
|
+
|
|
66
|
+
* `None` is only added to the output dict for nullable fields that
|
|
67
|
+
were set at model initialization. Other fields with value `None`
|
|
68
|
+
are ignored.
|
|
69
|
+
"""
|
|
70
|
+
excluded_fields: Set[str] = set([
|
|
71
|
+
])
|
|
72
|
+
|
|
73
|
+
_dict = self.model_dump(
|
|
74
|
+
by_alias=True,
|
|
75
|
+
exclude=excluded_fields,
|
|
76
|
+
exclude_none=True,
|
|
77
|
+
)
|
|
78
|
+
return _dict
|
|
79
|
+
|
|
80
|
+
@classmethod
|
|
81
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
82
|
+
"""Create an instance of AgentsExecutionComment from a dict"""
|
|
83
|
+
if obj is None:
|
|
84
|
+
return None
|
|
85
|
+
|
|
86
|
+
if not isinstance(obj, dict):
|
|
87
|
+
return cls.model_validate(obj)
|
|
88
|
+
|
|
89
|
+
_obj = cls.model_validate({
|
|
90
|
+
"content": obj.get("content"),
|
|
91
|
+
"createdAt": obj.get("createdAt"),
|
|
92
|
+
"executionId": obj.get("executionId"),
|
|
93
|
+
"id": obj.get("id"),
|
|
94
|
+
"public": obj.get("public"),
|
|
95
|
+
"updatedAt": obj.get("updatedAt"),
|
|
96
|
+
"userId": obj.get("userId")
|
|
97
|
+
})
|
|
98
|
+
return _obj
|
|
99
|
+
|
|
100
|
+
|
|
@@ -17,7 +17,7 @@ import pprint
|
|
|
17
17
|
import re # noqa: F401
|
|
18
18
|
import json
|
|
19
19
|
|
|
20
|
-
from pydantic import BaseModel, ConfigDict, StrictStr
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, StrictStr
|
|
21
21
|
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
22
|
from typing import Optional, Set
|
|
23
23
|
from typing_extensions import Self
|
|
@@ -26,18 +26,11 @@ class AgentsExecutionCompletedPayload(BaseModel):
|
|
|
26
26
|
"""
|
|
27
27
|
AgentsExecutionCompletedPayload
|
|
28
28
|
""" # noqa: E501
|
|
29
|
-
|
|
29
|
+
lessons_learned: Optional[StrictStr] = None
|
|
30
30
|
outcome: StrictStr
|
|
31
31
|
reasoning: StrictStr
|
|
32
32
|
result: Optional[Any]
|
|
33
|
-
__properties: ClassVar[List[str]] = ["
|
|
34
|
-
|
|
35
|
-
@field_validator('outcome')
|
|
36
|
-
def outcome_validate_enum(cls, value):
|
|
37
|
-
"""Validates the enum"""
|
|
38
|
-
if value not in set(['success', 'failure']):
|
|
39
|
-
raise ValueError("must be one of enum values ('success', 'failure')")
|
|
40
|
-
return value
|
|
33
|
+
__properties: ClassVar[List[str]] = ["lessons_learned", "outcome", "reasoning", "result"]
|
|
41
34
|
|
|
42
35
|
model_config = ConfigDict(
|
|
43
36
|
populate_by_name=True,
|
|
@@ -95,7 +88,7 @@ class AgentsExecutionCompletedPayload(BaseModel):
|
|
|
95
88
|
return cls.model_validate(obj)
|
|
96
89
|
|
|
97
90
|
_obj = cls.model_validate({
|
|
98
|
-
"
|
|
91
|
+
"lessons_learned": obj.get("lessons_learned"),
|
|
99
92
|
"outcome": obj.get("outcome"),
|
|
100
93
|
"reasoning": obj.get("reasoning"),
|
|
101
94
|
"result": obj.get("result")
|
asteroid_odyssey/agents_v2_gen/models/agents_execution_element_file_upload_completed_details.py
ADDED
|
@@ -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 AgentsExecutionElementFileUploadCompletedDetails(BaseModel):
|
|
26
|
+
"""
|
|
27
|
+
AgentsExecutionElementFileUploadCompletedDetails
|
|
28
|
+
""" # noqa: E501
|
|
29
|
+
action_name: StrictStr = Field(alias="actionName")
|
|
30
|
+
file_names: List[StrictStr] = Field(alias="fileNames")
|
|
31
|
+
__properties: ClassVar[List[str]] = ["actionName", "fileNames"]
|
|
32
|
+
|
|
33
|
+
@field_validator('action_name')
|
|
34
|
+
def action_name_validate_enum(cls, value):
|
|
35
|
+
"""Validates the enum"""
|
|
36
|
+
if value not in set(['element_file_upload']):
|
|
37
|
+
raise ValueError("must be one of enum values ('element_file_upload')")
|
|
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 AgentsExecutionElementFileUploadCompletedDetails 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 AgentsExecutionElementFileUploadCompletedDetails 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
|
+
"fileNames": obj.get("fileNames")
|
|
93
|
+
})
|
|
94
|
+
return _obj
|
|
95
|
+
|
|
96
|
+
|
|
@@ -0,0 +1,103 @@
|
|
|
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 datetime import datetime
|
|
21
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
|
22
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
23
|
+
from typing import Optional, Set
|
|
24
|
+
from typing_extensions import Self
|
|
25
|
+
|
|
26
|
+
class AgentsExecutionExecutionResult(BaseModel):
|
|
27
|
+
"""
|
|
28
|
+
Execution result containing outcome, reasoning, and result data
|
|
29
|
+
""" # noqa: E501
|
|
30
|
+
created_at: datetime = Field(description="When the result was created", alias="createdAt")
|
|
31
|
+
execution_id: StrictStr = Field(description="Execution this result belongs to", alias="executionId")
|
|
32
|
+
id: StrictStr = Field(description="Unique identifier for the result")
|
|
33
|
+
outcome: StrictStr = Field(description="Outcome of the execution (success or failure)")
|
|
34
|
+
reasoning: StrictStr = Field(description="AI reasoning for the outcome")
|
|
35
|
+
result: Optional[Any]
|
|
36
|
+
__properties: ClassVar[List[str]] = ["createdAt", "executionId", "id", "outcome", "reasoning", "result"]
|
|
37
|
+
|
|
38
|
+
model_config = ConfigDict(
|
|
39
|
+
populate_by_name=True,
|
|
40
|
+
validate_assignment=True,
|
|
41
|
+
protected_namespaces=(),
|
|
42
|
+
)
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
def to_str(self) -> str:
|
|
46
|
+
"""Returns the string representation of the model using alias"""
|
|
47
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
48
|
+
|
|
49
|
+
def to_json(self) -> str:
|
|
50
|
+
"""Returns the JSON representation of the model using alias"""
|
|
51
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
52
|
+
return json.dumps(self.to_dict())
|
|
53
|
+
|
|
54
|
+
@classmethod
|
|
55
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
56
|
+
"""Create an instance of AgentsExecutionExecutionResult from a JSON string"""
|
|
57
|
+
return cls.from_dict(json.loads(json_str))
|
|
58
|
+
|
|
59
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
60
|
+
"""Return the dictionary representation of the model using alias.
|
|
61
|
+
|
|
62
|
+
This has the following differences from calling pydantic's
|
|
63
|
+
`self.model_dump(by_alias=True)`:
|
|
64
|
+
|
|
65
|
+
* `None` is only added to the output dict for nullable fields that
|
|
66
|
+
were set at model initialization. Other fields with value `None`
|
|
67
|
+
are ignored.
|
|
68
|
+
"""
|
|
69
|
+
excluded_fields: Set[str] = set([
|
|
70
|
+
])
|
|
71
|
+
|
|
72
|
+
_dict = self.model_dump(
|
|
73
|
+
by_alias=True,
|
|
74
|
+
exclude=excluded_fields,
|
|
75
|
+
exclude_none=True,
|
|
76
|
+
)
|
|
77
|
+
# set to None if result (nullable) is None
|
|
78
|
+
# and model_fields_set contains the field
|
|
79
|
+
if self.result is None and "result" in self.model_fields_set:
|
|
80
|
+
_dict['result'] = None
|
|
81
|
+
|
|
82
|
+
return _dict
|
|
83
|
+
|
|
84
|
+
@classmethod
|
|
85
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
86
|
+
"""Create an instance of AgentsExecutionExecutionResult from a dict"""
|
|
87
|
+
if obj is None:
|
|
88
|
+
return None
|
|
89
|
+
|
|
90
|
+
if not isinstance(obj, dict):
|
|
91
|
+
return cls.model_validate(obj)
|
|
92
|
+
|
|
93
|
+
_obj = cls.model_validate({
|
|
94
|
+
"createdAt": obj.get("createdAt"),
|
|
95
|
+
"executionId": obj.get("executionId"),
|
|
96
|
+
"id": obj.get("id"),
|
|
97
|
+
"outcome": obj.get("outcome"),
|
|
98
|
+
"reasoning": obj.get("reasoning"),
|
|
99
|
+
"result": obj.get("result")
|
|
100
|
+
})
|
|
101
|
+
return _obj
|
|
102
|
+
|
|
103
|
+
|
|
@@ -0,0 +1,102 @@
|
|
|
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, Optional
|
|
22
|
+
from typing import Optional, Set
|
|
23
|
+
from typing_extensions import Self
|
|
24
|
+
|
|
25
|
+
class AgentsExecutionExtApiCallCompletedDetails(BaseModel):
|
|
26
|
+
"""
|
|
27
|
+
AgentsExecutionExtApiCallCompletedDetails
|
|
28
|
+
""" # noqa: E501
|
|
29
|
+
action_name: StrictStr = Field(alias="actionName")
|
|
30
|
+
request_method: Optional[StrictStr] = Field(default=None, alias="requestMethod")
|
|
31
|
+
request_url: Optional[StrictStr] = Field(default=None, alias="requestUrl")
|
|
32
|
+
response_body: StrictStr = Field(alias="responseBody")
|
|
33
|
+
status_code: StrictStr = Field(alias="statusCode")
|
|
34
|
+
__properties: ClassVar[List[str]] = ["actionName", "requestMethod", "requestUrl", "responseBody", "statusCode"]
|
|
35
|
+
|
|
36
|
+
@field_validator('action_name')
|
|
37
|
+
def action_name_validate_enum(cls, value):
|
|
38
|
+
"""Validates the enum"""
|
|
39
|
+
if value not in set(['ext_api_call']):
|
|
40
|
+
raise ValueError("must be one of enum values ('ext_api_call')")
|
|
41
|
+
return value
|
|
42
|
+
|
|
43
|
+
model_config = ConfigDict(
|
|
44
|
+
populate_by_name=True,
|
|
45
|
+
validate_assignment=True,
|
|
46
|
+
protected_namespaces=(),
|
|
47
|
+
)
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
def to_str(self) -> str:
|
|
51
|
+
"""Returns the string representation of the model using alias"""
|
|
52
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
53
|
+
|
|
54
|
+
def to_json(self) -> str:
|
|
55
|
+
"""Returns the JSON representation of the model using alias"""
|
|
56
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
57
|
+
return json.dumps(self.to_dict())
|
|
58
|
+
|
|
59
|
+
@classmethod
|
|
60
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
61
|
+
"""Create an instance of AgentsExecutionExtApiCallCompletedDetails from a JSON string"""
|
|
62
|
+
return cls.from_dict(json.loads(json_str))
|
|
63
|
+
|
|
64
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
65
|
+
"""Return the dictionary representation of the model using alias.
|
|
66
|
+
|
|
67
|
+
This has the following differences from calling pydantic's
|
|
68
|
+
`self.model_dump(by_alias=True)`:
|
|
69
|
+
|
|
70
|
+
* `None` is only added to the output dict for nullable fields that
|
|
71
|
+
were set at model initialization. Other fields with value `None`
|
|
72
|
+
are ignored.
|
|
73
|
+
"""
|
|
74
|
+
excluded_fields: Set[str] = set([
|
|
75
|
+
])
|
|
76
|
+
|
|
77
|
+
_dict = self.model_dump(
|
|
78
|
+
by_alias=True,
|
|
79
|
+
exclude=excluded_fields,
|
|
80
|
+
exclude_none=True,
|
|
81
|
+
)
|
|
82
|
+
return _dict
|
|
83
|
+
|
|
84
|
+
@classmethod
|
|
85
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
86
|
+
"""Create an instance of AgentsExecutionExtApiCallCompletedDetails from a dict"""
|
|
87
|
+
if obj is None:
|
|
88
|
+
return None
|
|
89
|
+
|
|
90
|
+
if not isinstance(obj, dict):
|
|
91
|
+
return cls.model_validate(obj)
|
|
92
|
+
|
|
93
|
+
_obj = cls.model_validate({
|
|
94
|
+
"actionName": obj.get("actionName"),
|
|
95
|
+
"requestMethod": obj.get("requestMethod"),
|
|
96
|
+
"requestUrl": obj.get("requestUrl"),
|
|
97
|
+
"responseBody": obj.get("responseBody"),
|
|
98
|
+
"statusCode": obj.get("statusCode")
|
|
99
|
+
})
|
|
100
|
+
return _obj
|
|
101
|
+
|
|
102
|
+
|