asteroid-odyssey 1.3.12__py3-none-any.whl → 1.6.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- asteroid_odyssey/__init__.py +254 -48
- asteroid_odyssey/api/__init__.py +8 -0
- asteroid_odyssey/{agents_v1_gen/api/agent_profile_api.py → api/agent_profiles_api.py} +414 -281
- asteroid_odyssey/{agents_v2_gen/api → api}/agents_api.py +30 -30
- asteroid_odyssey/{agents_v2_gen/api → api}/execution_api.py +32 -49
- asteroid_odyssey/{agents_v2_gen/api → api}/files_api.py +5 -5
- asteroid_odyssey/{agents_v2_gen/api_client.py → api_client.py} +10 -6
- asteroid_odyssey/{agents_v2_gen/configuration.py → configuration.py} +11 -4
- asteroid_odyssey/models/__init__.py +118 -0
- asteroid_odyssey/{agents_v2_gen/models → models}/agent_list200_response.py +1 -1
- asteroid_odyssey/models/agent_profile_clear_browser_cache200_response.py +87 -0
- asteroid_odyssey/models/agent_profiles_list200_response.py +101 -0
- asteroid_odyssey/{agents_v2_gen/models → models}/agents_agent_base.py +3 -3
- asteroid_odyssey/{agents_v2_gen/models → models}/agents_agent_execute_agent_request.py +7 -5
- asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_activity.py +4 -4
- asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_activity_action_completed_info.py +65 -37
- asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_activity_action_completed_payload.py +8 -8
- asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_activity_action_failed_payload.py +9 -9
- asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_activity_action_started_info.py +50 -22
- asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_activity_action_started_payload.py +10 -10
- asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_activity_file_added_payload.py +6 -6
- asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_activity_payload_union.py +14 -14
- asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_activity_playwright_script_generated_payload.py +9 -9
- asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_activity_status_changed_payload.py +19 -19
- asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_activity_transitioned_node_payload.py +6 -6
- asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_activity_workflow_updated_payload.py +1 -1
- asteroid_odyssey/models/agents_execution_agent_query_context_completed_details.py +98 -0
- asteroid_odyssey/models/agents_execution_agent_query_context_started_details.py +96 -0
- asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_cancelled_payload.py +1 -1
- asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_comment.py +10 -10
- asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_completed_payload.py +4 -4
- asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_execution_result.py +6 -6
- asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_ext_api_call_completed_details.py +6 -6
- asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_failed_payload.py +5 -5
- asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_file_read_completed_details.py +3 -3
- asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_human_label.py +7 -7
- asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_list_item.py +33 -37
- asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_llm_call_started_details.py +1 -1
- asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_obs_snapshot_with_selectors_completed_details.py +4 -4
- asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_scratchpad_write_completed_details.py +7 -7
- asteroid_odyssey/models/agents_execution_script_eval_completed_details.py +101 -0
- asteroid_odyssey/models/agents_execution_script_eval_started_details.py +100 -0
- asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_script_hybrid_playwright_completed_details.py +6 -6
- asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_script_pad_run_function_completed_details.py +6 -6
- asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_script_playwright_completed_details.py +6 -6
- asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_scriptpad_read_started_details.py +4 -4
- asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_scriptpad_run_function_started_details.py +4 -4
- asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_scriptpad_search_replace_completed_details.py +5 -5
- asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_scriptpad_search_replace_started_details.py +4 -4
- asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_scriptpad_write_completed_details.py +4 -4
- asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_terminal_payload.py +4 -4
- asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_util_get_datetime_completed_details.py +4 -4
- asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_workflow_update.py +13 -13
- asteroid_odyssey/{agents_v2_gen/models → models}/agents_files_file.py +11 -11
- asteroid_odyssey/{agents_v2_gen/models → models}/agents_files_temp_files_response.py +1 -1
- asteroid_odyssey/{agents_v2_gen/models → models}/agents_graph_models_nodes_properties_playwright_script_llm_var.py +5 -5
- asteroid_odyssey/{agents_v1_gen/models/agent_profile.py → models/agents_profile_agent_profile.py} +37 -32
- asteroid_odyssey/{agents_v1_gen/models/cookie.py → models/agents_profile_cookie.py} +21 -26
- asteroid_odyssey/{agents_v1_gen/models/country_code.py → models/agents_profile_country_code.py} +5 -5
- asteroid_odyssey/{agents_v1_gen/models/create_agent_profile_request.py → models/agents_profile_create_agent_profile_request.py} +33 -28
- asteroid_odyssey/{agents_v1_gen/models/credential.py → models/agents_profile_credential.py} +13 -13
- asteroid_odyssey/models/agents_profile_operating_system.py +37 -0
- asteroid_odyssey/models/agents_profile_proxy_type.py +38 -0
- asteroid_odyssey/models/agents_profile_same_site.py +38 -0
- asteroid_odyssey/models/agents_profile_sort_field.py +38 -0
- asteroid_odyssey/models/agents_profile_update_agent_profile_request.py +129 -0
- asteroid_odyssey/{agents_v2_gen/models → models}/executions_list200_response.py +1 -1
- asteroid_odyssey/{agents_v2_gen/rest.py → rest.py} +2 -1
- asteroid_odyssey-1.6.0.dist-info/METADATA +65 -0
- asteroid_odyssey-1.6.0.dist-info/RECORD +119 -0
- asteroid_odyssey/agents_v1_gen/__init__.py +0 -53
- asteroid_odyssey/agents_v1_gen/api/__init__.py +0 -7
- asteroid_odyssey/agents_v1_gen/api/api_api.py +0 -516
- asteroid_odyssey/agents_v1_gen/api/execution_api.py +0 -1449
- asteroid_odyssey/agents_v1_gen/api_client.py +0 -797
- asteroid_odyssey/agents_v1_gen/configuration.py +0 -599
- asteroid_odyssey/agents_v1_gen/exceptions.py +0 -216
- asteroid_odyssey/agents_v1_gen/models/__init__.py +0 -34
- asteroid_odyssey/agents_v1_gen/models/browser_session_recording_response.py +0 -87
- asteroid_odyssey/agents_v1_gen/models/delete_agent_profile200_response.py +0 -87
- asteroid_odyssey/agents_v1_gen/models/error_response.py +0 -87
- asteroid_odyssey/agents_v1_gen/models/execution_response.py +0 -87
- asteroid_odyssey/agents_v1_gen/models/execution_result.py +0 -101
- asteroid_odyssey/agents_v1_gen/models/execution_result_response.py +0 -100
- asteroid_odyssey/agents_v1_gen/models/execution_status_response.py +0 -95
- asteroid_odyssey/agents_v1_gen/models/health_check200_response.py +0 -87
- asteroid_odyssey/agents_v1_gen/models/health_check500_response.py +0 -87
- asteroid_odyssey/agents_v1_gen/models/proxy_type.py +0 -38
- asteroid_odyssey/agents_v1_gen/models/status.py +0 -43
- asteroid_odyssey/agents_v1_gen/models/structured_agent_execution_request.py +0 -89
- asteroid_odyssey/agents_v1_gen/models/update_agent_profile_request.py +0 -126
- asteroid_odyssey/agents_v1_gen/rest.py +0 -257
- asteroid_odyssey/agents_v2_gen/__init__.py +0 -121
- asteroid_odyssey/agents_v2_gen/api/__init__.py +0 -7
- asteroid_odyssey/agents_v2_gen/api_response.py +0 -21
- asteroid_odyssey/agents_v2_gen/models/__init__.py +0 -102
- asteroid_odyssey/agents_v2_gen/py.typed +0 -0
- asteroid_odyssey/client.py +0 -1629
- asteroid_odyssey-1.3.12.dist-info/METADATA +0 -214
- asteroid_odyssey-1.3.12.dist-info/RECORD +0 -134
- /asteroid_odyssey/{agents_v1_gen/api_response.py → api_response.py} +0 -0
- /asteroid_odyssey/{agents_v2_gen/exceptions.py → exceptions.py} +0 -0
- /asteroid_odyssey/{agents_v2_gen/models → models}/agents_agent_execute_agent_response.py +0 -0
- /asteroid_odyssey/{agents_v2_gen/models → models}/agents_agent_sort_field.py +0 -0
- /asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_action_name.py +0 -0
- /asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_activity_generic_payload.py +0 -0
- /asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_activity_reasoning_payload.py +0 -0
- /asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_activity_step_completed_payload.py +0 -0
- /asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_activity_step_started_payload.py +0 -0
- /asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_activity_user_message_received_payload.py +0 -0
- /asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_awaiting_confirmation_payload.py +0 -0
- /asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_cancel_reason.py +0 -0
- /asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_element_file_upload_completed_details.py +0 -0
- /asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_ext_get_mail_completed_details.py +0 -0
- /asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_file_list_completed_details.py +0 -0
- /asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_file_stage_completed_details.py +0 -0
- /asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_llm_call_purpose.py +0 -0
- /asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_nav_to_completed_details.py +0 -0
- /asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_nav_to_started_details.py +0 -0
- /asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_node_details.py +0 -0
- /asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_paused_payload.py +0 -0
- /asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_rules_details.py +0 -0
- /asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_scratchpad_read_completed_details.py +0 -0
- /asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_scratchpad_read_started_details.py +0 -0
- /asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_scratchpad_write_started_details.py +0 -0
- /asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_script_hybrid_playwright_started_details.py +0 -0
- /asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_script_playwright_started_details.py +0 -0
- /asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_scriptpad_read_completed_details.py +0 -0
- /asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_sort_field.py +0 -0
- /asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_status.py +0 -0
- /asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_transition_details.py +0 -0
- /asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_update_type.py +0 -0
- /asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_user_messages_add_text_body.py +0 -0
- /asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_util_get_datetime_started_details.py +0 -0
- /asteroid_odyssey/{agents_v2_gen/models → models}/agents_files_temp_file.py +0 -0
- /asteroid_odyssey/{agents_v2_gen/models → models}/agents_graph_models_nodes_properties_playwright_script_llm_var_type.py +0 -0
- /asteroid_odyssey/{agents_v2_gen/models → models}/agents_graph_models_transitions_transition_type.py +0 -0
- /asteroid_odyssey/{agents_v2_gen/models → models}/common_bad_request_error_body.py +0 -0
- /asteroid_odyssey/{agents_v2_gen/models → models}/common_error.py +0 -0
- /asteroid_odyssey/{agents_v2_gen/models → models}/common_forbidden_error_body.py +0 -0
- /asteroid_odyssey/{agents_v2_gen/models → models}/common_internal_server_error_body.py +0 -0
- /asteroid_odyssey/{agents_v2_gen/models → models}/common_not_found_error_body.py +0 -0
- /asteroid_odyssey/{agents_v2_gen/models → models}/common_os_error.py +0 -0
- /asteroid_odyssey/{agents_v2_gen/models → models}/common_sort_direction.py +0 -0
- /asteroid_odyssey/{agents_v2_gen/models → models}/common_unauthorized_error_body.py +0 -0
- /asteroid_odyssey/{agents_v2_gen/models → models}/version.py +0 -0
- /asteroid_odyssey/{agents_v1_gen/py.typed → py.typed} +0 -0
- {asteroid_odyssey-1.3.12.dist-info → asteroid_odyssey-1.6.0.dist-info}/WHEEL +0 -0
- {asteroid_odyssey-1.3.12.dist-info → asteroid_odyssey-1.6.0.dist-info}/top_level.txt +0 -0
|
@@ -19,7 +19,7 @@ import json
|
|
|
19
19
|
|
|
20
20
|
from pydantic import BaseModel, ConfigDict
|
|
21
21
|
from typing import Any, ClassVar, Dict, List
|
|
22
|
-
from asteroid_odyssey.
|
|
22
|
+
from asteroid_odyssey.models.agents_execution_cancel_reason import AgentsExecutionCancelReason
|
|
23
23
|
from typing import Optional, Set
|
|
24
24
|
from typing_extensions import Self
|
|
25
25
|
|
|
@@ -27,14 +27,14 @@ class AgentsExecutionComment(BaseModel):
|
|
|
27
27
|
"""
|
|
28
28
|
User comment on an execution
|
|
29
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
30
|
id: StrictStr = Field(description="Unique identifier for the comment")
|
|
31
|
+
execution_id: StrictStr = Field(description="Execution this comment belongs to", alias="executionId")
|
|
32
|
+
user_id: StrictStr = Field(description="User who created the comment", alias="userId")
|
|
33
|
+
content: StrictStr = Field(description="Comment content")
|
|
34
34
|
public: StrictBool = Field(description="Whether the comment is public")
|
|
35
|
+
created_at: datetime = Field(description="When the comment was created", alias="createdAt")
|
|
35
36
|
updated_at: Optional[datetime] = Field(default=None, description="When the comment was last updated", alias="updatedAt")
|
|
36
|
-
|
|
37
|
-
__properties: ClassVar[List[str]] = ["content", "createdAt", "executionId", "id", "public", "updatedAt", "userId"]
|
|
37
|
+
__properties: ClassVar[List[str]] = ["id", "executionId", "userId", "content", "public", "createdAt", "updatedAt"]
|
|
38
38
|
|
|
39
39
|
model_config = ConfigDict(
|
|
40
40
|
populate_by_name=True,
|
|
@@ -87,13 +87,13 @@ class AgentsExecutionComment(BaseModel):
|
|
|
87
87
|
return cls.model_validate(obj)
|
|
88
88
|
|
|
89
89
|
_obj = cls.model_validate({
|
|
90
|
-
"content": obj.get("content"),
|
|
91
|
-
"createdAt": obj.get("createdAt"),
|
|
92
|
-
"executionId": obj.get("executionId"),
|
|
93
90
|
"id": obj.get("id"),
|
|
91
|
+
"executionId": obj.get("executionId"),
|
|
92
|
+
"userId": obj.get("userId"),
|
|
93
|
+
"content": obj.get("content"),
|
|
94
94
|
"public": obj.get("public"),
|
|
95
|
-
"
|
|
96
|
-
"
|
|
95
|
+
"createdAt": obj.get("createdAt"),
|
|
96
|
+
"updatedAt": obj.get("updatedAt")
|
|
97
97
|
})
|
|
98
98
|
return _obj
|
|
99
99
|
|
|
@@ -26,11 +26,11 @@ class AgentsExecutionCompletedPayload(BaseModel):
|
|
|
26
26
|
"""
|
|
27
27
|
AgentsExecutionCompletedPayload
|
|
28
28
|
""" # noqa: E501
|
|
29
|
-
lessons_learned: Optional[StrictStr] = None
|
|
30
29
|
outcome: StrictStr
|
|
31
30
|
reasoning: StrictStr
|
|
32
31
|
result: Optional[Any]
|
|
33
|
-
|
|
32
|
+
lessons_learned: Optional[StrictStr] = None
|
|
33
|
+
__properties: ClassVar[List[str]] = ["outcome", "reasoning", "result", "lessons_learned"]
|
|
34
34
|
|
|
35
35
|
model_config = ConfigDict(
|
|
36
36
|
populate_by_name=True,
|
|
@@ -88,10 +88,10 @@ class AgentsExecutionCompletedPayload(BaseModel):
|
|
|
88
88
|
return cls.model_validate(obj)
|
|
89
89
|
|
|
90
90
|
_obj = cls.model_validate({
|
|
91
|
-
"lessons_learned": obj.get("lessons_learned"),
|
|
92
91
|
"outcome": obj.get("outcome"),
|
|
93
92
|
"reasoning": obj.get("reasoning"),
|
|
94
|
-
"result": obj.get("result")
|
|
93
|
+
"result": obj.get("result"),
|
|
94
|
+
"lessons_learned": obj.get("lessons_learned")
|
|
95
95
|
})
|
|
96
96
|
return _obj
|
|
97
97
|
|
|
@@ -27,13 +27,13 @@ class AgentsExecutionExecutionResult(BaseModel):
|
|
|
27
27
|
"""
|
|
28
28
|
Execution result containing outcome, reasoning, and result data
|
|
29
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
30
|
id: StrictStr = Field(description="Unique identifier for the result")
|
|
31
|
+
execution_id: StrictStr = Field(description="Execution this result belongs to", alias="executionId")
|
|
33
32
|
outcome: StrictStr = Field(description="Outcome of the execution (success or failure)")
|
|
34
33
|
reasoning: StrictStr = Field(description="AI reasoning for the outcome")
|
|
35
34
|
result: Optional[Any]
|
|
36
|
-
|
|
35
|
+
created_at: datetime = Field(description="When the result was created", alias="createdAt")
|
|
36
|
+
__properties: ClassVar[List[str]] = ["id", "executionId", "outcome", "reasoning", "result", "createdAt"]
|
|
37
37
|
|
|
38
38
|
model_config = ConfigDict(
|
|
39
39
|
populate_by_name=True,
|
|
@@ -91,12 +91,12 @@ class AgentsExecutionExecutionResult(BaseModel):
|
|
|
91
91
|
return cls.model_validate(obj)
|
|
92
92
|
|
|
93
93
|
_obj = cls.model_validate({
|
|
94
|
-
"createdAt": obj.get("createdAt"),
|
|
95
|
-
"executionId": obj.get("executionId"),
|
|
96
94
|
"id": obj.get("id"),
|
|
95
|
+
"executionId": obj.get("executionId"),
|
|
97
96
|
"outcome": obj.get("outcome"),
|
|
98
97
|
"reasoning": obj.get("reasoning"),
|
|
99
|
-
"result": obj.get("result")
|
|
98
|
+
"result": obj.get("result"),
|
|
99
|
+
"createdAt": obj.get("createdAt")
|
|
100
100
|
})
|
|
101
101
|
return _obj
|
|
102
102
|
|
asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_ext_api_call_completed_details.py
RENAMED
|
@@ -27,11 +27,11 @@ class AgentsExecutionExtApiCallCompletedDetails(BaseModel):
|
|
|
27
27
|
AgentsExecutionExtApiCallCompletedDetails
|
|
28
28
|
""" # noqa: E501
|
|
29
29
|
action_name: StrictStr = Field(alias="actionName")
|
|
30
|
+
status_code: StrictStr = Field(alias="statusCode")
|
|
31
|
+
response_body: StrictStr = Field(alias="responseBody")
|
|
30
32
|
request_method: Optional[StrictStr] = Field(default=None, alias="requestMethod")
|
|
31
33
|
request_url: Optional[StrictStr] = Field(default=None, alias="requestUrl")
|
|
32
|
-
|
|
33
|
-
status_code: StrictStr = Field(alias="statusCode")
|
|
34
|
-
__properties: ClassVar[List[str]] = ["actionName", "requestMethod", "requestUrl", "responseBody", "statusCode"]
|
|
34
|
+
__properties: ClassVar[List[str]] = ["actionName", "statusCode", "responseBody", "requestMethod", "requestUrl"]
|
|
35
35
|
|
|
36
36
|
@field_validator('action_name')
|
|
37
37
|
def action_name_validate_enum(cls, value):
|
|
@@ -92,10 +92,10 @@ class AgentsExecutionExtApiCallCompletedDetails(BaseModel):
|
|
|
92
92
|
|
|
93
93
|
_obj = cls.model_validate({
|
|
94
94
|
"actionName": obj.get("actionName"),
|
|
95
|
-
"
|
|
96
|
-
"requestUrl": obj.get("requestUrl"),
|
|
95
|
+
"statusCode": obj.get("statusCode"),
|
|
97
96
|
"responseBody": obj.get("responseBody"),
|
|
98
|
-
"
|
|
97
|
+
"requestMethod": obj.get("requestMethod"),
|
|
98
|
+
"requestUrl": obj.get("requestUrl")
|
|
99
99
|
})
|
|
100
100
|
return _obj
|
|
101
101
|
|
|
@@ -19,7 +19,7 @@ import json
|
|
|
19
19
|
|
|
20
20
|
from pydantic import BaseModel, ConfigDict, StrictStr
|
|
21
21
|
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
|
-
from asteroid_odyssey.
|
|
22
|
+
from asteroid_odyssey.models.common_os_error import CommonOSError
|
|
23
23
|
from typing import Optional, Set
|
|
24
24
|
from typing_extensions import Self
|
|
25
25
|
|
|
@@ -27,9 +27,9 @@ class AgentsExecutionFailedPayload(BaseModel):
|
|
|
27
27
|
"""
|
|
28
28
|
AgentsExecutionFailedPayload
|
|
29
29
|
""" # noqa: E501
|
|
30
|
-
os_error: Optional[CommonOSError] = None
|
|
31
30
|
reason: StrictStr
|
|
32
|
-
|
|
31
|
+
os_error: Optional[CommonOSError] = None
|
|
32
|
+
__properties: ClassVar[List[str]] = ["reason", "os_error"]
|
|
33
33
|
|
|
34
34
|
model_config = ConfigDict(
|
|
35
35
|
populate_by_name=True,
|
|
@@ -85,8 +85,8 @@ class AgentsExecutionFailedPayload(BaseModel):
|
|
|
85
85
|
return cls.model_validate(obj)
|
|
86
86
|
|
|
87
87
|
_obj = cls.model_validate({
|
|
88
|
-
"
|
|
89
|
-
"
|
|
88
|
+
"reason": obj.get("reason"),
|
|
89
|
+
"os_error": CommonOSError.from_dict(obj["os_error"]) if obj.get("os_error") is not None else None
|
|
90
90
|
})
|
|
91
91
|
return _obj
|
|
92
92
|
|
asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_file_read_completed_details.py
RENAMED
|
@@ -27,10 +27,10 @@ class AgentsExecutionFileReadCompletedDetails(BaseModel):
|
|
|
27
27
|
AgentsExecutionFileReadCompletedDetails
|
|
28
28
|
""" # noqa: E501
|
|
29
29
|
action_name: StrictStr = Field(alias="actionName")
|
|
30
|
-
error_count: Optional[StrictInt] = Field(default=None, alias="errorCount")
|
|
31
30
|
file_names: List[StrictStr] = Field(alias="fileNames")
|
|
31
|
+
error_count: Optional[StrictInt] = Field(default=None, alias="errorCount")
|
|
32
32
|
total_size_bytes: Optional[StrictInt] = Field(default=None, alias="totalSizeBytes")
|
|
33
|
-
__properties: ClassVar[List[str]] = ["actionName", "
|
|
33
|
+
__properties: ClassVar[List[str]] = ["actionName", "fileNames", "errorCount", "totalSizeBytes"]
|
|
34
34
|
|
|
35
35
|
@field_validator('action_name')
|
|
36
36
|
def action_name_validate_enum(cls, value):
|
|
@@ -91,8 +91,8 @@ class AgentsExecutionFileReadCompletedDetails(BaseModel):
|
|
|
91
91
|
|
|
92
92
|
_obj = cls.model_validate({
|
|
93
93
|
"actionName": obj.get("actionName"),
|
|
94
|
-
"errorCount": obj.get("errorCount"),
|
|
95
94
|
"fileNames": obj.get("fileNames"),
|
|
95
|
+
"errorCount": obj.get("errorCount"),
|
|
96
96
|
"totalSizeBytes": obj.get("totalSizeBytes")
|
|
97
97
|
})
|
|
98
98
|
return _obj
|
|
@@ -27,12 +27,12 @@ class AgentsExecutionHumanLabel(BaseModel):
|
|
|
27
27
|
"""
|
|
28
28
|
Human-applied label for categorizing executions
|
|
29
29
|
""" # noqa: E501
|
|
30
|
-
color: StrictStr = Field(description="Hex color code for the label (e.g., #FF5733)")
|
|
31
|
-
created_at: datetime = Field(description="When the label was created", alias="createdAt")
|
|
32
30
|
id: StrictStr = Field(description="Unique identifier for the label")
|
|
33
|
-
name: StrictStr = Field(description="Display name of the label")
|
|
34
31
|
organization_id: StrictStr = Field(description="Organization this label belongs to", alias="organizationId")
|
|
35
|
-
|
|
32
|
+
name: StrictStr = Field(description="Display name of the label")
|
|
33
|
+
color: StrictStr = Field(description="Hex color code for the label (e.g., #FF5733)")
|
|
34
|
+
created_at: datetime = Field(description="When the label was created", alias="createdAt")
|
|
35
|
+
__properties: ClassVar[List[str]] = ["id", "organizationId", "name", "color", "createdAt"]
|
|
36
36
|
|
|
37
37
|
model_config = ConfigDict(
|
|
38
38
|
populate_by_name=True,
|
|
@@ -85,11 +85,11 @@ class AgentsExecutionHumanLabel(BaseModel):
|
|
|
85
85
|
return cls.model_validate(obj)
|
|
86
86
|
|
|
87
87
|
_obj = cls.model_validate({
|
|
88
|
-
"color": obj.get("color"),
|
|
89
|
-
"createdAt": obj.get("createdAt"),
|
|
90
88
|
"id": obj.get("id"),
|
|
89
|
+
"organizationId": obj.get("organizationId"),
|
|
91
90
|
"name": obj.get("name"),
|
|
92
|
-
"
|
|
91
|
+
"color": obj.get("color"),
|
|
92
|
+
"createdAt": obj.get("createdAt")
|
|
93
93
|
})
|
|
94
94
|
return _obj
|
|
95
95
|
|
|
@@ -18,12 +18,12 @@ 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, StrictFloat, StrictInt, StrictStr
|
|
22
22
|
from typing import Any, ClassVar, Dict, List, Optional, Union
|
|
23
|
-
from asteroid_odyssey.
|
|
24
|
-
from asteroid_odyssey.
|
|
25
|
-
from asteroid_odyssey.
|
|
26
|
-
from asteroid_odyssey.
|
|
23
|
+
from asteroid_odyssey.models.agents_execution_comment import AgentsExecutionComment
|
|
24
|
+
from asteroid_odyssey.models.agents_execution_execution_result import AgentsExecutionExecutionResult
|
|
25
|
+
from asteroid_odyssey.models.agents_execution_human_label import AgentsExecutionHumanLabel
|
|
26
|
+
from asteroid_odyssey.models.agents_execution_status import AgentsExecutionStatus
|
|
27
27
|
from typing import Optional, Set
|
|
28
28
|
from typing_extensions import Self
|
|
29
29
|
|
|
@@ -31,25 +31,23 @@ class AgentsExecutionListItem(BaseModel):
|
|
|
31
31
|
"""
|
|
32
32
|
Represents a single execution in a list view
|
|
33
33
|
""" # noqa: E501
|
|
34
|
+
id: StrictStr = Field(description="The unique identifier of the execution")
|
|
34
35
|
agent_id: StrictStr = Field(description="The ID of the agent that was executed", alias="agentId")
|
|
36
|
+
workflow_id: StrictStr = Field(description="The ID of the workflow that was executed", alias="workflowId")
|
|
37
|
+
status: AgentsExecutionStatus = Field(description="The current status of the execution")
|
|
38
|
+
created_at: datetime = Field(description="When the execution was created", alias="createdAt")
|
|
39
|
+
terminal_at: Optional[datetime] = Field(default=None, description="When the execution reached a terminal state (if applicable)", alias="terminalAt")
|
|
40
|
+
organization_id: StrictStr = Field(description="The organization this execution belongs to", alias="organizationId")
|
|
35
41
|
agent_name: StrictStr = Field(description="The agent display name", alias="agentName")
|
|
36
42
|
agent_profile_name: Optional[StrictStr] = Field(default=None, description="The name of the agent profile used for this execution (if any)", alias="agentProfileName")
|
|
37
|
-
agent_version: StrictInt = Field(description="The version of the agent that was executed", alias="agentVersion")
|
|
38
|
-
agent_version_dirty: StrictBool = Field(description="Whether the agent version was modified from the original", alias="agentVersionDirty")
|
|
39
|
-
browser_live_view_url: Optional[StrictStr] = Field(default=None, description="Browser live view URL for debugging (if a browser session is active and execution is running)", alias="browserLiveViewUrl")
|
|
40
|
-
browser_recording_url: Optional[StrictStr] = Field(default=None, description="Browser recording URL (if a browser session was used and execution is terminal)", alias="browserRecordingUrl")
|
|
41
|
-
comments: List[AgentsExecutionComment] = Field(description="Comments on this execution")
|
|
42
|
-
created_at: datetime = Field(description="When the execution was created", alias="createdAt")
|
|
43
|
-
duration: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Execution duration in seconds (only present for terminal executions)")
|
|
44
43
|
execution_result: Optional[AgentsExecutionExecutionResult] = Field(default=None, description="Execution result with outcome, reasoning, and result data", alias="executionResult")
|
|
44
|
+
duration: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Execution duration in seconds (only present for terminal executions)")
|
|
45
45
|
human_labels: List[AgentsExecutionHumanLabel] = Field(description="Human-applied labels for this execution", alias="humanLabels")
|
|
46
|
-
|
|
46
|
+
comments: List[AgentsExecutionComment] = Field(description="Comments on this execution")
|
|
47
47
|
metadata: Optional[Dict[str, Any]] = Field(default=None, description="Optional metadata key-value pairs attached to this execution")
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
workflow_id: StrictStr = Field(description="The ID of the workflow that was executed", alias="workflowId")
|
|
52
|
-
__properties: ClassVar[List[str]] = ["agentId", "agentName", "agentProfileName", "agentVersion", "agentVersionDirty", "browserLiveViewUrl", "browserRecordingUrl", "comments", "createdAt", "duration", "executionResult", "humanLabels", "id", "metadata", "organizationId", "status", "terminalAt", "workflowId"]
|
|
48
|
+
browser_recording_url: Optional[StrictStr] = Field(default=None, description="Browser recording URL (if a browser session was used and execution is terminal)", alias="browserRecordingUrl")
|
|
49
|
+
browser_live_view_url: Optional[StrictStr] = Field(default=None, description="Browser live view URL for debugging (if a browser session is active and execution is running)", alias="browserLiveViewUrl")
|
|
50
|
+
__properties: ClassVar[List[str]] = ["id", "agentId", "workflowId", "status", "createdAt", "terminalAt", "organizationId", "agentName", "agentProfileName", "executionResult", "duration", "humanLabels", "comments", "metadata", "browserRecordingUrl", "browserLiveViewUrl"]
|
|
53
51
|
|
|
54
52
|
model_config = ConfigDict(
|
|
55
53
|
populate_by_name=True,
|
|
@@ -90,13 +88,6 @@ class AgentsExecutionListItem(BaseModel):
|
|
|
90
88
|
exclude=excluded_fields,
|
|
91
89
|
exclude_none=True,
|
|
92
90
|
)
|
|
93
|
-
# override the default output from pydantic by calling `to_dict()` of each item in comments (list)
|
|
94
|
-
_items = []
|
|
95
|
-
if self.comments:
|
|
96
|
-
for _item_comments in self.comments:
|
|
97
|
-
if _item_comments:
|
|
98
|
-
_items.append(_item_comments.to_dict())
|
|
99
|
-
_dict['comments'] = _items
|
|
100
91
|
# override the default output from pydantic by calling `to_dict()` of execution_result
|
|
101
92
|
if self.execution_result:
|
|
102
93
|
_dict['executionResult'] = self.execution_result.to_dict()
|
|
@@ -107,6 +98,13 @@ class AgentsExecutionListItem(BaseModel):
|
|
|
107
98
|
if _item_human_labels:
|
|
108
99
|
_items.append(_item_human_labels.to_dict())
|
|
109
100
|
_dict['humanLabels'] = _items
|
|
101
|
+
# override the default output from pydantic by calling `to_dict()` of each item in comments (list)
|
|
102
|
+
_items = []
|
|
103
|
+
if self.comments:
|
|
104
|
+
for _item_comments in self.comments:
|
|
105
|
+
if _item_comments:
|
|
106
|
+
_items.append(_item_comments.to_dict())
|
|
107
|
+
_dict['comments'] = _items
|
|
110
108
|
return _dict
|
|
111
109
|
|
|
112
110
|
@classmethod
|
|
@@ -119,24 +117,22 @@ class AgentsExecutionListItem(BaseModel):
|
|
|
119
117
|
return cls.model_validate(obj)
|
|
120
118
|
|
|
121
119
|
_obj = cls.model_validate({
|
|
120
|
+
"id": obj.get("id"),
|
|
122
121
|
"agentId": obj.get("agentId"),
|
|
122
|
+
"workflowId": obj.get("workflowId"),
|
|
123
|
+
"status": obj.get("status"),
|
|
124
|
+
"createdAt": obj.get("createdAt"),
|
|
125
|
+
"terminalAt": obj.get("terminalAt"),
|
|
126
|
+
"organizationId": obj.get("organizationId"),
|
|
123
127
|
"agentName": obj.get("agentName"),
|
|
124
128
|
"agentProfileName": obj.get("agentProfileName"),
|
|
125
|
-
"agentVersion": obj.get("agentVersion"),
|
|
126
|
-
"agentVersionDirty": obj.get("agentVersionDirty"),
|
|
127
|
-
"browserLiveViewUrl": obj.get("browserLiveViewUrl"),
|
|
128
|
-
"browserRecordingUrl": obj.get("browserRecordingUrl"),
|
|
129
|
-
"comments": [AgentsExecutionComment.from_dict(_item) for _item in obj["comments"]] if obj.get("comments") is not None else None,
|
|
130
|
-
"createdAt": obj.get("createdAt"),
|
|
131
|
-
"duration": obj.get("duration"),
|
|
132
129
|
"executionResult": AgentsExecutionExecutionResult.from_dict(obj["executionResult"]) if obj.get("executionResult") is not None else None,
|
|
130
|
+
"duration": obj.get("duration"),
|
|
133
131
|
"humanLabels": [AgentsExecutionHumanLabel.from_dict(_item) for _item in obj["humanLabels"]] if obj.get("humanLabels") is not None else None,
|
|
134
|
-
"
|
|
132
|
+
"comments": [AgentsExecutionComment.from_dict(_item) for _item in obj["comments"]] if obj.get("comments") is not None else None,
|
|
135
133
|
"metadata": obj.get("metadata"),
|
|
136
|
-
"
|
|
137
|
-
"
|
|
138
|
-
"terminalAt": obj.get("terminalAt"),
|
|
139
|
-
"workflowId": obj.get("workflowId")
|
|
134
|
+
"browserRecordingUrl": obj.get("browserRecordingUrl"),
|
|
135
|
+
"browserLiveViewUrl": obj.get("browserLiveViewUrl")
|
|
140
136
|
})
|
|
141
137
|
return _obj
|
|
142
138
|
|
asteroid_odyssey/{agents_v2_gen/models → models}/agents_execution_llm_call_started_details.py
RENAMED
|
@@ -19,7 +19,7 @@ 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.
|
|
22
|
+
from asteroid_odyssey.models.agents_execution_llm_call_purpose import AgentsExecutionLLMCallPurpose
|
|
23
23
|
from typing import Optional, Set
|
|
24
24
|
from typing_extensions import Self
|
|
25
25
|
|
|
@@ -27,9 +27,9 @@ class AgentsExecutionObsSnapshotWithSelectorsCompletedDetails(BaseModel):
|
|
|
27
27
|
AgentsExecutionObsSnapshotWithSelectorsCompletedDetails
|
|
28
28
|
""" # noqa: E501
|
|
29
29
|
action_name: StrictStr = Field(alias="actionName")
|
|
30
|
-
title: StrictStr
|
|
31
30
|
url: StrictStr
|
|
32
|
-
|
|
31
|
+
title: StrictStr
|
|
32
|
+
__properties: ClassVar[List[str]] = ["actionName", "url", "title"]
|
|
33
33
|
|
|
34
34
|
@field_validator('action_name')
|
|
35
35
|
def action_name_validate_enum(cls, value):
|
|
@@ -90,8 +90,8 @@ class AgentsExecutionObsSnapshotWithSelectorsCompletedDetails(BaseModel):
|
|
|
90
90
|
|
|
91
91
|
_obj = cls.model_validate({
|
|
92
92
|
"actionName": obj.get("actionName"),
|
|
93
|
-
"
|
|
94
|
-
"
|
|
93
|
+
"url": obj.get("url"),
|
|
94
|
+
"title": obj.get("title")
|
|
95
95
|
})
|
|
96
96
|
return _obj
|
|
97
97
|
|
|
@@ -27,12 +27,12 @@ class AgentsExecutionScratchpadWriteCompletedDetails(BaseModel):
|
|
|
27
27
|
AgentsExecutionScratchpadWriteCompletedDetails
|
|
28
28
|
""" # noqa: E501
|
|
29
29
|
action_name: StrictStr = Field(alias="actionName")
|
|
30
|
-
content: Optional[StrictStr] = None
|
|
31
|
-
content_truncated: Optional[StrictBool] = Field(default=None, alias="contentTruncated")
|
|
32
30
|
lines_changed: StrictInt = Field(alias="linesChanged")
|
|
33
|
-
patches_applied: StrictInt = Field(alias="patchesApplied")
|
|
34
31
|
total_lines: StrictInt = Field(alias="totalLines")
|
|
35
|
-
|
|
32
|
+
patches_applied: StrictInt = Field(alias="patchesApplied")
|
|
33
|
+
content: Optional[StrictStr] = None
|
|
34
|
+
content_truncated: Optional[StrictBool] = Field(default=None, alias="contentTruncated")
|
|
35
|
+
__properties: ClassVar[List[str]] = ["actionName", "linesChanged", "totalLines", "patchesApplied", "content", "contentTruncated"]
|
|
36
36
|
|
|
37
37
|
@field_validator('action_name')
|
|
38
38
|
def action_name_validate_enum(cls, value):
|
|
@@ -93,11 +93,11 @@ class AgentsExecutionScratchpadWriteCompletedDetails(BaseModel):
|
|
|
93
93
|
|
|
94
94
|
_obj = cls.model_validate({
|
|
95
95
|
"actionName": obj.get("actionName"),
|
|
96
|
-
"content": obj.get("content"),
|
|
97
|
-
"contentTruncated": obj.get("contentTruncated"),
|
|
98
96
|
"linesChanged": obj.get("linesChanged"),
|
|
97
|
+
"totalLines": obj.get("totalLines"),
|
|
99
98
|
"patchesApplied": obj.get("patchesApplied"),
|
|
100
|
-
"
|
|
99
|
+
"content": obj.get("content"),
|
|
100
|
+
"contentTruncated": obj.get("contentTruncated")
|
|
101
101
|
})
|
|
102
102
|
return _obj
|
|
103
103
|
|
|
@@ -0,0 +1,101 @@
|
|
|
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 AgentsExecutionScriptEvalCompletedDetails(BaseModel):
|
|
26
|
+
"""
|
|
27
|
+
AgentsExecutionScriptEvalCompletedDetails
|
|
28
|
+
""" # noqa: E501
|
|
29
|
+
action_name: StrictStr = Field(alias="actionName")
|
|
30
|
+
result: Optional[Any]
|
|
31
|
+
__properties: ClassVar[List[str]] = ["actionName", "result"]
|
|
32
|
+
|
|
33
|
+
@field_validator('action_name')
|
|
34
|
+
def action_name_validate_enum(cls, value):
|
|
35
|
+
"""Validates the enum"""
|
|
36
|
+
if value not in set(['script_eval']):
|
|
37
|
+
raise ValueError("must be one of enum values ('script_eval')")
|
|
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 AgentsExecutionScriptEvalCompletedDetails 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
|
+
# set to None if result (nullable) is None
|
|
80
|
+
# and model_fields_set contains the field
|
|
81
|
+
if self.result is None and "result" in self.model_fields_set:
|
|
82
|
+
_dict['result'] = None
|
|
83
|
+
|
|
84
|
+
return _dict
|
|
85
|
+
|
|
86
|
+
@classmethod
|
|
87
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
88
|
+
"""Create an instance of AgentsExecutionScriptEvalCompletedDetails from a dict"""
|
|
89
|
+
if obj is None:
|
|
90
|
+
return None
|
|
91
|
+
|
|
92
|
+
if not isinstance(obj, dict):
|
|
93
|
+
return cls.model_validate(obj)
|
|
94
|
+
|
|
95
|
+
_obj = cls.model_validate({
|
|
96
|
+
"actionName": obj.get("actionName"),
|
|
97
|
+
"result": obj.get("result")
|
|
98
|
+
})
|
|
99
|
+
return _obj
|
|
100
|
+
|
|
101
|
+
|
|
@@ -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 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 AgentsExecutionScriptEvalStartedDetails(BaseModel):
|
|
26
|
+
"""
|
|
27
|
+
AgentsExecutionScriptEvalStartedDetails
|
|
28
|
+
""" # noqa: E501
|
|
29
|
+
action_name: StrictStr = Field(alias="actionName")
|
|
30
|
+
element: Optional[StrictStr] = None
|
|
31
|
+
ref: Optional[StrictStr] = None
|
|
32
|
+
function: StrictStr
|
|
33
|
+
__properties: ClassVar[List[str]] = ["actionName", "element", "ref", "function"]
|
|
34
|
+
|
|
35
|
+
@field_validator('action_name')
|
|
36
|
+
def action_name_validate_enum(cls, value):
|
|
37
|
+
"""Validates the enum"""
|
|
38
|
+
if value not in set(['script_eval']):
|
|
39
|
+
raise ValueError("must be one of enum values ('script_eval')")
|
|
40
|
+
return value
|
|
41
|
+
|
|
42
|
+
model_config = ConfigDict(
|
|
43
|
+
populate_by_name=True,
|
|
44
|
+
validate_assignment=True,
|
|
45
|
+
protected_namespaces=(),
|
|
46
|
+
)
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
def to_str(self) -> str:
|
|
50
|
+
"""Returns the string representation of the model using alias"""
|
|
51
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
52
|
+
|
|
53
|
+
def to_json(self) -> str:
|
|
54
|
+
"""Returns the JSON representation of the model using alias"""
|
|
55
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
56
|
+
return json.dumps(self.to_dict())
|
|
57
|
+
|
|
58
|
+
@classmethod
|
|
59
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
60
|
+
"""Create an instance of AgentsExecutionScriptEvalStartedDetails from a JSON string"""
|
|
61
|
+
return cls.from_dict(json.loads(json_str))
|
|
62
|
+
|
|
63
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
64
|
+
"""Return the dictionary representation of the model using alias.
|
|
65
|
+
|
|
66
|
+
This has the following differences from calling pydantic's
|
|
67
|
+
`self.model_dump(by_alias=True)`:
|
|
68
|
+
|
|
69
|
+
* `None` is only added to the output dict for nullable fields that
|
|
70
|
+
were set at model initialization. Other fields with value `None`
|
|
71
|
+
are ignored.
|
|
72
|
+
"""
|
|
73
|
+
excluded_fields: Set[str] = set([
|
|
74
|
+
])
|
|
75
|
+
|
|
76
|
+
_dict = self.model_dump(
|
|
77
|
+
by_alias=True,
|
|
78
|
+
exclude=excluded_fields,
|
|
79
|
+
exclude_none=True,
|
|
80
|
+
)
|
|
81
|
+
return _dict
|
|
82
|
+
|
|
83
|
+
@classmethod
|
|
84
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
85
|
+
"""Create an instance of AgentsExecutionScriptEvalStartedDetails from a dict"""
|
|
86
|
+
if obj is None:
|
|
87
|
+
return None
|
|
88
|
+
|
|
89
|
+
if not isinstance(obj, dict):
|
|
90
|
+
return cls.model_validate(obj)
|
|
91
|
+
|
|
92
|
+
_obj = cls.model_validate({
|
|
93
|
+
"actionName": obj.get("actionName"),
|
|
94
|
+
"element": obj.get("element"),
|
|
95
|
+
"ref": obj.get("ref"),
|
|
96
|
+
"function": obj.get("function")
|
|
97
|
+
})
|
|
98
|
+
return _obj
|
|
99
|
+
|
|
100
|
+
|
|
@@ -27,11 +27,11 @@ class AgentsExecutionScriptHybridPlaywrightCompletedDetails(BaseModel):
|
|
|
27
27
|
AgentsExecutionScriptHybridPlaywrightCompletedDetails
|
|
28
28
|
""" # noqa: E501
|
|
29
29
|
action_name: StrictStr = Field(alias="actionName")
|
|
30
|
+
success: StrictBool
|
|
31
|
+
result: StrictStr
|
|
30
32
|
console_logs: List[StrictStr] = Field(alias="consoleLogs")
|
|
31
33
|
failed_line: Optional[StrictInt] = Field(default=None, alias="failedLine")
|
|
32
|
-
|
|
33
|
-
success: StrictBool
|
|
34
|
-
__properties: ClassVar[List[str]] = ["actionName", "consoleLogs", "failedLine", "result", "success"]
|
|
34
|
+
__properties: ClassVar[List[str]] = ["actionName", "success", "result", "consoleLogs", "failedLine"]
|
|
35
35
|
|
|
36
36
|
@field_validator('action_name')
|
|
37
37
|
def action_name_validate_enum(cls, value):
|
|
@@ -92,10 +92,10 @@ class AgentsExecutionScriptHybridPlaywrightCompletedDetails(BaseModel):
|
|
|
92
92
|
|
|
93
93
|
_obj = cls.model_validate({
|
|
94
94
|
"actionName": obj.get("actionName"),
|
|
95
|
-
"
|
|
96
|
-
"failedLine": obj.get("failedLine"),
|
|
95
|
+
"success": obj.get("success"),
|
|
97
96
|
"result": obj.get("result"),
|
|
98
|
-
"
|
|
97
|
+
"consoleLogs": obj.get("consoleLogs"),
|
|
98
|
+
"failedLine": obj.get("failedLine")
|
|
99
99
|
})
|
|
100
100
|
return _obj
|
|
101
101
|
|