asteroid-odyssey 1.3.7__py3-none-any.whl → 1.3.9__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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.9.dist-info}/METADATA +1 -1
  81. asteroid_odyssey-1.3.9.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.9.dist-info}/WHEEL +0 -0
  89. {asteroid_odyssey-1.3.7.dist-info → asteroid_odyssey-1.3.9.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,684 @@
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
+ import warnings
15
+ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
16
+ from typing import Any, Dict, List, Optional, Tuple, Union
17
+ from typing_extensions import Annotated
18
+
19
+ from pydantic import Field, StrictInt, StrictStr
20
+ from typing import Optional
21
+ from typing_extensions import Annotated
22
+ from asteroid_odyssey.agents_v2_gen.models.agent_list200_response import AgentList200Response
23
+ from asteroid_odyssey.agents_v2_gen.models.agents_agent_execute_agent_request import AgentsAgentExecuteAgentRequest
24
+ from asteroid_odyssey.agents_v2_gen.models.agents_agent_execute_agent_response import AgentsAgentExecuteAgentResponse
25
+ from asteroid_odyssey.agents_v2_gen.models.agents_agent_sort_field import AgentsAgentSortField
26
+ from asteroid_odyssey.agents_v2_gen.models.common_sort_direction import CommonSortDirection
27
+
28
+ from asteroid_odyssey.agents_v2_gen.api_client import ApiClient, RequestSerialized
29
+ from asteroid_odyssey.agents_v2_gen.api_response import ApiResponse
30
+ from asteroid_odyssey.agents_v2_gen.rest import RESTResponseType
31
+
32
+
33
+ class AgentsApi:
34
+ """NOTE: This class is auto generated by OpenAPI Generator
35
+ Ref: https://openapi-generator.tech
36
+
37
+ Do not edit the class manually.
38
+ """
39
+
40
+ def __init__(self, api_client=None) -> None:
41
+ if api_client is None:
42
+ api_client = ApiClient.get_default()
43
+ self.api_client = api_client
44
+
45
+
46
+ @validate_call
47
+ def agent_execute_post(
48
+ self,
49
+ agent_id: Annotated[StrictStr, Field(description="The ID of the agent to execute")],
50
+ agents_agent_execute_agent_request: Annotated[AgentsAgentExecuteAgentRequest, Field(description="Execution request parameters")],
51
+ _request_timeout: Union[
52
+ None,
53
+ Annotated[StrictFloat, Field(gt=0)],
54
+ Tuple[
55
+ Annotated[StrictFloat, Field(gt=0)],
56
+ Annotated[StrictFloat, Field(gt=0)]
57
+ ]
58
+ ] = None,
59
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
60
+ _content_type: Optional[StrictStr] = None,
61
+ _headers: Optional[Dict[StrictStr, Any]] = None,
62
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
63
+ ) -> AgentsAgentExecuteAgentResponse:
64
+ """Execute an agent
65
+
66
+ Start an execution for the given agent.
67
+
68
+ :param agent_id: The ID of the agent to execute (required)
69
+ :type agent_id: str
70
+ :param agents_agent_execute_agent_request: Execution request parameters (required)
71
+ :type agents_agent_execute_agent_request: AgentsAgentExecuteAgentRequest
72
+ :param _request_timeout: timeout setting for this request. If one
73
+ number provided, it will be total request
74
+ timeout. It can also be a pair (tuple) of
75
+ (connection, read) timeouts.
76
+ :type _request_timeout: int, tuple(int, int), optional
77
+ :param _request_auth: set to override the auth_settings for an a single
78
+ request; this effectively ignores the
79
+ authentication in the spec for a single request.
80
+ :type _request_auth: dict, optional
81
+ :param _content_type: force content-type for the request.
82
+ :type _content_type: str, Optional
83
+ :param _headers: set to override the headers for a single
84
+ request; this effectively ignores the headers
85
+ in the spec for a single request.
86
+ :type _headers: dict, optional
87
+ :param _host_index: set to override the host_index for a single
88
+ request; this effectively ignores the host_index
89
+ in the spec for a single request.
90
+ :type _host_index: int, optional
91
+ :return: Returns the result object.
92
+ """ # noqa: E501
93
+
94
+ _param = self._agent_execute_post_serialize(
95
+ agent_id=agent_id,
96
+ agents_agent_execute_agent_request=agents_agent_execute_agent_request,
97
+ _request_auth=_request_auth,
98
+ _content_type=_content_type,
99
+ _headers=_headers,
100
+ _host_index=_host_index
101
+ )
102
+
103
+ _response_types_map: Dict[str, Optional[str]] = {
104
+ '202': "AgentsAgentExecuteAgentResponse",
105
+ }
106
+ response_data = self.api_client.call_api(
107
+ *_param,
108
+ _request_timeout=_request_timeout
109
+ )
110
+ response_data.read()
111
+ return self.api_client.response_deserialize(
112
+ response_data=response_data,
113
+ response_types_map=_response_types_map,
114
+ ).data
115
+
116
+
117
+ @validate_call
118
+ def agent_execute_post_with_http_info(
119
+ self,
120
+ agent_id: Annotated[StrictStr, Field(description="The ID of the agent to execute")],
121
+ agents_agent_execute_agent_request: Annotated[AgentsAgentExecuteAgentRequest, Field(description="Execution request parameters")],
122
+ _request_timeout: Union[
123
+ None,
124
+ Annotated[StrictFloat, Field(gt=0)],
125
+ Tuple[
126
+ Annotated[StrictFloat, Field(gt=0)],
127
+ Annotated[StrictFloat, Field(gt=0)]
128
+ ]
129
+ ] = None,
130
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
131
+ _content_type: Optional[StrictStr] = None,
132
+ _headers: Optional[Dict[StrictStr, Any]] = None,
133
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
134
+ ) -> ApiResponse[AgentsAgentExecuteAgentResponse]:
135
+ """Execute an agent
136
+
137
+ Start an execution for the given agent.
138
+
139
+ :param agent_id: The ID of the agent to execute (required)
140
+ :type agent_id: str
141
+ :param agents_agent_execute_agent_request: Execution request parameters (required)
142
+ :type agents_agent_execute_agent_request: AgentsAgentExecuteAgentRequest
143
+ :param _request_timeout: timeout setting for this request. If one
144
+ number provided, it will be total request
145
+ timeout. It can also be a pair (tuple) of
146
+ (connection, read) timeouts.
147
+ :type _request_timeout: int, tuple(int, int), optional
148
+ :param _request_auth: set to override the auth_settings for an a single
149
+ request; this effectively ignores the
150
+ authentication in the spec for a single request.
151
+ :type _request_auth: dict, optional
152
+ :param _content_type: force content-type for the request.
153
+ :type _content_type: str, Optional
154
+ :param _headers: set to override the headers for a single
155
+ request; this effectively ignores the headers
156
+ in the spec for a single request.
157
+ :type _headers: dict, optional
158
+ :param _host_index: set to override the host_index for a single
159
+ request; this effectively ignores the host_index
160
+ in the spec for a single request.
161
+ :type _host_index: int, optional
162
+ :return: Returns the result object.
163
+ """ # noqa: E501
164
+
165
+ _param = self._agent_execute_post_serialize(
166
+ agent_id=agent_id,
167
+ agents_agent_execute_agent_request=agents_agent_execute_agent_request,
168
+ _request_auth=_request_auth,
169
+ _content_type=_content_type,
170
+ _headers=_headers,
171
+ _host_index=_host_index
172
+ )
173
+
174
+ _response_types_map: Dict[str, Optional[str]] = {
175
+ '202': "AgentsAgentExecuteAgentResponse",
176
+ }
177
+ response_data = self.api_client.call_api(
178
+ *_param,
179
+ _request_timeout=_request_timeout
180
+ )
181
+ response_data.read()
182
+ return self.api_client.response_deserialize(
183
+ response_data=response_data,
184
+ response_types_map=_response_types_map,
185
+ )
186
+
187
+
188
+ @validate_call
189
+ def agent_execute_post_without_preload_content(
190
+ self,
191
+ agent_id: Annotated[StrictStr, Field(description="The ID of the agent to execute")],
192
+ agents_agent_execute_agent_request: Annotated[AgentsAgentExecuteAgentRequest, Field(description="Execution request parameters")],
193
+ _request_timeout: Union[
194
+ None,
195
+ Annotated[StrictFloat, Field(gt=0)],
196
+ Tuple[
197
+ Annotated[StrictFloat, Field(gt=0)],
198
+ Annotated[StrictFloat, Field(gt=0)]
199
+ ]
200
+ ] = None,
201
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
202
+ _content_type: Optional[StrictStr] = None,
203
+ _headers: Optional[Dict[StrictStr, Any]] = None,
204
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
205
+ ) -> RESTResponseType:
206
+ """Execute an agent
207
+
208
+ Start an execution for the given agent.
209
+
210
+ :param agent_id: The ID of the agent to execute (required)
211
+ :type agent_id: str
212
+ :param agents_agent_execute_agent_request: Execution request parameters (required)
213
+ :type agents_agent_execute_agent_request: AgentsAgentExecuteAgentRequest
214
+ :param _request_timeout: timeout setting for this request. If one
215
+ number provided, it will be total request
216
+ timeout. It can also be a pair (tuple) of
217
+ (connection, read) timeouts.
218
+ :type _request_timeout: int, tuple(int, int), optional
219
+ :param _request_auth: set to override the auth_settings for an a single
220
+ request; this effectively ignores the
221
+ authentication in the spec for a single request.
222
+ :type _request_auth: dict, optional
223
+ :param _content_type: force content-type for the request.
224
+ :type _content_type: str, Optional
225
+ :param _headers: set to override the headers for a single
226
+ request; this effectively ignores the headers
227
+ in the spec for a single request.
228
+ :type _headers: dict, optional
229
+ :param _host_index: set to override the host_index for a single
230
+ request; this effectively ignores the host_index
231
+ in the spec for a single request.
232
+ :type _host_index: int, optional
233
+ :return: Returns the result object.
234
+ """ # noqa: E501
235
+
236
+ _param = self._agent_execute_post_serialize(
237
+ agent_id=agent_id,
238
+ agents_agent_execute_agent_request=agents_agent_execute_agent_request,
239
+ _request_auth=_request_auth,
240
+ _content_type=_content_type,
241
+ _headers=_headers,
242
+ _host_index=_host_index
243
+ )
244
+
245
+ _response_types_map: Dict[str, Optional[str]] = {
246
+ '202': "AgentsAgentExecuteAgentResponse",
247
+ }
248
+ response_data = self.api_client.call_api(
249
+ *_param,
250
+ _request_timeout=_request_timeout
251
+ )
252
+ return response_data.response
253
+
254
+
255
+ def _agent_execute_post_serialize(
256
+ self,
257
+ agent_id,
258
+ agents_agent_execute_agent_request,
259
+ _request_auth,
260
+ _content_type,
261
+ _headers,
262
+ _host_index,
263
+ ) -> RequestSerialized:
264
+
265
+ _host = None
266
+
267
+ _collection_formats: Dict[str, str] = {
268
+ }
269
+
270
+ _path_params: Dict[str, str] = {}
271
+ _query_params: List[Tuple[str, str]] = []
272
+ _header_params: Dict[str, Optional[str]] = _headers or {}
273
+ _form_params: List[Tuple[str, str]] = []
274
+ _files: Dict[
275
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
276
+ ] = {}
277
+ _body_params: Optional[bytes] = None
278
+
279
+ # process the path parameters
280
+ if agent_id is not None:
281
+ _path_params['agentId'] = agent_id
282
+ # process the query parameters
283
+ # process the header parameters
284
+ # process the form parameters
285
+ # process the body parameter
286
+ if agents_agent_execute_agent_request is not None:
287
+ _body_params = agents_agent_execute_agent_request
288
+
289
+
290
+ # set the HTTP header `Accept`
291
+ if 'Accept' not in _header_params:
292
+ _header_params['Accept'] = self.api_client.select_header_accept(
293
+ [
294
+ 'application/json'
295
+ ]
296
+ )
297
+
298
+ # set the HTTP header `Content-Type`
299
+ if _content_type:
300
+ _header_params['Content-Type'] = _content_type
301
+ else:
302
+ _default_content_type = (
303
+ self.api_client.select_header_content_type(
304
+ [
305
+ 'application/json'
306
+ ]
307
+ )
308
+ )
309
+ if _default_content_type is not None:
310
+ _header_params['Content-Type'] = _default_content_type
311
+
312
+ # authentication setting
313
+ _auth_settings: List[str] = [
314
+ 'ApiKeyAuth'
315
+ ]
316
+
317
+ return self.api_client.param_serialize(
318
+ method='POST',
319
+ resource_path='/agents/{agentId}/execute',
320
+ path_params=_path_params,
321
+ query_params=_query_params,
322
+ header_params=_header_params,
323
+ body=_body_params,
324
+ post_params=_form_params,
325
+ files=_files,
326
+ auth_settings=_auth_settings,
327
+ collection_formats=_collection_formats,
328
+ _host=_host,
329
+ _request_auth=_request_auth
330
+ )
331
+
332
+
333
+
334
+
335
+ @validate_call
336
+ def agent_list(
337
+ self,
338
+ page_size: StrictInt,
339
+ page: StrictInt,
340
+ organization_id: Optional[StrictStr] = None,
341
+ search_name: Optional[StrictStr] = None,
342
+ sort_field: Optional[AgentsAgentSortField] = None,
343
+ sort_direction: Optional[CommonSortDirection] = None,
344
+ _request_timeout: Union[
345
+ None,
346
+ Annotated[StrictFloat, Field(gt=0)],
347
+ Tuple[
348
+ Annotated[StrictFloat, Field(gt=0)],
349
+ Annotated[StrictFloat, Field(gt=0)]
350
+ ]
351
+ ] = None,
352
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
353
+ _content_type: Optional[StrictStr] = None,
354
+ _headers: Optional[Dict[StrictStr, Any]] = None,
355
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
356
+ ) -> AgentList200Response:
357
+ """agent_list
358
+
359
+
360
+ :param page_size: (required)
361
+ :type page_size: int
362
+ :param page: (required)
363
+ :type page: int
364
+ :param organization_id:
365
+ :type organization_id: str
366
+ :param search_name:
367
+ :type search_name: str
368
+ :param sort_field:
369
+ :type sort_field: AgentsAgentSortField
370
+ :param sort_direction:
371
+ :type sort_direction: CommonSortDirection
372
+ :param _request_timeout: timeout setting for this request. If one
373
+ number provided, it will be total request
374
+ timeout. It can also be a pair (tuple) of
375
+ (connection, read) timeouts.
376
+ :type _request_timeout: int, tuple(int, int), optional
377
+ :param _request_auth: set to override the auth_settings for an a single
378
+ request; this effectively ignores the
379
+ authentication in the spec for a single request.
380
+ :type _request_auth: dict, optional
381
+ :param _content_type: force content-type for the request.
382
+ :type _content_type: str, Optional
383
+ :param _headers: set to override the headers for a single
384
+ request; this effectively ignores the headers
385
+ in the spec for a single request.
386
+ :type _headers: dict, optional
387
+ :param _host_index: set to override the host_index for a single
388
+ request; this effectively ignores the host_index
389
+ in the spec for a single request.
390
+ :type _host_index: int, optional
391
+ :return: Returns the result object.
392
+ """ # noqa: E501
393
+
394
+ _param = self._agent_list_serialize(
395
+ page_size=page_size,
396
+ page=page,
397
+ organization_id=organization_id,
398
+ search_name=search_name,
399
+ sort_field=sort_field,
400
+ sort_direction=sort_direction,
401
+ _request_auth=_request_auth,
402
+ _content_type=_content_type,
403
+ _headers=_headers,
404
+ _host_index=_host_index
405
+ )
406
+
407
+ _response_types_map: Dict[str, Optional[str]] = {
408
+ '200': "AgentList200Response",
409
+ '400': "str",
410
+ '404': "str",
411
+ }
412
+ response_data = self.api_client.call_api(
413
+ *_param,
414
+ _request_timeout=_request_timeout
415
+ )
416
+ response_data.read()
417
+ return self.api_client.response_deserialize(
418
+ response_data=response_data,
419
+ response_types_map=_response_types_map,
420
+ ).data
421
+
422
+
423
+ @validate_call
424
+ def agent_list_with_http_info(
425
+ self,
426
+ page_size: StrictInt,
427
+ page: StrictInt,
428
+ organization_id: Optional[StrictStr] = None,
429
+ search_name: Optional[StrictStr] = None,
430
+ sort_field: Optional[AgentsAgentSortField] = None,
431
+ sort_direction: Optional[CommonSortDirection] = None,
432
+ _request_timeout: Union[
433
+ None,
434
+ Annotated[StrictFloat, Field(gt=0)],
435
+ Tuple[
436
+ Annotated[StrictFloat, Field(gt=0)],
437
+ Annotated[StrictFloat, Field(gt=0)]
438
+ ]
439
+ ] = None,
440
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
441
+ _content_type: Optional[StrictStr] = None,
442
+ _headers: Optional[Dict[StrictStr, Any]] = None,
443
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
444
+ ) -> ApiResponse[AgentList200Response]:
445
+ """agent_list
446
+
447
+
448
+ :param page_size: (required)
449
+ :type page_size: int
450
+ :param page: (required)
451
+ :type page: int
452
+ :param organization_id:
453
+ :type organization_id: str
454
+ :param search_name:
455
+ :type search_name: str
456
+ :param sort_field:
457
+ :type sort_field: AgentsAgentSortField
458
+ :param sort_direction:
459
+ :type sort_direction: CommonSortDirection
460
+ :param _request_timeout: timeout setting for this request. If one
461
+ number provided, it will be total request
462
+ timeout. It can also be a pair (tuple) of
463
+ (connection, read) timeouts.
464
+ :type _request_timeout: int, tuple(int, int), optional
465
+ :param _request_auth: set to override the auth_settings for an a single
466
+ request; this effectively ignores the
467
+ authentication in the spec for a single request.
468
+ :type _request_auth: dict, optional
469
+ :param _content_type: force content-type for the request.
470
+ :type _content_type: str, Optional
471
+ :param _headers: set to override the headers for a single
472
+ request; this effectively ignores the headers
473
+ in the spec for a single request.
474
+ :type _headers: dict, optional
475
+ :param _host_index: set to override the host_index for a single
476
+ request; this effectively ignores the host_index
477
+ in the spec for a single request.
478
+ :type _host_index: int, optional
479
+ :return: Returns the result object.
480
+ """ # noqa: E501
481
+
482
+ _param = self._agent_list_serialize(
483
+ page_size=page_size,
484
+ page=page,
485
+ organization_id=organization_id,
486
+ search_name=search_name,
487
+ sort_field=sort_field,
488
+ sort_direction=sort_direction,
489
+ _request_auth=_request_auth,
490
+ _content_type=_content_type,
491
+ _headers=_headers,
492
+ _host_index=_host_index
493
+ )
494
+
495
+ _response_types_map: Dict[str, Optional[str]] = {
496
+ '200': "AgentList200Response",
497
+ '400': "str",
498
+ '404': "str",
499
+ }
500
+ response_data = self.api_client.call_api(
501
+ *_param,
502
+ _request_timeout=_request_timeout
503
+ )
504
+ response_data.read()
505
+ return self.api_client.response_deserialize(
506
+ response_data=response_data,
507
+ response_types_map=_response_types_map,
508
+ )
509
+
510
+
511
+ @validate_call
512
+ def agent_list_without_preload_content(
513
+ self,
514
+ page_size: StrictInt,
515
+ page: StrictInt,
516
+ organization_id: Optional[StrictStr] = None,
517
+ search_name: Optional[StrictStr] = None,
518
+ sort_field: Optional[AgentsAgentSortField] = None,
519
+ sort_direction: Optional[CommonSortDirection] = None,
520
+ _request_timeout: Union[
521
+ None,
522
+ Annotated[StrictFloat, Field(gt=0)],
523
+ Tuple[
524
+ Annotated[StrictFloat, Field(gt=0)],
525
+ Annotated[StrictFloat, Field(gt=0)]
526
+ ]
527
+ ] = None,
528
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
529
+ _content_type: Optional[StrictStr] = None,
530
+ _headers: Optional[Dict[StrictStr, Any]] = None,
531
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
532
+ ) -> RESTResponseType:
533
+ """agent_list
534
+
535
+
536
+ :param page_size: (required)
537
+ :type page_size: int
538
+ :param page: (required)
539
+ :type page: int
540
+ :param organization_id:
541
+ :type organization_id: str
542
+ :param search_name:
543
+ :type search_name: str
544
+ :param sort_field:
545
+ :type sort_field: AgentsAgentSortField
546
+ :param sort_direction:
547
+ :type sort_direction: CommonSortDirection
548
+ :param _request_timeout: timeout setting for this request. If one
549
+ number provided, it will be total request
550
+ timeout. It can also be a pair (tuple) of
551
+ (connection, read) timeouts.
552
+ :type _request_timeout: int, tuple(int, int), optional
553
+ :param _request_auth: set to override the auth_settings for an a single
554
+ request; this effectively ignores the
555
+ authentication in the spec for a single request.
556
+ :type _request_auth: dict, optional
557
+ :param _content_type: force content-type for the request.
558
+ :type _content_type: str, Optional
559
+ :param _headers: set to override the headers for a single
560
+ request; this effectively ignores the headers
561
+ in the spec for a single request.
562
+ :type _headers: dict, optional
563
+ :param _host_index: set to override the host_index for a single
564
+ request; this effectively ignores the host_index
565
+ in the spec for a single request.
566
+ :type _host_index: int, optional
567
+ :return: Returns the result object.
568
+ """ # noqa: E501
569
+
570
+ _param = self._agent_list_serialize(
571
+ page_size=page_size,
572
+ page=page,
573
+ organization_id=organization_id,
574
+ search_name=search_name,
575
+ sort_field=sort_field,
576
+ sort_direction=sort_direction,
577
+ _request_auth=_request_auth,
578
+ _content_type=_content_type,
579
+ _headers=_headers,
580
+ _host_index=_host_index
581
+ )
582
+
583
+ _response_types_map: Dict[str, Optional[str]] = {
584
+ '200': "AgentList200Response",
585
+ '400': "str",
586
+ '404': "str",
587
+ }
588
+ response_data = self.api_client.call_api(
589
+ *_param,
590
+ _request_timeout=_request_timeout
591
+ )
592
+ return response_data.response
593
+
594
+
595
+ def _agent_list_serialize(
596
+ self,
597
+ page_size,
598
+ page,
599
+ organization_id,
600
+ search_name,
601
+ sort_field,
602
+ sort_direction,
603
+ _request_auth,
604
+ _content_type,
605
+ _headers,
606
+ _host_index,
607
+ ) -> RequestSerialized:
608
+
609
+ _host = None
610
+
611
+ _collection_formats: Dict[str, str] = {
612
+ }
613
+
614
+ _path_params: Dict[str, str] = {}
615
+ _query_params: List[Tuple[str, str]] = []
616
+ _header_params: Dict[str, Optional[str]] = _headers or {}
617
+ _form_params: List[Tuple[str, str]] = []
618
+ _files: Dict[
619
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
620
+ ] = {}
621
+ _body_params: Optional[bytes] = None
622
+
623
+ # process the path parameters
624
+ # process the query parameters
625
+ if organization_id is not None:
626
+
627
+ _query_params.append(('organizationId', organization_id))
628
+
629
+ if page_size is not None:
630
+
631
+ _query_params.append(('pageSize', page_size))
632
+
633
+ if page is not None:
634
+
635
+ _query_params.append(('page', page))
636
+
637
+ if search_name is not None:
638
+
639
+ _query_params.append(('searchName', search_name))
640
+
641
+ if sort_field is not None:
642
+
643
+ _query_params.append(('sortField', sort_field.value))
644
+
645
+ if sort_direction is not None:
646
+
647
+ _query_params.append(('sortDirection', sort_direction.value))
648
+
649
+ # process the header parameters
650
+ # process the form parameters
651
+ # process the body parameter
652
+
653
+
654
+ # set the HTTP header `Accept`
655
+ if 'Accept' not in _header_params:
656
+ _header_params['Accept'] = self.api_client.select_header_accept(
657
+ [
658
+ 'application/json',
659
+ 'text/plain'
660
+ ]
661
+ )
662
+
663
+
664
+ # authentication setting
665
+ _auth_settings: List[str] = [
666
+ 'ApiKeyAuth'
667
+ ]
668
+
669
+ return self.api_client.param_serialize(
670
+ method='GET',
671
+ resource_path='/agents',
672
+ path_params=_path_params,
673
+ query_params=_query_params,
674
+ header_params=_header_params,
675
+ body=_body_params,
676
+ post_params=_form_params,
677
+ files=_files,
678
+ auth_settings=_auth_settings,
679
+ collection_formats=_collection_formats,
680
+ _host=_host,
681
+ _request_auth=_request_auth
682
+ )
683
+
684
+