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.
- asteroid_odyssey/__init__.py +4 -2
- asteroid_odyssey/agents_v1_gen/__init__.py +0 -1
- asteroid_odyssey/agents_v1_gen/api/execution_api.py +26 -311
- asteroid_odyssey/agents_v1_gen/models/__init__.py +0 -1
- asteroid_odyssey/agents_v1_gen/models/agent_profile.py +1 -3
- asteroid_odyssey/agents_v1_gen/models/create_agent_profile_request.py +1 -3
- asteroid_odyssey/agents_v1_gen/models/proxy_type.py +1 -0
- asteroid_odyssey/agents_v1_gen/models/update_agent_profile_request.py +1 -3
- asteroid_odyssey/agents_v2_gen/__init__.py +53 -15
- asteroid_odyssey/agents_v2_gen/api/__init__.py +3 -1
- asteroid_odyssey/agents_v2_gen/api/agents_api.py +684 -0
- asteroid_odyssey/agents_v2_gen/api/{default_api.py → execution_api.py} +381 -479
- asteroid_odyssey/agents_v2_gen/api/files_api.py +895 -0
- asteroid_odyssey/agents_v2_gen/models/__init__.py +50 -14
- asteroid_odyssey/agents_v2_gen/models/agents_agent_execute_agent_request.py +103 -0
- asteroid_odyssey/{agents_v1_gen/models/upload_execution_files200_response.py → agents_v2_gen/models/agents_agent_execute_agent_response.py} +11 -13
- asteroid_odyssey/agents_v2_gen/models/agents_execution_action_name.py +93 -0
- asteroid_odyssey/agents_v2_gen/models/agents_execution_activity_action_completed_info.py +350 -0
- asteroid_odyssey/agents_v2_gen/models/agents_execution_activity_action_completed_payload.py +25 -3
- asteroid_odyssey/agents_v2_gen/models/agents_execution_activity_action_failed_payload.py +19 -3
- asteroid_odyssey/agents_v2_gen/models/agents_execution_activity_action_started_info.py +252 -0
- asteroid_odyssey/agents_v2_gen/models/agents_execution_activity_action_started_payload.py +23 -3
- asteroid_odyssey/agents_v2_gen/models/agents_execution_activity_file_added_payload.py +10 -1
- asteroid_odyssey/agents_v2_gen/models/agents_execution_activity_generic_payload.py +11 -2
- asteroid_odyssey/agents_v2_gen/models/agents_execution_activity_payload_union.py +132 -104
- asteroid_odyssey/agents_v2_gen/models/agents_execution_activity_playwright_script_generated_payload.py +114 -0
- asteroid_odyssey/agents_v2_gen/models/{activity_payload_union_terminal.py → agents_execution_activity_reasoning_payload.py} +9 -13
- asteroid_odyssey/agents_v2_gen/models/agents_execution_activity_status_changed_payload.py +11 -2
- asteroid_odyssey/agents_v2_gen/models/agents_execution_activity_step_completed_payload.py +11 -2
- asteroid_odyssey/agents_v2_gen/models/agents_execution_activity_step_started_payload.py +11 -2
- asteroid_odyssey/agents_v2_gen/models/agents_execution_activity_transitioned_node_payload.py +20 -4
- asteroid_odyssey/agents_v2_gen/models/agents_execution_activity_user_message_received_payload.py +11 -2
- asteroid_odyssey/agents_v2_gen/models/{activity_payload_union_action_started.py → agents_execution_activity_workflow_updated_payload.py} +17 -13
- asteroid_odyssey/agents_v2_gen/models/agents_execution_comment.py +100 -0
- asteroid_odyssey/agents_v2_gen/models/agents_execution_completed_payload.py +4 -11
- asteroid_odyssey/agents_v2_gen/models/agents_execution_element_file_upload_completed_details.py +96 -0
- asteroid_odyssey/agents_v2_gen/models/agents_execution_execution_result.py +103 -0
- asteroid_odyssey/agents_v2_gen/models/agents_execution_ext_api_call_completed_details.py +102 -0
- asteroid_odyssey/agents_v2_gen/models/agents_execution_ext_get_mail_completed_details.py +98 -0
- asteroid_odyssey/agents_v2_gen/models/agents_execution_failed_payload.py +8 -2
- asteroid_odyssey/agents_v2_gen/models/{activity_payload_union_file_added.py → agents_execution_file_list_completed_details.py} +13 -17
- asteroid_odyssey/agents_v2_gen/models/agents_execution_file_read_completed_details.py +100 -0
- asteroid_odyssey/agents_v2_gen/models/agents_execution_file_stage_completed_details.py +96 -0
- asteroid_odyssey/agents_v2_gen/models/agents_execution_human_label.py +96 -0
- asteroid_odyssey/agents_v2_gen/models/agents_execution_list_item.py +141 -0
- asteroid_odyssey/agents_v2_gen/models/agents_execution_llm_call_purpose.py +40 -0
- asteroid_odyssey/agents_v2_gen/models/agents_execution_llm_call_started_details.py +97 -0
- asteroid_odyssey/agents_v2_gen/models/agents_execution_nav_to_completed_details.py +96 -0
- asteroid_odyssey/agents_v2_gen/models/agents_execution_nav_to_started_details.py +96 -0
- asteroid_odyssey/agents_v2_gen/models/agents_execution_obs_snapshot_with_selectors_completed_details.py +98 -0
- asteroid_odyssey/agents_v2_gen/models/agents_execution_rules_details.py +87 -0
- asteroid_odyssey/agents_v2_gen/models/agents_execution_scratchpad_read_completed_details.py +98 -0
- asteroid_odyssey/agents_v2_gen/models/{activity_payload_union_generic.py → agents_execution_scratchpad_read_started_details.py} +20 -17
- asteroid_odyssey/agents_v2_gen/models/agents_execution_scratchpad_write_completed_details.py +104 -0
- asteroid_odyssey/agents_v2_gen/models/{activity_payload_union_step_started.py → agents_execution_scratchpad_write_started_details.py} +20 -17
- asteroid_odyssey/agents_v2_gen/models/agents_execution_script_hybrid_playwright_completed_details.py +102 -0
- asteroid_odyssey/agents_v2_gen/models/agents_execution_script_hybrid_playwright_started_details.py +96 -0
- asteroid_odyssey/agents_v2_gen/models/agents_execution_script_pad_run_function_completed_details.py +102 -0
- asteroid_odyssey/agents_v2_gen/models/agents_execution_script_playwright_completed_details.py +102 -0
- asteroid_odyssey/agents_v2_gen/models/agents_execution_script_playwright_started_details.py +96 -0
- asteroid_odyssey/agents_v2_gen/models/agents_execution_scriptpad_read_completed_details.py +96 -0
- asteroid_odyssey/agents_v2_gen/models/agents_execution_scriptpad_read_started_details.py +98 -0
- asteroid_odyssey/agents_v2_gen/models/{activity_payload_union_action_completed.py → agents_execution_scriptpad_run_function_started_details.py} +21 -18
- asteroid_odyssey/agents_v2_gen/models/agents_execution_scriptpad_search_replace_completed_details.py +106 -0
- asteroid_odyssey/agents_v2_gen/models/agents_execution_scriptpad_search_replace_started_details.py +100 -0
- asteroid_odyssey/agents_v2_gen/models/agents_execution_scriptpad_write_completed_details.py +102 -0
- asteroid_odyssey/agents_v2_gen/models/agents_execution_sort_field.py +37 -0
- asteroid_odyssey/agents_v2_gen/models/agents_execution_terminal_payload.py +11 -2
- asteroid_odyssey/agents_v2_gen/models/{activity_payload_union_action_failed.py → agents_execution_util_get_datetime_completed_details.py} +20 -19
- asteroid_odyssey/agents_v2_gen/models/agents_execution_util_get_datetime_started_details.py +96 -0
- asteroid_odyssey/agents_v2_gen/models/{agents_execution_graph_update.py → agents_execution_workflow_update.py} +11 -5
- asteroid_odyssey/agents_v2_gen/models/agents_files_temp_file.py +89 -0
- asteroid_odyssey/agents_v2_gen/models/{agents_execution_activity_graph_updated_payload.py → agents_files_temp_files_response.py} +14 -14
- asteroid_odyssey/agents_v2_gen/models/agents_graph_models_nodes_properties_playwright_script_llm_var.py +92 -0
- asteroid_odyssey/agents_v2_gen/models/agents_graph_models_nodes_properties_playwright_script_llm_var_type.py +38 -0
- asteroid_odyssey/agents_v2_gen/models/agents_graph_models_transitions_transition_type.py +38 -0
- asteroid_odyssey/agents_v2_gen/models/common_os_error.py +87 -0
- asteroid_odyssey/agents_v2_gen/models/executions_list200_response.py +101 -0
- asteroid_odyssey/client.py +204 -33
- {asteroid_odyssey-1.3.7.dist-info → asteroid_odyssey-1.3.9.dist-info}/METADATA +1 -1
- asteroid_odyssey-1.3.9.dist-info/RECORD +132 -0
- asteroid_odyssey/agents_v2_gen/models/activity_payload_union_graph_updated.py +0 -100
- asteroid_odyssey/agents_v2_gen/models/activity_payload_union_status_changed.py +0 -100
- asteroid_odyssey/agents_v2_gen/models/activity_payload_union_step_completed.py +0 -100
- asteroid_odyssey/agents_v2_gen/models/activity_payload_union_transitioned_node.py +0 -100
- asteroid_odyssey/agents_v2_gen/models/activity_payload_union_user_message_received.py +0 -100
- asteroid_odyssey-1.3.7.dist-info/RECORD +0 -95
- {asteroid_odyssey-1.3.7.dist-info → asteroid_odyssey-1.3.9.dist-info}/WHEEL +0 -0
- {asteroid_odyssey-1.3.7.dist-info → asteroid_odyssey-1.3.9.dist-info}/top_level.txt +0 -0
|
@@ -16,22 +16,24 @@ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
|
16
16
|
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
17
17
|
from typing_extensions import Annotated
|
|
18
18
|
|
|
19
|
-
from
|
|
20
|
-
from
|
|
19
|
+
from datetime import datetime
|
|
20
|
+
from pydantic import Field, StrictInt, StrictStr, field_validator
|
|
21
|
+
from typing import List, Optional
|
|
21
22
|
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_sort_field import AgentsAgentSortField
|
|
24
23
|
from asteroid_odyssey.agents_v2_gen.models.agents_execution_activity import AgentsExecutionActivity
|
|
24
|
+
from asteroid_odyssey.agents_v2_gen.models.agents_execution_list_item import AgentsExecutionListItem
|
|
25
|
+
from asteroid_odyssey.agents_v2_gen.models.agents_execution_sort_field import AgentsExecutionSortField
|
|
26
|
+
from asteroid_odyssey.agents_v2_gen.models.agents_execution_status import AgentsExecutionStatus
|
|
25
27
|
from asteroid_odyssey.agents_v2_gen.models.agents_execution_user_messages_add_text_body import AgentsExecutionUserMessagesAddTextBody
|
|
26
|
-
from asteroid_odyssey.agents_v2_gen.models.agents_files_file import AgentsFilesFile
|
|
27
28
|
from asteroid_odyssey.agents_v2_gen.models.common_sort_direction import CommonSortDirection
|
|
29
|
+
from asteroid_odyssey.agents_v2_gen.models.executions_list200_response import ExecutionsList200Response
|
|
28
30
|
|
|
29
31
|
from asteroid_odyssey.agents_v2_gen.api_client import ApiClient, RequestSerialized
|
|
30
32
|
from asteroid_odyssey.agents_v2_gen.api_response import ApiResponse
|
|
31
33
|
from asteroid_odyssey.agents_v2_gen.rest import RESTResponseType
|
|
32
34
|
|
|
33
35
|
|
|
34
|
-
class
|
|
36
|
+
class ExecutionApi:
|
|
35
37
|
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
36
38
|
Ref: https://openapi-generator.tech
|
|
37
39
|
|
|
@@ -44,351 +46,6 @@ class DefaultApi:
|
|
|
44
46
|
self.api_client = api_client
|
|
45
47
|
|
|
46
48
|
|
|
47
|
-
@validate_call
|
|
48
|
-
def agent_list(
|
|
49
|
-
self,
|
|
50
|
-
page_size: StrictInt,
|
|
51
|
-
page: StrictInt,
|
|
52
|
-
organization_id: Optional[StrictStr] = None,
|
|
53
|
-
search_name: Optional[StrictStr] = None,
|
|
54
|
-
sort_field: Optional[AgentsAgentSortField] = None,
|
|
55
|
-
sort_direction: Optional[CommonSortDirection] = None,
|
|
56
|
-
_request_timeout: Union[
|
|
57
|
-
None,
|
|
58
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
59
|
-
Tuple[
|
|
60
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
61
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
62
|
-
]
|
|
63
|
-
] = None,
|
|
64
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
65
|
-
_content_type: Optional[StrictStr] = None,
|
|
66
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
67
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
68
|
-
) -> AgentList200Response:
|
|
69
|
-
"""agent_list
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
:param page_size: (required)
|
|
73
|
-
:type page_size: int
|
|
74
|
-
:param page: (required)
|
|
75
|
-
:type page: int
|
|
76
|
-
:param organization_id:
|
|
77
|
-
:type organization_id: str
|
|
78
|
-
:param search_name:
|
|
79
|
-
:type search_name: str
|
|
80
|
-
:param sort_field:
|
|
81
|
-
:type sort_field: AgentsAgentSortField
|
|
82
|
-
:param sort_direction:
|
|
83
|
-
:type sort_direction: CommonSortDirection
|
|
84
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
85
|
-
number provided, it will be total request
|
|
86
|
-
timeout. It can also be a pair (tuple) of
|
|
87
|
-
(connection, read) timeouts.
|
|
88
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
89
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
90
|
-
request; this effectively ignores the
|
|
91
|
-
authentication in the spec for a single request.
|
|
92
|
-
:type _request_auth: dict, optional
|
|
93
|
-
:param _content_type: force content-type for the request.
|
|
94
|
-
:type _content_type: str, Optional
|
|
95
|
-
:param _headers: set to override the headers for a single
|
|
96
|
-
request; this effectively ignores the headers
|
|
97
|
-
in the spec for a single request.
|
|
98
|
-
:type _headers: dict, optional
|
|
99
|
-
:param _host_index: set to override the host_index for a single
|
|
100
|
-
request; this effectively ignores the host_index
|
|
101
|
-
in the spec for a single request.
|
|
102
|
-
:type _host_index: int, optional
|
|
103
|
-
:return: Returns the result object.
|
|
104
|
-
""" # noqa: E501
|
|
105
|
-
|
|
106
|
-
_param = self._agent_list_serialize(
|
|
107
|
-
page_size=page_size,
|
|
108
|
-
page=page,
|
|
109
|
-
organization_id=organization_id,
|
|
110
|
-
search_name=search_name,
|
|
111
|
-
sort_field=sort_field,
|
|
112
|
-
sort_direction=sort_direction,
|
|
113
|
-
_request_auth=_request_auth,
|
|
114
|
-
_content_type=_content_type,
|
|
115
|
-
_headers=_headers,
|
|
116
|
-
_host_index=_host_index
|
|
117
|
-
)
|
|
118
|
-
|
|
119
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
120
|
-
'200': "AgentList200Response",
|
|
121
|
-
}
|
|
122
|
-
response_data = self.api_client.call_api(
|
|
123
|
-
*_param,
|
|
124
|
-
_request_timeout=_request_timeout
|
|
125
|
-
)
|
|
126
|
-
response_data.read()
|
|
127
|
-
return self.api_client.response_deserialize(
|
|
128
|
-
response_data=response_data,
|
|
129
|
-
response_types_map=_response_types_map,
|
|
130
|
-
).data
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
@validate_call
|
|
134
|
-
def agent_list_with_http_info(
|
|
135
|
-
self,
|
|
136
|
-
page_size: StrictInt,
|
|
137
|
-
page: StrictInt,
|
|
138
|
-
organization_id: Optional[StrictStr] = None,
|
|
139
|
-
search_name: Optional[StrictStr] = None,
|
|
140
|
-
sort_field: Optional[AgentsAgentSortField] = None,
|
|
141
|
-
sort_direction: Optional[CommonSortDirection] = None,
|
|
142
|
-
_request_timeout: Union[
|
|
143
|
-
None,
|
|
144
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
145
|
-
Tuple[
|
|
146
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
147
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
148
|
-
]
|
|
149
|
-
] = None,
|
|
150
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
151
|
-
_content_type: Optional[StrictStr] = None,
|
|
152
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
153
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
154
|
-
) -> ApiResponse[AgentList200Response]:
|
|
155
|
-
"""agent_list
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
:param page_size: (required)
|
|
159
|
-
:type page_size: int
|
|
160
|
-
:param page: (required)
|
|
161
|
-
:type page: int
|
|
162
|
-
:param organization_id:
|
|
163
|
-
:type organization_id: str
|
|
164
|
-
:param search_name:
|
|
165
|
-
:type search_name: str
|
|
166
|
-
:param sort_field:
|
|
167
|
-
:type sort_field: AgentsAgentSortField
|
|
168
|
-
:param sort_direction:
|
|
169
|
-
:type sort_direction: CommonSortDirection
|
|
170
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
171
|
-
number provided, it will be total request
|
|
172
|
-
timeout. It can also be a pair (tuple) of
|
|
173
|
-
(connection, read) timeouts.
|
|
174
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
175
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
176
|
-
request; this effectively ignores the
|
|
177
|
-
authentication in the spec for a single request.
|
|
178
|
-
:type _request_auth: dict, optional
|
|
179
|
-
:param _content_type: force content-type for the request.
|
|
180
|
-
:type _content_type: str, Optional
|
|
181
|
-
:param _headers: set to override the headers for a single
|
|
182
|
-
request; this effectively ignores the headers
|
|
183
|
-
in the spec for a single request.
|
|
184
|
-
:type _headers: dict, optional
|
|
185
|
-
:param _host_index: set to override the host_index for a single
|
|
186
|
-
request; this effectively ignores the host_index
|
|
187
|
-
in the spec for a single request.
|
|
188
|
-
:type _host_index: int, optional
|
|
189
|
-
:return: Returns the result object.
|
|
190
|
-
""" # noqa: E501
|
|
191
|
-
|
|
192
|
-
_param = self._agent_list_serialize(
|
|
193
|
-
page_size=page_size,
|
|
194
|
-
page=page,
|
|
195
|
-
organization_id=organization_id,
|
|
196
|
-
search_name=search_name,
|
|
197
|
-
sort_field=sort_field,
|
|
198
|
-
sort_direction=sort_direction,
|
|
199
|
-
_request_auth=_request_auth,
|
|
200
|
-
_content_type=_content_type,
|
|
201
|
-
_headers=_headers,
|
|
202
|
-
_host_index=_host_index
|
|
203
|
-
)
|
|
204
|
-
|
|
205
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
206
|
-
'200': "AgentList200Response",
|
|
207
|
-
}
|
|
208
|
-
response_data = self.api_client.call_api(
|
|
209
|
-
*_param,
|
|
210
|
-
_request_timeout=_request_timeout
|
|
211
|
-
)
|
|
212
|
-
response_data.read()
|
|
213
|
-
return self.api_client.response_deserialize(
|
|
214
|
-
response_data=response_data,
|
|
215
|
-
response_types_map=_response_types_map,
|
|
216
|
-
)
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
@validate_call
|
|
220
|
-
def agent_list_without_preload_content(
|
|
221
|
-
self,
|
|
222
|
-
page_size: StrictInt,
|
|
223
|
-
page: StrictInt,
|
|
224
|
-
organization_id: Optional[StrictStr] = None,
|
|
225
|
-
search_name: Optional[StrictStr] = None,
|
|
226
|
-
sort_field: Optional[AgentsAgentSortField] = None,
|
|
227
|
-
sort_direction: Optional[CommonSortDirection] = None,
|
|
228
|
-
_request_timeout: Union[
|
|
229
|
-
None,
|
|
230
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
231
|
-
Tuple[
|
|
232
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
233
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
234
|
-
]
|
|
235
|
-
] = None,
|
|
236
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
237
|
-
_content_type: Optional[StrictStr] = None,
|
|
238
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
239
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
240
|
-
) -> RESTResponseType:
|
|
241
|
-
"""agent_list
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
:param page_size: (required)
|
|
245
|
-
:type page_size: int
|
|
246
|
-
:param page: (required)
|
|
247
|
-
:type page: int
|
|
248
|
-
:param organization_id:
|
|
249
|
-
:type organization_id: str
|
|
250
|
-
:param search_name:
|
|
251
|
-
:type search_name: str
|
|
252
|
-
:param sort_field:
|
|
253
|
-
:type sort_field: AgentsAgentSortField
|
|
254
|
-
:param sort_direction:
|
|
255
|
-
:type sort_direction: CommonSortDirection
|
|
256
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
257
|
-
number provided, it will be total request
|
|
258
|
-
timeout. It can also be a pair (tuple) of
|
|
259
|
-
(connection, read) timeouts.
|
|
260
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
261
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
262
|
-
request; this effectively ignores the
|
|
263
|
-
authentication in the spec for a single request.
|
|
264
|
-
:type _request_auth: dict, optional
|
|
265
|
-
:param _content_type: force content-type for the request.
|
|
266
|
-
:type _content_type: str, Optional
|
|
267
|
-
:param _headers: set to override the headers for a single
|
|
268
|
-
request; this effectively ignores the headers
|
|
269
|
-
in the spec for a single request.
|
|
270
|
-
:type _headers: dict, optional
|
|
271
|
-
:param _host_index: set to override the host_index for a single
|
|
272
|
-
request; this effectively ignores the host_index
|
|
273
|
-
in the spec for a single request.
|
|
274
|
-
:type _host_index: int, optional
|
|
275
|
-
:return: Returns the result object.
|
|
276
|
-
""" # noqa: E501
|
|
277
|
-
|
|
278
|
-
_param = self._agent_list_serialize(
|
|
279
|
-
page_size=page_size,
|
|
280
|
-
page=page,
|
|
281
|
-
organization_id=organization_id,
|
|
282
|
-
search_name=search_name,
|
|
283
|
-
sort_field=sort_field,
|
|
284
|
-
sort_direction=sort_direction,
|
|
285
|
-
_request_auth=_request_auth,
|
|
286
|
-
_content_type=_content_type,
|
|
287
|
-
_headers=_headers,
|
|
288
|
-
_host_index=_host_index
|
|
289
|
-
)
|
|
290
|
-
|
|
291
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
292
|
-
'200': "AgentList200Response",
|
|
293
|
-
}
|
|
294
|
-
response_data = self.api_client.call_api(
|
|
295
|
-
*_param,
|
|
296
|
-
_request_timeout=_request_timeout
|
|
297
|
-
)
|
|
298
|
-
return response_data.response
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
def _agent_list_serialize(
|
|
302
|
-
self,
|
|
303
|
-
page_size,
|
|
304
|
-
page,
|
|
305
|
-
organization_id,
|
|
306
|
-
search_name,
|
|
307
|
-
sort_field,
|
|
308
|
-
sort_direction,
|
|
309
|
-
_request_auth,
|
|
310
|
-
_content_type,
|
|
311
|
-
_headers,
|
|
312
|
-
_host_index,
|
|
313
|
-
) -> RequestSerialized:
|
|
314
|
-
|
|
315
|
-
_host = None
|
|
316
|
-
|
|
317
|
-
_collection_formats: Dict[str, str] = {
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
_path_params: Dict[str, str] = {}
|
|
321
|
-
_query_params: List[Tuple[str, str]] = []
|
|
322
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
323
|
-
_form_params: List[Tuple[str, str]] = []
|
|
324
|
-
_files: Dict[
|
|
325
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
326
|
-
] = {}
|
|
327
|
-
_body_params: Optional[bytes] = None
|
|
328
|
-
|
|
329
|
-
# process the path parameters
|
|
330
|
-
# process the query parameters
|
|
331
|
-
if organization_id is not None:
|
|
332
|
-
|
|
333
|
-
_query_params.append(('organizationId', organization_id))
|
|
334
|
-
|
|
335
|
-
if page_size is not None:
|
|
336
|
-
|
|
337
|
-
_query_params.append(('pageSize', page_size))
|
|
338
|
-
|
|
339
|
-
if page is not None:
|
|
340
|
-
|
|
341
|
-
_query_params.append(('page', page))
|
|
342
|
-
|
|
343
|
-
if search_name is not None:
|
|
344
|
-
|
|
345
|
-
_query_params.append(('searchName', search_name))
|
|
346
|
-
|
|
347
|
-
if sort_field is not None:
|
|
348
|
-
|
|
349
|
-
_query_params.append(('sort_field', sort_field.value))
|
|
350
|
-
|
|
351
|
-
if sort_direction is not None:
|
|
352
|
-
|
|
353
|
-
_query_params.append(('sort_direction', sort_direction.value))
|
|
354
|
-
|
|
355
|
-
# process the header parameters
|
|
356
|
-
# process the form parameters
|
|
357
|
-
# process the body parameter
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
# set the HTTP header `Accept`
|
|
361
|
-
if 'Accept' not in _header_params:
|
|
362
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
363
|
-
[
|
|
364
|
-
'application/json'
|
|
365
|
-
]
|
|
366
|
-
)
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
# authentication setting
|
|
370
|
-
_auth_settings: List[str] = [
|
|
371
|
-
'ApiKeyAuth'
|
|
372
|
-
]
|
|
373
|
-
|
|
374
|
-
return self.api_client.param_serialize(
|
|
375
|
-
method='GET',
|
|
376
|
-
resource_path='/agents',
|
|
377
|
-
path_params=_path_params,
|
|
378
|
-
query_params=_query_params,
|
|
379
|
-
header_params=_header_params,
|
|
380
|
-
body=_body_params,
|
|
381
|
-
post_params=_form_params,
|
|
382
|
-
files=_files,
|
|
383
|
-
auth_settings=_auth_settings,
|
|
384
|
-
collection_formats=_collection_formats,
|
|
385
|
-
_host=_host,
|
|
386
|
-
_request_auth=_request_auth
|
|
387
|
-
)
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
49
|
@validate_call
|
|
393
50
|
def execution_activities_get(
|
|
394
51
|
self,
|
|
@@ -694,9 +351,9 @@ class DefaultApi:
|
|
|
694
351
|
|
|
695
352
|
|
|
696
353
|
@validate_call
|
|
697
|
-
def
|
|
354
|
+
def execution_get(
|
|
698
355
|
self,
|
|
699
|
-
execution_id: StrictStr,
|
|
356
|
+
execution_id: Annotated[StrictStr, Field(description="The unique identifier of the execution")],
|
|
700
357
|
_request_timeout: Union[
|
|
701
358
|
None,
|
|
702
359
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -709,11 +366,12 @@ class DefaultApi:
|
|
|
709
366
|
_content_type: Optional[StrictStr] = None,
|
|
710
367
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
711
368
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
712
|
-
) ->
|
|
713
|
-
"""
|
|
369
|
+
) -> AgentsExecutionListItem:
|
|
370
|
+
"""Get execution
|
|
714
371
|
|
|
372
|
+
Get a single execution by ID with all details
|
|
715
373
|
|
|
716
|
-
:param execution_id: (required)
|
|
374
|
+
:param execution_id: The unique identifier of the execution (required)
|
|
717
375
|
:type execution_id: str
|
|
718
376
|
:param _request_timeout: timeout setting for this request. If one
|
|
719
377
|
number provided, it will be total request
|
|
@@ -737,7 +395,7 @@ class DefaultApi:
|
|
|
737
395
|
:return: Returns the result object.
|
|
738
396
|
""" # noqa: E501
|
|
739
397
|
|
|
740
|
-
_param = self.
|
|
398
|
+
_param = self._execution_get_serialize(
|
|
741
399
|
execution_id=execution_id,
|
|
742
400
|
_request_auth=_request_auth,
|
|
743
401
|
_content_type=_content_type,
|
|
@@ -746,8 +404,10 @@ class DefaultApi:
|
|
|
746
404
|
)
|
|
747
405
|
|
|
748
406
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
749
|
-
'200': "
|
|
750
|
-
'
|
|
407
|
+
'200': "AgentsExecutionListItem",
|
|
408
|
+
'400': "CommonBadRequestErrorBody",
|
|
409
|
+
'403': "CommonForbiddenErrorBody",
|
|
410
|
+
'404': "CommonNotFoundErrorBody",
|
|
751
411
|
}
|
|
752
412
|
response_data = self.api_client.call_api(
|
|
753
413
|
*_param,
|
|
@@ -761,9 +421,9 @@ class DefaultApi:
|
|
|
761
421
|
|
|
762
422
|
|
|
763
423
|
@validate_call
|
|
764
|
-
def
|
|
424
|
+
def execution_get_with_http_info(
|
|
765
425
|
self,
|
|
766
|
-
execution_id: StrictStr,
|
|
426
|
+
execution_id: Annotated[StrictStr, Field(description="The unique identifier of the execution")],
|
|
767
427
|
_request_timeout: Union[
|
|
768
428
|
None,
|
|
769
429
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -776,11 +436,12 @@ class DefaultApi:
|
|
|
776
436
|
_content_type: Optional[StrictStr] = None,
|
|
777
437
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
778
438
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
779
|
-
) -> ApiResponse[
|
|
780
|
-
"""
|
|
439
|
+
) -> ApiResponse[AgentsExecutionListItem]:
|
|
440
|
+
"""Get execution
|
|
781
441
|
|
|
442
|
+
Get a single execution by ID with all details
|
|
782
443
|
|
|
783
|
-
:param execution_id: (required)
|
|
444
|
+
:param execution_id: The unique identifier of the execution (required)
|
|
784
445
|
:type execution_id: str
|
|
785
446
|
:param _request_timeout: timeout setting for this request. If one
|
|
786
447
|
number provided, it will be total request
|
|
@@ -804,7 +465,7 @@ class DefaultApi:
|
|
|
804
465
|
:return: Returns the result object.
|
|
805
466
|
""" # noqa: E501
|
|
806
467
|
|
|
807
|
-
_param = self.
|
|
468
|
+
_param = self._execution_get_serialize(
|
|
808
469
|
execution_id=execution_id,
|
|
809
470
|
_request_auth=_request_auth,
|
|
810
471
|
_content_type=_content_type,
|
|
@@ -813,8 +474,10 @@ class DefaultApi:
|
|
|
813
474
|
)
|
|
814
475
|
|
|
815
476
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
816
|
-
'200': "
|
|
817
|
-
'
|
|
477
|
+
'200': "AgentsExecutionListItem",
|
|
478
|
+
'400': "CommonBadRequestErrorBody",
|
|
479
|
+
'403': "CommonForbiddenErrorBody",
|
|
480
|
+
'404': "CommonNotFoundErrorBody",
|
|
818
481
|
}
|
|
819
482
|
response_data = self.api_client.call_api(
|
|
820
483
|
*_param,
|
|
@@ -828,9 +491,9 @@ class DefaultApi:
|
|
|
828
491
|
|
|
829
492
|
|
|
830
493
|
@validate_call
|
|
831
|
-
def
|
|
494
|
+
def execution_get_without_preload_content(
|
|
832
495
|
self,
|
|
833
|
-
execution_id: StrictStr,
|
|
496
|
+
execution_id: Annotated[StrictStr, Field(description="The unique identifier of the execution")],
|
|
834
497
|
_request_timeout: Union[
|
|
835
498
|
None,
|
|
836
499
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -844,10 +507,11 @@ class DefaultApi:
|
|
|
844
507
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
845
508
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
846
509
|
) -> RESTResponseType:
|
|
847
|
-
"""
|
|
510
|
+
"""Get execution
|
|
848
511
|
|
|
512
|
+
Get a single execution by ID with all details
|
|
849
513
|
|
|
850
|
-
:param execution_id: (required)
|
|
514
|
+
:param execution_id: The unique identifier of the execution (required)
|
|
851
515
|
:type execution_id: str
|
|
852
516
|
:param _request_timeout: timeout setting for this request. If one
|
|
853
517
|
number provided, it will be total request
|
|
@@ -871,7 +535,7 @@ class DefaultApi:
|
|
|
871
535
|
:return: Returns the result object.
|
|
872
536
|
""" # noqa: E501
|
|
873
537
|
|
|
874
|
-
_param = self.
|
|
538
|
+
_param = self._execution_get_serialize(
|
|
875
539
|
execution_id=execution_id,
|
|
876
540
|
_request_auth=_request_auth,
|
|
877
541
|
_content_type=_content_type,
|
|
@@ -880,8 +544,10 @@ class DefaultApi:
|
|
|
880
544
|
)
|
|
881
545
|
|
|
882
546
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
883
|
-
'200': "
|
|
884
|
-
'
|
|
547
|
+
'200': "AgentsExecutionListItem",
|
|
548
|
+
'400': "CommonBadRequestErrorBody",
|
|
549
|
+
'403': "CommonForbiddenErrorBody",
|
|
550
|
+
'404': "CommonNotFoundErrorBody",
|
|
885
551
|
}
|
|
886
552
|
response_data = self.api_client.call_api(
|
|
887
553
|
*_param,
|
|
@@ -890,7 +556,7 @@ class DefaultApi:
|
|
|
890
556
|
return response_data.response
|
|
891
557
|
|
|
892
558
|
|
|
893
|
-
def
|
|
559
|
+
def _execution_get_serialize(
|
|
894
560
|
self,
|
|
895
561
|
execution_id,
|
|
896
562
|
_request_auth,
|
|
@@ -926,8 +592,7 @@ class DefaultApi:
|
|
|
926
592
|
if 'Accept' not in _header_params:
|
|
927
593
|
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
928
594
|
[
|
|
929
|
-
'application/json'
|
|
930
|
-
'text/plain'
|
|
595
|
+
'application/json'
|
|
931
596
|
]
|
|
932
597
|
)
|
|
933
598
|
|
|
@@ -939,7 +604,7 @@ class DefaultApi:
|
|
|
939
604
|
|
|
940
605
|
return self.api_client.param_serialize(
|
|
941
606
|
method='GET',
|
|
942
|
-
resource_path='/executions/{executionId}
|
|
607
|
+
resource_path='/executions/{executionId}',
|
|
943
608
|
path_params=_path_params,
|
|
944
609
|
query_params=_query_params,
|
|
945
610
|
header_params=_header_params,
|
|
@@ -956,10 +621,10 @@ class DefaultApi:
|
|
|
956
621
|
|
|
957
622
|
|
|
958
623
|
@validate_call
|
|
959
|
-
def
|
|
624
|
+
def execution_user_messages_add(
|
|
960
625
|
self,
|
|
961
|
-
execution_id: StrictStr,
|
|
962
|
-
|
|
626
|
+
execution_id: Annotated[StrictStr, Field(description="The unique identifier of the execution")],
|
|
627
|
+
agents_execution_user_messages_add_text_body: Annotated[AgentsExecutionUserMessagesAddTextBody, Field(description="The message content to send")],
|
|
963
628
|
_request_timeout: Union[
|
|
964
629
|
None,
|
|
965
630
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -973,13 +638,14 @@ class DefaultApi:
|
|
|
973
638
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
974
639
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
975
640
|
) -> str:
|
|
976
|
-
"""
|
|
641
|
+
"""Send user message to execution
|
|
977
642
|
|
|
643
|
+
Add a user message to an execution
|
|
978
644
|
|
|
979
|
-
:param execution_id: (required)
|
|
645
|
+
:param execution_id: The unique identifier of the execution (required)
|
|
980
646
|
:type execution_id: str
|
|
981
|
-
:param
|
|
982
|
-
:type
|
|
647
|
+
:param agents_execution_user_messages_add_text_body: The message content to send (required)
|
|
648
|
+
:type agents_execution_user_messages_add_text_body: AgentsExecutionUserMessagesAddTextBody
|
|
983
649
|
:param _request_timeout: timeout setting for this request. If one
|
|
984
650
|
number provided, it will be total request
|
|
985
651
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1002,9 +668,9 @@ class DefaultApi:
|
|
|
1002
668
|
:return: Returns the result object.
|
|
1003
669
|
""" # noqa: E501
|
|
1004
670
|
|
|
1005
|
-
_param = self.
|
|
671
|
+
_param = self._execution_user_messages_add_serialize(
|
|
1006
672
|
execution_id=execution_id,
|
|
1007
|
-
|
|
673
|
+
agents_execution_user_messages_add_text_body=agents_execution_user_messages_add_text_body,
|
|
1008
674
|
_request_auth=_request_auth,
|
|
1009
675
|
_content_type=_content_type,
|
|
1010
676
|
_headers=_headers,
|
|
@@ -1012,9 +678,10 @@ class DefaultApi:
|
|
|
1012
678
|
)
|
|
1013
679
|
|
|
1014
680
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1015
|
-
'
|
|
1016
|
-
'400': "
|
|
1017
|
-
'
|
|
681
|
+
'201': "str",
|
|
682
|
+
'400': "CommonBadRequestErrorBody",
|
|
683
|
+
'403': "CommonForbiddenErrorBody",
|
|
684
|
+
'404': "CommonNotFoundErrorBody",
|
|
1018
685
|
}
|
|
1019
686
|
response_data = self.api_client.call_api(
|
|
1020
687
|
*_param,
|
|
@@ -1028,10 +695,10 @@ class DefaultApi:
|
|
|
1028
695
|
|
|
1029
696
|
|
|
1030
697
|
@validate_call
|
|
1031
|
-
def
|
|
698
|
+
def execution_user_messages_add_with_http_info(
|
|
1032
699
|
self,
|
|
1033
|
-
execution_id: StrictStr,
|
|
1034
|
-
|
|
700
|
+
execution_id: Annotated[StrictStr, Field(description="The unique identifier of the execution")],
|
|
701
|
+
agents_execution_user_messages_add_text_body: Annotated[AgentsExecutionUserMessagesAddTextBody, Field(description="The message content to send")],
|
|
1035
702
|
_request_timeout: Union[
|
|
1036
703
|
None,
|
|
1037
704
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1045,13 +712,14 @@ class DefaultApi:
|
|
|
1045
712
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1046
713
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1047
714
|
) -> ApiResponse[str]:
|
|
1048
|
-
"""
|
|
715
|
+
"""Send user message to execution
|
|
1049
716
|
|
|
717
|
+
Add a user message to an execution
|
|
1050
718
|
|
|
1051
|
-
:param execution_id: (required)
|
|
719
|
+
:param execution_id: The unique identifier of the execution (required)
|
|
1052
720
|
:type execution_id: str
|
|
1053
|
-
:param
|
|
1054
|
-
:type
|
|
721
|
+
:param agents_execution_user_messages_add_text_body: The message content to send (required)
|
|
722
|
+
:type agents_execution_user_messages_add_text_body: AgentsExecutionUserMessagesAddTextBody
|
|
1055
723
|
:param _request_timeout: timeout setting for this request. If one
|
|
1056
724
|
number provided, it will be total request
|
|
1057
725
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1074,9 +742,9 @@ class DefaultApi:
|
|
|
1074
742
|
:return: Returns the result object.
|
|
1075
743
|
""" # noqa: E501
|
|
1076
744
|
|
|
1077
|
-
_param = self.
|
|
745
|
+
_param = self._execution_user_messages_add_serialize(
|
|
1078
746
|
execution_id=execution_id,
|
|
1079
|
-
|
|
747
|
+
agents_execution_user_messages_add_text_body=agents_execution_user_messages_add_text_body,
|
|
1080
748
|
_request_auth=_request_auth,
|
|
1081
749
|
_content_type=_content_type,
|
|
1082
750
|
_headers=_headers,
|
|
@@ -1084,9 +752,10 @@ class DefaultApi:
|
|
|
1084
752
|
)
|
|
1085
753
|
|
|
1086
754
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1087
|
-
'
|
|
1088
|
-
'400': "
|
|
1089
|
-
'
|
|
755
|
+
'201': "str",
|
|
756
|
+
'400': "CommonBadRequestErrorBody",
|
|
757
|
+
'403': "CommonForbiddenErrorBody",
|
|
758
|
+
'404': "CommonNotFoundErrorBody",
|
|
1090
759
|
}
|
|
1091
760
|
response_data = self.api_client.call_api(
|
|
1092
761
|
*_param,
|
|
@@ -1100,10 +769,10 @@ class DefaultApi:
|
|
|
1100
769
|
|
|
1101
770
|
|
|
1102
771
|
@validate_call
|
|
1103
|
-
def
|
|
772
|
+
def execution_user_messages_add_without_preload_content(
|
|
1104
773
|
self,
|
|
1105
|
-
execution_id: StrictStr,
|
|
1106
|
-
|
|
774
|
+
execution_id: Annotated[StrictStr, Field(description="The unique identifier of the execution")],
|
|
775
|
+
agents_execution_user_messages_add_text_body: Annotated[AgentsExecutionUserMessagesAddTextBody, Field(description="The message content to send")],
|
|
1107
776
|
_request_timeout: Union[
|
|
1108
777
|
None,
|
|
1109
778
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1117,13 +786,14 @@ class DefaultApi:
|
|
|
1117
786
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1118
787
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1119
788
|
) -> RESTResponseType:
|
|
1120
|
-
"""
|
|
789
|
+
"""Send user message to execution
|
|
1121
790
|
|
|
791
|
+
Add a user message to an execution
|
|
1122
792
|
|
|
1123
|
-
:param execution_id: (required)
|
|
793
|
+
:param execution_id: The unique identifier of the execution (required)
|
|
1124
794
|
:type execution_id: str
|
|
1125
|
-
:param
|
|
1126
|
-
:type
|
|
795
|
+
:param agents_execution_user_messages_add_text_body: The message content to send (required)
|
|
796
|
+
:type agents_execution_user_messages_add_text_body: AgentsExecutionUserMessagesAddTextBody
|
|
1127
797
|
:param _request_timeout: timeout setting for this request. If one
|
|
1128
798
|
number provided, it will be total request
|
|
1129
799
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1146,9 +816,9 @@ class DefaultApi:
|
|
|
1146
816
|
:return: Returns the result object.
|
|
1147
817
|
""" # noqa: E501
|
|
1148
818
|
|
|
1149
|
-
_param = self.
|
|
819
|
+
_param = self._execution_user_messages_add_serialize(
|
|
1150
820
|
execution_id=execution_id,
|
|
1151
|
-
|
|
821
|
+
agents_execution_user_messages_add_text_body=agents_execution_user_messages_add_text_body,
|
|
1152
822
|
_request_auth=_request_auth,
|
|
1153
823
|
_content_type=_content_type,
|
|
1154
824
|
_headers=_headers,
|
|
@@ -1156,9 +826,10 @@ class DefaultApi:
|
|
|
1156
826
|
)
|
|
1157
827
|
|
|
1158
828
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1159
|
-
'
|
|
1160
|
-
'400': "
|
|
1161
|
-
'
|
|
829
|
+
'201': "str",
|
|
830
|
+
'400': "CommonBadRequestErrorBody",
|
|
831
|
+
'403': "CommonForbiddenErrorBody",
|
|
832
|
+
'404': "CommonNotFoundErrorBody",
|
|
1162
833
|
}
|
|
1163
834
|
response_data = self.api_client.call_api(
|
|
1164
835
|
*_param,
|
|
@@ -1167,10 +838,10 @@ class DefaultApi:
|
|
|
1167
838
|
return response_data.response
|
|
1168
839
|
|
|
1169
840
|
|
|
1170
|
-
def
|
|
841
|
+
def _execution_user_messages_add_serialize(
|
|
1171
842
|
self,
|
|
1172
843
|
execution_id,
|
|
1173
|
-
|
|
844
|
+
agents_execution_user_messages_add_text_body,
|
|
1174
845
|
_request_auth,
|
|
1175
846
|
_content_type,
|
|
1176
847
|
_headers,
|
|
@@ -1180,7 +851,6 @@ class DefaultApi:
|
|
|
1180
851
|
_host = None
|
|
1181
852
|
|
|
1182
853
|
_collection_formats: Dict[str, str] = {
|
|
1183
|
-
'files': 'multi',
|
|
1184
854
|
}
|
|
1185
855
|
|
|
1186
856
|
_path_params: Dict[str, str] = {}
|
|
@@ -1198,16 +868,17 @@ class DefaultApi:
|
|
|
1198
868
|
# process the query parameters
|
|
1199
869
|
# process the header parameters
|
|
1200
870
|
# process the form parameters
|
|
1201
|
-
if files is not None:
|
|
1202
|
-
_files['files'] = files
|
|
1203
871
|
# process the body parameter
|
|
872
|
+
if agents_execution_user_messages_add_text_body is not None:
|
|
873
|
+
_body_params = agents_execution_user_messages_add_text_body
|
|
1204
874
|
|
|
1205
875
|
|
|
1206
876
|
# set the HTTP header `Accept`
|
|
1207
877
|
if 'Accept' not in _header_params:
|
|
1208
878
|
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1209
879
|
[
|
|
1210
|
-
'text/plain'
|
|
880
|
+
'text/plain',
|
|
881
|
+
'application/json'
|
|
1211
882
|
]
|
|
1212
883
|
)
|
|
1213
884
|
|
|
@@ -1218,7 +889,7 @@ class DefaultApi:
|
|
|
1218
889
|
_default_content_type = (
|
|
1219
890
|
self.api_client.select_header_content_type(
|
|
1220
891
|
[
|
|
1221
|
-
'
|
|
892
|
+
'application/json'
|
|
1222
893
|
]
|
|
1223
894
|
)
|
|
1224
895
|
)
|
|
@@ -1232,7 +903,7 @@ class DefaultApi:
|
|
|
1232
903
|
|
|
1233
904
|
return self.api_client.param_serialize(
|
|
1234
905
|
method='POST',
|
|
1235
|
-
resource_path='/executions/{executionId}/
|
|
906
|
+
resource_path='/executions/{executionId}/user-messages',
|
|
1236
907
|
path_params=_path_params,
|
|
1237
908
|
query_params=_query_params,
|
|
1238
909
|
header_params=_header_params,
|
|
@@ -1249,10 +920,23 @@ class DefaultApi:
|
|
|
1249
920
|
|
|
1250
921
|
|
|
1251
922
|
@validate_call
|
|
1252
|
-
def
|
|
923
|
+
def executions_list(
|
|
1253
924
|
self,
|
|
1254
|
-
|
|
1255
|
-
|
|
925
|
+
page_size: StrictInt,
|
|
926
|
+
page: StrictInt,
|
|
927
|
+
organization_id: Annotated[Optional[StrictStr], Field(description="Optional organization ID filter (required for customer queries)")] = None,
|
|
928
|
+
execution_id: Annotated[Optional[StrictStr], Field(description="Search by execution ID (partial, case-insensitive match)")] = None,
|
|
929
|
+
agent_id: Annotated[Optional[StrictStr], Field(description="Filter by agent ID")] = None,
|
|
930
|
+
status: Annotated[Optional[List[AgentsExecutionStatus]], Field(description="Filter by execution status (can specify multiple, there is an 'OR' condition applied to these)")] = None,
|
|
931
|
+
agent_version: Annotated[Optional[StrictInt], Field(description="Filter by agent version")] = None,
|
|
932
|
+
created_after: Annotated[Optional[datetime], Field(description="Filter executions created after this timestamp")] = None,
|
|
933
|
+
created_before: Annotated[Optional[datetime], Field(description="Filter executions created before this timestamp")] = None,
|
|
934
|
+
human_labels: Annotated[Optional[List[StrictStr]], Field(description="Filter by human labels (can specify multiple label IDs, there is an 'OR' condition applied to these)")] = None,
|
|
935
|
+
outcome_label: Annotated[Optional[StrictStr], Field(description="Filter by execution result outcome (partial, case-insensitive match)")] = None,
|
|
936
|
+
metadata_key: Annotated[Optional[StrictStr], Field(description="Filter by metadata key - must be used together with metadataValue")] = None,
|
|
937
|
+
metadata_value: Annotated[Optional[StrictStr], Field(description="Filter by metadata value - must be used together with metadataKey")] = None,
|
|
938
|
+
sort_field: Optional[AgentsExecutionSortField] = None,
|
|
939
|
+
sort_direction: Optional[CommonSortDirection] = None,
|
|
1256
940
|
_request_timeout: Union[
|
|
1257
941
|
None,
|
|
1258
942
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1265,15 +949,41 @@ class DefaultApi:
|
|
|
1265
949
|
_content_type: Optional[StrictStr] = None,
|
|
1266
950
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1267
951
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1268
|
-
) ->
|
|
1269
|
-
"""
|
|
952
|
+
) -> ExecutionsList200Response:
|
|
953
|
+
"""List executions
|
|
1270
954
|
|
|
1271
|
-
|
|
955
|
+
List executions with filtering and pagination
|
|
1272
956
|
|
|
1273
|
-
:param
|
|
957
|
+
:param page_size: (required)
|
|
958
|
+
:type page_size: int
|
|
959
|
+
:param page: (required)
|
|
960
|
+
:type page: int
|
|
961
|
+
:param organization_id: Optional organization ID filter (required for customer queries)
|
|
962
|
+
:type organization_id: str
|
|
963
|
+
:param execution_id: Search by execution ID (partial, case-insensitive match)
|
|
1274
964
|
:type execution_id: str
|
|
1275
|
-
:param
|
|
1276
|
-
:type
|
|
965
|
+
:param agent_id: Filter by agent ID
|
|
966
|
+
:type agent_id: str
|
|
967
|
+
:param status: Filter by execution status (can specify multiple, there is an 'OR' condition applied to these)
|
|
968
|
+
:type status: List[AgentsExecutionStatus]
|
|
969
|
+
:param agent_version: Filter by agent version
|
|
970
|
+
:type agent_version: int
|
|
971
|
+
:param created_after: Filter executions created after this timestamp
|
|
972
|
+
:type created_after: datetime
|
|
973
|
+
:param created_before: Filter executions created before this timestamp
|
|
974
|
+
:type created_before: datetime
|
|
975
|
+
:param human_labels: Filter by human labels (can specify multiple label IDs, there is an 'OR' condition applied to these)
|
|
976
|
+
:type human_labels: List[str]
|
|
977
|
+
:param outcome_label: Filter by execution result outcome (partial, case-insensitive match)
|
|
978
|
+
:type outcome_label: str
|
|
979
|
+
:param metadata_key: Filter by metadata key - must be used together with metadataValue
|
|
980
|
+
:type metadata_key: str
|
|
981
|
+
:param metadata_value: Filter by metadata value - must be used together with metadataKey
|
|
982
|
+
:type metadata_value: str
|
|
983
|
+
:param sort_field:
|
|
984
|
+
:type sort_field: AgentsExecutionSortField
|
|
985
|
+
:param sort_direction:
|
|
986
|
+
:type sort_direction: CommonSortDirection
|
|
1277
987
|
:param _request_timeout: timeout setting for this request. If one
|
|
1278
988
|
number provided, it will be total request
|
|
1279
989
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1296,9 +1006,22 @@ class DefaultApi:
|
|
|
1296
1006
|
:return: Returns the result object.
|
|
1297
1007
|
""" # noqa: E501
|
|
1298
1008
|
|
|
1299
|
-
_param = self.
|
|
1009
|
+
_param = self._executions_list_serialize(
|
|
1010
|
+
page_size=page_size,
|
|
1011
|
+
page=page,
|
|
1012
|
+
organization_id=organization_id,
|
|
1300
1013
|
execution_id=execution_id,
|
|
1301
|
-
|
|
1014
|
+
agent_id=agent_id,
|
|
1015
|
+
status=status,
|
|
1016
|
+
agent_version=agent_version,
|
|
1017
|
+
created_after=created_after,
|
|
1018
|
+
created_before=created_before,
|
|
1019
|
+
human_labels=human_labels,
|
|
1020
|
+
outcome_label=outcome_label,
|
|
1021
|
+
metadata_key=metadata_key,
|
|
1022
|
+
metadata_value=metadata_value,
|
|
1023
|
+
sort_field=sort_field,
|
|
1024
|
+
sort_direction=sort_direction,
|
|
1302
1025
|
_request_auth=_request_auth,
|
|
1303
1026
|
_content_type=_content_type,
|
|
1304
1027
|
_headers=_headers,
|
|
@@ -1306,7 +1029,7 @@ class DefaultApi:
|
|
|
1306
1029
|
)
|
|
1307
1030
|
|
|
1308
1031
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1309
|
-
'
|
|
1032
|
+
'200': "ExecutionsList200Response",
|
|
1310
1033
|
'400': "CommonBadRequestErrorBody",
|
|
1311
1034
|
'403': "CommonForbiddenErrorBody",
|
|
1312
1035
|
'404': "CommonNotFoundErrorBody",
|
|
@@ -1323,10 +1046,23 @@ class DefaultApi:
|
|
|
1323
1046
|
|
|
1324
1047
|
|
|
1325
1048
|
@validate_call
|
|
1326
|
-
def
|
|
1049
|
+
def executions_list_with_http_info(
|
|
1327
1050
|
self,
|
|
1328
|
-
|
|
1329
|
-
|
|
1051
|
+
page_size: StrictInt,
|
|
1052
|
+
page: StrictInt,
|
|
1053
|
+
organization_id: Annotated[Optional[StrictStr], Field(description="Optional organization ID filter (required for customer queries)")] = None,
|
|
1054
|
+
execution_id: Annotated[Optional[StrictStr], Field(description="Search by execution ID (partial, case-insensitive match)")] = None,
|
|
1055
|
+
agent_id: Annotated[Optional[StrictStr], Field(description="Filter by agent ID")] = None,
|
|
1056
|
+
status: Annotated[Optional[List[AgentsExecutionStatus]], Field(description="Filter by execution status (can specify multiple, there is an 'OR' condition applied to these)")] = None,
|
|
1057
|
+
agent_version: Annotated[Optional[StrictInt], Field(description="Filter by agent version")] = None,
|
|
1058
|
+
created_after: Annotated[Optional[datetime], Field(description="Filter executions created after this timestamp")] = None,
|
|
1059
|
+
created_before: Annotated[Optional[datetime], Field(description="Filter executions created before this timestamp")] = None,
|
|
1060
|
+
human_labels: Annotated[Optional[List[StrictStr]], Field(description="Filter by human labels (can specify multiple label IDs, there is an 'OR' condition applied to these)")] = None,
|
|
1061
|
+
outcome_label: Annotated[Optional[StrictStr], Field(description="Filter by execution result outcome (partial, case-insensitive match)")] = None,
|
|
1062
|
+
metadata_key: Annotated[Optional[StrictStr], Field(description="Filter by metadata key - must be used together with metadataValue")] = None,
|
|
1063
|
+
metadata_value: Annotated[Optional[StrictStr], Field(description="Filter by metadata value - must be used together with metadataKey")] = None,
|
|
1064
|
+
sort_field: Optional[AgentsExecutionSortField] = None,
|
|
1065
|
+
sort_direction: Optional[CommonSortDirection] = None,
|
|
1330
1066
|
_request_timeout: Union[
|
|
1331
1067
|
None,
|
|
1332
1068
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1339,15 +1075,41 @@ class DefaultApi:
|
|
|
1339
1075
|
_content_type: Optional[StrictStr] = None,
|
|
1340
1076
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1341
1077
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1342
|
-
) -> ApiResponse[
|
|
1343
|
-
"""
|
|
1078
|
+
) -> ApiResponse[ExecutionsList200Response]:
|
|
1079
|
+
"""List executions
|
|
1344
1080
|
|
|
1345
|
-
|
|
1081
|
+
List executions with filtering and pagination
|
|
1346
1082
|
|
|
1347
|
-
:param
|
|
1083
|
+
:param page_size: (required)
|
|
1084
|
+
:type page_size: int
|
|
1085
|
+
:param page: (required)
|
|
1086
|
+
:type page: int
|
|
1087
|
+
:param organization_id: Optional organization ID filter (required for customer queries)
|
|
1088
|
+
:type organization_id: str
|
|
1089
|
+
:param execution_id: Search by execution ID (partial, case-insensitive match)
|
|
1348
1090
|
:type execution_id: str
|
|
1349
|
-
:param
|
|
1350
|
-
:type
|
|
1091
|
+
:param agent_id: Filter by agent ID
|
|
1092
|
+
:type agent_id: str
|
|
1093
|
+
:param status: Filter by execution status (can specify multiple, there is an 'OR' condition applied to these)
|
|
1094
|
+
:type status: List[AgentsExecutionStatus]
|
|
1095
|
+
:param agent_version: Filter by agent version
|
|
1096
|
+
:type agent_version: int
|
|
1097
|
+
:param created_after: Filter executions created after this timestamp
|
|
1098
|
+
:type created_after: datetime
|
|
1099
|
+
:param created_before: Filter executions created before this timestamp
|
|
1100
|
+
:type created_before: datetime
|
|
1101
|
+
:param human_labels: Filter by human labels (can specify multiple label IDs, there is an 'OR' condition applied to these)
|
|
1102
|
+
:type human_labels: List[str]
|
|
1103
|
+
:param outcome_label: Filter by execution result outcome (partial, case-insensitive match)
|
|
1104
|
+
:type outcome_label: str
|
|
1105
|
+
:param metadata_key: Filter by metadata key - must be used together with metadataValue
|
|
1106
|
+
:type metadata_key: str
|
|
1107
|
+
:param metadata_value: Filter by metadata value - must be used together with metadataKey
|
|
1108
|
+
:type metadata_value: str
|
|
1109
|
+
:param sort_field:
|
|
1110
|
+
:type sort_field: AgentsExecutionSortField
|
|
1111
|
+
:param sort_direction:
|
|
1112
|
+
:type sort_direction: CommonSortDirection
|
|
1351
1113
|
:param _request_timeout: timeout setting for this request. If one
|
|
1352
1114
|
number provided, it will be total request
|
|
1353
1115
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1370,9 +1132,22 @@ class DefaultApi:
|
|
|
1370
1132
|
:return: Returns the result object.
|
|
1371
1133
|
""" # noqa: E501
|
|
1372
1134
|
|
|
1373
|
-
_param = self.
|
|
1135
|
+
_param = self._executions_list_serialize(
|
|
1136
|
+
page_size=page_size,
|
|
1137
|
+
page=page,
|
|
1138
|
+
organization_id=organization_id,
|
|
1374
1139
|
execution_id=execution_id,
|
|
1375
|
-
|
|
1140
|
+
agent_id=agent_id,
|
|
1141
|
+
status=status,
|
|
1142
|
+
agent_version=agent_version,
|
|
1143
|
+
created_after=created_after,
|
|
1144
|
+
created_before=created_before,
|
|
1145
|
+
human_labels=human_labels,
|
|
1146
|
+
outcome_label=outcome_label,
|
|
1147
|
+
metadata_key=metadata_key,
|
|
1148
|
+
metadata_value=metadata_value,
|
|
1149
|
+
sort_field=sort_field,
|
|
1150
|
+
sort_direction=sort_direction,
|
|
1376
1151
|
_request_auth=_request_auth,
|
|
1377
1152
|
_content_type=_content_type,
|
|
1378
1153
|
_headers=_headers,
|
|
@@ -1380,7 +1155,7 @@ class DefaultApi:
|
|
|
1380
1155
|
)
|
|
1381
1156
|
|
|
1382
1157
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1383
|
-
'
|
|
1158
|
+
'200': "ExecutionsList200Response",
|
|
1384
1159
|
'400': "CommonBadRequestErrorBody",
|
|
1385
1160
|
'403': "CommonForbiddenErrorBody",
|
|
1386
1161
|
'404': "CommonNotFoundErrorBody",
|
|
@@ -1397,10 +1172,23 @@ class DefaultApi:
|
|
|
1397
1172
|
|
|
1398
1173
|
|
|
1399
1174
|
@validate_call
|
|
1400
|
-
def
|
|
1175
|
+
def executions_list_without_preload_content(
|
|
1401
1176
|
self,
|
|
1402
|
-
|
|
1403
|
-
|
|
1177
|
+
page_size: StrictInt,
|
|
1178
|
+
page: StrictInt,
|
|
1179
|
+
organization_id: Annotated[Optional[StrictStr], Field(description="Optional organization ID filter (required for customer queries)")] = None,
|
|
1180
|
+
execution_id: Annotated[Optional[StrictStr], Field(description="Search by execution ID (partial, case-insensitive match)")] = None,
|
|
1181
|
+
agent_id: Annotated[Optional[StrictStr], Field(description="Filter by agent ID")] = None,
|
|
1182
|
+
status: Annotated[Optional[List[AgentsExecutionStatus]], Field(description="Filter by execution status (can specify multiple, there is an 'OR' condition applied to these)")] = None,
|
|
1183
|
+
agent_version: Annotated[Optional[StrictInt], Field(description="Filter by agent version")] = None,
|
|
1184
|
+
created_after: Annotated[Optional[datetime], Field(description="Filter executions created after this timestamp")] = None,
|
|
1185
|
+
created_before: Annotated[Optional[datetime], Field(description="Filter executions created before this timestamp")] = None,
|
|
1186
|
+
human_labels: Annotated[Optional[List[StrictStr]], Field(description="Filter by human labels (can specify multiple label IDs, there is an 'OR' condition applied to these)")] = None,
|
|
1187
|
+
outcome_label: Annotated[Optional[StrictStr], Field(description="Filter by execution result outcome (partial, case-insensitive match)")] = None,
|
|
1188
|
+
metadata_key: Annotated[Optional[StrictStr], Field(description="Filter by metadata key - must be used together with metadataValue")] = None,
|
|
1189
|
+
metadata_value: Annotated[Optional[StrictStr], Field(description="Filter by metadata value - must be used together with metadataKey")] = None,
|
|
1190
|
+
sort_field: Optional[AgentsExecutionSortField] = None,
|
|
1191
|
+
sort_direction: Optional[CommonSortDirection] = None,
|
|
1404
1192
|
_request_timeout: Union[
|
|
1405
1193
|
None,
|
|
1406
1194
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1414,14 +1202,40 @@ class DefaultApi:
|
|
|
1414
1202
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1415
1203
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1416
1204
|
) -> RESTResponseType:
|
|
1417
|
-
"""
|
|
1205
|
+
"""List executions
|
|
1418
1206
|
|
|
1419
|
-
|
|
1207
|
+
List executions with filtering and pagination
|
|
1420
1208
|
|
|
1421
|
-
:param
|
|
1209
|
+
:param page_size: (required)
|
|
1210
|
+
:type page_size: int
|
|
1211
|
+
:param page: (required)
|
|
1212
|
+
:type page: int
|
|
1213
|
+
:param organization_id: Optional organization ID filter (required for customer queries)
|
|
1214
|
+
:type organization_id: str
|
|
1215
|
+
:param execution_id: Search by execution ID (partial, case-insensitive match)
|
|
1422
1216
|
:type execution_id: str
|
|
1423
|
-
:param
|
|
1424
|
-
:type
|
|
1217
|
+
:param agent_id: Filter by agent ID
|
|
1218
|
+
:type agent_id: str
|
|
1219
|
+
:param status: Filter by execution status (can specify multiple, there is an 'OR' condition applied to these)
|
|
1220
|
+
:type status: List[AgentsExecutionStatus]
|
|
1221
|
+
:param agent_version: Filter by agent version
|
|
1222
|
+
:type agent_version: int
|
|
1223
|
+
:param created_after: Filter executions created after this timestamp
|
|
1224
|
+
:type created_after: datetime
|
|
1225
|
+
:param created_before: Filter executions created before this timestamp
|
|
1226
|
+
:type created_before: datetime
|
|
1227
|
+
:param human_labels: Filter by human labels (can specify multiple label IDs, there is an 'OR' condition applied to these)
|
|
1228
|
+
:type human_labels: List[str]
|
|
1229
|
+
:param outcome_label: Filter by execution result outcome (partial, case-insensitive match)
|
|
1230
|
+
:type outcome_label: str
|
|
1231
|
+
:param metadata_key: Filter by metadata key - must be used together with metadataValue
|
|
1232
|
+
:type metadata_key: str
|
|
1233
|
+
:param metadata_value: Filter by metadata value - must be used together with metadataKey
|
|
1234
|
+
:type metadata_value: str
|
|
1235
|
+
:param sort_field:
|
|
1236
|
+
:type sort_field: AgentsExecutionSortField
|
|
1237
|
+
:param sort_direction:
|
|
1238
|
+
:type sort_direction: CommonSortDirection
|
|
1425
1239
|
:param _request_timeout: timeout setting for this request. If one
|
|
1426
1240
|
number provided, it will be total request
|
|
1427
1241
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1444,9 +1258,22 @@ class DefaultApi:
|
|
|
1444
1258
|
:return: Returns the result object.
|
|
1445
1259
|
""" # noqa: E501
|
|
1446
1260
|
|
|
1447
|
-
_param = self.
|
|
1261
|
+
_param = self._executions_list_serialize(
|
|
1262
|
+
page_size=page_size,
|
|
1263
|
+
page=page,
|
|
1264
|
+
organization_id=organization_id,
|
|
1448
1265
|
execution_id=execution_id,
|
|
1449
|
-
|
|
1266
|
+
agent_id=agent_id,
|
|
1267
|
+
status=status,
|
|
1268
|
+
agent_version=agent_version,
|
|
1269
|
+
created_after=created_after,
|
|
1270
|
+
created_before=created_before,
|
|
1271
|
+
human_labels=human_labels,
|
|
1272
|
+
outcome_label=outcome_label,
|
|
1273
|
+
metadata_key=metadata_key,
|
|
1274
|
+
metadata_value=metadata_value,
|
|
1275
|
+
sort_field=sort_field,
|
|
1276
|
+
sort_direction=sort_direction,
|
|
1450
1277
|
_request_auth=_request_auth,
|
|
1451
1278
|
_content_type=_content_type,
|
|
1452
1279
|
_headers=_headers,
|
|
@@ -1454,7 +1281,7 @@ class DefaultApi:
|
|
|
1454
1281
|
)
|
|
1455
1282
|
|
|
1456
1283
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1457
|
-
'
|
|
1284
|
+
'200': "ExecutionsList200Response",
|
|
1458
1285
|
'400': "CommonBadRequestErrorBody",
|
|
1459
1286
|
'403': "CommonForbiddenErrorBody",
|
|
1460
1287
|
'404': "CommonNotFoundErrorBody",
|
|
@@ -1466,10 +1293,23 @@ class DefaultApi:
|
|
|
1466
1293
|
return response_data.response
|
|
1467
1294
|
|
|
1468
1295
|
|
|
1469
|
-
def
|
|
1296
|
+
def _executions_list_serialize(
|
|
1470
1297
|
self,
|
|
1298
|
+
page_size,
|
|
1299
|
+
page,
|
|
1300
|
+
organization_id,
|
|
1471
1301
|
execution_id,
|
|
1472
|
-
|
|
1302
|
+
agent_id,
|
|
1303
|
+
status,
|
|
1304
|
+
agent_version,
|
|
1305
|
+
created_after,
|
|
1306
|
+
created_before,
|
|
1307
|
+
human_labels,
|
|
1308
|
+
outcome_label,
|
|
1309
|
+
metadata_key,
|
|
1310
|
+
metadata_value,
|
|
1311
|
+
sort_field,
|
|
1312
|
+
sort_direction,
|
|
1473
1313
|
_request_auth,
|
|
1474
1314
|
_content_type,
|
|
1475
1315
|
_headers,
|
|
@@ -1479,6 +1319,8 @@ class DefaultApi:
|
|
|
1479
1319
|
_host = None
|
|
1480
1320
|
|
|
1481
1321
|
_collection_formats: Dict[str, str] = {
|
|
1322
|
+
'status': 'multi',
|
|
1323
|
+
'humanLabels': 'multi',
|
|
1482
1324
|
}
|
|
1483
1325
|
|
|
1484
1326
|
_path_params: Dict[str, str] = {}
|
|
@@ -1491,38 +1333,98 @@ class DefaultApi:
|
|
|
1491
1333
|
_body_params: Optional[bytes] = None
|
|
1492
1334
|
|
|
1493
1335
|
# process the path parameters
|
|
1494
|
-
if execution_id is not None:
|
|
1495
|
-
_path_params['executionId'] = execution_id
|
|
1496
1336
|
# process the query parameters
|
|
1337
|
+
if organization_id is not None:
|
|
1338
|
+
|
|
1339
|
+
_query_params.append(('organizationId', organization_id))
|
|
1340
|
+
|
|
1341
|
+
if page_size is not None:
|
|
1342
|
+
|
|
1343
|
+
_query_params.append(('pageSize', page_size))
|
|
1344
|
+
|
|
1345
|
+
if page is not None:
|
|
1346
|
+
|
|
1347
|
+
_query_params.append(('page', page))
|
|
1348
|
+
|
|
1349
|
+
if execution_id is not None:
|
|
1350
|
+
|
|
1351
|
+
_query_params.append(('executionId', execution_id))
|
|
1352
|
+
|
|
1353
|
+
if agent_id is not None:
|
|
1354
|
+
|
|
1355
|
+
_query_params.append(('agentId', agent_id))
|
|
1356
|
+
|
|
1357
|
+
if status is not None:
|
|
1358
|
+
|
|
1359
|
+
_query_params.append(('status', status))
|
|
1360
|
+
|
|
1361
|
+
if agent_version is not None:
|
|
1362
|
+
|
|
1363
|
+
_query_params.append(('agentVersion', agent_version))
|
|
1364
|
+
|
|
1365
|
+
if created_after is not None:
|
|
1366
|
+
if isinstance(created_after, datetime):
|
|
1367
|
+
_query_params.append(
|
|
1368
|
+
(
|
|
1369
|
+
'createdAfter',
|
|
1370
|
+
created_after.strftime(
|
|
1371
|
+
self.api_client.configuration.datetime_format
|
|
1372
|
+
)
|
|
1373
|
+
)
|
|
1374
|
+
)
|
|
1375
|
+
else:
|
|
1376
|
+
_query_params.append(('createdAfter', created_after))
|
|
1377
|
+
|
|
1378
|
+
if created_before is not None:
|
|
1379
|
+
if isinstance(created_before, datetime):
|
|
1380
|
+
_query_params.append(
|
|
1381
|
+
(
|
|
1382
|
+
'createdBefore',
|
|
1383
|
+
created_before.strftime(
|
|
1384
|
+
self.api_client.configuration.datetime_format
|
|
1385
|
+
)
|
|
1386
|
+
)
|
|
1387
|
+
)
|
|
1388
|
+
else:
|
|
1389
|
+
_query_params.append(('createdBefore', created_before))
|
|
1390
|
+
|
|
1391
|
+
if human_labels is not None:
|
|
1392
|
+
|
|
1393
|
+
_query_params.append(('humanLabels', human_labels))
|
|
1394
|
+
|
|
1395
|
+
if outcome_label is not None:
|
|
1396
|
+
|
|
1397
|
+
_query_params.append(('outcomeLabel', outcome_label))
|
|
1398
|
+
|
|
1399
|
+
if metadata_key is not None:
|
|
1400
|
+
|
|
1401
|
+
_query_params.append(('metadataKey', metadata_key))
|
|
1402
|
+
|
|
1403
|
+
if metadata_value is not None:
|
|
1404
|
+
|
|
1405
|
+
_query_params.append(('metadataValue', metadata_value))
|
|
1406
|
+
|
|
1407
|
+
if sort_field is not None:
|
|
1408
|
+
|
|
1409
|
+
_query_params.append(('sortField', sort_field.value))
|
|
1410
|
+
|
|
1411
|
+
if sort_direction is not None:
|
|
1412
|
+
|
|
1413
|
+
_query_params.append(('sortDirection', sort_direction.value))
|
|
1414
|
+
|
|
1497
1415
|
# process the header parameters
|
|
1498
1416
|
# process the form parameters
|
|
1499
1417
|
# process the body parameter
|
|
1500
|
-
if agents_execution_user_messages_add_text_body is not None:
|
|
1501
|
-
_body_params = agents_execution_user_messages_add_text_body
|
|
1502
1418
|
|
|
1503
1419
|
|
|
1504
1420
|
# set the HTTP header `Accept`
|
|
1505
1421
|
if 'Accept' not in _header_params:
|
|
1506
1422
|
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1507
1423
|
[
|
|
1508
|
-
'text/plain',
|
|
1509
1424
|
'application/json'
|
|
1510
1425
|
]
|
|
1511
1426
|
)
|
|
1512
1427
|
|
|
1513
|
-
# set the HTTP header `Content-Type`
|
|
1514
|
-
if _content_type:
|
|
1515
|
-
_header_params['Content-Type'] = _content_type
|
|
1516
|
-
else:
|
|
1517
|
-
_default_content_type = (
|
|
1518
|
-
self.api_client.select_header_content_type(
|
|
1519
|
-
[
|
|
1520
|
-
'application/json'
|
|
1521
|
-
]
|
|
1522
|
-
)
|
|
1523
|
-
)
|
|
1524
|
-
if _default_content_type is not None:
|
|
1525
|
-
_header_params['Content-Type'] = _default_content_type
|
|
1526
1428
|
|
|
1527
1429
|
# authentication setting
|
|
1528
1430
|
_auth_settings: List[str] = [
|
|
@@ -1530,8 +1432,8 @@ class DefaultApi:
|
|
|
1530
1432
|
]
|
|
1531
1433
|
|
|
1532
1434
|
return self.api_client.param_serialize(
|
|
1533
|
-
method='
|
|
1534
|
-
resource_path='/executions
|
|
1435
|
+
method='GET',
|
|
1436
|
+
resource_path='/executions',
|
|
1535
1437
|
path_params=_path_params,
|
|
1536
1438
|
query_params=_query_params,
|
|
1537
1439
|
header_params=_header_params,
|