alibabacloud-rdsai20250507 2.0.3__py3-none-any.whl → 2.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- alibabacloud_rdsai20250507/__init__.py +1 -1
- alibabacloud_rdsai20250507/client.py +114 -0
- alibabacloud_rdsai20250507/models/__init__.py +10 -0
- alibabacloud_rdsai20250507/models/_chat_messages_request.py +13 -0
- alibabacloud_rdsai20250507/models/_chat_messages_response_body.py +9 -0
- alibabacloud_rdsai20250507/models/_chat_messages_shrink_request.py +13 -0
- alibabacloud_rdsai20250507/models/_chat_messages_task_stop_request.py +2 -0
- alibabacloud_rdsai20250507/models/_chat_messages_task_stop_response_body.py +2 -0
- alibabacloud_rdsai20250507/models/_create_app_instance_request.py +29 -0
- alibabacloud_rdsai20250507/models/_create_app_instance_response_body.py +2 -0
- alibabacloud_rdsai20250507/models/_create_app_instance_shrink_request.py +29 -0
- alibabacloud_rdsai20250507/models/_create_custom_agent_request.py +5 -0
- alibabacloud_rdsai20250507/models/_create_custom_agent_response_body.py +6 -0
- alibabacloud_rdsai20250507/models/_create_custom_agent_shrink_request.py +5 -0
- alibabacloud_rdsai20250507/models/_delete_app_instance_request.py +3 -0
- alibabacloud_rdsai20250507/models/_delete_app_instance_response_body.py +2 -0
- alibabacloud_rdsai20250507/models/_delete_custom_agent_request.py +1 -1
- alibabacloud_rdsai20250507/models/_delete_custom_agent_response_body.py +2 -0
- alibabacloud_rdsai20250507/models/_describe_app_instance_attribute_request.py +2 -0
- alibabacloud_rdsai20250507/models/_describe_app_instance_attribute_response_body.py +13 -0
- alibabacloud_rdsai20250507/models/_describe_app_instances_request.py +5 -0
- alibabacloud_rdsai20250507/models/_describe_app_instances_response_body.py +17 -0
- alibabacloud_rdsai20250507/models/_describe_events_list_request.py +7 -0
- alibabacloud_rdsai20250507/models/_describe_events_list_response_body.py +14 -0
- alibabacloud_rdsai20250507/models/_describe_instance_auth_info_request.py +2 -0
- alibabacloud_rdsai20250507/models/_describe_instance_auth_info_response_body.py +21 -3
- alibabacloud_rdsai20250507/models/_describe_instance_endpoints_request.py +2 -0
- alibabacloud_rdsai20250507/models/_describe_instance_endpoints_response_body.py +17 -0
- alibabacloud_rdsai20250507/models/_describe_instance_ip_whitelist_request.py +10 -0
- alibabacloud_rdsai20250507/models/_describe_instance_ip_whitelist_response_body.py +5 -0
- alibabacloud_rdsai20250507/models/_describe_instance_ragconfig_request.py +3 -0
- alibabacloud_rdsai20250507/models/_describe_instance_ragconfig_response_body.py +9 -0
- alibabacloud_rdsai20250507/models/_describe_instance_sslrequest.py +3 -0
- alibabacloud_rdsai20250507/models/_describe_instance_sslresponse_body.py +9 -0
- alibabacloud_rdsai20250507/models/_describe_instance_storage_config_request.py +3 -0
- alibabacloud_rdsai20250507/models/_describe_instance_storage_config_response_body.py +13 -0
- alibabacloud_rdsai20250507/models/_get_conversations_request.py +4 -0
- alibabacloud_rdsai20250507/models/_get_conversations_response_body.py +8 -0
- alibabacloud_rdsai20250507/models/_get_custom_agent_request.py +1 -0
- alibabacloud_rdsai20250507/models/_get_custom_agent_response_body.py +8 -0
- alibabacloud_rdsai20250507/models/_get_messages_request.py +11 -0
- alibabacloud_rdsai20250507/models/_get_messages_response_body.py +63 -1
- alibabacloud_rdsai20250507/models/_list_custom_agent_request.py +2 -0
- alibabacloud_rdsai20250507/models/_list_custom_agent_response_body.py +12 -1
- alibabacloud_rdsai20250507/models/_list_custom_agent_tools_response_body.py +8 -0
- alibabacloud_rdsai20250507/models/_modify_instance_auth_config_request.py +3 -0
- alibabacloud_rdsai20250507/models/_modify_instance_auth_config_response_body.py +2 -0
- alibabacloud_rdsai20250507/models/_modify_instance_auth_config_shrink_request.py +3 -0
- alibabacloud_rdsai20250507/models/_modify_instance_config_request.py +6 -0
- alibabacloud_rdsai20250507/models/_modify_instance_ip_whitelist_request.py +16 -0
- alibabacloud_rdsai20250507/models/_modify_instance_ip_whitelist_response_body.py +2 -0
- alibabacloud_rdsai20250507/models/_modify_instance_ragconfig_request.py +9 -0
- alibabacloud_rdsai20250507/models/_modify_instance_ragconfig_response_body.py +6 -0
- alibabacloud_rdsai20250507/models/_modify_instance_ragconfig_shrink_request.py +9 -0
- alibabacloud_rdsai20250507/models/_modify_instance_sslrequest.py +15 -0
- alibabacloud_rdsai20250507/models/_modify_instance_sslresponse_body.py +2 -0
- alibabacloud_rdsai20250507/models/_modify_instance_storage_config_request.py +5 -0
- alibabacloud_rdsai20250507/models/_modify_instance_storage_config_response_body.py +2 -0
- alibabacloud_rdsai20250507/models/_modify_instance_storage_config_shrink_request.py +5 -0
- alibabacloud_rdsai20250507/models/_modify_instances_sslrequest.py +77 -0
- alibabacloud_rdsai20250507/models/_modify_instances_sslresponse.py +54 -0
- alibabacloud_rdsai20250507/models/_modify_instances_sslresponse_body.py +43 -0
- alibabacloud_rdsai20250507/models/_modify_instances_sslshrink_request.py +75 -0
- alibabacloud_rdsai20250507/models/_modify_messages_feedbacks_request.py +8 -0
- alibabacloud_rdsai20250507/models/_modify_messages_feedbacks_response_body.py +2 -0
- alibabacloud_rdsai20250507/models/_reset_instance_password_request.py +7 -0
- alibabacloud_rdsai20250507/models/_reset_instance_password_response_body.py +2 -0
- alibabacloud_rdsai20250507/models/_restart_instance_request.py +3 -0
- alibabacloud_rdsai20250507/models/_restart_instance_response_body.py +2 -0
- alibabacloud_rdsai20250507/models/_start_instance_request.py +2 -0
- alibabacloud_rdsai20250507/models/_start_instance_response_body.py +2 -0
- alibabacloud_rdsai20250507/models/_stop_instance_request.py +3 -0
- alibabacloud_rdsai20250507/models/_stop_instance_response_body.py +2 -0
- alibabacloud_rdsai20250507/models/_update_custom_agent_request.py +5 -1
- alibabacloud_rdsai20250507/models/_update_custom_agent_response_body.py +6 -1
- alibabacloud_rdsai20250507/models/_update_custom_agent_shrink_request.py +5 -1
- {alibabacloud_rdsai20250507-2.0.3.dist-info → alibabacloud_rdsai20250507-2.1.0.dist-info}/METADATA +2 -2
- {alibabacloud_rdsai20250507-2.0.3.dist-info → alibabacloud_rdsai20250507-2.1.0.dist-info}/RECORD +81 -77
- {alibabacloud_rdsai20250507-2.0.3.dist-info → alibabacloud_rdsai20250507-2.1.0.dist-info}/LICENSE +0 -0
- {alibabacloud_rdsai20250507-2.0.3.dist-info → alibabacloud_rdsai20250507-2.1.0.dist-info}/WHEEL +0 -0
- {alibabacloud_rdsai20250507-2.0.3.dist-info → alibabacloud_rdsai20250507-2.1.0.dist-info}/top_level.txt +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = '2.0
|
|
1
|
+
__version__ = '2.1.0'
|
|
@@ -56,6 +56,8 @@ class Client(OpenApiClient):
|
|
|
56
56
|
query = {}
|
|
57
57
|
if not DaraCore.is_null(request.conversation_id):
|
|
58
58
|
query['ConversationId'] = request.conversation_id
|
|
59
|
+
if not DaraCore.is_null(request.event_mode):
|
|
60
|
+
query['EventMode'] = request.event_mode
|
|
59
61
|
if not DaraCore.is_null(request.inputs_shrink):
|
|
60
62
|
query['Inputs'] = request.inputs_shrink
|
|
61
63
|
if not DaraCore.is_null(request.parent_message_id):
|
|
@@ -103,6 +105,8 @@ class Client(OpenApiClient):
|
|
|
103
105
|
query = {}
|
|
104
106
|
if not DaraCore.is_null(request.conversation_id):
|
|
105
107
|
query['ConversationId'] = request.conversation_id
|
|
108
|
+
if not DaraCore.is_null(request.event_mode):
|
|
109
|
+
query['EventMode'] = request.event_mode
|
|
106
110
|
if not DaraCore.is_null(request.inputs_shrink):
|
|
107
111
|
query['Inputs'] = request.inputs_shrink
|
|
108
112
|
if not DaraCore.is_null(request.parent_message_id):
|
|
@@ -150,6 +154,8 @@ class Client(OpenApiClient):
|
|
|
150
154
|
query = {}
|
|
151
155
|
if not DaraCore.is_null(request.conversation_id):
|
|
152
156
|
query['ConversationId'] = request.conversation_id
|
|
157
|
+
if not DaraCore.is_null(request.event_mode):
|
|
158
|
+
query['EventMode'] = request.event_mode
|
|
153
159
|
if not DaraCore.is_null(request.inputs_shrink):
|
|
154
160
|
query['Inputs'] = request.inputs_shrink
|
|
155
161
|
if not DaraCore.is_null(request.parent_message_id):
|
|
@@ -188,6 +194,8 @@ class Client(OpenApiClient):
|
|
|
188
194
|
query = {}
|
|
189
195
|
if not DaraCore.is_null(request.conversation_id):
|
|
190
196
|
query['ConversationId'] = request.conversation_id
|
|
197
|
+
if not DaraCore.is_null(request.event_mode):
|
|
198
|
+
query['EventMode'] = request.event_mode
|
|
191
199
|
if not DaraCore.is_null(request.inputs_shrink):
|
|
192
200
|
query['Inputs'] = request.inputs_shrink
|
|
193
201
|
if not DaraCore.is_null(request.parent_message_id):
|
|
@@ -1074,6 +1082,8 @@ class Client(OpenApiClient):
|
|
|
1074
1082
|
) -> main_models.DescribeInstanceIpWhitelistResponse:
|
|
1075
1083
|
request.validate()
|
|
1076
1084
|
query = {}
|
|
1085
|
+
if not DaraCore.is_null(request.group_name):
|
|
1086
|
+
query['GroupName'] = request.group_name
|
|
1077
1087
|
if not DaraCore.is_null(request.instance_name):
|
|
1078
1088
|
query['InstanceName'] = request.instance_name
|
|
1079
1089
|
if not DaraCore.is_null(request.region_id):
|
|
@@ -1104,6 +1114,8 @@ class Client(OpenApiClient):
|
|
|
1104
1114
|
) -> main_models.DescribeInstanceIpWhitelistResponse:
|
|
1105
1115
|
request.validate()
|
|
1106
1116
|
query = {}
|
|
1117
|
+
if not DaraCore.is_null(request.group_name):
|
|
1118
|
+
query['GroupName'] = request.group_name
|
|
1107
1119
|
if not DaraCore.is_null(request.instance_name):
|
|
1108
1120
|
query['InstanceName'] = request.instance_name
|
|
1109
1121
|
if not DaraCore.is_null(request.region_id):
|
|
@@ -1524,6 +1536,8 @@ class Client(OpenApiClient):
|
|
|
1524
1536
|
query = {}
|
|
1525
1537
|
if not DaraCore.is_null(request.conversation_id):
|
|
1526
1538
|
query['ConversationId'] = request.conversation_id
|
|
1539
|
+
if not DaraCore.is_null(request.event_mode):
|
|
1540
|
+
query['EventMode'] = request.event_mode
|
|
1527
1541
|
if not DaraCore.is_null(request.first_id):
|
|
1528
1542
|
query['FirstId'] = request.first_id
|
|
1529
1543
|
if not DaraCore.is_null(request.limit):
|
|
@@ -1556,6 +1570,8 @@ class Client(OpenApiClient):
|
|
|
1556
1570
|
query = {}
|
|
1557
1571
|
if not DaraCore.is_null(request.conversation_id):
|
|
1558
1572
|
query['ConversationId'] = request.conversation_id
|
|
1573
|
+
if not DaraCore.is_null(request.event_mode):
|
|
1574
|
+
query['EventMode'] = request.event_mode
|
|
1559
1575
|
if not DaraCore.is_null(request.first_id):
|
|
1560
1576
|
query['FirstId'] = request.first_id
|
|
1561
1577
|
if not DaraCore.is_null(request.limit):
|
|
@@ -2253,6 +2269,104 @@ class Client(OpenApiClient):
|
|
|
2253
2269
|
runtime = RuntimeOptions()
|
|
2254
2270
|
return await self.modify_instance_storage_config_with_options_async(request, runtime)
|
|
2255
2271
|
|
|
2272
|
+
def modify_instances_sslwith_options(
|
|
2273
|
+
self,
|
|
2274
|
+
tmp_req: main_models.ModifyInstancesSSLRequest,
|
|
2275
|
+
runtime: RuntimeOptions,
|
|
2276
|
+
) -> main_models.ModifyInstancesSSLResponse:
|
|
2277
|
+
tmp_req.validate()
|
|
2278
|
+
request = main_models.ModifyInstancesSSLShrinkRequest()
|
|
2279
|
+
Utils.convert(tmp_req, request)
|
|
2280
|
+
if not DaraCore.is_null(tmp_req.instance_names):
|
|
2281
|
+
request.instance_names_shrink = Utils.array_to_string_with_specified_style(tmp_req.instance_names, 'InstanceNames', 'json')
|
|
2282
|
+
query = {}
|
|
2283
|
+
if not DaraCore.is_null(request.catype):
|
|
2284
|
+
query['CAType'] = request.catype
|
|
2285
|
+
if not DaraCore.is_null(request.instance_names_shrink):
|
|
2286
|
+
query['InstanceNames'] = request.instance_names_shrink
|
|
2287
|
+
if not DaraCore.is_null(request.region_id):
|
|
2288
|
+
query['RegionId'] = request.region_id
|
|
2289
|
+
if not DaraCore.is_null(request.sslenabled):
|
|
2290
|
+
query['SSLEnabled'] = request.sslenabled
|
|
2291
|
+
if not DaraCore.is_null(request.server_cert):
|
|
2292
|
+
query['ServerCert'] = request.server_cert
|
|
2293
|
+
if not DaraCore.is_null(request.server_key):
|
|
2294
|
+
query['ServerKey'] = request.server_key
|
|
2295
|
+
req = open_api_util_models.OpenApiRequest(
|
|
2296
|
+
query = Utils.query(query)
|
|
2297
|
+
)
|
|
2298
|
+
params = open_api_util_models.Params(
|
|
2299
|
+
action = 'ModifyInstancesSSL',
|
|
2300
|
+
version = '2025-05-07',
|
|
2301
|
+
protocol = 'HTTPS',
|
|
2302
|
+
pathname = '/',
|
|
2303
|
+
method = 'POST',
|
|
2304
|
+
auth_type = 'AK',
|
|
2305
|
+
style = 'RPC',
|
|
2306
|
+
req_body_type = 'formData',
|
|
2307
|
+
body_type = 'json'
|
|
2308
|
+
)
|
|
2309
|
+
return DaraCore.from_map(
|
|
2310
|
+
main_models.ModifyInstancesSSLResponse(),
|
|
2311
|
+
self.call_api(params, req, runtime)
|
|
2312
|
+
)
|
|
2313
|
+
|
|
2314
|
+
async def modify_instances_sslwith_options_async(
|
|
2315
|
+
self,
|
|
2316
|
+
tmp_req: main_models.ModifyInstancesSSLRequest,
|
|
2317
|
+
runtime: RuntimeOptions,
|
|
2318
|
+
) -> main_models.ModifyInstancesSSLResponse:
|
|
2319
|
+
tmp_req.validate()
|
|
2320
|
+
request = main_models.ModifyInstancesSSLShrinkRequest()
|
|
2321
|
+
Utils.convert(tmp_req, request)
|
|
2322
|
+
if not DaraCore.is_null(tmp_req.instance_names):
|
|
2323
|
+
request.instance_names_shrink = Utils.array_to_string_with_specified_style(tmp_req.instance_names, 'InstanceNames', 'json')
|
|
2324
|
+
query = {}
|
|
2325
|
+
if not DaraCore.is_null(request.catype):
|
|
2326
|
+
query['CAType'] = request.catype
|
|
2327
|
+
if not DaraCore.is_null(request.instance_names_shrink):
|
|
2328
|
+
query['InstanceNames'] = request.instance_names_shrink
|
|
2329
|
+
if not DaraCore.is_null(request.region_id):
|
|
2330
|
+
query['RegionId'] = request.region_id
|
|
2331
|
+
if not DaraCore.is_null(request.sslenabled):
|
|
2332
|
+
query['SSLEnabled'] = request.sslenabled
|
|
2333
|
+
if not DaraCore.is_null(request.server_cert):
|
|
2334
|
+
query['ServerCert'] = request.server_cert
|
|
2335
|
+
if not DaraCore.is_null(request.server_key):
|
|
2336
|
+
query['ServerKey'] = request.server_key
|
|
2337
|
+
req = open_api_util_models.OpenApiRequest(
|
|
2338
|
+
query = Utils.query(query)
|
|
2339
|
+
)
|
|
2340
|
+
params = open_api_util_models.Params(
|
|
2341
|
+
action = 'ModifyInstancesSSL',
|
|
2342
|
+
version = '2025-05-07',
|
|
2343
|
+
protocol = 'HTTPS',
|
|
2344
|
+
pathname = '/',
|
|
2345
|
+
method = 'POST',
|
|
2346
|
+
auth_type = 'AK',
|
|
2347
|
+
style = 'RPC',
|
|
2348
|
+
req_body_type = 'formData',
|
|
2349
|
+
body_type = 'json'
|
|
2350
|
+
)
|
|
2351
|
+
return DaraCore.from_map(
|
|
2352
|
+
main_models.ModifyInstancesSSLResponse(),
|
|
2353
|
+
await self.call_api_async(params, req, runtime)
|
|
2354
|
+
)
|
|
2355
|
+
|
|
2356
|
+
def modify_instances_ssl(
|
|
2357
|
+
self,
|
|
2358
|
+
request: main_models.ModifyInstancesSSLRequest,
|
|
2359
|
+
) -> main_models.ModifyInstancesSSLResponse:
|
|
2360
|
+
runtime = RuntimeOptions()
|
|
2361
|
+
return self.modify_instances_sslwith_options(request, runtime)
|
|
2362
|
+
|
|
2363
|
+
async def modify_instances_ssl_async(
|
|
2364
|
+
self,
|
|
2365
|
+
request: main_models.ModifyInstancesSSLRequest,
|
|
2366
|
+
) -> main_models.ModifyInstancesSSLResponse:
|
|
2367
|
+
runtime = RuntimeOptions()
|
|
2368
|
+
return await self.modify_instances_sslwith_options_async(request, runtime)
|
|
2369
|
+
|
|
2256
2370
|
def modify_messages_feedbacks_with_options(
|
|
2257
2371
|
self,
|
|
2258
2372
|
request: main_models.ModifyMessagesFeedbacksRequest,
|
|
@@ -85,6 +85,10 @@ from ._modify_instance_storage_config_request import ModifyInstanceStorageConfig
|
|
|
85
85
|
from ._modify_instance_storage_config_shrink_request import ModifyInstanceStorageConfigShrinkRequest
|
|
86
86
|
from ._modify_instance_storage_config_response_body import ModifyInstanceStorageConfigResponseBody
|
|
87
87
|
from ._modify_instance_storage_config_response import ModifyInstanceStorageConfigResponse
|
|
88
|
+
from ._modify_instances_sslrequest import ModifyInstancesSSLRequest
|
|
89
|
+
from ._modify_instances_sslshrink_request import ModifyInstancesSSLShrinkRequest
|
|
90
|
+
from ._modify_instances_sslresponse_body import ModifyInstancesSSLResponseBody
|
|
91
|
+
from ._modify_instances_sslresponse import ModifyInstancesSSLResponse
|
|
88
92
|
from ._modify_messages_feedbacks_request import ModifyMessagesFeedbacksRequest
|
|
89
93
|
from ._modify_messages_feedbacks_response_body import ModifyMessagesFeedbacksResponseBody
|
|
90
94
|
from ._modify_messages_feedbacks_response import ModifyMessagesFeedbacksResponse
|
|
@@ -116,6 +120,7 @@ from ._describe_instance_ip_whitelist_response_body import DescribeInstanceIpWhi
|
|
|
116
120
|
from ._describe_instance_ragconfig_response_body import DescribeInstanceRAGConfigResponseBodyConfigList
|
|
117
121
|
from ._describe_instance_storage_config_response_body import DescribeInstanceStorageConfigResponseBodyConfigList
|
|
118
122
|
from ._get_conversations_response_body import GetConversationsResponseBodyData
|
|
123
|
+
from ._get_messages_response_body import GetMessagesResponseBodyDataEvents
|
|
119
124
|
from ._get_messages_response_body import GetMessagesResponseBodyData
|
|
120
125
|
from ._list_custom_agent_response_body import ListCustomAgentResponseBodyData
|
|
121
126
|
from ._list_custom_agent_tools_response_body import ListCustomAgentToolsResponseBodyData
|
|
@@ -207,6 +212,10 @@ __all__ = [
|
|
|
207
212
|
ModifyInstanceStorageConfigShrinkRequest,
|
|
208
213
|
ModifyInstanceStorageConfigResponseBody,
|
|
209
214
|
ModifyInstanceStorageConfigResponse,
|
|
215
|
+
ModifyInstancesSSLRequest,
|
|
216
|
+
ModifyInstancesSSLShrinkRequest,
|
|
217
|
+
ModifyInstancesSSLResponseBody,
|
|
218
|
+
ModifyInstancesSSLResponse,
|
|
210
219
|
ModifyMessagesFeedbacksRequest,
|
|
211
220
|
ModifyMessagesFeedbacksResponseBody,
|
|
212
221
|
ModifyMessagesFeedbacksResponse,
|
|
@@ -238,6 +247,7 @@ __all__ = [
|
|
|
238
247
|
DescribeInstanceRAGConfigResponseBodyConfigList,
|
|
239
248
|
DescribeInstanceStorageConfigResponseBodyConfigList,
|
|
240
249
|
GetConversationsResponseBodyData,
|
|
250
|
+
GetMessagesResponseBodyDataEvents,
|
|
241
251
|
GetMessagesResponseBodyData,
|
|
242
252
|
ListCustomAgentResponseBodyData,
|
|
243
253
|
ListCustomAgentToolsResponseBodyData,
|
|
@@ -9,13 +9,20 @@ class ChatMessagesRequest(DaraModel):
|
|
|
9
9
|
def __init__(
|
|
10
10
|
self,
|
|
11
11
|
conversation_id: str = None,
|
|
12
|
+
event_mode: str = None,
|
|
12
13
|
inputs: main_models.ChatMessagesRequestInputs = None,
|
|
13
14
|
parent_message_id: str = None,
|
|
14
15
|
query: str = None,
|
|
15
16
|
):
|
|
17
|
+
# The query content.
|
|
16
18
|
self.conversation_id = conversation_id
|
|
19
|
+
self.event_mode = event_mode
|
|
20
|
+
# The ID of the parent message.
|
|
17
21
|
self.inputs = inputs
|
|
22
|
+
# The ID of the conversation.
|
|
18
23
|
self.parent_message_id = parent_message_id
|
|
24
|
+
# The operation that you want to perform. Set the value to **ChatMessages**.
|
|
25
|
+
#
|
|
19
26
|
# This parameter is required.
|
|
20
27
|
self.query = query
|
|
21
28
|
|
|
@@ -31,6 +38,9 @@ class ChatMessagesRequest(DaraModel):
|
|
|
31
38
|
if self.conversation_id is not None:
|
|
32
39
|
result['ConversationId'] = self.conversation_id
|
|
33
40
|
|
|
41
|
+
if self.event_mode is not None:
|
|
42
|
+
result['EventMode'] = self.event_mode
|
|
43
|
+
|
|
34
44
|
if self.inputs is not None:
|
|
35
45
|
result['Inputs'] = self.inputs.to_map()
|
|
36
46
|
|
|
@@ -47,6 +57,9 @@ class ChatMessagesRequest(DaraModel):
|
|
|
47
57
|
if m.get('ConversationId') is not None:
|
|
48
58
|
self.conversation_id = m.get('ConversationId')
|
|
49
59
|
|
|
60
|
+
if m.get('EventMode') is not None:
|
|
61
|
+
self.event_mode = m.get('EventMode')
|
|
62
|
+
|
|
50
63
|
if m.get('Inputs') is not None:
|
|
51
64
|
temp_model = main_models.ChatMessagesRequestInputs()
|
|
52
65
|
self.inputs = temp_model.from_map(m.get('Inputs'))
|
|
@@ -17,14 +17,23 @@ class ChatMessagesResponseBody(DaraModel):
|
|
|
17
17
|
request_id: str = None,
|
|
18
18
|
task_id: str = None,
|
|
19
19
|
):
|
|
20
|
+
# The answer.
|
|
20
21
|
self.answer = answer
|
|
22
|
+
# The ID of the conversation.
|
|
21
23
|
self.conversation_id = conversation_id
|
|
24
|
+
# The creation time of the conversation.
|
|
22
25
|
self.created_at = created_at
|
|
26
|
+
# The event.
|
|
23
27
|
self.event = event
|
|
28
|
+
# The message ID.
|
|
24
29
|
self.id = id
|
|
30
|
+
# The message ID.
|
|
25
31
|
self.message_id = message_id
|
|
32
|
+
# The query mode.
|
|
26
33
|
self.mode = mode
|
|
34
|
+
# The request ID.
|
|
27
35
|
self.request_id = request_id
|
|
36
|
+
# The ID of the asynchronous task.
|
|
28
37
|
self.task_id = task_id
|
|
29
38
|
|
|
30
39
|
def validate(self):
|
|
@@ -8,13 +8,20 @@ class ChatMessagesShrinkRequest(DaraModel):
|
|
|
8
8
|
def __init__(
|
|
9
9
|
self,
|
|
10
10
|
conversation_id: str = None,
|
|
11
|
+
event_mode: str = None,
|
|
11
12
|
inputs_shrink: str = None,
|
|
12
13
|
parent_message_id: str = None,
|
|
13
14
|
query: str = None,
|
|
14
15
|
):
|
|
16
|
+
# The query content.
|
|
15
17
|
self.conversation_id = conversation_id
|
|
18
|
+
self.event_mode = event_mode
|
|
19
|
+
# The ID of the parent message.
|
|
16
20
|
self.inputs_shrink = inputs_shrink
|
|
21
|
+
# The ID of the conversation.
|
|
17
22
|
self.parent_message_id = parent_message_id
|
|
23
|
+
# The operation that you want to perform. Set the value to **ChatMessages**.
|
|
24
|
+
#
|
|
18
25
|
# This parameter is required.
|
|
19
26
|
self.query = query
|
|
20
27
|
|
|
@@ -29,6 +36,9 @@ class ChatMessagesShrinkRequest(DaraModel):
|
|
|
29
36
|
if self.conversation_id is not None:
|
|
30
37
|
result['ConversationId'] = self.conversation_id
|
|
31
38
|
|
|
39
|
+
if self.event_mode is not None:
|
|
40
|
+
result['EventMode'] = self.event_mode
|
|
41
|
+
|
|
32
42
|
if self.inputs_shrink is not None:
|
|
33
43
|
result['Inputs'] = self.inputs_shrink
|
|
34
44
|
|
|
@@ -45,6 +55,9 @@ class ChatMessagesShrinkRequest(DaraModel):
|
|
|
45
55
|
if m.get('ConversationId') is not None:
|
|
46
56
|
self.conversation_id = m.get('ConversationId')
|
|
47
57
|
|
|
58
|
+
if m.get('EventMode') is not None:
|
|
59
|
+
self.event_mode = m.get('EventMode')
|
|
60
|
+
|
|
48
61
|
if m.get('Inputs') is not None:
|
|
49
62
|
self.inputs_shrink = m.get('Inputs')
|
|
50
63
|
|
|
@@ -24,20 +24,49 @@ class CreateAppInstanceRequest(DaraModel):
|
|
|
24
24
|
region_id: str = None,
|
|
25
25
|
v_switch_id: str = None,
|
|
26
26
|
):
|
|
27
|
+
# The ID of the RDS for PostgreSQL instance with which the RDS Supabase instances are associated.
|
|
28
|
+
#
|
|
29
|
+
# > : Only newly purchased empty RDS for PostgreSQL instances are supported. The major engine version must be PostgreSQL 17 and the minor version must be 20250630 or later.
|
|
27
30
|
self.app_name = app_name
|
|
31
|
+
# The region ID of the instance.
|
|
28
32
|
self.app_type = app_type
|
|
33
|
+
# The name of the new AI application.
|
|
29
34
|
self.client_token = client_token
|
|
35
|
+
# A reserved parameter.
|
|
30
36
|
self.dbinstance_config = dbinstance_config
|
|
37
|
+
# The instance type. Only **rdsai.supabase.basic** is supported.
|
|
31
38
|
self.dbinstance_name = dbinstance_name
|
|
39
|
+
# The Supabase Dashboard user name.
|
|
32
40
|
self.dashboard_password = dashboard_password
|
|
41
|
+
# The password used to access the RDS database.
|
|
42
|
+
#
|
|
43
|
+
# The password must be 8 to 32 characters in length and must contain at least three of the following characters: uppercase letters, lowercase letters, digits, and underscores (_).
|
|
33
44
|
self.dashboard_username = dashboard_username
|
|
45
|
+
# The idempotency token. The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests.
|
|
34
46
|
self.database_password = database_password
|
|
47
|
+
# Specifies whether to enable public endpoint.
|
|
48
|
+
#
|
|
49
|
+
# * true (default)
|
|
50
|
+
# * false
|
|
35
51
|
self.initialize_with_existing_data = initialize_with_existing_data
|
|
52
|
+
# The vSwitch ID.
|
|
36
53
|
self.instance_class = instance_class
|
|
54
|
+
# The billing method of the RDS for PostgreSQL instance.
|
|
37
55
|
self.public_endpoint_enabled = public_endpoint_enabled
|
|
56
|
+
# The Supabase Dashboard password.
|
|
57
|
+
#
|
|
58
|
+
# The password must be 8 to 32 characters in length and must contain at least three of the following characters: uppercase letters, lowercase letters, digits, and underscores (_).
|
|
38
59
|
self.public_network_access_enabled = public_network_access_enabled
|
|
60
|
+
# Specifies whether to enable the Internet NAT gateway. Valid values:
|
|
61
|
+
#
|
|
62
|
+
# * **true**: enable the Internet NAT gateway.
|
|
63
|
+
# * **false** (default): disable the Internet NAT gateway.
|
|
64
|
+
#
|
|
65
|
+
# > If an Internet NAT gateway is enabled for the vSwitch that you specify for VSwitchId, select false for this parameter.
|
|
39
66
|
self.ragenabled = ragenabled
|
|
67
|
+
# The operation that you want to perform. Set the value to **CreateAppInstance**.
|
|
40
68
|
self.region_id = region_id
|
|
69
|
+
# The application type. Only **supabase** is supported.
|
|
41
70
|
self.v_switch_id = v_switch_id
|
|
42
71
|
|
|
43
72
|
def validate(self):
|
|
@@ -10,7 +10,9 @@ class CreateAppInstanceResponseBody(DaraModel):
|
|
|
10
10
|
instance_name: str = None,
|
|
11
11
|
request_id: str = None,
|
|
12
12
|
):
|
|
13
|
+
# The ID of the RDS Supabase instance.
|
|
13
14
|
self.instance_name = instance_name
|
|
15
|
+
# The request ID.
|
|
14
16
|
self.request_id = request_id
|
|
15
17
|
|
|
16
18
|
def validate(self):
|
|
@@ -23,20 +23,49 @@ class CreateAppInstanceShrinkRequest(DaraModel):
|
|
|
23
23
|
region_id: str = None,
|
|
24
24
|
v_switch_id: str = None,
|
|
25
25
|
):
|
|
26
|
+
# The ID of the RDS for PostgreSQL instance with which the RDS Supabase instances are associated.
|
|
27
|
+
#
|
|
28
|
+
# > : Only newly purchased empty RDS for PostgreSQL instances are supported. The major engine version must be PostgreSQL 17 and the minor version must be 20250630 or later.
|
|
26
29
|
self.app_name = app_name
|
|
30
|
+
# The region ID of the instance.
|
|
27
31
|
self.app_type = app_type
|
|
32
|
+
# The name of the new AI application.
|
|
28
33
|
self.client_token = client_token
|
|
34
|
+
# A reserved parameter.
|
|
29
35
|
self.dbinstance_config_shrink = dbinstance_config_shrink
|
|
36
|
+
# The instance type. Only **rdsai.supabase.basic** is supported.
|
|
30
37
|
self.dbinstance_name = dbinstance_name
|
|
38
|
+
# The Supabase Dashboard user name.
|
|
31
39
|
self.dashboard_password = dashboard_password
|
|
40
|
+
# The password used to access the RDS database.
|
|
41
|
+
#
|
|
42
|
+
# The password must be 8 to 32 characters in length and must contain at least three of the following characters: uppercase letters, lowercase letters, digits, and underscores (_).
|
|
32
43
|
self.dashboard_username = dashboard_username
|
|
44
|
+
# The idempotency token. The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests.
|
|
33
45
|
self.database_password = database_password
|
|
46
|
+
# Specifies whether to enable public endpoint.
|
|
47
|
+
#
|
|
48
|
+
# * true (default)
|
|
49
|
+
# * false
|
|
34
50
|
self.initialize_with_existing_data = initialize_with_existing_data
|
|
51
|
+
# The vSwitch ID.
|
|
35
52
|
self.instance_class = instance_class
|
|
53
|
+
# The billing method of the RDS for PostgreSQL instance.
|
|
36
54
|
self.public_endpoint_enabled = public_endpoint_enabled
|
|
55
|
+
# The Supabase Dashboard password.
|
|
56
|
+
#
|
|
57
|
+
# The password must be 8 to 32 characters in length and must contain at least three of the following characters: uppercase letters, lowercase letters, digits, and underscores (_).
|
|
37
58
|
self.public_network_access_enabled = public_network_access_enabled
|
|
59
|
+
# Specifies whether to enable the Internet NAT gateway. Valid values:
|
|
60
|
+
#
|
|
61
|
+
# * **true**: enable the Internet NAT gateway.
|
|
62
|
+
# * **false** (default): disable the Internet NAT gateway.
|
|
63
|
+
#
|
|
64
|
+
# > If an Internet NAT gateway is enabled for the vSwitch that you specify for VSwitchId, select false for this parameter.
|
|
38
65
|
self.ragenabled = ragenabled
|
|
66
|
+
# The operation that you want to perform. Set the value to **CreateAppInstance**.
|
|
39
67
|
self.region_id = region_id
|
|
68
|
+
# The application type. Only **supabase** is supported.
|
|
40
69
|
self.v_switch_id = v_switch_id
|
|
41
70
|
|
|
42
71
|
def validate(self):
|
|
@@ -14,10 +14,15 @@ class CreateCustomAgentRequest(DaraModel):
|
|
|
14
14
|
system_prompt: str = None,
|
|
15
15
|
tools: List[str] = None,
|
|
16
16
|
):
|
|
17
|
+
# The system prompts.
|
|
17
18
|
self.enable_tools = enable_tools
|
|
19
|
+
# The operation that you want to perform. Set the value to **CreateCustomAgent**.
|
|
18
20
|
self.name = name
|
|
21
|
+
# The name of the dedicated agent.
|
|
22
|
+
#
|
|
19
23
|
# This parameter is required.
|
|
20
24
|
self.system_prompt = system_prompt
|
|
25
|
+
# Specifies whether to enable tools.
|
|
21
26
|
self.tools = tools
|
|
22
27
|
|
|
23
28
|
def validate(self):
|
|
@@ -17,13 +17,19 @@ class CreateCustomAgentResponseBody(DaraModel):
|
|
|
17
17
|
system_prompt: str = None,
|
|
18
18
|
tools: List[str] = None,
|
|
19
19
|
):
|
|
20
|
+
# The creation time of the agent.
|
|
20
21
|
self.created_at = created_at
|
|
22
|
+
# Indicates whether tools are enabled.
|
|
21
23
|
self.enable_tools = enable_tools
|
|
22
24
|
# AgentId
|
|
23
25
|
self.id = id
|
|
26
|
+
# The name of the agent.
|
|
24
27
|
self.name = name
|
|
28
|
+
# The request ID.
|
|
25
29
|
self.request_id = request_id
|
|
30
|
+
# The system prompts.
|
|
26
31
|
self.system_prompt = system_prompt
|
|
32
|
+
# The information about the tool.
|
|
27
33
|
self.tools = tools
|
|
28
34
|
|
|
29
35
|
def validate(self):
|
|
@@ -12,10 +12,15 @@ class CreateCustomAgentShrinkRequest(DaraModel):
|
|
|
12
12
|
system_prompt: str = None,
|
|
13
13
|
tools_shrink: str = None,
|
|
14
14
|
):
|
|
15
|
+
# The system prompts.
|
|
15
16
|
self.enable_tools = enable_tools
|
|
17
|
+
# The operation that you want to perform. Set the value to **CreateCustomAgent**.
|
|
16
18
|
self.name = name
|
|
19
|
+
# The name of the dedicated agent.
|
|
20
|
+
#
|
|
17
21
|
# This parameter is required.
|
|
18
22
|
self.system_prompt = system_prompt
|
|
23
|
+
# Specifies whether to enable tools.
|
|
19
24
|
self.tools_shrink = tools_shrink
|
|
20
25
|
|
|
21
26
|
def validate(self):
|
|
@@ -11,8 +11,11 @@ class DeleteAppInstanceRequest(DaraModel):
|
|
|
11
11
|
instance_name: str = None,
|
|
12
12
|
region_id: str = None,
|
|
13
13
|
):
|
|
14
|
+
# The ID of the RDS Supabase instance.
|
|
14
15
|
self.client_token = client_token
|
|
16
|
+
# The region ID.
|
|
15
17
|
self.instance_name = instance_name
|
|
18
|
+
# The operation that you want to perform. Set the value to **DeleteAppInstance**.
|
|
16
19
|
self.region_id = region_id
|
|
17
20
|
|
|
18
21
|
def validate(self):
|
|
@@ -10,7 +10,9 @@ class DeleteAppInstanceResponseBody(DaraModel):
|
|
|
10
10
|
instance_name: str = None,
|
|
11
11
|
request_id: str = None,
|
|
12
12
|
):
|
|
13
|
+
# The ID of the RDS Supabase instance.
|
|
13
14
|
self.instance_name = instance_name
|
|
15
|
+
# The request ID.
|
|
14
16
|
self.request_id = request_id
|
|
15
17
|
|
|
16
18
|
def validate(self):
|
|
@@ -10,7 +10,9 @@ class DescribeAppInstanceAttributeRequest(DaraModel):
|
|
|
10
10
|
instance_name: str = None,
|
|
11
11
|
region_id: str = None,
|
|
12
12
|
):
|
|
13
|
+
# The region ID.
|
|
13
14
|
self.instance_name = instance_name
|
|
15
|
+
# The operation that you want to perform. Set the value to **DescribeAppInstanceAttribute**.
|
|
14
16
|
self.region_id = region_id
|
|
15
17
|
|
|
16
18
|
def validate(self):
|
|
@@ -23,20 +23,33 @@ class DescribeAppInstanceAttributeResponseBody(DaraModel):
|
|
|
23
23
|
vpc_connection_string: str = None,
|
|
24
24
|
zone_id: str = None,
|
|
25
25
|
):
|
|
26
|
+
# The name of the AI application.
|
|
26
27
|
self.app_name = app_name
|
|
28
|
+
# The application type. Only **supabase** is supported. For more information, see [RDS Supabase](https://help.aliyun.com/document_detail/2938735.html).
|
|
27
29
|
self.app_type = app_type
|
|
30
|
+
# The ID of the RDS for PostgreSQL instance with which the RDS Supabase instances are associated.
|
|
28
31
|
self.dbinstance_name = dbinstance_name
|
|
29
32
|
self.eip_status = eip_status
|
|
33
|
+
# The instance type of the RDS Supabase instance.
|
|
30
34
|
self.instance_class = instance_class
|
|
35
|
+
# The minor version number of RDS Supabase instance.
|
|
31
36
|
self.instance_minor_version = instance_minor_version
|
|
37
|
+
# The ID of the RDS Supabase instance.
|
|
32
38
|
self.instance_name = instance_name
|
|
33
39
|
self.nat_status = nat_status
|
|
40
|
+
# The public endpoint of the AI application.
|
|
34
41
|
self.public_connection_string = public_connection_string
|
|
42
|
+
# The region ID.
|
|
35
43
|
self.region_id = region_id
|
|
44
|
+
# The request ID.
|
|
36
45
|
self.request_id = request_id
|
|
46
|
+
# The status of the instance. For more information, see [Instance state table](https://help.aliyun.com/document_detail/2623972.html).
|
|
37
47
|
self.status = status
|
|
48
|
+
# The ID of the vSwitch.
|
|
38
49
|
self.v_switch_id = v_switch_id
|
|
50
|
+
# The internal endpoint of the AI application.
|
|
39
51
|
self.vpc_connection_string = vpc_connection_string
|
|
52
|
+
# The zone ID.
|
|
40
53
|
self.zone_id = zone_id
|
|
41
54
|
|
|
42
55
|
def validate(self):
|
|
@@ -13,10 +13,15 @@ class DescribeAppInstancesRequest(DaraModel):
|
|
|
13
13
|
page_size: int = None,
|
|
14
14
|
region_id: str = None,
|
|
15
15
|
):
|
|
16
|
+
# The ID of the RDS for PostgreSQL instance with which the RDS Supabase instances are associated. If you specify this parameter, the RDS Supabase instances associated with the specified RDS for PostgreSQL instance are queried.
|
|
16
17
|
self.app_type = app_type
|
|
18
|
+
# The region ID.
|
|
17
19
|
self.dbinstance_name = dbinstance_name
|
|
20
|
+
# The number of records per page. Valid values: **1 to 50**.
|
|
18
21
|
self.page_number = page_number
|
|
22
|
+
# The application type. Only **supabase** is supported. For more information, see [RDS Supabase](https://help.aliyun.com/document_detail/2938735.html).
|
|
19
23
|
self.page_size = page_size
|
|
24
|
+
# The operation that you want to perform. Set the value to **DescribeAppInstances**.
|
|
20
25
|
self.region_id = region_id
|
|
21
26
|
|
|
22
27
|
def validate(self):
|
|
@@ -17,11 +17,17 @@ class DescribeAppInstancesResponseBody(DaraModel):
|
|
|
17
17
|
request_id: str = None,
|
|
18
18
|
total_count: int = None,
|
|
19
19
|
):
|
|
20
|
+
# The information about the RDS Supabase instances.
|
|
20
21
|
self.instances = instances
|
|
22
|
+
# A reserved parameter. You do not need to specify this parameter.
|
|
21
23
|
self.max_results = max_results
|
|
24
|
+
# The page number of the returned page.
|
|
22
25
|
self.page_number = page_number
|
|
26
|
+
# The number of entries returned on each page.
|
|
23
27
|
self.page_size = page_size
|
|
28
|
+
# The request ID.
|
|
24
29
|
self.request_id = request_id
|
|
30
|
+
# The total number of entries returned.
|
|
25
31
|
self.total_count = total_count
|
|
26
32
|
|
|
27
33
|
def validate(self):
|
|
@@ -97,16 +103,27 @@ class DescribeAppInstancesResponseBodyInstances(DaraModel):
|
|
|
97
103
|
v_switch_id: str = None,
|
|
98
104
|
vpc_connection_string: str = None,
|
|
99
105
|
):
|
|
106
|
+
# The name of the AI application.
|
|
100
107
|
self.app_name = app_name
|
|
108
|
+
# The application type. Only **supabase** is supported. For more information, see [RDS Supabase](https://help.aliyun.com/document_detail/2938735.html).
|
|
101
109
|
self.app_type = app_type
|
|
110
|
+
# The ID of the RDS for PostgreSQL instance with which the RDS Supabase instances are associated.
|
|
102
111
|
self.dbinstance_name = dbinstance_name
|
|
112
|
+
# The instance type.
|
|
103
113
|
self.instance_class = instance_class
|
|
114
|
+
# The minor version number of RDS Supabase instance.
|
|
104
115
|
self.instance_minor_version = instance_minor_version
|
|
116
|
+
# The ID of the RDS Supabase instance.
|
|
105
117
|
self.instance_name = instance_name
|
|
118
|
+
# The public endpoint of the AI application.
|
|
106
119
|
self.public_connection_string = public_connection_string
|
|
120
|
+
# The region ID.
|
|
107
121
|
self.region_id = region_id
|
|
122
|
+
# The instance status. For more information, see [Instance state table](https://help.aliyun.com/document_detail/2623972.html).
|
|
108
123
|
self.status = status
|
|
124
|
+
# The ID of the vSwitch.
|
|
109
125
|
self.v_switch_id = v_switch_id
|
|
126
|
+
# The internal endpoint of the AI application.
|
|
110
127
|
self.vpc_connection_string = vpc_connection_string
|
|
111
128
|
|
|
112
129
|
def validate(self):
|