alibabacloud-rdsai20250507 1.5.0__py3-none-any.whl → 2.0.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 +6 -68
- alibabacloud_rdsai20250507/models.py +0 -109
- {alibabacloud_rdsai20250507-1.5.0.dist-info → alibabacloud_rdsai20250507-2.0.0.dist-info}/METADATA +1 -1
- alibabacloud_rdsai20250507-2.0.0.dist-info/RECORD +8 -0
- alibabacloud_rdsai20250507-1.5.0.dist-info/RECORD +0 -8
- {alibabacloud_rdsai20250507-1.5.0.dist-info → alibabacloud_rdsai20250507-2.0.0.dist-info}/LICENSE +0 -0
- {alibabacloud_rdsai20250507-1.5.0.dist-info → alibabacloud_rdsai20250507-2.0.0.dist-info}/WHEEL +0 -0
- {alibabacloud_rdsai20250507-1.5.0.dist-info → alibabacloud_rdsai20250507-2.0.0.dist-info}/top_level.txt +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = '
|
|
1
|
+
__version__ = '2.0.0'
|
|
@@ -59,8 +59,6 @@ class Client(OpenApiClient):
|
|
|
59
59
|
if not UtilClient.is_unset(tmp_req.inputs):
|
|
60
60
|
request.inputs_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.inputs, 'Inputs', 'json')
|
|
61
61
|
query = {}
|
|
62
|
-
if not UtilClient.is_unset(request.api_id):
|
|
63
|
-
query['ApiId'] = request.api_id
|
|
64
62
|
if not UtilClient.is_unset(request.conversation_id):
|
|
65
63
|
query['ConversationId'] = request.conversation_id
|
|
66
64
|
if not UtilClient.is_unset(request.inputs_shrink):
|
|
@@ -106,8 +104,6 @@ class Client(OpenApiClient):
|
|
|
106
104
|
if not UtilClient.is_unset(tmp_req.inputs):
|
|
107
105
|
request.inputs_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.inputs, 'Inputs', 'json')
|
|
108
106
|
query = {}
|
|
109
|
-
if not UtilClient.is_unset(request.api_id):
|
|
110
|
-
query['ApiId'] = request.api_id
|
|
111
107
|
if not UtilClient.is_unset(request.conversation_id):
|
|
112
108
|
query['ConversationId'] = request.conversation_id
|
|
113
109
|
if not UtilClient.is_unset(request.inputs_shrink):
|
|
@@ -175,8 +171,6 @@ class Client(OpenApiClient):
|
|
|
175
171
|
"""
|
|
176
172
|
UtilClient.validate_model(request)
|
|
177
173
|
query = {}
|
|
178
|
-
if not UtilClient.is_unset(request.api_id):
|
|
179
|
-
query['ApiId'] = request.api_id
|
|
180
174
|
if not UtilClient.is_unset(request.task_id):
|
|
181
175
|
query['TaskId'] = request.task_id
|
|
182
176
|
req = open_api_models.OpenApiRequest(
|
|
@@ -212,8 +206,6 @@ class Client(OpenApiClient):
|
|
|
212
206
|
"""
|
|
213
207
|
UtilClient.validate_model(request)
|
|
214
208
|
query = {}
|
|
215
|
-
if not UtilClient.is_unset(request.api_id):
|
|
216
|
-
query['ApiId'] = request.api_id
|
|
217
209
|
if not UtilClient.is_unset(request.task_id):
|
|
218
210
|
query['TaskId'] = request.task_id
|
|
219
211
|
req = open_api_models.OpenApiRequest(
|
|
@@ -435,8 +427,6 @@ class Client(OpenApiClient):
|
|
|
435
427
|
if not UtilClient.is_unset(tmp_req.tools):
|
|
436
428
|
request.tools_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.tools, 'Tools', 'json')
|
|
437
429
|
query = {}
|
|
438
|
-
if not UtilClient.is_unset(request.api_id):
|
|
439
|
-
query['ApiId'] = request.api_id
|
|
440
430
|
if not UtilClient.is_unset(request.enable_tools):
|
|
441
431
|
query['EnableTools'] = request.enable_tools
|
|
442
432
|
if not UtilClient.is_unset(request.name):
|
|
@@ -482,8 +472,6 @@ class Client(OpenApiClient):
|
|
|
482
472
|
if not UtilClient.is_unset(tmp_req.tools):
|
|
483
473
|
request.tools_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.tools, 'Tools', 'json')
|
|
484
474
|
query = {}
|
|
485
|
-
if not UtilClient.is_unset(request.api_id):
|
|
486
|
-
query['ApiId'] = request.api_id
|
|
487
475
|
if not UtilClient.is_unset(request.enable_tools):
|
|
488
476
|
query['EnableTools'] = request.enable_tools
|
|
489
477
|
if not UtilClient.is_unset(request.name):
|
|
@@ -655,8 +643,6 @@ class Client(OpenApiClient):
|
|
|
655
643
|
"""
|
|
656
644
|
UtilClient.validate_model(request)
|
|
657
645
|
query = {}
|
|
658
|
-
if not UtilClient.is_unset(request.api_id):
|
|
659
|
-
query['ApiId'] = request.api_id
|
|
660
646
|
if not UtilClient.is_unset(request.custom_agent_id):
|
|
661
647
|
query['CustomAgentId'] = request.custom_agent_id
|
|
662
648
|
req = open_api_models.OpenApiRequest(
|
|
@@ -692,8 +678,6 @@ class Client(OpenApiClient):
|
|
|
692
678
|
"""
|
|
693
679
|
UtilClient.validate_model(request)
|
|
694
680
|
query = {}
|
|
695
|
-
if not UtilClient.is_unset(request.api_id):
|
|
696
|
-
query['ApiId'] = request.api_id
|
|
697
681
|
if not UtilClient.is_unset(request.custom_agent_id):
|
|
698
682
|
query['CustomAgentId'] = request.custom_agent_id
|
|
699
683
|
req = open_api_models.OpenApiRequest(
|
|
@@ -1683,8 +1667,6 @@ class Client(OpenApiClient):
|
|
|
1683
1667
|
"""
|
|
1684
1668
|
UtilClient.validate_model(request)
|
|
1685
1669
|
query = {}
|
|
1686
|
-
if not UtilClient.is_unset(request.api_id):
|
|
1687
|
-
query['ApiId'] = request.api_id
|
|
1688
1670
|
if not UtilClient.is_unset(request.last_id):
|
|
1689
1671
|
query['LastId'] = request.last_id
|
|
1690
1672
|
if not UtilClient.is_unset(request.limit):
|
|
@@ -1726,8 +1708,6 @@ class Client(OpenApiClient):
|
|
|
1726
1708
|
"""
|
|
1727
1709
|
UtilClient.validate_model(request)
|
|
1728
1710
|
query = {}
|
|
1729
|
-
if not UtilClient.is_unset(request.api_id):
|
|
1730
|
-
query['ApiId'] = request.api_id
|
|
1731
1711
|
if not UtilClient.is_unset(request.last_id):
|
|
1732
1712
|
query['LastId'] = request.last_id
|
|
1733
1713
|
if not UtilClient.is_unset(request.limit):
|
|
@@ -1795,8 +1775,6 @@ class Client(OpenApiClient):
|
|
|
1795
1775
|
"""
|
|
1796
1776
|
UtilClient.validate_model(request)
|
|
1797
1777
|
query = {}
|
|
1798
|
-
if not UtilClient.is_unset(request.api_id):
|
|
1799
|
-
query['ApiId'] = request.api_id
|
|
1800
1778
|
if not UtilClient.is_unset(request.custom_agent_id):
|
|
1801
1779
|
query['CustomAgentId'] = request.custom_agent_id
|
|
1802
1780
|
req = open_api_models.OpenApiRequest(
|
|
@@ -1832,8 +1810,6 @@ class Client(OpenApiClient):
|
|
|
1832
1810
|
"""
|
|
1833
1811
|
UtilClient.validate_model(request)
|
|
1834
1812
|
query = {}
|
|
1835
|
-
if not UtilClient.is_unset(request.api_id):
|
|
1836
|
-
query['ApiId'] = request.api_id
|
|
1837
1813
|
if not UtilClient.is_unset(request.custom_agent_id):
|
|
1838
1814
|
query['CustomAgentId'] = request.custom_agent_id
|
|
1839
1815
|
req = open_api_models.OpenApiRequest(
|
|
@@ -1895,8 +1871,6 @@ class Client(OpenApiClient):
|
|
|
1895
1871
|
"""
|
|
1896
1872
|
UtilClient.validate_model(request)
|
|
1897
1873
|
query = {}
|
|
1898
|
-
if not UtilClient.is_unset(request.api_id):
|
|
1899
|
-
query['ApiId'] = request.api_id
|
|
1900
1874
|
if not UtilClient.is_unset(request.conversation_id):
|
|
1901
1875
|
query['ConversationId'] = request.conversation_id
|
|
1902
1876
|
if not UtilClient.is_unset(request.first_id):
|
|
@@ -1936,8 +1910,6 @@ class Client(OpenApiClient):
|
|
|
1936
1910
|
"""
|
|
1937
1911
|
UtilClient.validate_model(request)
|
|
1938
1912
|
query = {}
|
|
1939
|
-
if not UtilClient.is_unset(request.api_id):
|
|
1940
|
-
query['ApiId'] = request.api_id
|
|
1941
1913
|
if not UtilClient.is_unset(request.conversation_id):
|
|
1942
1914
|
query['ConversationId'] = request.conversation_id
|
|
1943
1915
|
if not UtilClient.is_unset(request.first_id):
|
|
@@ -2003,8 +1975,6 @@ class Client(OpenApiClient):
|
|
|
2003
1975
|
"""
|
|
2004
1976
|
UtilClient.validate_model(request)
|
|
2005
1977
|
query = {}
|
|
2006
|
-
if not UtilClient.is_unset(request.api_id):
|
|
2007
|
-
query['ApiId'] = request.api_id
|
|
2008
1978
|
if not UtilClient.is_unset(request.page_number):
|
|
2009
1979
|
query['PageNumber'] = request.page_number
|
|
2010
1980
|
if not UtilClient.is_unset(request.page_size):
|
|
@@ -2042,8 +2012,6 @@ class Client(OpenApiClient):
|
|
|
2042
2012
|
"""
|
|
2043
2013
|
UtilClient.validate_model(request)
|
|
2044
2014
|
query = {}
|
|
2045
|
-
if not UtilClient.is_unset(request.api_id):
|
|
2046
|
-
query['ApiId'] = request.api_id
|
|
2047
2015
|
if not UtilClient.is_unset(request.page_number):
|
|
2048
2016
|
query['PageNumber'] = request.page_number
|
|
2049
2017
|
if not UtilClient.is_unset(request.page_size):
|
|
@@ -2095,7 +2063,6 @@ class Client(OpenApiClient):
|
|
|
2095
2063
|
|
|
2096
2064
|
def list_custom_agent_tools_with_options(
|
|
2097
2065
|
self,
|
|
2098
|
-
request: rds_ai_20250507_models.ListCustomAgentToolsRequest,
|
|
2099
2066
|
runtime: util_models.RuntimeOptions,
|
|
2100
2067
|
) -> rds_ai_20250507_models.ListCustomAgentToolsResponse:
|
|
2101
2068
|
"""
|
|
@@ -2105,13 +2072,7 @@ class Client(OpenApiClient):
|
|
|
2105
2072
|
@param runtime: runtime options for this request RuntimeOptions
|
|
2106
2073
|
@return: ListCustomAgentToolsResponse
|
|
2107
2074
|
"""
|
|
2108
|
-
|
|
2109
|
-
query = {}
|
|
2110
|
-
if not UtilClient.is_unset(request.api_id):
|
|
2111
|
-
query['ApiId'] = request.api_id
|
|
2112
|
-
req = open_api_models.OpenApiRequest(
|
|
2113
|
-
query=OpenApiUtilClient.query(query)
|
|
2114
|
-
)
|
|
2075
|
+
req = open_api_models.OpenApiRequest()
|
|
2115
2076
|
params = open_api_models.Params(
|
|
2116
2077
|
action='ListCustomAgentTools',
|
|
2117
2078
|
version='2025-05-07',
|
|
@@ -2130,7 +2091,6 @@ class Client(OpenApiClient):
|
|
|
2130
2091
|
|
|
2131
2092
|
async def list_custom_agent_tools_with_options_async(
|
|
2132
2093
|
self,
|
|
2133
|
-
request: rds_ai_20250507_models.ListCustomAgentToolsRequest,
|
|
2134
2094
|
runtime: util_models.RuntimeOptions,
|
|
2135
2095
|
) -> rds_ai_20250507_models.ListCustomAgentToolsResponse:
|
|
2136
2096
|
"""
|
|
@@ -2140,13 +2100,7 @@ class Client(OpenApiClient):
|
|
|
2140
2100
|
@param runtime: runtime options for this request RuntimeOptions
|
|
2141
2101
|
@return: ListCustomAgentToolsResponse
|
|
2142
2102
|
"""
|
|
2143
|
-
|
|
2144
|
-
query = {}
|
|
2145
|
-
if not UtilClient.is_unset(request.api_id):
|
|
2146
|
-
query['ApiId'] = request.api_id
|
|
2147
|
-
req = open_api_models.OpenApiRequest(
|
|
2148
|
-
query=OpenApiUtilClient.query(query)
|
|
2149
|
-
)
|
|
2103
|
+
req = open_api_models.OpenApiRequest()
|
|
2150
2104
|
params = open_api_models.Params(
|
|
2151
2105
|
action='ListCustomAgentTools',
|
|
2152
2106
|
version='2025-05-07',
|
|
@@ -2163,31 +2117,23 @@ class Client(OpenApiClient):
|
|
|
2163
2117
|
await self.call_api_async(params, req, runtime)
|
|
2164
2118
|
)
|
|
2165
2119
|
|
|
2166
|
-
def list_custom_agent_tools(
|
|
2167
|
-
self,
|
|
2168
|
-
request: rds_ai_20250507_models.ListCustomAgentToolsRequest,
|
|
2169
|
-
) -> rds_ai_20250507_models.ListCustomAgentToolsResponse:
|
|
2120
|
+
def list_custom_agent_tools(self) -> rds_ai_20250507_models.ListCustomAgentToolsResponse:
|
|
2170
2121
|
"""
|
|
2171
2122
|
@summary 获取专属Agent可用工具
|
|
2172
2123
|
|
|
2173
|
-
@param request: ListCustomAgentToolsRequest
|
|
2174
2124
|
@return: ListCustomAgentToolsResponse
|
|
2175
2125
|
"""
|
|
2176
2126
|
runtime = util_models.RuntimeOptions()
|
|
2177
|
-
return self.list_custom_agent_tools_with_options(
|
|
2127
|
+
return self.list_custom_agent_tools_with_options(runtime)
|
|
2178
2128
|
|
|
2179
|
-
async def list_custom_agent_tools_async(
|
|
2180
|
-
self,
|
|
2181
|
-
request: rds_ai_20250507_models.ListCustomAgentToolsRequest,
|
|
2182
|
-
) -> rds_ai_20250507_models.ListCustomAgentToolsResponse:
|
|
2129
|
+
async def list_custom_agent_tools_async(self) -> rds_ai_20250507_models.ListCustomAgentToolsResponse:
|
|
2183
2130
|
"""
|
|
2184
2131
|
@summary 获取专属Agent可用工具
|
|
2185
2132
|
|
|
2186
|
-
@param request: ListCustomAgentToolsRequest
|
|
2187
2133
|
@return: ListCustomAgentToolsResponse
|
|
2188
2134
|
"""
|
|
2189
2135
|
runtime = util_models.RuntimeOptions()
|
|
2190
|
-
return await self.list_custom_agent_tools_with_options_async(
|
|
2136
|
+
return await self.list_custom_agent_tools_with_options_async(runtime)
|
|
2191
2137
|
|
|
2192
2138
|
def modify_instance_auth_config_with_options(
|
|
2193
2139
|
self,
|
|
@@ -2895,8 +2841,6 @@ class Client(OpenApiClient):
|
|
|
2895
2841
|
"""
|
|
2896
2842
|
UtilClient.validate_model(request)
|
|
2897
2843
|
query = {}
|
|
2898
|
-
if not UtilClient.is_unset(request.api_id):
|
|
2899
|
-
query['ApiId'] = request.api_id
|
|
2900
2844
|
if not UtilClient.is_unset(request.content):
|
|
2901
2845
|
query['Content'] = request.content
|
|
2902
2846
|
if not UtilClient.is_unset(request.message_id):
|
|
@@ -2936,8 +2880,6 @@ class Client(OpenApiClient):
|
|
|
2936
2880
|
"""
|
|
2937
2881
|
UtilClient.validate_model(request)
|
|
2938
2882
|
query = {}
|
|
2939
|
-
if not UtilClient.is_unset(request.api_id):
|
|
2940
|
-
query['ApiId'] = request.api_id
|
|
2941
2883
|
if not UtilClient.is_unset(request.content):
|
|
2942
2884
|
query['Content'] = request.content
|
|
2943
2885
|
if not UtilClient.is_unset(request.message_id):
|
|
@@ -3415,8 +3357,6 @@ class Client(OpenApiClient):
|
|
|
3415
3357
|
if not UtilClient.is_unset(tmp_req.tools):
|
|
3416
3358
|
request.tools_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.tools, 'Tools', 'json')
|
|
3417
3359
|
query = {}
|
|
3418
|
-
if not UtilClient.is_unset(request.api_id):
|
|
3419
|
-
query['ApiId'] = request.api_id
|
|
3420
3360
|
if not UtilClient.is_unset(request.custom_agent_id):
|
|
3421
3361
|
query['CustomAgentId'] = request.custom_agent_id
|
|
3422
3362
|
if not UtilClient.is_unset(request.enable_tools):
|
|
@@ -3464,8 +3404,6 @@ class Client(OpenApiClient):
|
|
|
3464
3404
|
if not UtilClient.is_unset(tmp_req.tools):
|
|
3465
3405
|
request.tools_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.tools, 'Tools', 'json')
|
|
3466
3406
|
query = {}
|
|
3467
|
-
if not UtilClient.is_unset(request.api_id):
|
|
3468
|
-
query['ApiId'] = request.api_id
|
|
3469
3407
|
if not UtilClient.is_unset(request.custom_agent_id):
|
|
3470
3408
|
query['CustomAgentId'] = request.custom_agent_id
|
|
3471
3409
|
if not UtilClient.is_unset(request.enable_tools):
|
|
@@ -52,14 +52,11 @@ class ChatMessagesRequestInputs(TeaModel):
|
|
|
52
52
|
class ChatMessagesRequest(TeaModel):
|
|
53
53
|
def __init__(
|
|
54
54
|
self,
|
|
55
|
-
api_id: str = None,
|
|
56
55
|
conversation_id: str = None,
|
|
57
56
|
inputs: ChatMessagesRequestInputs = None,
|
|
58
57
|
parent_message_id: str = None,
|
|
59
58
|
query: str = None,
|
|
60
59
|
):
|
|
61
|
-
# This parameter is required.
|
|
62
|
-
self.api_id = api_id
|
|
63
60
|
self.conversation_id = conversation_id
|
|
64
61
|
self.inputs = inputs
|
|
65
62
|
self.parent_message_id = parent_message_id
|
|
@@ -76,8 +73,6 @@ class ChatMessagesRequest(TeaModel):
|
|
|
76
73
|
return _map
|
|
77
74
|
|
|
78
75
|
result = dict()
|
|
79
|
-
if self.api_id is not None:
|
|
80
|
-
result['ApiId'] = self.api_id
|
|
81
76
|
if self.conversation_id is not None:
|
|
82
77
|
result['ConversationId'] = self.conversation_id
|
|
83
78
|
if self.inputs is not None:
|
|
@@ -90,8 +85,6 @@ class ChatMessagesRequest(TeaModel):
|
|
|
90
85
|
|
|
91
86
|
def from_map(self, m: dict = None):
|
|
92
87
|
m = m or dict()
|
|
93
|
-
if m.get('ApiId') is not None:
|
|
94
|
-
self.api_id = m.get('ApiId')
|
|
95
88
|
if m.get('ConversationId') is not None:
|
|
96
89
|
self.conversation_id = m.get('ConversationId')
|
|
97
90
|
if m.get('Inputs') is not None:
|
|
@@ -107,14 +100,11 @@ class ChatMessagesRequest(TeaModel):
|
|
|
107
100
|
class ChatMessagesShrinkRequest(TeaModel):
|
|
108
101
|
def __init__(
|
|
109
102
|
self,
|
|
110
|
-
api_id: str = None,
|
|
111
103
|
conversation_id: str = None,
|
|
112
104
|
inputs_shrink: str = None,
|
|
113
105
|
parent_message_id: str = None,
|
|
114
106
|
query: str = None,
|
|
115
107
|
):
|
|
116
|
-
# This parameter is required.
|
|
117
|
-
self.api_id = api_id
|
|
118
108
|
self.conversation_id = conversation_id
|
|
119
109
|
self.inputs_shrink = inputs_shrink
|
|
120
110
|
self.parent_message_id = parent_message_id
|
|
@@ -130,8 +120,6 @@ class ChatMessagesShrinkRequest(TeaModel):
|
|
|
130
120
|
return _map
|
|
131
121
|
|
|
132
122
|
result = dict()
|
|
133
|
-
if self.api_id is not None:
|
|
134
|
-
result['ApiId'] = self.api_id
|
|
135
123
|
if self.conversation_id is not None:
|
|
136
124
|
result['ConversationId'] = self.conversation_id
|
|
137
125
|
if self.inputs_shrink is not None:
|
|
@@ -144,8 +132,6 @@ class ChatMessagesShrinkRequest(TeaModel):
|
|
|
144
132
|
|
|
145
133
|
def from_map(self, m: dict = None):
|
|
146
134
|
m = m or dict()
|
|
147
|
-
if m.get('ApiId') is not None:
|
|
148
|
-
self.api_id = m.get('ApiId')
|
|
149
135
|
if m.get('ConversationId') is not None:
|
|
150
136
|
self.conversation_id = m.get('ConversationId')
|
|
151
137
|
if m.get('Inputs') is not None:
|
|
@@ -276,10 +262,8 @@ class ChatMessagesResponse(TeaModel):
|
|
|
276
262
|
class ChatMessagesTaskStopRequest(TeaModel):
|
|
277
263
|
def __init__(
|
|
278
264
|
self,
|
|
279
|
-
api_id: str = None,
|
|
280
265
|
task_id: str = None,
|
|
281
266
|
):
|
|
282
|
-
self.api_id = api_id
|
|
283
267
|
# This parameter is required.
|
|
284
268
|
self.task_id = task_id
|
|
285
269
|
|
|
@@ -292,16 +276,12 @@ class ChatMessagesTaskStopRequest(TeaModel):
|
|
|
292
276
|
return _map
|
|
293
277
|
|
|
294
278
|
result = dict()
|
|
295
|
-
if self.api_id is not None:
|
|
296
|
-
result['ApiId'] = self.api_id
|
|
297
279
|
if self.task_id is not None:
|
|
298
280
|
result['TaskId'] = self.task_id
|
|
299
281
|
return result
|
|
300
282
|
|
|
301
283
|
def from_map(self, m: dict = None):
|
|
302
284
|
m = m or dict()
|
|
303
|
-
if m.get('ApiId') is not None:
|
|
304
|
-
self.api_id = m.get('ApiId')
|
|
305
285
|
if m.get('TaskId') is not None:
|
|
306
286
|
self.task_id = m.get('TaskId')
|
|
307
287
|
return self
|
|
@@ -709,13 +689,11 @@ class CreateAppInstanceResponse(TeaModel):
|
|
|
709
689
|
class CreateCustomAgentRequest(TeaModel):
|
|
710
690
|
def __init__(
|
|
711
691
|
self,
|
|
712
|
-
api_id: str = None,
|
|
713
692
|
enable_tools: bool = None,
|
|
714
693
|
name: str = None,
|
|
715
694
|
system_prompt: str = None,
|
|
716
695
|
tools: List[str] = None,
|
|
717
696
|
):
|
|
718
|
-
self.api_id = api_id
|
|
719
697
|
self.enable_tools = enable_tools
|
|
720
698
|
self.name = name
|
|
721
699
|
# This parameter is required.
|
|
@@ -731,8 +709,6 @@ class CreateCustomAgentRequest(TeaModel):
|
|
|
731
709
|
return _map
|
|
732
710
|
|
|
733
711
|
result = dict()
|
|
734
|
-
if self.api_id is not None:
|
|
735
|
-
result['ApiId'] = self.api_id
|
|
736
712
|
if self.enable_tools is not None:
|
|
737
713
|
result['EnableTools'] = self.enable_tools
|
|
738
714
|
if self.name is not None:
|
|
@@ -745,8 +721,6 @@ class CreateCustomAgentRequest(TeaModel):
|
|
|
745
721
|
|
|
746
722
|
def from_map(self, m: dict = None):
|
|
747
723
|
m = m or dict()
|
|
748
|
-
if m.get('ApiId') is not None:
|
|
749
|
-
self.api_id = m.get('ApiId')
|
|
750
724
|
if m.get('EnableTools') is not None:
|
|
751
725
|
self.enable_tools = m.get('EnableTools')
|
|
752
726
|
if m.get('Name') is not None:
|
|
@@ -761,13 +735,11 @@ class CreateCustomAgentRequest(TeaModel):
|
|
|
761
735
|
class CreateCustomAgentShrinkRequest(TeaModel):
|
|
762
736
|
def __init__(
|
|
763
737
|
self,
|
|
764
|
-
api_id: str = None,
|
|
765
738
|
enable_tools: bool = None,
|
|
766
739
|
name: str = None,
|
|
767
740
|
system_prompt: str = None,
|
|
768
741
|
tools_shrink: str = None,
|
|
769
742
|
):
|
|
770
|
-
self.api_id = api_id
|
|
771
743
|
self.enable_tools = enable_tools
|
|
772
744
|
self.name = name
|
|
773
745
|
# This parameter is required.
|
|
@@ -783,8 +755,6 @@ class CreateCustomAgentShrinkRequest(TeaModel):
|
|
|
783
755
|
return _map
|
|
784
756
|
|
|
785
757
|
result = dict()
|
|
786
|
-
if self.api_id is not None:
|
|
787
|
-
result['ApiId'] = self.api_id
|
|
788
758
|
if self.enable_tools is not None:
|
|
789
759
|
result['EnableTools'] = self.enable_tools
|
|
790
760
|
if self.name is not None:
|
|
@@ -797,8 +767,6 @@ class CreateCustomAgentShrinkRequest(TeaModel):
|
|
|
797
767
|
|
|
798
768
|
def from_map(self, m: dict = None):
|
|
799
769
|
m = m or dict()
|
|
800
|
-
if m.get('ApiId') is not None:
|
|
801
|
-
self.api_id = m.get('ApiId')
|
|
802
770
|
if m.get('EnableTools') is not None:
|
|
803
771
|
self.enable_tools = m.get('EnableTools')
|
|
804
772
|
if m.get('Name') is not None:
|
|
@@ -1031,10 +999,8 @@ class DeleteAppInstanceResponse(TeaModel):
|
|
|
1031
999
|
class DeleteCustomAgentRequest(TeaModel):
|
|
1032
1000
|
def __init__(
|
|
1033
1001
|
self,
|
|
1034
|
-
api_id: str = None,
|
|
1035
1002
|
custom_agent_id: str = None,
|
|
1036
1003
|
):
|
|
1037
|
-
self.api_id = api_id
|
|
1038
1004
|
# AgentId。
|
|
1039
1005
|
self.custom_agent_id = custom_agent_id
|
|
1040
1006
|
|
|
@@ -1047,16 +1013,12 @@ class DeleteCustomAgentRequest(TeaModel):
|
|
|
1047
1013
|
return _map
|
|
1048
1014
|
|
|
1049
1015
|
result = dict()
|
|
1050
|
-
if self.api_id is not None:
|
|
1051
|
-
result['ApiId'] = self.api_id
|
|
1052
1016
|
if self.custom_agent_id is not None:
|
|
1053
1017
|
result['CustomAgentId'] = self.custom_agent_id
|
|
1054
1018
|
return result
|
|
1055
1019
|
|
|
1056
1020
|
def from_map(self, m: dict = None):
|
|
1057
1021
|
m = m or dict()
|
|
1058
|
-
if m.get('ApiId') is not None:
|
|
1059
|
-
self.api_id = m.get('ApiId')
|
|
1060
1022
|
if m.get('CustomAgentId') is not None:
|
|
1061
1023
|
self.custom_agent_id = m.get('CustomAgentId')
|
|
1062
1024
|
return self
|
|
@@ -2774,13 +2736,11 @@ class DescribeInstanceStorageConfigResponse(TeaModel):
|
|
|
2774
2736
|
class GetConversationsRequest(TeaModel):
|
|
2775
2737
|
def __init__(
|
|
2776
2738
|
self,
|
|
2777
|
-
api_id: str = None,
|
|
2778
2739
|
last_id: str = None,
|
|
2779
2740
|
limit: str = None,
|
|
2780
2741
|
pinned: str = None,
|
|
2781
2742
|
sort_by: str = None,
|
|
2782
2743
|
):
|
|
2783
|
-
self.api_id = api_id
|
|
2784
2744
|
self.last_id = last_id
|
|
2785
2745
|
self.limit = limit
|
|
2786
2746
|
self.pinned = pinned
|
|
@@ -2795,8 +2755,6 @@ class GetConversationsRequest(TeaModel):
|
|
|
2795
2755
|
return _map
|
|
2796
2756
|
|
|
2797
2757
|
result = dict()
|
|
2798
|
-
if self.api_id is not None:
|
|
2799
|
-
result['ApiId'] = self.api_id
|
|
2800
2758
|
if self.last_id is not None:
|
|
2801
2759
|
result['LastId'] = self.last_id
|
|
2802
2760
|
if self.limit is not None:
|
|
@@ -2809,8 +2767,6 @@ class GetConversationsRequest(TeaModel):
|
|
|
2809
2767
|
|
|
2810
2768
|
def from_map(self, m: dict = None):
|
|
2811
2769
|
m = m or dict()
|
|
2812
|
-
if m.get('ApiId') is not None:
|
|
2813
|
-
self.api_id = m.get('ApiId')
|
|
2814
2770
|
if m.get('LastId') is not None:
|
|
2815
2771
|
self.last_id = m.get('LastId')
|
|
2816
2772
|
if m.get('Limit') is not None:
|
|
@@ -2964,10 +2920,8 @@ class GetConversationsResponse(TeaModel):
|
|
|
2964
2920
|
class GetCustomAgentRequest(TeaModel):
|
|
2965
2921
|
def __init__(
|
|
2966
2922
|
self,
|
|
2967
|
-
api_id: str = None,
|
|
2968
2923
|
custom_agent_id: str = None,
|
|
2969
2924
|
):
|
|
2970
|
-
self.api_id = api_id
|
|
2971
2925
|
self.custom_agent_id = custom_agent_id
|
|
2972
2926
|
|
|
2973
2927
|
def validate(self):
|
|
@@ -2979,16 +2933,12 @@ class GetCustomAgentRequest(TeaModel):
|
|
|
2979
2933
|
return _map
|
|
2980
2934
|
|
|
2981
2935
|
result = dict()
|
|
2982
|
-
if self.api_id is not None:
|
|
2983
|
-
result['ApiId'] = self.api_id
|
|
2984
2936
|
if self.custom_agent_id is not None:
|
|
2985
2937
|
result['CustomAgentId'] = self.custom_agent_id
|
|
2986
2938
|
return result
|
|
2987
2939
|
|
|
2988
2940
|
def from_map(self, m: dict = None):
|
|
2989
2941
|
m = m or dict()
|
|
2990
|
-
if m.get('ApiId') is not None:
|
|
2991
|
-
self.api_id = m.get('ApiId')
|
|
2992
2942
|
if m.get('CustomAgentId') is not None:
|
|
2993
2943
|
self.custom_agent_id = m.get('CustomAgentId')
|
|
2994
2944
|
return self
|
|
@@ -3107,12 +3057,10 @@ class GetCustomAgentResponse(TeaModel):
|
|
|
3107
3057
|
class GetMessagesRequest(TeaModel):
|
|
3108
3058
|
def __init__(
|
|
3109
3059
|
self,
|
|
3110
|
-
api_id: str = None,
|
|
3111
3060
|
conversation_id: str = None,
|
|
3112
3061
|
first_id: str = None,
|
|
3113
3062
|
limit: int = None,
|
|
3114
3063
|
):
|
|
3115
|
-
self.api_id = api_id
|
|
3116
3064
|
self.conversation_id = conversation_id
|
|
3117
3065
|
self.first_id = first_id
|
|
3118
3066
|
self.limit = limit
|
|
@@ -3126,8 +3074,6 @@ class GetMessagesRequest(TeaModel):
|
|
|
3126
3074
|
return _map
|
|
3127
3075
|
|
|
3128
3076
|
result = dict()
|
|
3129
|
-
if self.api_id is not None:
|
|
3130
|
-
result['ApiId'] = self.api_id
|
|
3131
3077
|
if self.conversation_id is not None:
|
|
3132
3078
|
result['ConversationId'] = self.conversation_id
|
|
3133
3079
|
if self.first_id is not None:
|
|
@@ -3138,8 +3084,6 @@ class GetMessagesRequest(TeaModel):
|
|
|
3138
3084
|
|
|
3139
3085
|
def from_map(self, m: dict = None):
|
|
3140
3086
|
m = m or dict()
|
|
3141
|
-
if m.get('ApiId') is not None:
|
|
3142
|
-
self.api_id = m.get('ApiId')
|
|
3143
3087
|
if m.get('ConversationId') is not None:
|
|
3144
3088
|
self.conversation_id = m.get('ConversationId')
|
|
3145
3089
|
if m.get('FirstId') is not None:
|
|
@@ -3309,11 +3253,9 @@ class GetMessagesResponse(TeaModel):
|
|
|
3309
3253
|
class ListCustomAgentRequest(TeaModel):
|
|
3310
3254
|
def __init__(
|
|
3311
3255
|
self,
|
|
3312
|
-
api_id: str = None,
|
|
3313
3256
|
page_number: int = None,
|
|
3314
3257
|
page_size: int = None,
|
|
3315
3258
|
):
|
|
3316
|
-
self.api_id = api_id
|
|
3317
3259
|
self.page_number = page_number
|
|
3318
3260
|
self.page_size = page_size
|
|
3319
3261
|
|
|
@@ -3326,8 +3268,6 @@ class ListCustomAgentRequest(TeaModel):
|
|
|
3326
3268
|
return _map
|
|
3327
3269
|
|
|
3328
3270
|
result = dict()
|
|
3329
|
-
if self.api_id is not None:
|
|
3330
|
-
result['ApiId'] = self.api_id
|
|
3331
3271
|
if self.page_number is not None:
|
|
3332
3272
|
result['PageNumber'] = self.page_number
|
|
3333
3273
|
if self.page_size is not None:
|
|
@@ -3336,8 +3276,6 @@ class ListCustomAgentRequest(TeaModel):
|
|
|
3336
3276
|
|
|
3337
3277
|
def from_map(self, m: dict = None):
|
|
3338
3278
|
m = m or dict()
|
|
3339
|
-
if m.get('ApiId') is not None:
|
|
3340
|
-
self.api_id = m.get('ApiId')
|
|
3341
3279
|
if m.get('PageNumber') is not None:
|
|
3342
3280
|
self.page_number = m.get('PageNumber')
|
|
3343
3281
|
if m.get('PageSize') is not None:
|
|
@@ -3509,33 +3447,6 @@ class ListCustomAgentResponse(TeaModel):
|
|
|
3509
3447
|
return self
|
|
3510
3448
|
|
|
3511
3449
|
|
|
3512
|
-
class ListCustomAgentToolsRequest(TeaModel):
|
|
3513
|
-
def __init__(
|
|
3514
|
-
self,
|
|
3515
|
-
api_id: str = None,
|
|
3516
|
-
):
|
|
3517
|
-
self.api_id = api_id
|
|
3518
|
-
|
|
3519
|
-
def validate(self):
|
|
3520
|
-
pass
|
|
3521
|
-
|
|
3522
|
-
def to_map(self):
|
|
3523
|
-
_map = super().to_map()
|
|
3524
|
-
if _map is not None:
|
|
3525
|
-
return _map
|
|
3526
|
-
|
|
3527
|
-
result = dict()
|
|
3528
|
-
if self.api_id is not None:
|
|
3529
|
-
result['ApiId'] = self.api_id
|
|
3530
|
-
return result
|
|
3531
|
-
|
|
3532
|
-
def from_map(self, m: dict = None):
|
|
3533
|
-
m = m or dict()
|
|
3534
|
-
if m.get('ApiId') is not None:
|
|
3535
|
-
self.api_id = m.get('ApiId')
|
|
3536
|
-
return self
|
|
3537
|
-
|
|
3538
|
-
|
|
3539
3450
|
class ListCustomAgentToolsResponseBodyData(TeaModel):
|
|
3540
3451
|
def __init__(
|
|
3541
3452
|
self,
|
|
@@ -4688,12 +4599,10 @@ class ModifyInstanceStorageConfigResponse(TeaModel):
|
|
|
4688
4599
|
class ModifyMessagesFeedbacksRequest(TeaModel):
|
|
4689
4600
|
def __init__(
|
|
4690
4601
|
self,
|
|
4691
|
-
api_id: str = None,
|
|
4692
4602
|
content: str = None,
|
|
4693
4603
|
message_id: str = None,
|
|
4694
4604
|
rating: str = None,
|
|
4695
4605
|
):
|
|
4696
|
-
self.api_id = api_id
|
|
4697
4606
|
self.content = content
|
|
4698
4607
|
self.message_id = message_id
|
|
4699
4608
|
self.rating = rating
|
|
@@ -4707,8 +4616,6 @@ class ModifyMessagesFeedbacksRequest(TeaModel):
|
|
|
4707
4616
|
return _map
|
|
4708
4617
|
|
|
4709
4618
|
result = dict()
|
|
4710
|
-
if self.api_id is not None:
|
|
4711
|
-
result['ApiId'] = self.api_id
|
|
4712
4619
|
if self.content is not None:
|
|
4713
4620
|
result['Content'] = self.content
|
|
4714
4621
|
if self.message_id is not None:
|
|
@@ -4719,8 +4626,6 @@ class ModifyMessagesFeedbacksRequest(TeaModel):
|
|
|
4719
4626
|
|
|
4720
4627
|
def from_map(self, m: dict = None):
|
|
4721
4628
|
m = m or dict()
|
|
4722
|
-
if m.get('ApiId') is not None:
|
|
4723
|
-
self.api_id = m.get('ApiId')
|
|
4724
4629
|
if m.get('Content') is not None:
|
|
4725
4630
|
self.content = m.get('Content')
|
|
4726
4631
|
if m.get('MessageId') is not None:
|
|
@@ -5250,15 +5155,12 @@ class StopInstanceResponse(TeaModel):
|
|
|
5250
5155
|
class UpdateCustomAgentRequest(TeaModel):
|
|
5251
5156
|
def __init__(
|
|
5252
5157
|
self,
|
|
5253
|
-
api_id: str = None,
|
|
5254
5158
|
custom_agent_id: str = None,
|
|
5255
5159
|
enable_tools: bool = None,
|
|
5256
5160
|
name: str = None,
|
|
5257
5161
|
system_prompt: str = None,
|
|
5258
5162
|
tools: List[str] = None,
|
|
5259
5163
|
):
|
|
5260
|
-
# This parameter is required.
|
|
5261
|
-
self.api_id = api_id
|
|
5262
5164
|
# AgentId。
|
|
5263
5165
|
#
|
|
5264
5166
|
# This parameter is required.
|
|
@@ -5277,8 +5179,6 @@ class UpdateCustomAgentRequest(TeaModel):
|
|
|
5277
5179
|
return _map
|
|
5278
5180
|
|
|
5279
5181
|
result = dict()
|
|
5280
|
-
if self.api_id is not None:
|
|
5281
|
-
result['ApiId'] = self.api_id
|
|
5282
5182
|
if self.custom_agent_id is not None:
|
|
5283
5183
|
result['CustomAgentId'] = self.custom_agent_id
|
|
5284
5184
|
if self.enable_tools is not None:
|
|
@@ -5293,8 +5193,6 @@ class UpdateCustomAgentRequest(TeaModel):
|
|
|
5293
5193
|
|
|
5294
5194
|
def from_map(self, m: dict = None):
|
|
5295
5195
|
m = m or dict()
|
|
5296
|
-
if m.get('ApiId') is not None:
|
|
5297
|
-
self.api_id = m.get('ApiId')
|
|
5298
5196
|
if m.get('CustomAgentId') is not None:
|
|
5299
5197
|
self.custom_agent_id = m.get('CustomAgentId')
|
|
5300
5198
|
if m.get('EnableTools') is not None:
|
|
@@ -5311,15 +5209,12 @@ class UpdateCustomAgentRequest(TeaModel):
|
|
|
5311
5209
|
class UpdateCustomAgentShrinkRequest(TeaModel):
|
|
5312
5210
|
def __init__(
|
|
5313
5211
|
self,
|
|
5314
|
-
api_id: str = None,
|
|
5315
5212
|
custom_agent_id: str = None,
|
|
5316
5213
|
enable_tools: bool = None,
|
|
5317
5214
|
name: str = None,
|
|
5318
5215
|
system_prompt: str = None,
|
|
5319
5216
|
tools_shrink: str = None,
|
|
5320
5217
|
):
|
|
5321
|
-
# This parameter is required.
|
|
5322
|
-
self.api_id = api_id
|
|
5323
5218
|
# AgentId。
|
|
5324
5219
|
#
|
|
5325
5220
|
# This parameter is required.
|
|
@@ -5338,8 +5233,6 @@ class UpdateCustomAgentShrinkRequest(TeaModel):
|
|
|
5338
5233
|
return _map
|
|
5339
5234
|
|
|
5340
5235
|
result = dict()
|
|
5341
|
-
if self.api_id is not None:
|
|
5342
|
-
result['ApiId'] = self.api_id
|
|
5343
5236
|
if self.custom_agent_id is not None:
|
|
5344
5237
|
result['CustomAgentId'] = self.custom_agent_id
|
|
5345
5238
|
if self.enable_tools is not None:
|
|
@@ -5354,8 +5247,6 @@ class UpdateCustomAgentShrinkRequest(TeaModel):
|
|
|
5354
5247
|
|
|
5355
5248
|
def from_map(self, m: dict = None):
|
|
5356
5249
|
m = m or dict()
|
|
5357
|
-
if m.get('ApiId') is not None:
|
|
5358
|
-
self.api_id = m.get('ApiId')
|
|
5359
5250
|
if m.get('CustomAgentId') is not None:
|
|
5360
5251
|
self.custom_agent_id = m.get('CustomAgentId')
|
|
5361
5252
|
if m.get('EnableTools') is not None:
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
alibabacloud_rdsai20250507/__init__.py,sha256=8sGE31KO-DzdioQZ2J7tZ-GG2VwZjYHpfIX2_sBl6H0,21
|
|
2
|
+
alibabacloud_rdsai20250507/client.py,sha256=nLva8trUkvqPI0Fddck_b8Vw8omYVCNIcTXt-Odsmek,133676
|
|
3
|
+
alibabacloud_rdsai20250507/models.py,sha256=Y7nbdrA4l0YsC9h4uOB7ifpyZLF_LqLEhr0ZXTw0f3I,166243
|
|
4
|
+
alibabacloud_rdsai20250507-2.0.0.dist-info/LICENSE,sha256=0CFItL6bHvxqS44T6vlLoW2R4Zaic304OO3WxN0oXF0,600
|
|
5
|
+
alibabacloud_rdsai20250507-2.0.0.dist-info/METADATA,sha256=QLSty6Gikpr6A6lWMvpY1hoyIFK7jw5jcb3ZzGcf51s,2326
|
|
6
|
+
alibabacloud_rdsai20250507-2.0.0.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
|
|
7
|
+
alibabacloud_rdsai20250507-2.0.0.dist-info/top_level.txt,sha256=cWU8Yl8TZf4DX9PMY8FBroXbK3cKNtdwPS4J0woRVbY,27
|
|
8
|
+
alibabacloud_rdsai20250507-2.0.0.dist-info/RECORD,,
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
alibabacloud_rdsai20250507/__init__.py,sha256=XyInpe-Rlf1hgwkiRXtR0uPYm4ZwRFpgchjcpZZ9Pms,21
|
|
2
|
-
alibabacloud_rdsai20250507/client.py,sha256=Q0SWyRa15PhA6VXItWEuHz1xPdGn0yR3SG2D6Uy87Zo,136456
|
|
3
|
-
alibabacloud_rdsai20250507/models.py,sha256=L30ixmvF7kpgqc9FjcrTW5UqwRuHxg-J5X2uFOxj2Ro,169769
|
|
4
|
-
alibabacloud_rdsai20250507-1.5.0.dist-info/LICENSE,sha256=0CFItL6bHvxqS44T6vlLoW2R4Zaic304OO3WxN0oXF0,600
|
|
5
|
-
alibabacloud_rdsai20250507-1.5.0.dist-info/METADATA,sha256=KZ_BEdKxrTUcAt1LJmvZiWG7N85Fq45jY7gb0O6oSBo,2326
|
|
6
|
-
alibabacloud_rdsai20250507-1.5.0.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
|
|
7
|
-
alibabacloud_rdsai20250507-1.5.0.dist-info/top_level.txt,sha256=cWU8Yl8TZf4DX9PMY8FBroXbK3cKNtdwPS4J0woRVbY,27
|
|
8
|
-
alibabacloud_rdsai20250507-1.5.0.dist-info/RECORD,,
|
{alibabacloud_rdsai20250507-1.5.0.dist-info → alibabacloud_rdsai20250507-2.0.0.dist-info}/LICENSE
RENAMED
|
File without changes
|
{alibabacloud_rdsai20250507-1.5.0.dist-info → alibabacloud_rdsai20250507-2.0.0.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|