asteroid-odyssey 1.3.3__py3-none-any.whl → 1.3.5__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/agents_v1_gen/__init__.py +31 -66
- asteroid_odyssey/agents_v1_gen/api_client.py +0 -4
- asteroid_odyssey/agents_v1_gen/configuration.py +2 -9
- asteroid_odyssey/agents_v1_gen/models/agent_profile.py +3 -3
- asteroid_odyssey/agents_v1_gen/rest.py +0 -1
- asteroid_odyssey/agents_v2_gen/__init__.py +49 -150
- asteroid_odyssey/agents_v2_gen/api/__init__.py +2 -17
- asteroid_odyssey/agents_v2_gen/api/{execution_api.py → default_api.py} +376 -66
- asteroid_odyssey/agents_v2_gen/api_client.py +2 -9
- asteroid_odyssey/agents_v2_gen/configuration.py +6 -23
- asteroid_odyssey/agents_v2_gen/exceptions.py +1 -1
- asteroid_odyssey/agents_v2_gen/models/__init__.py +29 -69
- asteroid_odyssey/agents_v2_gen/models/activity_payload_union_action_completed.py +4 -4
- asteroid_odyssey/agents_v2_gen/models/activity_payload_union_action_failed.py +4 -4
- asteroid_odyssey/agents_v2_gen/models/activity_payload_union_action_started.py +4 -4
- asteroid_odyssey/agents_v2_gen/models/activity_payload_union_file_added.py +100 -0
- asteroid_odyssey/agents_v2_gen/models/activity_payload_union_generic.py +4 -4
- asteroid_odyssey/agents_v2_gen/models/activity_payload_union_status_changed.py +4 -4
- asteroid_odyssey/agents_v2_gen/models/activity_payload_union_step_completed.py +4 -4
- asteroid_odyssey/agents_v2_gen/models/activity_payload_union_step_started.py +4 -4
- asteroid_odyssey/agents_v2_gen/models/activity_payload_union_terminal.py +4 -4
- asteroid_odyssey/agents_v2_gen/models/activity_payload_union_transitioned_node.py +4 -4
- asteroid_odyssey/agents_v2_gen/models/activity_payload_union_user_message_received.py +4 -4
- asteroid_odyssey/agents_v2_gen/models/{execution_activity.py → agents_execution_activity.py} +11 -12
- asteroid_odyssey/agents_v2_gen/models/agents_execution_activity_action_completed_payload.py +87 -0
- asteroid_odyssey/agents_v2_gen/models/{execution_activity_action_completed_payload.py → agents_execution_activity_action_failed_payload.py} +5 -5
- asteroid_odyssey/agents_v2_gen/models/{execution_activity_action_failed_payload.py → agents_execution_activity_action_started_payload.py} +5 -5
- asteroid_odyssey/agents_v2_gen/models/agents_execution_activity_file_added_payload.py +104 -0
- asteroid_odyssey/agents_v2_gen/models/{execution_activity_action_started_payload.py → agents_execution_activity_generic_payload.py} +5 -5
- asteroid_odyssey/agents_v2_gen/models/{execution_activity_payload_union.py → agents_execution_activity_payload_union.py} +26 -12
- asteroid_odyssey/agents_v2_gen/models/{execution_activity_status_changed_payload.py → agents_execution_activity_status_changed_payload.py} +26 -20
- asteroid_odyssey/agents_v2_gen/models/{execution_activity_step_started_payload.py → agents_execution_activity_step_completed_payload.py} +5 -5
- asteroid_odyssey/agents_v2_gen/models/{execution_activity_step_completed_payload.py → agents_execution_activity_step_started_payload.py} +5 -5
- asteroid_odyssey/agents_v2_gen/models/{execution_activity_transitioned_node_payload.py → agents_execution_activity_transitioned_node_payload.py} +6 -7
- asteroid_odyssey/agents_v2_gen/models/{execution_activity_user_message_received_payload.py → agents_execution_activity_user_message_received_payload.py} +6 -7
- asteroid_odyssey/agents_v2_gen/models/{execution_awaiting_confirmation_payload.py → agents_execution_awaiting_confirmation_payload.py} +5 -5
- asteroid_odyssey/agents_v2_gen/models/agents_execution_cancel_reason.py +38 -0
- asteroid_odyssey/agents_v2_gen/models/agents_execution_cancelled_payload.py +88 -0
- asteroid_odyssey/agents_v2_gen/models/{execution_completed_payload.py → agents_execution_completed_payload.py} +5 -5
- asteroid_odyssey/agents_v2_gen/models/{execution_failed_payload.py → agents_execution_failed_payload.py} +5 -5
- asteroid_odyssey/agents_v2_gen/models/{execution_paused_payload.py → agents_execution_paused_payload.py} +5 -5
- asteroid_odyssey/agents_v2_gen/models/{execution_status.py → agents_execution_status.py} +4 -4
- asteroid_odyssey/agents_v2_gen/models/{execution_terminal_payload.py → agents_execution_terminal_payload.py} +5 -5
- asteroid_odyssey/agents_v2_gen/models/{execution_activity_generic_payload.py → agents_execution_user_messages_add_text_body.py} +5 -5
- asteroid_odyssey/agents_v2_gen/models/{file.py → agents_files_file.py} +8 -9
- asteroid_odyssey/agents_v2_gen/models/common_bad_request_error_body.py +96 -0
- asteroid_odyssey/agents_v2_gen/models/common_forbidden_error_body.py +96 -0
- asteroid_odyssey/agents_v2_gen/models/{error.py → common_not_found_error_body.py} +15 -8
- asteroid_odyssey/agents_v2_gen/models/{versions.py → version.py} +5 -6
- asteroid_odyssey/agents_v2_gen/rest.py +1 -2
- asteroid_odyssey/client.py +28 -29
- {asteroid_odyssey-1.3.3.dist-info → asteroid_odyssey-1.3.5.dist-info}/METADATA +1 -1
- asteroid_odyssey-1.3.5.dist-info/RECORD +84 -0
- asteroid_odyssey/agents_v2_gen/models/execution_user_messages_add_text_body.py +0 -87
- asteroid_odyssey-1.3.3.dist-info/RECORD +0 -78
- {asteroid_odyssey-1.3.3.dist-info → asteroid_odyssey-1.3.5.dist-info}/WHEEL +0 -0
- {asteroid_odyssey-1.3.3.dist-info → asteroid_odyssey-1.3.5.dist-info}/top_level.txt +0 -0
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document:
|
|
8
|
+
The version of the OpenAPI document: v1
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
11
|
Do not edit the class manually.
|
|
@@ -22,9 +22,9 @@ from typing import Any, ClassVar, Dict, List
|
|
|
22
22
|
from typing import Optional, Set
|
|
23
23
|
from typing_extensions import Self
|
|
24
24
|
|
|
25
|
-
class
|
|
25
|
+
class AgentsExecutionActivityStepCompletedPayload(BaseModel):
|
|
26
26
|
"""
|
|
27
|
-
|
|
27
|
+
AgentsExecutionActivityStepCompletedPayload
|
|
28
28
|
""" # noqa: E501
|
|
29
29
|
step_number: StrictInt = Field(alias="stepNumber")
|
|
30
30
|
__properties: ClassVar[List[str]] = ["stepNumber"]
|
|
@@ -47,7 +47,7 @@ class ExecutionActivityStepStartedPayload(BaseModel):
|
|
|
47
47
|
|
|
48
48
|
@classmethod
|
|
49
49
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
50
|
-
"""Create an instance of
|
|
50
|
+
"""Create an instance of AgentsExecutionActivityStepCompletedPayload from a JSON string"""
|
|
51
51
|
return cls.from_dict(json.loads(json_str))
|
|
52
52
|
|
|
53
53
|
def to_dict(self) -> Dict[str, Any]:
|
|
@@ -72,7 +72,7 @@ class ExecutionActivityStepStartedPayload(BaseModel):
|
|
|
72
72
|
|
|
73
73
|
@classmethod
|
|
74
74
|
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
75
|
-
"""Create an instance of
|
|
75
|
+
"""Create an instance of AgentsExecutionActivityStepCompletedPayload from a dict"""
|
|
76
76
|
if obj is None:
|
|
77
77
|
return None
|
|
78
78
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document:
|
|
8
|
+
The version of the OpenAPI document: v1
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
11
|
Do not edit the class manually.
|
|
@@ -22,9 +22,9 @@ from typing import Any, ClassVar, Dict, List
|
|
|
22
22
|
from typing import Optional, Set
|
|
23
23
|
from typing_extensions import Self
|
|
24
24
|
|
|
25
|
-
class
|
|
25
|
+
class AgentsExecutionActivityStepStartedPayload(BaseModel):
|
|
26
26
|
"""
|
|
27
|
-
|
|
27
|
+
AgentsExecutionActivityStepStartedPayload
|
|
28
28
|
""" # noqa: E501
|
|
29
29
|
step_number: StrictInt = Field(alias="stepNumber")
|
|
30
30
|
__properties: ClassVar[List[str]] = ["stepNumber"]
|
|
@@ -47,7 +47,7 @@ class ExecutionActivityStepCompletedPayload(BaseModel):
|
|
|
47
47
|
|
|
48
48
|
@classmethod
|
|
49
49
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
50
|
-
"""Create an instance of
|
|
50
|
+
"""Create an instance of AgentsExecutionActivityStepStartedPayload from a JSON string"""
|
|
51
51
|
return cls.from_dict(json.loads(json_str))
|
|
52
52
|
|
|
53
53
|
def to_dict(self) -> Dict[str, Any]:
|
|
@@ -72,7 +72,7 @@ class ExecutionActivityStepCompletedPayload(BaseModel):
|
|
|
72
72
|
|
|
73
73
|
@classmethod
|
|
74
74
|
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
75
|
-
"""Create an instance of
|
|
75
|
+
"""Create an instance of AgentsExecutionActivityStepStartedPayload from a dict"""
|
|
76
76
|
if obj is None:
|
|
77
77
|
return None
|
|
78
78
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document:
|
|
8
|
+
The version of the OpenAPI document: v1
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
11
|
Do not edit the class manually.
|
|
@@ -19,16 +19,15 @@ import json
|
|
|
19
19
|
|
|
20
20
|
from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
|
21
21
|
from typing import Any, ClassVar, Dict, List
|
|
22
|
-
from uuid import UUID
|
|
23
22
|
from typing import Optional, Set
|
|
24
23
|
from typing_extensions import Self
|
|
25
24
|
|
|
26
|
-
class
|
|
25
|
+
class AgentsExecutionActivityTransitionedNodePayload(BaseModel):
|
|
27
26
|
"""
|
|
28
|
-
|
|
27
|
+
AgentsExecutionActivityTransitionedNodePayload
|
|
29
28
|
""" # noqa: E501
|
|
30
29
|
new_node_name: StrictStr = Field(alias="newNodeName")
|
|
31
|
-
new_node_uuid:
|
|
30
|
+
new_node_uuid: StrictStr = Field(alias="newNodeUUID")
|
|
32
31
|
__properties: ClassVar[List[str]] = ["newNodeName", "newNodeUUID"]
|
|
33
32
|
|
|
34
33
|
model_config = ConfigDict(
|
|
@@ -49,7 +48,7 @@ class ExecutionActivityTransitionedNodePayload(BaseModel):
|
|
|
49
48
|
|
|
50
49
|
@classmethod
|
|
51
50
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
52
|
-
"""Create an instance of
|
|
51
|
+
"""Create an instance of AgentsExecutionActivityTransitionedNodePayload from a JSON string"""
|
|
53
52
|
return cls.from_dict(json.loads(json_str))
|
|
54
53
|
|
|
55
54
|
def to_dict(self) -> Dict[str, Any]:
|
|
@@ -74,7 +73,7 @@ class ExecutionActivityTransitionedNodePayload(BaseModel):
|
|
|
74
73
|
|
|
75
74
|
@classmethod
|
|
76
75
|
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
77
|
-
"""Create an instance of
|
|
76
|
+
"""Create an instance of AgentsExecutionActivityTransitionedNodePayload from a dict"""
|
|
78
77
|
if obj is None:
|
|
79
78
|
return None
|
|
80
79
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document:
|
|
8
|
+
The version of the OpenAPI document: v1
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
11
|
Do not edit the class manually.
|
|
@@ -19,16 +19,15 @@ import json
|
|
|
19
19
|
|
|
20
20
|
from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
|
21
21
|
from typing import Any, ClassVar, Dict, List
|
|
22
|
-
from uuid import UUID
|
|
23
22
|
from typing import Optional, Set
|
|
24
23
|
from typing_extensions import Self
|
|
25
24
|
|
|
26
|
-
class
|
|
25
|
+
class AgentsExecutionActivityUserMessageReceivedPayload(BaseModel):
|
|
27
26
|
"""
|
|
28
|
-
|
|
27
|
+
AgentsExecutionActivityUserMessageReceivedPayload
|
|
29
28
|
""" # noqa: E501
|
|
30
29
|
message: StrictStr
|
|
31
|
-
user_uuid:
|
|
30
|
+
user_uuid: StrictStr = Field(alias="userUUID")
|
|
32
31
|
__properties: ClassVar[List[str]] = ["message", "userUUID"]
|
|
33
32
|
|
|
34
33
|
model_config = ConfigDict(
|
|
@@ -49,7 +48,7 @@ class ExecutionActivityUserMessageReceivedPayload(BaseModel):
|
|
|
49
48
|
|
|
50
49
|
@classmethod
|
|
51
50
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
52
|
-
"""Create an instance of
|
|
51
|
+
"""Create an instance of AgentsExecutionActivityUserMessageReceivedPayload from a JSON string"""
|
|
53
52
|
return cls.from_dict(json.loads(json_str))
|
|
54
53
|
|
|
55
54
|
def to_dict(self) -> Dict[str, Any]:
|
|
@@ -74,7 +73,7 @@ class ExecutionActivityUserMessageReceivedPayload(BaseModel):
|
|
|
74
73
|
|
|
75
74
|
@classmethod
|
|
76
75
|
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
77
|
-
"""Create an instance of
|
|
76
|
+
"""Create an instance of AgentsExecutionActivityUserMessageReceivedPayload from a dict"""
|
|
78
77
|
if obj is None:
|
|
79
78
|
return None
|
|
80
79
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document:
|
|
8
|
+
The version of the OpenAPI document: v1
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
11
|
Do not edit the class manually.
|
|
@@ -22,9 +22,9 @@ from typing import Any, ClassVar, Dict, List
|
|
|
22
22
|
from typing import Optional, Set
|
|
23
23
|
from typing_extensions import Self
|
|
24
24
|
|
|
25
|
-
class
|
|
25
|
+
class AgentsExecutionAwaitingConfirmationPayload(BaseModel):
|
|
26
26
|
"""
|
|
27
|
-
|
|
27
|
+
AgentsExecutionAwaitingConfirmationPayload
|
|
28
28
|
""" # noqa: E501
|
|
29
29
|
reason: StrictStr
|
|
30
30
|
__properties: ClassVar[List[str]] = ["reason"]
|
|
@@ -47,7 +47,7 @@ class ExecutionAwaitingConfirmationPayload(BaseModel):
|
|
|
47
47
|
|
|
48
48
|
@classmethod
|
|
49
49
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
50
|
-
"""Create an instance of
|
|
50
|
+
"""Create an instance of AgentsExecutionAwaitingConfirmationPayload from a JSON string"""
|
|
51
51
|
return cls.from_dict(json.loads(json_str))
|
|
52
52
|
|
|
53
53
|
def to_dict(self) -> Dict[str, Any]:
|
|
@@ -72,7 +72,7 @@ class ExecutionAwaitingConfirmationPayload(BaseModel):
|
|
|
72
72
|
|
|
73
73
|
@classmethod
|
|
74
74
|
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
75
|
-
"""Create an instance of
|
|
75
|
+
"""Create an instance of AgentsExecutionAwaitingConfirmationPayload from a dict"""
|
|
76
76
|
if obj is None:
|
|
77
77
|
return None
|
|
78
78
|
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Agent Service
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: v1
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import json
|
|
17
|
+
from enum import Enum
|
|
18
|
+
from typing_extensions import Self
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class AgentsExecutionCancelReason(str, Enum):
|
|
22
|
+
"""
|
|
23
|
+
AgentsExecutionCancelReason
|
|
24
|
+
"""
|
|
25
|
+
|
|
26
|
+
"""
|
|
27
|
+
allowed enum values
|
|
28
|
+
"""
|
|
29
|
+
TIMEOUT = 'timeout'
|
|
30
|
+
MAX_STEPS = 'max_steps'
|
|
31
|
+
USER_REQUESTED = 'user_requested'
|
|
32
|
+
|
|
33
|
+
@classmethod
|
|
34
|
+
def from_json(cls, json_str: str) -> Self:
|
|
35
|
+
"""Create an instance of AgentsExecutionCancelReason from a JSON string"""
|
|
36
|
+
return cls(json.loads(json_str))
|
|
37
|
+
|
|
38
|
+
|
|
@@ -0,0 +1,88 @@
|
|
|
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
|
|
21
|
+
from typing import Any, ClassVar, Dict, List
|
|
22
|
+
from asteroid_odyssey.agents_v2_gen.models.agents_execution_cancel_reason import AgentsExecutionCancelReason
|
|
23
|
+
from typing import Optional, Set
|
|
24
|
+
from typing_extensions import Self
|
|
25
|
+
|
|
26
|
+
class AgentsExecutionCancelledPayload(BaseModel):
|
|
27
|
+
"""
|
|
28
|
+
AgentsExecutionCancelledPayload
|
|
29
|
+
""" # noqa: E501
|
|
30
|
+
reason: AgentsExecutionCancelReason
|
|
31
|
+
__properties: ClassVar[List[str]] = ["reason"]
|
|
32
|
+
|
|
33
|
+
model_config = ConfigDict(
|
|
34
|
+
populate_by_name=True,
|
|
35
|
+
validate_assignment=True,
|
|
36
|
+
protected_namespaces=(),
|
|
37
|
+
)
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
def to_str(self) -> str:
|
|
41
|
+
"""Returns the string representation of the model using alias"""
|
|
42
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
43
|
+
|
|
44
|
+
def to_json(self) -> str:
|
|
45
|
+
"""Returns the JSON representation of the model using alias"""
|
|
46
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
47
|
+
return json.dumps(self.to_dict())
|
|
48
|
+
|
|
49
|
+
@classmethod
|
|
50
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
51
|
+
"""Create an instance of AgentsExecutionCancelledPayload from a JSON string"""
|
|
52
|
+
return cls.from_dict(json.loads(json_str))
|
|
53
|
+
|
|
54
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
55
|
+
"""Return the dictionary representation of the model using alias.
|
|
56
|
+
|
|
57
|
+
This has the following differences from calling pydantic's
|
|
58
|
+
`self.model_dump(by_alias=True)`:
|
|
59
|
+
|
|
60
|
+
* `None` is only added to the output dict for nullable fields that
|
|
61
|
+
were set at model initialization. Other fields with value `None`
|
|
62
|
+
are ignored.
|
|
63
|
+
"""
|
|
64
|
+
excluded_fields: Set[str] = set([
|
|
65
|
+
])
|
|
66
|
+
|
|
67
|
+
_dict = self.model_dump(
|
|
68
|
+
by_alias=True,
|
|
69
|
+
exclude=excluded_fields,
|
|
70
|
+
exclude_none=True,
|
|
71
|
+
)
|
|
72
|
+
return _dict
|
|
73
|
+
|
|
74
|
+
@classmethod
|
|
75
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
76
|
+
"""Create an instance of AgentsExecutionCancelledPayload from a dict"""
|
|
77
|
+
if obj is None:
|
|
78
|
+
return None
|
|
79
|
+
|
|
80
|
+
if not isinstance(obj, dict):
|
|
81
|
+
return cls.model_validate(obj)
|
|
82
|
+
|
|
83
|
+
_obj = cls.model_validate({
|
|
84
|
+
"reason": obj.get("reason")
|
|
85
|
+
})
|
|
86
|
+
return _obj
|
|
87
|
+
|
|
88
|
+
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document:
|
|
8
|
+
The version of the OpenAPI document: v1
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
11
|
Do not edit the class manually.
|
|
@@ -22,9 +22,9 @@ from typing import Any, ClassVar, Dict, List, Optional
|
|
|
22
22
|
from typing import Optional, Set
|
|
23
23
|
from typing_extensions import Self
|
|
24
24
|
|
|
25
|
-
class
|
|
25
|
+
class AgentsExecutionCompletedPayload(BaseModel):
|
|
26
26
|
"""
|
|
27
|
-
|
|
27
|
+
AgentsExecutionCompletedPayload
|
|
28
28
|
""" # noqa: E501
|
|
29
29
|
final_answer: Optional[StrictStr] = None
|
|
30
30
|
outcome: StrictStr
|
|
@@ -57,7 +57,7 @@ class ExecutionCompletedPayload(BaseModel):
|
|
|
57
57
|
|
|
58
58
|
@classmethod
|
|
59
59
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
60
|
-
"""Create an instance of
|
|
60
|
+
"""Create an instance of AgentsExecutionCompletedPayload from a JSON string"""
|
|
61
61
|
return cls.from_dict(json.loads(json_str))
|
|
62
62
|
|
|
63
63
|
def to_dict(self) -> Dict[str, Any]:
|
|
@@ -87,7 +87,7 @@ class ExecutionCompletedPayload(BaseModel):
|
|
|
87
87
|
|
|
88
88
|
@classmethod
|
|
89
89
|
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
90
|
-
"""Create an instance of
|
|
90
|
+
"""Create an instance of AgentsExecutionCompletedPayload from a dict"""
|
|
91
91
|
if obj is None:
|
|
92
92
|
return None
|
|
93
93
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document:
|
|
8
|
+
The version of the OpenAPI document: v1
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
11
|
Do not edit the class manually.
|
|
@@ -22,9 +22,9 @@ from typing import Any, ClassVar, Dict, List
|
|
|
22
22
|
from typing import Optional, Set
|
|
23
23
|
from typing_extensions import Self
|
|
24
24
|
|
|
25
|
-
class
|
|
25
|
+
class AgentsExecutionFailedPayload(BaseModel):
|
|
26
26
|
"""
|
|
27
|
-
|
|
27
|
+
AgentsExecutionFailedPayload
|
|
28
28
|
""" # noqa: E501
|
|
29
29
|
reason: StrictStr
|
|
30
30
|
__properties: ClassVar[List[str]] = ["reason"]
|
|
@@ -47,7 +47,7 @@ class ExecutionFailedPayload(BaseModel):
|
|
|
47
47
|
|
|
48
48
|
@classmethod
|
|
49
49
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
50
|
-
"""Create an instance of
|
|
50
|
+
"""Create an instance of AgentsExecutionFailedPayload from a JSON string"""
|
|
51
51
|
return cls.from_dict(json.loads(json_str))
|
|
52
52
|
|
|
53
53
|
def to_dict(self) -> Dict[str, Any]:
|
|
@@ -72,7 +72,7 @@ class ExecutionFailedPayload(BaseModel):
|
|
|
72
72
|
|
|
73
73
|
@classmethod
|
|
74
74
|
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
75
|
-
"""Create an instance of
|
|
75
|
+
"""Create an instance of AgentsExecutionFailedPayload from a dict"""
|
|
76
76
|
if obj is None:
|
|
77
77
|
return None
|
|
78
78
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document:
|
|
8
|
+
The version of the OpenAPI document: v1
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
11
|
Do not edit the class manually.
|
|
@@ -22,9 +22,9 @@ from typing import Any, ClassVar, Dict, List
|
|
|
22
22
|
from typing import Optional, Set
|
|
23
23
|
from typing_extensions import Self
|
|
24
24
|
|
|
25
|
-
class
|
|
25
|
+
class AgentsExecutionPausedPayload(BaseModel):
|
|
26
26
|
"""
|
|
27
|
-
|
|
27
|
+
AgentsExecutionPausedPayload
|
|
28
28
|
""" # noqa: E501
|
|
29
29
|
reason: StrictStr
|
|
30
30
|
__properties: ClassVar[List[str]] = ["reason"]
|
|
@@ -47,7 +47,7 @@ class ExecutionPausedPayload(BaseModel):
|
|
|
47
47
|
|
|
48
48
|
@classmethod
|
|
49
49
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
50
|
-
"""Create an instance of
|
|
50
|
+
"""Create an instance of AgentsExecutionPausedPayload from a JSON string"""
|
|
51
51
|
return cls.from_dict(json.loads(json_str))
|
|
52
52
|
|
|
53
53
|
def to_dict(self) -> Dict[str, Any]:
|
|
@@ -72,7 +72,7 @@ class ExecutionPausedPayload(BaseModel):
|
|
|
72
72
|
|
|
73
73
|
@classmethod
|
|
74
74
|
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
75
|
-
"""Create an instance of
|
|
75
|
+
"""Create an instance of AgentsExecutionPausedPayload from a dict"""
|
|
76
76
|
if obj is None:
|
|
77
77
|
return None
|
|
78
78
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document:
|
|
8
|
+
The version of the OpenAPI document: v1
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
11
|
Do not edit the class manually.
|
|
@@ -18,9 +18,9 @@ from enum import Enum
|
|
|
18
18
|
from typing_extensions import Self
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
class
|
|
21
|
+
class AgentsExecutionStatus(str, Enum):
|
|
22
22
|
"""
|
|
23
|
-
|
|
23
|
+
AgentsExecutionStatus
|
|
24
24
|
"""
|
|
25
25
|
|
|
26
26
|
"""
|
|
@@ -37,7 +37,7 @@ class ExecutionStatus(str, Enum):
|
|
|
37
37
|
|
|
38
38
|
@classmethod
|
|
39
39
|
def from_json(cls, json_str: str) -> Self:
|
|
40
|
-
"""Create an instance of
|
|
40
|
+
"""Create an instance of AgentsExecutionStatus from a JSON string"""
|
|
41
41
|
return cls(json.loads(json_str))
|
|
42
42
|
|
|
43
43
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document:
|
|
8
|
+
The version of the OpenAPI document: v1
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
11
|
Do not edit the class manually.
|
|
@@ -22,9 +22,9 @@ from typing import Any, ClassVar, Dict, List, Optional
|
|
|
22
22
|
from typing import Optional, Set
|
|
23
23
|
from typing_extensions import Self
|
|
24
24
|
|
|
25
|
-
class
|
|
25
|
+
class AgentsExecutionTerminalPayload(BaseModel):
|
|
26
26
|
"""
|
|
27
|
-
|
|
27
|
+
AgentsExecutionTerminalPayload
|
|
28
28
|
""" # noqa: E501
|
|
29
29
|
message: Optional[StrictStr] = None
|
|
30
30
|
reason: StrictStr
|
|
@@ -55,7 +55,7 @@ class ExecutionTerminalPayload(BaseModel):
|
|
|
55
55
|
|
|
56
56
|
@classmethod
|
|
57
57
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
58
|
-
"""Create an instance of
|
|
58
|
+
"""Create an instance of AgentsExecutionTerminalPayload from a JSON string"""
|
|
59
59
|
return cls.from_dict(json.loads(json_str))
|
|
60
60
|
|
|
61
61
|
def to_dict(self) -> Dict[str, Any]:
|
|
@@ -80,7 +80,7 @@ class ExecutionTerminalPayload(BaseModel):
|
|
|
80
80
|
|
|
81
81
|
@classmethod
|
|
82
82
|
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
83
|
-
"""Create an instance of
|
|
83
|
+
"""Create an instance of AgentsExecutionTerminalPayload from a dict"""
|
|
84
84
|
if obj is None:
|
|
85
85
|
return None
|
|
86
86
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document:
|
|
8
|
+
The version of the OpenAPI document: v1
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
11
|
Do not edit the class manually.
|
|
@@ -22,9 +22,9 @@ from typing import Any, ClassVar, Dict, List
|
|
|
22
22
|
from typing import Optional, Set
|
|
23
23
|
from typing_extensions import Self
|
|
24
24
|
|
|
25
|
-
class
|
|
25
|
+
class AgentsExecutionUserMessagesAddTextBody(BaseModel):
|
|
26
26
|
"""
|
|
27
|
-
|
|
27
|
+
AgentsExecutionUserMessagesAddTextBody
|
|
28
28
|
""" # noqa: E501
|
|
29
29
|
message: StrictStr
|
|
30
30
|
__properties: ClassVar[List[str]] = ["message"]
|
|
@@ -47,7 +47,7 @@ class ExecutionActivityGenericPayload(BaseModel):
|
|
|
47
47
|
|
|
48
48
|
@classmethod
|
|
49
49
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
50
|
-
"""Create an instance of
|
|
50
|
+
"""Create an instance of AgentsExecutionUserMessagesAddTextBody from a JSON string"""
|
|
51
51
|
return cls.from_dict(json.loads(json_str))
|
|
52
52
|
|
|
53
53
|
def to_dict(self) -> Dict[str, Any]:
|
|
@@ -72,7 +72,7 @@ class ExecutionActivityGenericPayload(BaseModel):
|
|
|
72
72
|
|
|
73
73
|
@classmethod
|
|
74
74
|
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
75
|
-
"""Create an instance of
|
|
75
|
+
"""Create an instance of AgentsExecutionUserMessagesAddTextBody from a dict"""
|
|
76
76
|
if obj is None:
|
|
77
77
|
return None
|
|
78
78
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document:
|
|
8
|
+
The version of the OpenAPI document: v1
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
11
|
Do not edit the class manually.
|
|
@@ -20,23 +20,22 @@ import json
|
|
|
20
20
|
from datetime import datetime
|
|
21
21
|
from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
|
|
22
22
|
from typing import Any, ClassVar, Dict, List
|
|
23
|
-
from uuid import UUID
|
|
24
23
|
from typing import Optional, Set
|
|
25
24
|
from typing_extensions import Self
|
|
26
25
|
|
|
27
|
-
class
|
|
26
|
+
class AgentsFilesFile(BaseModel):
|
|
28
27
|
"""
|
|
29
|
-
|
|
28
|
+
AgentsFilesFile
|
|
30
29
|
""" # noqa: E501
|
|
31
|
-
agent_id:
|
|
30
|
+
agent_id: StrictStr = Field(alias="agentId")
|
|
32
31
|
created_at: datetime = Field(alias="createdAt")
|
|
33
|
-
execution_id:
|
|
32
|
+
execution_id: StrictStr = Field(alias="executionId")
|
|
34
33
|
file_ext: StrictStr = Field(alias="fileExt")
|
|
35
34
|
file_name: StrictStr = Field(alias="fileName")
|
|
36
35
|
file_path: StrictStr = Field(alias="filePath")
|
|
37
36
|
file_size: StrictInt = Field(alias="fileSize")
|
|
38
37
|
file_type: StrictStr = Field(alias="fileType")
|
|
39
|
-
id:
|
|
38
|
+
id: StrictStr
|
|
40
39
|
mime_type: StrictStr = Field(alias="mimeType")
|
|
41
40
|
signed_url: StrictStr = Field(alias="signedUrl")
|
|
42
41
|
__properties: ClassVar[List[str]] = ["agentId", "createdAt", "executionId", "fileExt", "fileName", "filePath", "fileSize", "fileType", "id", "mimeType", "signedUrl"]
|
|
@@ -59,7 +58,7 @@ class File(BaseModel):
|
|
|
59
58
|
|
|
60
59
|
@classmethod
|
|
61
60
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
62
|
-
"""Create an instance of
|
|
61
|
+
"""Create an instance of AgentsFilesFile from a JSON string"""
|
|
63
62
|
return cls.from_dict(json.loads(json_str))
|
|
64
63
|
|
|
65
64
|
def to_dict(self) -> Dict[str, Any]:
|
|
@@ -84,7 +83,7 @@ class File(BaseModel):
|
|
|
84
83
|
|
|
85
84
|
@classmethod
|
|
86
85
|
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
87
|
-
"""Create an instance of
|
|
86
|
+
"""Create an instance of AgentsFilesFile from a dict"""
|
|
88
87
|
if obj is None:
|
|
89
88
|
return None
|
|
90
89
|
|