asteroid-odyssey 0.1.22__py3-none-any.whl → 0.4.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.
Files changed (138) hide show
  1. asteroid_odyssey/__init__.py +28 -34
  2. asteroid_odyssey/agents_v1_gen/__init__.py +87 -0
  3. asteroid_odyssey/agents_v1_gen/api/__init__.py +7 -0
  4. asteroid_odyssey/agents_v1_gen/api/agent_profile_api.py +1696 -0
  5. asteroid_odyssey/agents_v1_gen/api/api_api.py +516 -0
  6. asteroid_odyssey/agents_v1_gen/api/execution_api.py +1734 -0
  7. asteroid_odyssey/agents_v1_gen/api_client.py +801 -0
  8. asteroid_odyssey/agents_v1_gen/api_response.py +21 -0
  9. asteroid_odyssey/agents_v1_gen/configuration.py +606 -0
  10. asteroid_odyssey/agents_v1_gen/exceptions.py +216 -0
  11. asteroid_odyssey/agents_v1_gen/models/__init__.py +34 -0
  12. asteroid_odyssey/agents_v1_gen/models/agent_profile.py +118 -0
  13. asteroid_odyssey/agents_v1_gen/models/browser_session_recording_response.py +87 -0
  14. asteroid_odyssey/agents_v1_gen/models/country_code.py +44 -0
  15. asteroid_odyssey/agents_v1_gen/models/create_agent_profile_request.py +112 -0
  16. asteroid_odyssey/agents_v1_gen/models/credential.py +95 -0
  17. asteroid_odyssey/agents_v1_gen/models/delete_agent_profile200_response.py +87 -0
  18. asteroid_odyssey/agents_v1_gen/models/error_response.py +87 -0
  19. asteroid_odyssey/agents_v1_gen/models/execution_response.py +87 -0
  20. asteroid_odyssey/agents_v1_gen/models/execution_result.py +101 -0
  21. asteroid_odyssey/agents_v1_gen/models/execution_result_response.py +100 -0
  22. asteroid_odyssey/agents_v1_gen/models/execution_status_response.py +95 -0
  23. asteroid_odyssey/agents_v1_gen/models/health_check200_response.py +87 -0
  24. asteroid_odyssey/agents_v1_gen/models/health_check500_response.py +87 -0
  25. asteroid_odyssey/agents_v1_gen/models/proxy_type.py +37 -0
  26. asteroid_odyssey/agents_v1_gen/models/status.py +43 -0
  27. asteroid_odyssey/agents_v1_gen/models/structured_agent_execution_request.py +89 -0
  28. asteroid_odyssey/agents_v1_gen/models/update_agent_profile_request.py +112 -0
  29. asteroid_odyssey/agents_v1_gen/models/upload_execution_files200_response.py +89 -0
  30. asteroid_odyssey/agents_v1_gen/rest.py +258 -0
  31. asteroid_odyssey/agents_v2_gen/__init__.py +99 -0
  32. asteroid_odyssey/agents_v2_gen/api/__init__.py +5 -0
  33. asteroid_odyssey/agents_v2_gen/api/execution_api.py +625 -0
  34. asteroid_odyssey/agents_v2_gen/api_client.py +801 -0
  35. asteroid_odyssey/agents_v2_gen/api_response.py +21 -0
  36. asteroid_odyssey/agents_v2_gen/configuration.py +612 -0
  37. asteroid_odyssey/agents_v2_gen/exceptions.py +216 -0
  38. asteroid_odyssey/agents_v2_gen/models/__init__.py +42 -0
  39. asteroid_odyssey/agents_v2_gen/models/activity_payload_union_action_completed.py +100 -0
  40. asteroid_odyssey/agents_v2_gen/models/activity_payload_union_action_failed.py +100 -0
  41. asteroid_odyssey/agents_v2_gen/models/activity_payload_union_action_started.py +100 -0
  42. asteroid_odyssey/agents_v2_gen/models/activity_payload_union_generic.py +100 -0
  43. asteroid_odyssey/agents_v2_gen/models/activity_payload_union_status_changed.py +100 -0
  44. asteroid_odyssey/agents_v2_gen/models/activity_payload_union_step_completed.py +100 -0
  45. asteroid_odyssey/agents_v2_gen/models/activity_payload_union_step_started.py +100 -0
  46. asteroid_odyssey/agents_v2_gen/models/activity_payload_union_terminal.py +100 -0
  47. asteroid_odyssey/agents_v2_gen/models/activity_payload_union_transitioned_node.py +100 -0
  48. asteroid_odyssey/agents_v2_gen/models/activity_payload_union_user_message_received.py +100 -0
  49. asteroid_odyssey/agents_v2_gen/models/error.py +89 -0
  50. asteroid_odyssey/agents_v2_gen/models/execution_activity.py +98 -0
  51. asteroid_odyssey/agents_v2_gen/models/execution_activity_action_completed_payload.py +87 -0
  52. asteroid_odyssey/agents_v2_gen/models/execution_activity_action_failed_payload.py +87 -0
  53. asteroid_odyssey/agents_v2_gen/models/execution_activity_action_started_payload.py +87 -0
  54. asteroid_odyssey/agents_v2_gen/models/execution_activity_generic_payload.py +87 -0
  55. asteroid_odyssey/agents_v2_gen/models/execution_activity_payload_union.py +252 -0
  56. asteroid_odyssey/agents_v2_gen/models/execution_activity_status_changed_payload.py +88 -0
  57. asteroid_odyssey/agents_v2_gen/models/execution_activity_step_completed_payload.py +87 -0
  58. asteroid_odyssey/agents_v2_gen/models/execution_activity_step_started_payload.py +87 -0
  59. asteroid_odyssey/agents_v2_gen/models/execution_activity_transitioned_node_payload.py +89 -0
  60. asteroid_odyssey/agents_v2_gen/models/execution_activity_user_message_received_payload.py +89 -0
  61. asteroid_odyssey/agents_v2_gen/models/execution_status.py +43 -0
  62. asteroid_odyssey/agents_v2_gen/models/execution_terminal_payload.py +96 -0
  63. asteroid_odyssey/agents_v2_gen/models/execution_user_messages_add_text_body.py +87 -0
  64. asteroid_odyssey/agents_v2_gen/models/versions.py +37 -0
  65. asteroid_odyssey/agents_v2_gen/rest.py +258 -0
  66. asteroid_odyssey/client.py +881 -304
  67. asteroid_odyssey-0.4.0.dist-info/METADATA +213 -0
  68. asteroid_odyssey-0.4.0.dist-info/RECORD +72 -0
  69. {asteroid_odyssey-0.1.22.dist-info → asteroid_odyssey-0.4.0.dist-info}/WHEEL +1 -1
  70. asteroid_odyssey/api/generated/asteroid_agents_api_client/__init__.py +0 -8
  71. asteroid_odyssey/api/generated/asteroid_agents_api_client/api/__init__.py +0 -1
  72. asteroid_odyssey/api/generated/asteroid_agents_api_client/api/agent/get_agents.py +0 -127
  73. asteroid_odyssey/api/generated/asteroid_agents_api_client/api/api/get_open_api.py +0 -79
  74. asteroid_odyssey/api/generated/asteroid_agents_api_client/api/api/health_check.py +0 -131
  75. asteroid_odyssey/api/generated/asteroid_agents_api_client/api/credentials/__init__.py +0 -0
  76. asteroid_odyssey/api/generated/asteroid_agents_api_client/api/credentials/get_credentials_public_key.py +0 -127
  77. asteroid_odyssey/api/generated/asteroid_agents_api_client/api/execution/__init__.py +0 -0
  78. asteroid_odyssey/api/generated/asteroid_agents_api_client/api/execution/delete_execution.py +0 -156
  79. asteroid_odyssey/api/generated/asteroid_agents_api_client/api/execution/get_browser_session.py +0 -154
  80. asteroid_odyssey/api/generated/asteroid_agents_api_client/api/execution/get_execution.py +0 -154
  81. asteroid_odyssey/api/generated/asteroid_agents_api_client/api/execution/get_execution_files.py +0 -159
  82. asteroid_odyssey/api/generated/asteroid_agents_api_client/api/execution/get_execution_progress.py +0 -159
  83. asteroid_odyssey/api/generated/asteroid_agents_api_client/api/execution/get_executions_for_workflow.py +0 -156
  84. asteroid_odyssey/api/generated/asteroid_agents_api_client/api/execution/update_execution_status.py +0 -115
  85. asteroid_odyssey/api/generated/asteroid_agents_api_client/api/notifications/__init__.py +0 -0
  86. asteroid_odyssey/api/generated/asteroid_agents_api_client/api/notifications/set_slack_channel.py +0 -107
  87. asteroid_odyssey/api/generated/asteroid_agents_api_client/api/optimiser/__init__.py +0 -0
  88. asteroid_odyssey/api/generated/asteroid_agents_api_client/api/optimiser/queue_optimisation_job.py +0 -103
  89. asteroid_odyssey/api/generated/asteroid_agents_api_client/api/workflow/__init__.py +0 -0
  90. asteroid_odyssey/api/generated/asteroid_agents_api_client/api/workflow/add_workflow_credential.py +0 -111
  91. asteroid_odyssey/api/generated/asteroid_agents_api_client/api/workflow/create_workflow.py +0 -174
  92. asteroid_odyssey/api/generated/asteroid_agents_api_client/api/workflow/delete_workflow.py +0 -156
  93. asteroid_odyssey/api/generated/asteroid_agents_api_client/api/workflow/delete_workflow_credentials.py +0 -96
  94. asteroid_odyssey/api/generated/asteroid_agents_api_client/api/workflow/execute_workflow.py +0 -179
  95. asteroid_odyssey/api/generated/asteroid_agents_api_client/api/workflow/get_agent_workflow_executions.py +0 -155
  96. asteroid_odyssey/api/generated/asteroid_agents_api_client/api/workflow/get_workflow.py +0 -154
  97. asteroid_odyssey/api/generated/asteroid_agents_api_client/api/workflow/get_workflow_credentials.py +0 -154
  98. asteroid_odyssey/api/generated/asteroid_agents_api_client/api/workflow/get_workflow_versions.py +0 -159
  99. asteroid_odyssey/api/generated/asteroid_agents_api_client/client.py +0 -268
  100. asteroid_odyssey/api/generated/asteroid_agents_api_client/errors.py +0 -16
  101. asteroid_odyssey/api/generated/asteroid_agents_api_client/models/__init__.py +0 -61
  102. asteroid_odyssey/api/generated/asteroid_agents_api_client/models/agent.py +0 -90
  103. asteroid_odyssey/api/generated/asteroid_agents_api_client/models/browser_session.py +0 -136
  104. asteroid_odyssey/api/generated/asteroid_agents_api_client/models/create_workflow_request.py +0 -126
  105. asteroid_odyssey/api/generated/asteroid_agents_api_client/models/create_workflow_request_fields.py +0 -48
  106. asteroid_odyssey/api/generated/asteroid_agents_api_client/models/create_workflow_request_provider.py +0 -9
  107. asteroid_odyssey/api/generated/asteroid_agents_api_client/models/credential.py +0 -66
  108. asteroid_odyssey/api/generated/asteroid_agents_api_client/models/credentials_request.py +0 -72
  109. asteroid_odyssey/api/generated/asteroid_agents_api_client/models/credentials_response.py +0 -80
  110. asteroid_odyssey/api/generated/asteroid_agents_api_client/models/delete_execution_response_200.py +0 -58
  111. asteroid_odyssey/api/generated/asteroid_agents_api_client/models/delete_execution_response_404.py +0 -58
  112. asteroid_odyssey/api/generated/asteroid_agents_api_client/models/delete_workflow_response_200.py +0 -58
  113. asteroid_odyssey/api/generated/asteroid_agents_api_client/models/delete_workflow_response_404.py +0 -58
  114. asteroid_odyssey/api/generated/asteroid_agents_api_client/models/execution.py +0 -147
  115. asteroid_odyssey/api/generated/asteroid_agents_api_client/models/execution_dynamic_data.py +0 -48
  116. asteroid_odyssey/api/generated/asteroid_agents_api_client/models/execution_result.py +0 -43
  117. asteroid_odyssey/api/generated/asteroid_agents_api_client/models/execution_status.py +0 -89
  118. asteroid_odyssey/api/generated/asteroid_agents_api_client/models/file.py +0 -127
  119. asteroid_odyssey/api/generated/asteroid_agents_api_client/models/health_check_response_200.py +0 -58
  120. asteroid_odyssey/api/generated/asteroid_agents_api_client/models/health_check_response_500.py +0 -58
  121. asteroid_odyssey/api/generated/asteroid_agents_api_client/models/optimisation_request.py +0 -59
  122. asteroid_odyssey/api/generated/asteroid_agents_api_client/models/progress_update.py +0 -77
  123. asteroid_odyssey/api/generated/asteroid_agents_api_client/models/result_schema.py +0 -51
  124. asteroid_odyssey/api/generated/asteroid_agents_api_client/models/slack_channel_request.py +0 -58
  125. asteroid_odyssey/api/generated/asteroid_agents_api_client/models/status.py +0 -13
  126. asteroid_odyssey/api/generated/asteroid_agents_api_client/models/workflow.py +0 -152
  127. asteroid_odyssey/api/generated/asteroid_agents_api_client/models/workflow_execution.py +0 -82
  128. asteroid_odyssey/api/generated/asteroid_agents_api_client/models/workflow_execution_request.py +0 -48
  129. asteroid_odyssey/api/generated/asteroid_agents_api_client/models/workflow_fields.py +0 -48
  130. asteroid_odyssey/api/generated/asteroid_agents_api_client/py.typed +0 -1
  131. asteroid_odyssey/api/generated/asteroid_agents_api_client/types.py +0 -45
  132. asteroid_odyssey/exceptions.py +0 -15
  133. asteroid_odyssey-0.1.22.dist-info/METADATA +0 -31
  134. asteroid_odyssey-0.1.22.dist-info/RECORD +0 -72
  135. asteroid_odyssey-0.1.22.dist-info/entry_points.txt +0 -2
  136. /asteroid_odyssey/{api/generated/asteroid_agents_api_client/api/agent/__init__.py → agents_v1_gen/py.typed} +0 -0
  137. /asteroid_odyssey/{api/generated/asteroid_agents_api_client/api/api/__init__.py → agents_v2_gen/py.typed} +0 -0
  138. {asteroid_odyssey-0.1.22.dist-info → asteroid_odyssey-0.4.0.dist-info}/top_level.txt +0 -0
@@ -1,136 +0,0 @@
1
- from typing import Any, Dict, List, Type, TypeVar, Union
2
- from uuid import UUID
3
-
4
- from attrs import define as _attrs_define
5
- from attrs import field as _attrs_field
6
-
7
- from ..types import UNSET, Unset
8
-
9
- T = TypeVar("T", bound="BrowserSession")
10
-
11
-
12
- @_attrs_define
13
- class BrowserSession:
14
- """
15
- Attributes:
16
- id (Union[Unset, UUID]): Browser session identifier.
17
- browser_name (Union[Unset, str]): Browser name (Anchor, Browserbase, etc.)
18
- execution_id (Union[Unset, UUID]): Execution ID.
19
- cdp_url (Union[Unset, str]): CDP URL.
20
- debugger_url (Union[Unset, str]): Debugger URL.
21
- session_id (Union[Unset, str]): Session ID.
22
- session_url (Union[Unset, str]): Session URL.
23
- recording_url (Union[Unset, str]): Recording URL.
24
- """
25
-
26
- id: Union[Unset, UUID] = UNSET
27
- browser_name: Union[Unset, str] = UNSET
28
- execution_id: Union[Unset, UUID] = UNSET
29
- cdp_url: Union[Unset, str] = UNSET
30
- debugger_url: Union[Unset, str] = UNSET
31
- session_id: Union[Unset, str] = UNSET
32
- session_url: Union[Unset, str] = UNSET
33
- recording_url: Union[Unset, str] = UNSET
34
- additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
35
-
36
- def to_dict(self) -> Dict[str, Any]:
37
- id: Union[Unset, str] = UNSET
38
- if not isinstance(self.id, Unset):
39
- id = str(self.id)
40
-
41
- browser_name = self.browser_name
42
-
43
- execution_id: Union[Unset, str] = UNSET
44
- if not isinstance(self.execution_id, Unset):
45
- execution_id = str(self.execution_id)
46
-
47
- cdp_url = self.cdp_url
48
-
49
- debugger_url = self.debugger_url
50
-
51
- session_id = self.session_id
52
-
53
- session_url = self.session_url
54
-
55
- recording_url = self.recording_url
56
-
57
- field_dict: Dict[str, Any] = {}
58
- field_dict.update(self.additional_properties)
59
- field_dict.update({})
60
- if id is not UNSET:
61
- field_dict["id"] = id
62
- if browser_name is not UNSET:
63
- field_dict["browser_name"] = browser_name
64
- if execution_id is not UNSET:
65
- field_dict["execution_id"] = execution_id
66
- if cdp_url is not UNSET:
67
- field_dict["cdp_url"] = cdp_url
68
- if debugger_url is not UNSET:
69
- field_dict["debugger_url"] = debugger_url
70
- if session_id is not UNSET:
71
- field_dict["session_id"] = session_id
72
- if session_url is not UNSET:
73
- field_dict["session_url"] = session_url
74
- if recording_url is not UNSET:
75
- field_dict["recording_url"] = recording_url
76
-
77
- return field_dict
78
-
79
- @classmethod
80
- def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
81
- d = src_dict.copy()
82
- _id = d.pop("id", UNSET)
83
- id: Union[Unset, UUID]
84
- if isinstance(_id, Unset):
85
- id = UNSET
86
- else:
87
- id = UUID(_id)
88
-
89
- browser_name = d.pop("browser_name", UNSET)
90
-
91
- _execution_id = d.pop("execution_id", UNSET)
92
- execution_id: Union[Unset, UUID]
93
- if isinstance(_execution_id, Unset):
94
- execution_id = UNSET
95
- else:
96
- execution_id = UUID(_execution_id)
97
-
98
- cdp_url = d.pop("cdp_url", UNSET)
99
-
100
- debugger_url = d.pop("debugger_url", UNSET)
101
-
102
- session_id = d.pop("session_id", UNSET)
103
-
104
- session_url = d.pop("session_url", UNSET)
105
-
106
- recording_url = d.pop("recording_url", UNSET)
107
-
108
- browser_session = cls(
109
- id=id,
110
- browser_name=browser_name,
111
- execution_id=execution_id,
112
- cdp_url=cdp_url,
113
- debugger_url=debugger_url,
114
- session_id=session_id,
115
- session_url=session_url,
116
- recording_url=recording_url,
117
- )
118
-
119
- browser_session.additional_properties = d
120
- return browser_session
121
-
122
- @property
123
- def additional_keys(self) -> List[str]:
124
- return list(self.additional_properties.keys())
125
-
126
- def __getitem__(self, key: str) -> Any:
127
- return self.additional_properties[key]
128
-
129
- def __setitem__(self, key: str, value: Any) -> None:
130
- self.additional_properties[key] = value
131
-
132
- def __delitem__(self, key: str) -> None:
133
- del self.additional_properties[key]
134
-
135
- def __contains__(self, key: str) -> bool:
136
- return key in self.additional_properties
@@ -1,126 +0,0 @@
1
- from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union, cast
2
- from uuid import UUID
3
-
4
- from attrs import define as _attrs_define
5
- from attrs import field as _attrs_field
6
-
7
- from ..models.create_workflow_request_provider import CreateWorkflowRequestProvider
8
- from ..types import UNSET, Unset
9
-
10
- if TYPE_CHECKING:
11
- from ..models.create_workflow_request_fields import CreateWorkflowRequestFields
12
- from ..models.result_schema import ResultSchema
13
-
14
-
15
- T = TypeVar("T", bound="CreateWorkflowRequest")
16
-
17
-
18
- @_attrs_define
19
- class CreateWorkflowRequest:
20
- """
21
- Attributes:
22
- name (str): The name of the workflow. Example: My workflow.
23
- result_schema (ResultSchema): A JSON Schema that defines the expected structure and validation rules for
24
- workflow results. Example: {'$schema': 'https://json-schema.org/draft/2020-12/schema#', 'type': 'object',
25
- 'required': ['name', 'age', 'skills'], 'properties': {'name': {'type': 'string', 'minLength': 2}, 'age':
26
- {'type': 'integer', 'minimum': 18, 'maximum': 120}, 'email': {'type': 'string', 'format': 'email'}, 'skills':
27
- {'type': 'array', 'items': {'type': 'string'}, 'minItems': 1}}}.
28
- fields (CreateWorkflowRequestFields): JSON object containing static workflow configuration (e.g. a
29
- prompt_template). Example: {'model': 'gpt-4o', 'version': '2024-02-01'}.
30
- prompts (List[str]): The prompts for the workflow. They can have variables in them. They will be merged with the
31
- dynamic data passed when the workflow is executed. Example: ['Your name is {{.name}}, you speak {{.language}}',
32
- 'Your task is {{.task}}'].
33
- provider (CreateWorkflowRequestProvider): The Language Model Provider for the Workflow Example: openai.
34
- user_id (Union[Unset, UUID]): The ID of the user that this workflow belongs to. Example:
35
- 123e4567-e89b-12d3-a456-426614174000.
36
- """
37
-
38
- name: str
39
- result_schema: "ResultSchema"
40
- fields: "CreateWorkflowRequestFields"
41
- prompts: List[str]
42
- provider: CreateWorkflowRequestProvider
43
- user_id: Union[Unset, UUID] = UNSET
44
- additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
45
-
46
- def to_dict(self) -> Dict[str, Any]:
47
- name = self.name
48
-
49
- result_schema = self.result_schema.to_dict()
50
-
51
- fields = self.fields.to_dict()
52
-
53
- prompts = self.prompts
54
-
55
- provider = self.provider.value
56
-
57
- user_id: Union[Unset, str] = UNSET
58
- if not isinstance(self.user_id, Unset):
59
- user_id = str(self.user_id)
60
-
61
- field_dict: Dict[str, Any] = {}
62
- field_dict.update(self.additional_properties)
63
- field_dict.update(
64
- {
65
- "name": name,
66
- "result_schema": result_schema,
67
- "fields": fields,
68
- "prompts": prompts,
69
- "provider": provider,
70
- }
71
- )
72
- if user_id is not UNSET:
73
- field_dict["user_id"] = user_id
74
-
75
- return field_dict
76
-
77
- @classmethod
78
- def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
79
- from ..models.create_workflow_request_fields import CreateWorkflowRequestFields
80
- from ..models.result_schema import ResultSchema
81
-
82
- d = src_dict.copy()
83
- name = d.pop("name")
84
-
85
- result_schema = ResultSchema.from_dict(d.pop("result_schema"))
86
-
87
- fields = CreateWorkflowRequestFields.from_dict(d.pop("fields"))
88
-
89
- prompts = cast(List[str], d.pop("prompts"))
90
-
91
- provider = CreateWorkflowRequestProvider(d.pop("provider"))
92
-
93
- _user_id = d.pop("user_id", UNSET)
94
- user_id: Union[Unset, UUID]
95
- if isinstance(_user_id, Unset):
96
- user_id = UNSET
97
- else:
98
- user_id = UUID(_user_id)
99
-
100
- create_workflow_request = cls(
101
- name=name,
102
- result_schema=result_schema,
103
- fields=fields,
104
- prompts=prompts,
105
- provider=provider,
106
- user_id=user_id,
107
- )
108
-
109
- create_workflow_request.additional_properties = d
110
- return create_workflow_request
111
-
112
- @property
113
- def additional_keys(self) -> List[str]:
114
- return list(self.additional_properties.keys())
115
-
116
- def __getitem__(self, key: str) -> Any:
117
- return self.additional_properties[key]
118
-
119
- def __setitem__(self, key: str, value: Any) -> None:
120
- self.additional_properties[key] = value
121
-
122
- def __delitem__(self, key: str) -> None:
123
- del self.additional_properties[key]
124
-
125
- def __contains__(self, key: str) -> bool:
126
- return key in self.additional_properties
@@ -1,48 +0,0 @@
1
- from typing import Any, Dict, List, Type, TypeVar
2
-
3
- from attrs import define as _attrs_define
4
- from attrs import field as _attrs_field
5
-
6
- T = TypeVar("T", bound="CreateWorkflowRequestFields")
7
-
8
-
9
- @_attrs_define
10
- class CreateWorkflowRequestFields:
11
- """JSON object containing static workflow configuration (e.g. a prompt_template).
12
-
13
- Example:
14
- {'model': 'gpt-4o', 'version': '2024-02-01'}
15
-
16
- """
17
-
18
- additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
19
-
20
- def to_dict(self) -> Dict[str, Any]:
21
- field_dict: Dict[str, Any] = {}
22
- field_dict.update(self.additional_properties)
23
-
24
- return field_dict
25
-
26
- @classmethod
27
- def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
28
- d = src_dict.copy()
29
- create_workflow_request_fields = cls()
30
-
31
- create_workflow_request_fields.additional_properties = d
32
- return create_workflow_request_fields
33
-
34
- @property
35
- def additional_keys(self) -> List[str]:
36
- return list(self.additional_properties.keys())
37
-
38
- def __getitem__(self, key: str) -> Any:
39
- return self.additional_properties[key]
40
-
41
- def __setitem__(self, key: str, value: Any) -> None:
42
- self.additional_properties[key] = value
43
-
44
- def __delitem__(self, key: str) -> None:
45
- del self.additional_properties[key]
46
-
47
- def __contains__(self, key: str) -> bool:
48
- return key in self.additional_properties
@@ -1,9 +0,0 @@
1
- from enum import Enum
2
-
3
-
4
- class CreateWorkflowRequestProvider(str, Enum):
5
- ANTHROPIC = "anthropic"
6
- OPENAI = "openai"
7
-
8
- def __str__(self) -> str:
9
- return str(self.value)
@@ -1,66 +0,0 @@
1
- from typing import Any, Dict, List, Type, TypeVar
2
-
3
- from attrs import define as _attrs_define
4
- from attrs import field as _attrs_field
5
-
6
- T = TypeVar("T", bound="Credential")
7
-
8
-
9
- @_attrs_define
10
- class Credential:
11
- """
12
- Attributes:
13
- name (str): The credential name
14
- data (str): The encrypted credential
15
- """
16
-
17
- name: str
18
- data: str
19
- additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
20
-
21
- def to_dict(self) -> Dict[str, Any]:
22
- name = self.name
23
-
24
- data = self.data
25
-
26
- field_dict: Dict[str, Any] = {}
27
- field_dict.update(self.additional_properties)
28
- field_dict.update(
29
- {
30
- "name": name,
31
- "data": data,
32
- }
33
- )
34
-
35
- return field_dict
36
-
37
- @classmethod
38
- def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
39
- d = src_dict.copy()
40
- name = d.pop("name")
41
-
42
- data = d.pop("data")
43
-
44
- credential = cls(
45
- name=name,
46
- data=data,
47
- )
48
-
49
- credential.additional_properties = d
50
- return credential
51
-
52
- @property
53
- def additional_keys(self) -> List[str]:
54
- return list(self.additional_properties.keys())
55
-
56
- def __getitem__(self, key: str) -> Any:
57
- return self.additional_properties[key]
58
-
59
- def __setitem__(self, key: str, value: Any) -> None:
60
- self.additional_properties[key] = value
61
-
62
- def __delitem__(self, key: str) -> None:
63
- del self.additional_properties[key]
64
-
65
- def __contains__(self, key: str) -> bool:
66
- return key in self.additional_properties
@@ -1,72 +0,0 @@
1
- from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar
2
-
3
- from attrs import define as _attrs_define
4
- from attrs import field as _attrs_field
5
-
6
- if TYPE_CHECKING:
7
- from ..models.credential import Credential
8
-
9
-
10
- T = TypeVar("T", bound="CredentialsRequest")
11
-
12
-
13
- @_attrs_define
14
- class CredentialsRequest:
15
- """
16
- Attributes:
17
- credentials (List['Credential']):
18
- """
19
-
20
- credentials: List["Credential"]
21
- additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
22
-
23
- def to_dict(self) -> Dict[str, Any]:
24
- credentials = []
25
- for credentials_item_data in self.credentials:
26
- credentials_item = credentials_item_data.to_dict()
27
- credentials.append(credentials_item)
28
-
29
- field_dict: Dict[str, Any] = {}
30
- field_dict.update(self.additional_properties)
31
- field_dict.update(
32
- {
33
- "credentials": credentials,
34
- }
35
- )
36
-
37
- return field_dict
38
-
39
- @classmethod
40
- def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
41
- from ..models.credential import Credential
42
-
43
- d = src_dict.copy()
44
- credentials = []
45
- _credentials = d.pop("credentials")
46
- for credentials_item_data in _credentials:
47
- credentials_item = Credential.from_dict(credentials_item_data)
48
-
49
- credentials.append(credentials_item)
50
-
51
- credentials_request = cls(
52
- credentials=credentials,
53
- )
54
-
55
- credentials_request.additional_properties = d
56
- return credentials_request
57
-
58
- @property
59
- def additional_keys(self) -> List[str]:
60
- return list(self.additional_properties.keys())
61
-
62
- def __getitem__(self, key: str) -> Any:
63
- return self.additional_properties[key]
64
-
65
- def __setitem__(self, key: str, value: Any) -> None:
66
- self.additional_properties[key] = value
67
-
68
- def __delitem__(self, key: str) -> None:
69
- del self.additional_properties[key]
70
-
71
- def __contains__(self, key: str) -> bool:
72
- return key in self.additional_properties
@@ -1,80 +0,0 @@
1
- from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar
2
-
3
- from attrs import define as _attrs_define
4
- from attrs import field as _attrs_field
5
-
6
- if TYPE_CHECKING:
7
- from ..models.credential import Credential
8
-
9
-
10
- T = TypeVar("T", bound="CredentialsResponse")
11
-
12
-
13
- @_attrs_define
14
- class CredentialsResponse:
15
- """
16
- Attributes:
17
- workflow_name (str): The name of the workflow
18
- credentials (List['Credential']):
19
- """
20
-
21
- workflow_name: str
22
- credentials: List["Credential"]
23
- additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
24
-
25
- def to_dict(self) -> Dict[str, Any]:
26
- workflow_name = self.workflow_name
27
-
28
- credentials = []
29
- for credentials_item_data in self.credentials:
30
- credentials_item = credentials_item_data.to_dict()
31
- credentials.append(credentials_item)
32
-
33
- field_dict: Dict[str, Any] = {}
34
- field_dict.update(self.additional_properties)
35
- field_dict.update(
36
- {
37
- "workflow_name": workflow_name,
38
- "credentials": credentials,
39
- }
40
- )
41
-
42
- return field_dict
43
-
44
- @classmethod
45
- def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
46
- from ..models.credential import Credential
47
-
48
- d = src_dict.copy()
49
- workflow_name = d.pop("workflow_name")
50
-
51
- credentials = []
52
- _credentials = d.pop("credentials")
53
- for credentials_item_data in _credentials:
54
- credentials_item = Credential.from_dict(credentials_item_data)
55
-
56
- credentials.append(credentials_item)
57
-
58
- credentials_response = cls(
59
- workflow_name=workflow_name,
60
- credentials=credentials,
61
- )
62
-
63
- credentials_response.additional_properties = d
64
- return credentials_response
65
-
66
- @property
67
- def additional_keys(self) -> List[str]:
68
- return list(self.additional_properties.keys())
69
-
70
- def __getitem__(self, key: str) -> Any:
71
- return self.additional_properties[key]
72
-
73
- def __setitem__(self, key: str, value: Any) -> None:
74
- self.additional_properties[key] = value
75
-
76
- def __delitem__(self, key: str) -> None:
77
- del self.additional_properties[key]
78
-
79
- def __contains__(self, key: str) -> bool:
80
- return key in self.additional_properties
@@ -1,58 +0,0 @@
1
- from typing import Any, Dict, List, Type, TypeVar, Union
2
-
3
- from attrs import define as _attrs_define
4
- from attrs import field as _attrs_field
5
-
6
- from ..types import UNSET, Unset
7
-
8
- T = TypeVar("T", bound="DeleteExecutionResponse200")
9
-
10
-
11
- @_attrs_define
12
- class DeleteExecutionResponse200:
13
- """
14
- Attributes:
15
- result (Union[Unset, str]): Example: execution deleted.
16
- """
17
-
18
- result: Union[Unset, str] = UNSET
19
- additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
20
-
21
- def to_dict(self) -> Dict[str, Any]:
22
- result = self.result
23
-
24
- field_dict: Dict[str, Any] = {}
25
- field_dict.update(self.additional_properties)
26
- field_dict.update({})
27
- if result is not UNSET:
28
- field_dict["result"] = result
29
-
30
- return field_dict
31
-
32
- @classmethod
33
- def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
34
- d = src_dict.copy()
35
- result = d.pop("result", UNSET)
36
-
37
- delete_execution_response_200 = cls(
38
- result=result,
39
- )
40
-
41
- delete_execution_response_200.additional_properties = d
42
- return delete_execution_response_200
43
-
44
- @property
45
- def additional_keys(self) -> List[str]:
46
- return list(self.additional_properties.keys())
47
-
48
- def __getitem__(self, key: str) -> Any:
49
- return self.additional_properties[key]
50
-
51
- def __setitem__(self, key: str, value: Any) -> None:
52
- self.additional_properties[key] = value
53
-
54
- def __delitem__(self, key: str) -> None:
55
- del self.additional_properties[key]
56
-
57
- def __contains__(self, key: str) -> bool:
58
- return key in self.additional_properties
@@ -1,58 +0,0 @@
1
- from typing import Any, Dict, List, Type, TypeVar, Union
2
-
3
- from attrs import define as _attrs_define
4
- from attrs import field as _attrs_field
5
-
6
- from ..types import UNSET, Unset
7
-
8
- T = TypeVar("T", bound="DeleteExecutionResponse404")
9
-
10
-
11
- @_attrs_define
12
- class DeleteExecutionResponse404:
13
- """
14
- Attributes:
15
- error (Union[Unset, str]): Example: Execution not found.
16
- """
17
-
18
- error: Union[Unset, str] = UNSET
19
- additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
20
-
21
- def to_dict(self) -> Dict[str, Any]:
22
- error = self.error
23
-
24
- field_dict: Dict[str, Any] = {}
25
- field_dict.update(self.additional_properties)
26
- field_dict.update({})
27
- if error is not UNSET:
28
- field_dict["error"] = error
29
-
30
- return field_dict
31
-
32
- @classmethod
33
- def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
34
- d = src_dict.copy()
35
- error = d.pop("error", UNSET)
36
-
37
- delete_execution_response_404 = cls(
38
- error=error,
39
- )
40
-
41
- delete_execution_response_404.additional_properties = d
42
- return delete_execution_response_404
43
-
44
- @property
45
- def additional_keys(self) -> List[str]:
46
- return list(self.additional_properties.keys())
47
-
48
- def __getitem__(self, key: str) -> Any:
49
- return self.additional_properties[key]
50
-
51
- def __setitem__(self, key: str, value: Any) -> None:
52
- self.additional_properties[key] = value
53
-
54
- def __delitem__(self, key: str) -> None:
55
- del self.additional_properties[key]
56
-
57
- def __contains__(self, key: str) -> bool:
58
- return key in self.additional_properties