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.
Files changed (89) hide show
  1. asteroid_odyssey/__init__.py +4 -2
  2. asteroid_odyssey/agents_v1_gen/__init__.py +0 -1
  3. asteroid_odyssey/agents_v1_gen/api/execution_api.py +26 -311
  4. asteroid_odyssey/agents_v1_gen/models/__init__.py +0 -1
  5. asteroid_odyssey/agents_v1_gen/models/agent_profile.py +1 -3
  6. asteroid_odyssey/agents_v1_gen/models/create_agent_profile_request.py +1 -3
  7. asteroid_odyssey/agents_v1_gen/models/proxy_type.py +1 -0
  8. asteroid_odyssey/agents_v1_gen/models/update_agent_profile_request.py +1 -3
  9. asteroid_odyssey/agents_v2_gen/__init__.py +53 -15
  10. asteroid_odyssey/agents_v2_gen/api/__init__.py +3 -1
  11. asteroid_odyssey/agents_v2_gen/api/agents_api.py +684 -0
  12. asteroid_odyssey/agents_v2_gen/api/{default_api.py → execution_api.py} +381 -479
  13. asteroid_odyssey/agents_v2_gen/api/files_api.py +895 -0
  14. asteroid_odyssey/agents_v2_gen/models/__init__.py +50 -14
  15. asteroid_odyssey/agents_v2_gen/models/agents_agent_execute_agent_request.py +103 -0
  16. asteroid_odyssey/{agents_v1_gen/models/upload_execution_files200_response.py → agents_v2_gen/models/agents_agent_execute_agent_response.py} +11 -13
  17. asteroid_odyssey/agents_v2_gen/models/agents_execution_action_name.py +93 -0
  18. asteroid_odyssey/agents_v2_gen/models/agents_execution_activity_action_completed_info.py +350 -0
  19. asteroid_odyssey/agents_v2_gen/models/agents_execution_activity_action_completed_payload.py +25 -3
  20. asteroid_odyssey/agents_v2_gen/models/agents_execution_activity_action_failed_payload.py +19 -3
  21. asteroid_odyssey/agents_v2_gen/models/agents_execution_activity_action_started_info.py +252 -0
  22. asteroid_odyssey/agents_v2_gen/models/agents_execution_activity_action_started_payload.py +23 -3
  23. asteroid_odyssey/agents_v2_gen/models/agents_execution_activity_file_added_payload.py +10 -1
  24. asteroid_odyssey/agents_v2_gen/models/agents_execution_activity_generic_payload.py +11 -2
  25. asteroid_odyssey/agents_v2_gen/models/agents_execution_activity_payload_union.py +132 -104
  26. asteroid_odyssey/agents_v2_gen/models/agents_execution_activity_playwright_script_generated_payload.py +114 -0
  27. asteroid_odyssey/agents_v2_gen/models/{activity_payload_union_terminal.py → agents_execution_activity_reasoning_payload.py} +9 -13
  28. asteroid_odyssey/agents_v2_gen/models/agents_execution_activity_status_changed_payload.py +11 -2
  29. asteroid_odyssey/agents_v2_gen/models/agents_execution_activity_step_completed_payload.py +11 -2
  30. asteroid_odyssey/agents_v2_gen/models/agents_execution_activity_step_started_payload.py +11 -2
  31. asteroid_odyssey/agents_v2_gen/models/agents_execution_activity_transitioned_node_payload.py +20 -4
  32. asteroid_odyssey/agents_v2_gen/models/agents_execution_activity_user_message_received_payload.py +11 -2
  33. asteroid_odyssey/agents_v2_gen/models/{activity_payload_union_action_started.py → agents_execution_activity_workflow_updated_payload.py} +17 -13
  34. asteroid_odyssey/agents_v2_gen/models/agents_execution_comment.py +100 -0
  35. asteroid_odyssey/agents_v2_gen/models/agents_execution_completed_payload.py +4 -11
  36. asteroid_odyssey/agents_v2_gen/models/agents_execution_element_file_upload_completed_details.py +96 -0
  37. asteroid_odyssey/agents_v2_gen/models/agents_execution_execution_result.py +103 -0
  38. asteroid_odyssey/agents_v2_gen/models/agents_execution_ext_api_call_completed_details.py +102 -0
  39. asteroid_odyssey/agents_v2_gen/models/agents_execution_ext_get_mail_completed_details.py +98 -0
  40. asteroid_odyssey/agents_v2_gen/models/agents_execution_failed_payload.py +8 -2
  41. asteroid_odyssey/agents_v2_gen/models/{activity_payload_union_file_added.py → agents_execution_file_list_completed_details.py} +13 -17
  42. asteroid_odyssey/agents_v2_gen/models/agents_execution_file_read_completed_details.py +100 -0
  43. asteroid_odyssey/agents_v2_gen/models/agents_execution_file_stage_completed_details.py +96 -0
  44. asteroid_odyssey/agents_v2_gen/models/agents_execution_human_label.py +96 -0
  45. asteroid_odyssey/agents_v2_gen/models/agents_execution_list_item.py +141 -0
  46. asteroid_odyssey/agents_v2_gen/models/agents_execution_llm_call_purpose.py +40 -0
  47. asteroid_odyssey/agents_v2_gen/models/agents_execution_llm_call_started_details.py +97 -0
  48. asteroid_odyssey/agents_v2_gen/models/agents_execution_nav_to_completed_details.py +96 -0
  49. asteroid_odyssey/agents_v2_gen/models/agents_execution_nav_to_started_details.py +96 -0
  50. asteroid_odyssey/agents_v2_gen/models/agents_execution_obs_snapshot_with_selectors_completed_details.py +98 -0
  51. asteroid_odyssey/agents_v2_gen/models/agents_execution_rules_details.py +87 -0
  52. asteroid_odyssey/agents_v2_gen/models/agents_execution_scratchpad_read_completed_details.py +98 -0
  53. asteroid_odyssey/agents_v2_gen/models/{activity_payload_union_generic.py → agents_execution_scratchpad_read_started_details.py} +20 -17
  54. asteroid_odyssey/agents_v2_gen/models/agents_execution_scratchpad_write_completed_details.py +104 -0
  55. asteroid_odyssey/agents_v2_gen/models/{activity_payload_union_step_started.py → agents_execution_scratchpad_write_started_details.py} +20 -17
  56. asteroid_odyssey/agents_v2_gen/models/agents_execution_script_hybrid_playwright_completed_details.py +102 -0
  57. asteroid_odyssey/agents_v2_gen/models/agents_execution_script_hybrid_playwright_started_details.py +96 -0
  58. asteroid_odyssey/agents_v2_gen/models/agents_execution_script_pad_run_function_completed_details.py +102 -0
  59. asteroid_odyssey/agents_v2_gen/models/agents_execution_script_playwright_completed_details.py +102 -0
  60. asteroid_odyssey/agents_v2_gen/models/agents_execution_script_playwright_started_details.py +96 -0
  61. asteroid_odyssey/agents_v2_gen/models/agents_execution_scriptpad_read_completed_details.py +96 -0
  62. asteroid_odyssey/agents_v2_gen/models/agents_execution_scriptpad_read_started_details.py +98 -0
  63. asteroid_odyssey/agents_v2_gen/models/{activity_payload_union_action_completed.py → agents_execution_scriptpad_run_function_started_details.py} +21 -18
  64. asteroid_odyssey/agents_v2_gen/models/agents_execution_scriptpad_search_replace_completed_details.py +106 -0
  65. asteroid_odyssey/agents_v2_gen/models/agents_execution_scriptpad_search_replace_started_details.py +100 -0
  66. asteroid_odyssey/agents_v2_gen/models/agents_execution_scriptpad_write_completed_details.py +102 -0
  67. asteroid_odyssey/agents_v2_gen/models/agents_execution_sort_field.py +37 -0
  68. asteroid_odyssey/agents_v2_gen/models/agents_execution_terminal_payload.py +11 -2
  69. asteroid_odyssey/agents_v2_gen/models/{activity_payload_union_action_failed.py → agents_execution_util_get_datetime_completed_details.py} +20 -19
  70. asteroid_odyssey/agents_v2_gen/models/agents_execution_util_get_datetime_started_details.py +96 -0
  71. asteroid_odyssey/agents_v2_gen/models/{agents_execution_graph_update.py → agents_execution_workflow_update.py} +11 -5
  72. asteroid_odyssey/agents_v2_gen/models/agents_files_temp_file.py +89 -0
  73. asteroid_odyssey/agents_v2_gen/models/{agents_execution_activity_graph_updated_payload.py → agents_files_temp_files_response.py} +14 -14
  74. asteroid_odyssey/agents_v2_gen/models/agents_graph_models_nodes_properties_playwright_script_llm_var.py +92 -0
  75. asteroid_odyssey/agents_v2_gen/models/agents_graph_models_nodes_properties_playwright_script_llm_var_type.py +38 -0
  76. asteroid_odyssey/agents_v2_gen/models/agents_graph_models_transitions_transition_type.py +38 -0
  77. asteroid_odyssey/agents_v2_gen/models/common_os_error.py +87 -0
  78. asteroid_odyssey/agents_v2_gen/models/executions_list200_response.py +101 -0
  79. asteroid_odyssey/client.py +204 -33
  80. {asteroid_odyssey-1.3.7.dist-info → asteroid_odyssey-1.3.8.dist-info}/METADATA +1 -1
  81. asteroid_odyssey-1.3.8.dist-info/RECORD +132 -0
  82. asteroid_odyssey/agents_v2_gen/models/activity_payload_union_graph_updated.py +0 -100
  83. asteroid_odyssey/agents_v2_gen/models/activity_payload_union_status_changed.py +0 -100
  84. asteroid_odyssey/agents_v2_gen/models/activity_payload_union_step_completed.py +0 -100
  85. asteroid_odyssey/agents_v2_gen/models/activity_payload_union_transitioned_node.py +0 -100
  86. asteroid_odyssey/agents_v2_gen/models/activity_payload_union_user_message_received.py +0 -100
  87. asteroid_odyssey-1.3.7.dist-info/RECORD +0 -95
  88. {asteroid_odyssey-1.3.7.dist-info → asteroid_odyssey-1.3.8.dist-info}/WHEEL +0 -0
  89. {asteroid_odyssey-1.3.7.dist-info → asteroid_odyssey-1.3.8.dist-info}/top_level.txt +0 -0
@@ -1,100 +0,0 @@
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 asteroid_odyssey.agents_v2_gen.models.agents_execution_activity_graph_updated_payload import AgentsExecutionActivityGraphUpdatedPayload
23
- from typing import Optional, Set
24
- from typing_extensions import Self
25
-
26
- class ActivityPayloadUnionGraphUpdated(BaseModel):
27
- """
28
- ActivityPayloadUnionGraphUpdated
29
- """ # noqa: E501
30
- activity_type: StrictStr = Field(alias="activityType")
31
- data: AgentsExecutionActivityGraphUpdatedPayload
32
- __properties: ClassVar[List[str]] = ["activityType", "data"]
33
-
34
- @field_validator('activity_type')
35
- def activity_type_validate_enum(cls, value):
36
- """Validates the enum"""
37
- if value not in set(['graph_updated']):
38
- raise ValueError("must be one of enum values ('graph_updated')")
39
- return value
40
-
41
- model_config = ConfigDict(
42
- populate_by_name=True,
43
- validate_assignment=True,
44
- protected_namespaces=(),
45
- )
46
-
47
-
48
- def to_str(self) -> str:
49
- """Returns the string representation of the model using alias"""
50
- return pprint.pformat(self.model_dump(by_alias=True))
51
-
52
- def to_json(self) -> str:
53
- """Returns the JSON representation of the model using alias"""
54
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
55
- return json.dumps(self.to_dict())
56
-
57
- @classmethod
58
- def from_json(cls, json_str: str) -> Optional[Self]:
59
- """Create an instance of ActivityPayloadUnionGraphUpdated from a JSON string"""
60
- return cls.from_dict(json.loads(json_str))
61
-
62
- def to_dict(self) -> Dict[str, Any]:
63
- """Return the dictionary representation of the model using alias.
64
-
65
- This has the following differences from calling pydantic's
66
- `self.model_dump(by_alias=True)`:
67
-
68
- * `None` is only added to the output dict for nullable fields that
69
- were set at model initialization. Other fields with value `None`
70
- are ignored.
71
- """
72
- excluded_fields: Set[str] = set([
73
- ])
74
-
75
- _dict = self.model_dump(
76
- by_alias=True,
77
- exclude=excluded_fields,
78
- exclude_none=True,
79
- )
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
- return _dict
84
-
85
- @classmethod
86
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
87
- """Create an instance of ActivityPayloadUnionGraphUpdated from a dict"""
88
- if obj is None:
89
- return None
90
-
91
- if not isinstance(obj, dict):
92
- return cls.model_validate(obj)
93
-
94
- _obj = cls.model_validate({
95
- "activityType": obj.get("activityType"),
96
- "data": AgentsExecutionActivityGraphUpdatedPayload.from_dict(obj["data"]) if obj.get("data") is not None else None
97
- })
98
- return _obj
99
-
100
-
@@ -1,100 +0,0 @@
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 asteroid_odyssey.agents_v2_gen.models.agents_execution_activity_status_changed_payload import AgentsExecutionActivityStatusChangedPayload
23
- from typing import Optional, Set
24
- from typing_extensions import Self
25
-
26
- class ActivityPayloadUnionStatusChanged(BaseModel):
27
- """
28
- ActivityPayloadUnionStatusChanged
29
- """ # noqa: E501
30
- activity_type: StrictStr = Field(alias="activityType")
31
- data: AgentsExecutionActivityStatusChangedPayload
32
- __properties: ClassVar[List[str]] = ["activityType", "data"]
33
-
34
- @field_validator('activity_type')
35
- def activity_type_validate_enum(cls, value):
36
- """Validates the enum"""
37
- if value not in set(['status_changed']):
38
- raise ValueError("must be one of enum values ('status_changed')")
39
- return value
40
-
41
- model_config = ConfigDict(
42
- populate_by_name=True,
43
- validate_assignment=True,
44
- protected_namespaces=(),
45
- )
46
-
47
-
48
- def to_str(self) -> str:
49
- """Returns the string representation of the model using alias"""
50
- return pprint.pformat(self.model_dump(by_alias=True))
51
-
52
- def to_json(self) -> str:
53
- """Returns the JSON representation of the model using alias"""
54
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
55
- return json.dumps(self.to_dict())
56
-
57
- @classmethod
58
- def from_json(cls, json_str: str) -> Optional[Self]:
59
- """Create an instance of ActivityPayloadUnionStatusChanged from a JSON string"""
60
- return cls.from_dict(json.loads(json_str))
61
-
62
- def to_dict(self) -> Dict[str, Any]:
63
- """Return the dictionary representation of the model using alias.
64
-
65
- This has the following differences from calling pydantic's
66
- `self.model_dump(by_alias=True)`:
67
-
68
- * `None` is only added to the output dict for nullable fields that
69
- were set at model initialization. Other fields with value `None`
70
- are ignored.
71
- """
72
- excluded_fields: Set[str] = set([
73
- ])
74
-
75
- _dict = self.model_dump(
76
- by_alias=True,
77
- exclude=excluded_fields,
78
- exclude_none=True,
79
- )
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
- return _dict
84
-
85
- @classmethod
86
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
87
- """Create an instance of ActivityPayloadUnionStatusChanged from a dict"""
88
- if obj is None:
89
- return None
90
-
91
- if not isinstance(obj, dict):
92
- return cls.model_validate(obj)
93
-
94
- _obj = cls.model_validate({
95
- "activityType": obj.get("activityType"),
96
- "data": AgentsExecutionActivityStatusChangedPayload.from_dict(obj["data"]) if obj.get("data") is not None else None
97
- })
98
- return _obj
99
-
100
-
@@ -1,100 +0,0 @@
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 asteroid_odyssey.agents_v2_gen.models.agents_execution_activity_step_completed_payload import AgentsExecutionActivityStepCompletedPayload
23
- from typing import Optional, Set
24
- from typing_extensions import Self
25
-
26
- class ActivityPayloadUnionStepCompleted(BaseModel):
27
- """
28
- ActivityPayloadUnionStepCompleted
29
- """ # noqa: E501
30
- activity_type: StrictStr = Field(alias="activityType")
31
- data: AgentsExecutionActivityStepCompletedPayload
32
- __properties: ClassVar[List[str]] = ["activityType", "data"]
33
-
34
- @field_validator('activity_type')
35
- def activity_type_validate_enum(cls, value):
36
- """Validates the enum"""
37
- if value not in set(['step_completed']):
38
- raise ValueError("must be one of enum values ('step_completed')")
39
- return value
40
-
41
- model_config = ConfigDict(
42
- populate_by_name=True,
43
- validate_assignment=True,
44
- protected_namespaces=(),
45
- )
46
-
47
-
48
- def to_str(self) -> str:
49
- """Returns the string representation of the model using alias"""
50
- return pprint.pformat(self.model_dump(by_alias=True))
51
-
52
- def to_json(self) -> str:
53
- """Returns the JSON representation of the model using alias"""
54
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
55
- return json.dumps(self.to_dict())
56
-
57
- @classmethod
58
- def from_json(cls, json_str: str) -> Optional[Self]:
59
- """Create an instance of ActivityPayloadUnionStepCompleted from a JSON string"""
60
- return cls.from_dict(json.loads(json_str))
61
-
62
- def to_dict(self) -> Dict[str, Any]:
63
- """Return the dictionary representation of the model using alias.
64
-
65
- This has the following differences from calling pydantic's
66
- `self.model_dump(by_alias=True)`:
67
-
68
- * `None` is only added to the output dict for nullable fields that
69
- were set at model initialization. Other fields with value `None`
70
- are ignored.
71
- """
72
- excluded_fields: Set[str] = set([
73
- ])
74
-
75
- _dict = self.model_dump(
76
- by_alias=True,
77
- exclude=excluded_fields,
78
- exclude_none=True,
79
- )
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
- return _dict
84
-
85
- @classmethod
86
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
87
- """Create an instance of ActivityPayloadUnionStepCompleted from a dict"""
88
- if obj is None:
89
- return None
90
-
91
- if not isinstance(obj, dict):
92
- return cls.model_validate(obj)
93
-
94
- _obj = cls.model_validate({
95
- "activityType": obj.get("activityType"),
96
- "data": AgentsExecutionActivityStepCompletedPayload.from_dict(obj["data"]) if obj.get("data") is not None else None
97
- })
98
- return _obj
99
-
100
-
@@ -1,100 +0,0 @@
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 asteroid_odyssey.agents_v2_gen.models.agents_execution_activity_transitioned_node_payload import AgentsExecutionActivityTransitionedNodePayload
23
- from typing import Optional, Set
24
- from typing_extensions import Self
25
-
26
- class ActivityPayloadUnionTransitionedNode(BaseModel):
27
- """
28
- ActivityPayloadUnionTransitionedNode
29
- """ # noqa: E501
30
- activity_type: StrictStr = Field(alias="activityType")
31
- data: AgentsExecutionActivityTransitionedNodePayload
32
- __properties: ClassVar[List[str]] = ["activityType", "data"]
33
-
34
- @field_validator('activity_type')
35
- def activity_type_validate_enum(cls, value):
36
- """Validates the enum"""
37
- if value not in set(['transitioned_node']):
38
- raise ValueError("must be one of enum values ('transitioned_node')")
39
- return value
40
-
41
- model_config = ConfigDict(
42
- populate_by_name=True,
43
- validate_assignment=True,
44
- protected_namespaces=(),
45
- )
46
-
47
-
48
- def to_str(self) -> str:
49
- """Returns the string representation of the model using alias"""
50
- return pprint.pformat(self.model_dump(by_alias=True))
51
-
52
- def to_json(self) -> str:
53
- """Returns the JSON representation of the model using alias"""
54
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
55
- return json.dumps(self.to_dict())
56
-
57
- @classmethod
58
- def from_json(cls, json_str: str) -> Optional[Self]:
59
- """Create an instance of ActivityPayloadUnionTransitionedNode from a JSON string"""
60
- return cls.from_dict(json.loads(json_str))
61
-
62
- def to_dict(self) -> Dict[str, Any]:
63
- """Return the dictionary representation of the model using alias.
64
-
65
- This has the following differences from calling pydantic's
66
- `self.model_dump(by_alias=True)`:
67
-
68
- * `None` is only added to the output dict for nullable fields that
69
- were set at model initialization. Other fields with value `None`
70
- are ignored.
71
- """
72
- excluded_fields: Set[str] = set([
73
- ])
74
-
75
- _dict = self.model_dump(
76
- by_alias=True,
77
- exclude=excluded_fields,
78
- exclude_none=True,
79
- )
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
- return _dict
84
-
85
- @classmethod
86
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
87
- """Create an instance of ActivityPayloadUnionTransitionedNode from a dict"""
88
- if obj is None:
89
- return None
90
-
91
- if not isinstance(obj, dict):
92
- return cls.model_validate(obj)
93
-
94
- _obj = cls.model_validate({
95
- "activityType": obj.get("activityType"),
96
- "data": AgentsExecutionActivityTransitionedNodePayload.from_dict(obj["data"]) if obj.get("data") is not None else None
97
- })
98
- return _obj
99
-
100
-
@@ -1,100 +0,0 @@
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 asteroid_odyssey.agents_v2_gen.models.agents_execution_activity_user_message_received_payload import AgentsExecutionActivityUserMessageReceivedPayload
23
- from typing import Optional, Set
24
- from typing_extensions import Self
25
-
26
- class ActivityPayloadUnionUserMessageReceived(BaseModel):
27
- """
28
- ActivityPayloadUnionUserMessageReceived
29
- """ # noqa: E501
30
- activity_type: StrictStr = Field(alias="activityType")
31
- data: AgentsExecutionActivityUserMessageReceivedPayload
32
- __properties: ClassVar[List[str]] = ["activityType", "data"]
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
40
-
41
- model_config = ConfigDict(
42
- populate_by_name=True,
43
- validate_assignment=True,
44
- protected_namespaces=(),
45
- )
46
-
47
-
48
- def to_str(self) -> str:
49
- """Returns the string representation of the model using alias"""
50
- return pprint.pformat(self.model_dump(by_alias=True))
51
-
52
- def to_json(self) -> str:
53
- """Returns the JSON representation of the model using alias"""
54
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
55
- return json.dumps(self.to_dict())
56
-
57
- @classmethod
58
- def from_json(cls, json_str: str) -> Optional[Self]:
59
- """Create an instance of ActivityPayloadUnionUserMessageReceived from a JSON string"""
60
- return cls.from_dict(json.loads(json_str))
61
-
62
- def to_dict(self) -> Dict[str, Any]:
63
- """Return the dictionary representation of the model using alias.
64
-
65
- This has the following differences from calling pydantic's
66
- `self.model_dump(by_alias=True)`:
67
-
68
- * `None` is only added to the output dict for nullable fields that
69
- were set at model initialization. Other fields with value `None`
70
- are ignored.
71
- """
72
- excluded_fields: Set[str] = set([
73
- ])
74
-
75
- _dict = self.model_dump(
76
- by_alias=True,
77
- exclude=excluded_fields,
78
- exclude_none=True,
79
- )
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
- return _dict
84
-
85
- @classmethod
86
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
87
- """Create an instance of ActivityPayloadUnionUserMessageReceived from a dict"""
88
- if obj is None:
89
- return None
90
-
91
- if not isinstance(obj, dict):
92
- return cls.model_validate(obj)
93
-
94
- _obj = cls.model_validate({
95
- "activityType": obj.get("activityType"),
96
- "data": AgentsExecutionActivityUserMessageReceivedPayload.from_dict(obj["data"]) if obj.get("data") is not None else None
97
- })
98
- return _obj
99
-
100
-
@@ -1,95 +0,0 @@
1
- asteroid_odyssey/__init__.py,sha256=Yf0kbvXjjKVBPQV51JCQmId5-CrOhFriHTMOkZmzG2Q,1241
2
- asteroid_odyssey/client.py,sha256=ZonpLkQyZwA4vyvfUxiwnLDIew9dH_1snD7ntfoalvU,52602
3
- asteroid_odyssey/agents_v1_gen/__init__.py,sha256=8K6-PiJN3GIkyu_PNGDP7l-IKY_F67iyR4lSSO541HE,2958
4
- asteroid_odyssey/agents_v1_gen/api_client.py,sha256=sxH4_y4LtJLTmK9Sd67qYIkHwnbjLGFI7aaL-Y4xZUs,27513
5
- asteroid_odyssey/agents_v1_gen/api_response.py,sha256=eMxw1mpmJcoGZ3gs9z6jM4oYoZ10Gjk333s9sKxGv7s,652
6
- asteroid_odyssey/agents_v1_gen/configuration.py,sha256=1t9XRUOXQHxmjI04S56NYuqNXC7Bh-vuDA9jKTzBUK0,18722
7
- asteroid_odyssey/agents_v1_gen/exceptions.py,sha256=xauMukb96TkgN7Rx5c_d_XWOJb7ldCY5SuTmybyKTr8,6414
8
- asteroid_odyssey/agents_v1_gen/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
- asteroid_odyssey/agents_v1_gen/rest.py,sha256=iduh4ZegNAHkGyuLXUjHAQFp5U82c-dtAMCvTTBO0Fg,9371
10
- asteroid_odyssey/agents_v1_gen/api/__init__.py,sha256=oj1pzgrbo8C6FrpBVC7IvfUu-uplU4JQjfE_jZE0Mz4,265
11
- asteroid_odyssey/agents_v1_gen/api/agent_profile_api.py,sha256=uOgyH3VN8LseS5Mq2uFxAbZM5iH88O0YEmXFTMc8bQ0,66369
12
- asteroid_odyssey/agents_v1_gen/api/api_api.py,sha256=vqZ7wQEQGOpa1D6U1QLL27XK-0DY5_v9tdQJNt_lpsM,19217
13
- asteroid_odyssey/agents_v1_gen/api/execution_api.py,sha256=RXYDwX_VKMfM44IrKRb-c5D3FXnAPw8QQcpqDoGpL3Q,67849
14
- asteroid_odyssey/agents_v1_gen/models/__init__.py,sha256=B4qBgPxwjUAB2yKdPOgFj_uYNjxMYCwaLrKUBrKTuiI,2053
15
- asteroid_odyssey/agents_v1_gen/models/agent_profile.py,sha256=RvajM_2oFgPBZqEnyJAtpF_oV-jNNcKA6nm68bDCGKc,5754
16
- asteroid_odyssey/agents_v1_gen/models/browser_session_recording_response.py,sha256=OgYXsMiADk5IIDKkWJTy0RfnnBO3Zbaq9mEUyaxTaH0,2590
17
- asteroid_odyssey/agents_v1_gen/models/cookie.py,sha256=jvK-SgpFn8Untq3JnHTxDQnznT6Snn7Vnykba1-c3XU,4020
18
- asteroid_odyssey/agents_v1_gen/models/country_code.py,sha256=pYFM0OC_maaGfUsFTTnKtSJxXKQiNS0pU3O0LLFz_Uo,802
19
- asteroid_odyssey/agents_v1_gen/models/create_agent_profile_request.py,sha256=lRSWRhLxMXlV1oU1UrV9PIYymNjx5yVpYbiB_MMtlEI,5724
20
- asteroid_odyssey/agents_v1_gen/models/credential.py,sha256=MSzwgGLjNiH_fclHpZpYKKDWn-498etD1CLS_EfmA7k,3033
21
- asteroid_odyssey/agents_v1_gen/models/delete_agent_profile200_response.py,sha256=y6gaG8VLeC2muBcw-i6KG64i-xrHq1v-8A7T8ViwBwk,2514
22
- asteroid_odyssey/agents_v1_gen/models/error_response.py,sha256=njnDeKZeMPiteuX4l3MsWTHkG4qEiv8sbIUTv0Z8yQY,2459
23
- asteroid_odyssey/agents_v1_gen/models/execution_response.py,sha256=c4PJNQDsWlQwumSonH1Sxqcb1q521FhNGgZugoinZNA,2513
24
- asteroid_odyssey/agents_v1_gen/models/execution_result.py,sha256=o6V8oHt9QR7vfRcCrnHwk8exwALUollWBfShze_lzBM,3354
25
- asteroid_odyssey/agents_v1_gen/models/execution_result_response.py,sha256=zBGBV9FOtCOFE9vDwfWEJkcKMkXYOHluo2ycJlW_S2A,3603
26
- asteroid_odyssey/agents_v1_gen/models/execution_status_response.py,sha256=ykdr-9kRFmIs3FnmsYWrlX4s-096wlMy3BQX6CCdiBc,3050
27
- asteroid_odyssey/agents_v1_gen/models/health_check200_response.py,sha256=x_6F6rhTvqpuMUFtD5ynLrUFY4vuVdkWfDRkTx2hVp0,2548
28
- asteroid_odyssey/agents_v1_gen/models/health_check500_response.py,sha256=b6pG-pqUKkQ5oqmWWyakdr7YYjnTYYeZjoVHkcU-TSY,2533
29
- asteroid_odyssey/agents_v1_gen/models/proxy_type.py,sha256=5AUJvncQEl77V3QLJCIidk-WQRU1BlhMJo9ARUUdo1Y,704
30
- asteroid_odyssey/agents_v1_gen/models/status.py,sha256=tnt_4jdoMzcjo6J0vttf2QKLNK0FC9XcjZKbGC3sbz0,889
31
- asteroid_odyssey/agents_v1_gen/models/structured_agent_execution_request.py,sha256=VZyW85pVz9T27aiG4ZlGywnnxTOaJCAjHSDz8D2YxY8,2913
32
- asteroid_odyssey/agents_v1_gen/models/update_agent_profile_request.py,sha256=YThkvG1dNkbKqFB9-h0NJoi6uy7mnLH4Wc-NsIGqiYw,6166
33
- asteroid_odyssey/agents_v1_gen/models/upload_execution_files200_response.py,sha256=u85oEP2bEuhszonE78VcrB_keT0UZpv16CTGvfse_v4,2735
34
- asteroid_odyssey/agents_v2_gen/__init__.py,sha256=0pELLpaJvn2Vda0oeiY475XzvhKLJpjkiC1v8qGqtO0,6758
35
- asteroid_odyssey/agents_v2_gen/api_client.py,sha256=zf8LBIbhuInmYPs4iTmxc8mU4gwONeX3JPq3D8ZTftM,27573
36
- asteroid_odyssey/agents_v2_gen/api_response.py,sha256=eMxw1mpmJcoGZ3gs9z6jM4oYoZ10Gjk333s9sKxGv7s,652
37
- asteroid_odyssey/agents_v2_gen/configuration.py,sha256=z_um4Jc01mYd-U0-8J74KOy2AJYq6KDtcRxBtDFVsEQ,18593
38
- asteroid_odyssey/agents_v2_gen/exceptions.py,sha256=UnVNkXG6lZtS5J3YpOcPu3rg5SUP1XRwSyYJl30rM0M,6474
39
- asteroid_odyssey/agents_v2_gen/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
40
- asteroid_odyssey/agents_v2_gen/rest.py,sha256=pSjg1rCUe0Z7K1xrRtsHwQo7Xa-yF35k2o2ORAdbiKY,9431
41
- asteroid_odyssey/agents_v2_gen/api/__init__.py,sha256=jvLhL8WKW4InzOreSDe3WhP-Uo37bExtU5Lrn-mwB_w,118
42
- asteroid_odyssey/agents_v2_gen/api/default_api.py,sha256=vi7mPLgdMIWCZNbDuSMc8Kn_byLWKrg10uEj59-ebHo,60717
43
- asteroid_odyssey/agents_v2_gen/models/__init__.py,sha256=gGJqNkAlDrGYl9lhmWoC1EeyhpHdKDCYrG95W1uE_JE,6000
44
- asteroid_odyssey/agents_v2_gen/models/activity_payload_union_action_completed.py,sha256=gVlMAXp-Ydq34A-chIQawsjNMBdaiIudn2Nxu6XbcAY,3414
45
- asteroid_odyssey/agents_v2_gen/models/activity_payload_union_action_failed.py,sha256=HF2es7XXOhpAcbTd2WAy7i0RyCfkot6FsZPn6UKkAuA,3384
46
- asteroid_odyssey/agents_v2_gen/models/activity_payload_union_action_started.py,sha256=-lMn_Sj_Ci27NqsH345jhq0PjXoCPXRBeREkc18FVZU,3394
47
- asteroid_odyssey/agents_v2_gen/models/activity_payload_union_file_added.py,sha256=1j0eL5GgcRO9l9LP3ChZaOw2IAXz0bqOGXzLFWiuQn8,3354
48
- asteroid_odyssey/agents_v2_gen/models/activity_payload_union_generic.py,sha256=4wyRtRR73Sv1q7mjyVtDrmoW6D98xRvh6nTQEsasmnY,3331
49
- asteroid_odyssey/agents_v2_gen/models/activity_payload_union_graph_updated.py,sha256=3auZHM1oaB7-SM3txTkqlRFo12Z5Bc5ol2fj9vsY0aI,3384
50
- asteroid_odyssey/agents_v2_gen/models/activity_payload_union_status_changed.py,sha256=d_Y43Wr8LGzjFDvuOQS2BcqF-127deg0bBpPtSjdcHY,3394
51
- asteroid_odyssey/agents_v2_gen/models/activity_payload_union_step_completed.py,sha256=MF58NYdi_r-ix3yrY6huqQKYKFIQBM-bUn231eGbLjo,3394
52
- asteroid_odyssey/agents_v2_gen/models/activity_payload_union_step_started.py,sha256=3dPj9xwnRY2CoabU1ILe_hPvcZvicMVEWEnxGbCbMJ0,3374
53
- asteroid_odyssey/agents_v2_gen/models/activity_payload_union_terminal.py,sha256=B9p8Uqnuh8OEPXqZQoupBAHctbUqGgE1Q5SFkh3QwIU,3308
54
- asteroid_odyssey/agents_v2_gen/models/activity_payload_union_transitioned_node.py,sha256=3_yDUszoQac4_MI5VxYpf0KvMIoIvQSw8VYZPqiDBeU,3424
55
- asteroid_odyssey/agents_v2_gen/models/activity_payload_union_user_message_received.py,sha256=U5XMxiPSfxntvFBnJwAQnYCi55y8DNO5hTas3ZIjzQE,3457
56
- asteroid_odyssey/agents_v2_gen/models/agent_list200_response.py,sha256=09DlBwTk0VSWPgfLewU9HkNncyrz1ij2I7PxtaYQC8o,3249
57
- asteroid_odyssey/agents_v2_gen/models/agents_agent_base.py,sha256=XfW4gpuvynUZ1JJn1ovnLBcM25fB_Ctgnm7VO1NoiNg,2955
58
- asteroid_odyssey/agents_v2_gen/models/agents_agent_sort_field.py,sha256=vxZxy30RGb858YI2WH8Z1U_vV9yRzKnaCCRAJj9Xek0,780
59
- asteroid_odyssey/agents_v2_gen/models/agents_execution_activity.py,sha256=ZaqHV8COfTp_uCk6zQcyAigsaZwpm1RloaPeC6oQ4-g,3228
60
- asteroid_odyssey/agents_v2_gen/models/agents_execution_activity_action_completed_payload.py,sha256=UnHxt4cfv1TbNsQ_6pTcrQqCLpWi5IQ_p7kv-HWPFF8,2611
61
- asteroid_odyssey/agents_v2_gen/models/agents_execution_activity_action_failed_payload.py,sha256=Ms4yDc7s2fNyBhLqB0mST6v3gFviaoH0JNM45P2Qzns,2599
62
- asteroid_odyssey/agents_v2_gen/models/agents_execution_activity_action_started_payload.py,sha256=AU9erFl0z9RgS49ZBdlEgHRxLSnpAAME4pyPmGOaF3c,2603
63
- asteroid_odyssey/agents_v2_gen/models/agents_execution_activity_file_added_payload.py,sha256=iWN5FUFyoQgyDghWSdXRmPOG6E2GbxXiNXogcQGOmNM,3431
64
- asteroid_odyssey/agents_v2_gen/models/agents_execution_activity_generic_payload.py,sha256=7MweXfhGyd2eSckTh86-FBp_FMOjHx-XJ_QIJ926nI4,2579
65
- asteroid_odyssey/agents_v2_gen/models/agents_execution_activity_graph_updated_payload.py,sha256=2KSTVukoM1QCKaQCwEruOsYEpk5-hkt4clSQJ7VLuEU,3237
66
- asteroid_odyssey/agents_v2_gen/models/agents_execution_activity_payload_union.py,sha256=wcJFiZxYFCN2DyIiNfDo4WRKcnGyBmxRHP99z3hQZGA,17127
67
- asteroid_odyssey/agents_v2_gen/models/agents_execution_activity_status_changed_payload.py,sha256=U4wWCj5UXUYwg1Dprq7xf6tA2sjW9d9Q5CzzmmEqNro,5823
68
- asteroid_odyssey/agents_v2_gen/models/agents_execution_activity_step_completed_payload.py,sha256=lIdf1SgIhTZpMz0t2Jd9Mn4uX-ZCzsRYFZqa3F5Ge5Y,2651
69
- asteroid_odyssey/agents_v2_gen/models/agents_execution_activity_step_started_payload.py,sha256=Ey6hBAi9Ovzh8VELa6q1Ob5gWyASZ7nf-oknxyu8rr8,2643
70
- asteroid_odyssey/agents_v2_gen/models/agents_execution_activity_transitioned_node_payload.py,sha256=vjHsh3yRgSuyJA-DQOYKwGft0lq_NTNC8lP6aaXQTO4,2793
71
- asteroid_odyssey/agents_v2_gen/models/agents_execution_activity_user_message_received_payload.py,sha256=Sn2v55vYwgb6uhjVWd12ZogZooJTZ-XzSz1EDos5ucc,2742
72
- asteroid_odyssey/agents_v2_gen/models/agents_execution_awaiting_confirmation_payload.py,sha256=ebQJgeBSCQpLM_Z601NFSg8xQF9b5MsvGVY59dgCWW4,2595
73
- asteroid_odyssey/agents_v2_gen/models/agents_execution_cancel_reason.py,sha256=oOJGrFL0N4BYFQLcT8WfBCbhk2ccyly733vqwEd-Ewc,843
74
- asteroid_odyssey/agents_v2_gen/models/agents_execution_cancelled_payload.py,sha256=1rU132jiPc4Ol2S8VqzAn0SDglL6UjcSNDpP-QHuD9Q,2667
75
- asteroid_odyssey/agents_v2_gen/models/agents_execution_completed_payload.py,sha256=1ZC5upBHqQhB4IgLONrISvj7OZxOibi0Ls5RDST-wBs,3330
76
- asteroid_odyssey/agents_v2_gen/models/agents_execution_failed_payload.py,sha256=hCmL2EpSQoHZFDNH2q8zVot0k5UBkJ9f-XdIVsSo998,2539
77
- asteroid_odyssey/agents_v2_gen/models/agents_execution_graph_update.py,sha256=sV2VfUDDIZ597NHOJnohLXOARrVv-uiJ35Yb9UZDw7A,3861
78
- asteroid_odyssey/agents_v2_gen/models/agents_execution_node_details.py,sha256=ER2CJB4e_zIJyBlDxoi-oh3DyOEdzG7lQKo_GWLZ-KI,2779
79
- asteroid_odyssey/agents_v2_gen/models/agents_execution_paused_payload.py,sha256=slW-OsLyXs3JyDE9Zx8YGIU2y0msgoKCbHDG8IkYG8k,2539
80
- asteroid_odyssey/agents_v2_gen/models/agents_execution_status.py,sha256=xGM7e94JQGqf9tA4nl0hpmJWFLTIyLhPDLR-bnx_QuY,977
81
- asteroid_odyssey/agents_v2_gen/models/agents_execution_terminal_payload.py,sha256=R03OwsvXt6wTv7pHO6Ux6h9kqpIZX5KBnctf8GM0wmE,2959
82
- asteroid_odyssey/agents_v2_gen/models/agents_execution_transition_details.py,sha256=v9DuY5uODsDIO49hxUcn8gfUv7fED7G6Nz2Qf95iT2o,2755
83
- asteroid_odyssey/agents_v2_gen/models/agents_execution_update_type.py,sha256=2oVD53MapRhp93RB9fBDltn9ZWlR0rNApk-dLR5P-Rg,803
84
- asteroid_odyssey/agents_v2_gen/models/agents_execution_user_messages_add_text_body.py,sha256=RvfuJaVRDkEunpPBdLBVEfj7muuIokoQXHxZJ_o1FHE,2583
85
- asteroid_odyssey/agents_v2_gen/models/agents_files_file.py,sha256=nw4_8muCPxjAaRkjXNtM3iD-_IBwOjjX223q9pq7R5s,3613
86
- asteroid_odyssey/agents_v2_gen/models/common_bad_request_error_body.py,sha256=cZQcZH6c2RmQleZe57-mfUsCKW74lGGtVMWbJFGc1ho,2889
87
- asteroid_odyssey/agents_v2_gen/models/common_error.py,sha256=to8zl1yPqcf8hRXEZeOrhuA_jWhmpaMmly5Y_Xl129k,2551
88
- asteroid_odyssey/agents_v2_gen/models/common_forbidden_error_body.py,sha256=9yADAujD_9eTW4BtZ7oYifmFCDTpAw-j1jEEJhwdAVs,2885
89
- asteroid_odyssey/agents_v2_gen/models/common_not_found_error_body.py,sha256=BAVAweVD5ltGL2lWfdDNwaq82CI4iVkPVE_E9JfEpi8,2881
90
- asteroid_odyssey/agents_v2_gen/models/common_sort_direction.py,sha256=UBW99PM3QRGRRE7dB5OSBhmhogmsXQQsrw66j0fg_xc,763
91
- asteroid_odyssey/agents_v2_gen/models/version.py,sha256=Vjiri_a5CcDJ1lSziRqif5HuFpaxneVDLIB1r8SFIkE,707
92
- asteroid_odyssey-1.3.7.dist-info/METADATA,sha256=478O0-3kwea5bYVYH3r3abkOtmypZ2utiWxX-xOuwqU,7108
93
- asteroid_odyssey-1.3.7.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
94
- asteroid_odyssey-1.3.7.dist-info/top_level.txt,sha256=h4T6NKscnThJ4Nhzors2NKlJeZzepnM7XvDgsnfi5HA,17
95
- asteroid_odyssey-1.3.7.dist-info/RECORD,,