antchain-bot 1.12.59__tar.gz → 1.12.62__tar.gz
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.
- {antchain_bot-1.12.59 → antchain_bot-1.12.62}/PKG-INFO +1 -1
- {antchain_bot-1.12.59 → antchain_bot-1.12.62}/antchain_bot.egg-info/PKG-INFO +1 -1
- antchain_bot-1.12.62/antchain_sdk_bot/__init__.py +1 -0
- {antchain_bot-1.12.59 → antchain_bot-1.12.62}/antchain_sdk_bot/client.py +170 -58
- {antchain_bot-1.12.59 → antchain_bot-1.12.62}/antchain_sdk_bot/models.py +270 -98
- {antchain_bot-1.12.59 → antchain_bot-1.12.62}/setup.py +1 -1
- antchain_bot-1.12.59/antchain_sdk_bot/__init__.py +0 -1
- {antchain_bot-1.12.59 → antchain_bot-1.12.62}/LICENSE +0 -0
- {antchain_bot-1.12.59 → antchain_bot-1.12.62}/MANIFEST.in +0 -0
- {antchain_bot-1.12.59 → antchain_bot-1.12.62}/README-CN.md +0 -0
- {antchain_bot-1.12.59 → antchain_bot-1.12.62}/README.md +0 -0
- {antchain_bot-1.12.59 → antchain_bot-1.12.62}/antchain_bot.egg-info/SOURCES.txt +0 -0
- {antchain_bot-1.12.59 → antchain_bot-1.12.62}/antchain_bot.egg-info/dependency_links.txt +0 -0
- {antchain_bot-1.12.59 → antchain_bot-1.12.62}/antchain_bot.egg-info/requires.txt +0 -0
- {antchain_bot-1.12.59 → antchain_bot-1.12.62}/antchain_bot.egg-info/top_level.txt +0 -0
- {antchain_bot-1.12.59 → antchain_bot-1.12.62}/setup.cfg +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = '1.12.62'
|
|
@@ -135,7 +135,7 @@ class Client:
|
|
|
135
135
|
'req_msg_id': AntchainUtils.get_nonce(),
|
|
136
136
|
'access_key': self._access_key_id,
|
|
137
137
|
'base_sdk_version': 'TeaSDK-2.0',
|
|
138
|
-
'sdk_version': '1.12.
|
|
138
|
+
'sdk_version': '1.12.62',
|
|
139
139
|
'_prod_code': 'BOT',
|
|
140
140
|
'_prod_channel': 'undefined'
|
|
141
141
|
}
|
|
@@ -239,7 +239,7 @@ class Client:
|
|
|
239
239
|
'req_msg_id': AntchainUtils.get_nonce(),
|
|
240
240
|
'access_key': self._access_key_id,
|
|
241
241
|
'base_sdk_version': 'TeaSDK-2.0',
|
|
242
|
-
'sdk_version': '1.12.
|
|
242
|
+
'sdk_version': '1.12.62',
|
|
243
243
|
'_prod_code': 'BOT',
|
|
244
244
|
'_prod_channel': 'undefined'
|
|
245
245
|
}
|
|
@@ -443,62 +443,6 @@ class Client:
|
|
|
443
443
|
await self.do_request_async('1.0', 'blockchain.bot.acec.contract.resume', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime)
|
|
444
444
|
)
|
|
445
445
|
|
|
446
|
-
def start_agent_chat(
|
|
447
|
-
self,
|
|
448
|
-
request: bot_models.StartAgentChatRequest,
|
|
449
|
-
) -> bot_models.StartAgentChatResponse:
|
|
450
|
-
"""
|
|
451
|
-
Description: 智能体流式对话接口
|
|
452
|
-
Summary: 智能体流式对话接口
|
|
453
|
-
"""
|
|
454
|
-
runtime = util_models.RuntimeOptions()
|
|
455
|
-
headers = {}
|
|
456
|
-
return self.start_agent_chat_ex(request, headers, runtime)
|
|
457
|
-
|
|
458
|
-
async def start_agent_chat_async(
|
|
459
|
-
self,
|
|
460
|
-
request: bot_models.StartAgentChatRequest,
|
|
461
|
-
) -> bot_models.StartAgentChatResponse:
|
|
462
|
-
"""
|
|
463
|
-
Description: 智能体流式对话接口
|
|
464
|
-
Summary: 智能体流式对话接口
|
|
465
|
-
"""
|
|
466
|
-
runtime = util_models.RuntimeOptions()
|
|
467
|
-
headers = {}
|
|
468
|
-
return await self.start_agent_chat_ex_async(request, headers, runtime)
|
|
469
|
-
|
|
470
|
-
def start_agent_chat_ex(
|
|
471
|
-
self,
|
|
472
|
-
request: bot_models.StartAgentChatRequest,
|
|
473
|
-
headers: Dict[str, str],
|
|
474
|
-
runtime: util_models.RuntimeOptions,
|
|
475
|
-
) -> bot_models.StartAgentChatResponse:
|
|
476
|
-
"""
|
|
477
|
-
Description: 智能体流式对话接口
|
|
478
|
-
Summary: 智能体流式对话接口
|
|
479
|
-
"""
|
|
480
|
-
UtilClient.validate_model(request)
|
|
481
|
-
return TeaCore.from_map(
|
|
482
|
-
bot_models.StartAgentChatResponse(),
|
|
483
|
-
self.do_request('1.0', 'blockchain.bot.agent.chat.start', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime)
|
|
484
|
-
)
|
|
485
|
-
|
|
486
|
-
async def start_agent_chat_ex_async(
|
|
487
|
-
self,
|
|
488
|
-
request: bot_models.StartAgentChatRequest,
|
|
489
|
-
headers: Dict[str, str],
|
|
490
|
-
runtime: util_models.RuntimeOptions,
|
|
491
|
-
) -> bot_models.StartAgentChatResponse:
|
|
492
|
-
"""
|
|
493
|
-
Description: 智能体流式对话接口
|
|
494
|
-
Summary: 智能体流式对话接口
|
|
495
|
-
"""
|
|
496
|
-
UtilClient.validate_model(request)
|
|
497
|
-
return TeaCore.from_map(
|
|
498
|
-
bot_models.StartAgentChatResponse(),
|
|
499
|
-
await self.do_request_async('1.0', 'blockchain.bot.agent.chat.start', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime)
|
|
500
|
-
)
|
|
501
|
-
|
|
502
446
|
def create_lease_realperson(
|
|
503
447
|
self,
|
|
504
448
|
request: bot_models.CreateLeaseRealpersonRequest,
|
|
@@ -2327,6 +2271,118 @@ class Client:
|
|
|
2327
2271
|
await self.do_request_async('1.0', 'blockchain.bot.aiidentification.qrcode.get', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime)
|
|
2328
2272
|
)
|
|
2329
2273
|
|
|
2274
|
+
def start_agent_chat(
|
|
2275
|
+
self,
|
|
2276
|
+
request: bot_models.StartAgentChatRequest,
|
|
2277
|
+
) -> bot_models.StartAgentChatResponse:
|
|
2278
|
+
"""
|
|
2279
|
+
Description: 智能体流式对话接口
|
|
2280
|
+
Summary: 智能体流式对话接口
|
|
2281
|
+
"""
|
|
2282
|
+
runtime = util_models.RuntimeOptions()
|
|
2283
|
+
headers = {}
|
|
2284
|
+
return self.start_agent_chat_ex(request, headers, runtime)
|
|
2285
|
+
|
|
2286
|
+
async def start_agent_chat_async(
|
|
2287
|
+
self,
|
|
2288
|
+
request: bot_models.StartAgentChatRequest,
|
|
2289
|
+
) -> bot_models.StartAgentChatResponse:
|
|
2290
|
+
"""
|
|
2291
|
+
Description: 智能体流式对话接口
|
|
2292
|
+
Summary: 智能体流式对话接口
|
|
2293
|
+
"""
|
|
2294
|
+
runtime = util_models.RuntimeOptions()
|
|
2295
|
+
headers = {}
|
|
2296
|
+
return await self.start_agent_chat_ex_async(request, headers, runtime)
|
|
2297
|
+
|
|
2298
|
+
def start_agent_chat_ex(
|
|
2299
|
+
self,
|
|
2300
|
+
request: bot_models.StartAgentChatRequest,
|
|
2301
|
+
headers: Dict[str, str],
|
|
2302
|
+
runtime: util_models.RuntimeOptions,
|
|
2303
|
+
) -> bot_models.StartAgentChatResponse:
|
|
2304
|
+
"""
|
|
2305
|
+
Description: 智能体流式对话接口
|
|
2306
|
+
Summary: 智能体流式对话接口
|
|
2307
|
+
"""
|
|
2308
|
+
UtilClient.validate_model(request)
|
|
2309
|
+
return TeaCore.from_map(
|
|
2310
|
+
bot_models.StartAgentChatResponse(),
|
|
2311
|
+
self.do_request('1.0', 'blockchain.bot.agent.chat.start', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime)
|
|
2312
|
+
)
|
|
2313
|
+
|
|
2314
|
+
async def start_agent_chat_ex_async(
|
|
2315
|
+
self,
|
|
2316
|
+
request: bot_models.StartAgentChatRequest,
|
|
2317
|
+
headers: Dict[str, str],
|
|
2318
|
+
runtime: util_models.RuntimeOptions,
|
|
2319
|
+
) -> bot_models.StartAgentChatResponse:
|
|
2320
|
+
"""
|
|
2321
|
+
Description: 智能体流式对话接口
|
|
2322
|
+
Summary: 智能体流式对话接口
|
|
2323
|
+
"""
|
|
2324
|
+
UtilClient.validate_model(request)
|
|
2325
|
+
return TeaCore.from_map(
|
|
2326
|
+
bot_models.StartAgentChatResponse(),
|
|
2327
|
+
await self.do_request_async('1.0', 'blockchain.bot.agent.chat.start', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime)
|
|
2328
|
+
)
|
|
2329
|
+
|
|
2330
|
+
def start_agent_thingmodel(
|
|
2331
|
+
self,
|
|
2332
|
+
request: bot_models.StartAgentThingmodelRequest,
|
|
2333
|
+
) -> bot_models.StartAgentThingmodelResponse:
|
|
2334
|
+
"""
|
|
2335
|
+
Description: 智能体流式物模型上报接口
|
|
2336
|
+
Summary: 智能体流式物模型上报接口
|
|
2337
|
+
"""
|
|
2338
|
+
runtime = util_models.RuntimeOptions()
|
|
2339
|
+
headers = {}
|
|
2340
|
+
return self.start_agent_thingmodel_ex(request, headers, runtime)
|
|
2341
|
+
|
|
2342
|
+
async def start_agent_thingmodel_async(
|
|
2343
|
+
self,
|
|
2344
|
+
request: bot_models.StartAgentThingmodelRequest,
|
|
2345
|
+
) -> bot_models.StartAgentThingmodelResponse:
|
|
2346
|
+
"""
|
|
2347
|
+
Description: 智能体流式物模型上报接口
|
|
2348
|
+
Summary: 智能体流式物模型上报接口
|
|
2349
|
+
"""
|
|
2350
|
+
runtime = util_models.RuntimeOptions()
|
|
2351
|
+
headers = {}
|
|
2352
|
+
return await self.start_agent_thingmodel_ex_async(request, headers, runtime)
|
|
2353
|
+
|
|
2354
|
+
def start_agent_thingmodel_ex(
|
|
2355
|
+
self,
|
|
2356
|
+
request: bot_models.StartAgentThingmodelRequest,
|
|
2357
|
+
headers: Dict[str, str],
|
|
2358
|
+
runtime: util_models.RuntimeOptions,
|
|
2359
|
+
) -> bot_models.StartAgentThingmodelResponse:
|
|
2360
|
+
"""
|
|
2361
|
+
Description: 智能体流式物模型上报接口
|
|
2362
|
+
Summary: 智能体流式物模型上报接口
|
|
2363
|
+
"""
|
|
2364
|
+
UtilClient.validate_model(request)
|
|
2365
|
+
return TeaCore.from_map(
|
|
2366
|
+
bot_models.StartAgentThingmodelResponse(),
|
|
2367
|
+
self.do_request('1.0', 'blockchain.bot.agent.thingmodel.start', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime)
|
|
2368
|
+
)
|
|
2369
|
+
|
|
2370
|
+
async def start_agent_thingmodel_ex_async(
|
|
2371
|
+
self,
|
|
2372
|
+
request: bot_models.StartAgentThingmodelRequest,
|
|
2373
|
+
headers: Dict[str, str],
|
|
2374
|
+
runtime: util_models.RuntimeOptions,
|
|
2375
|
+
) -> bot_models.StartAgentThingmodelResponse:
|
|
2376
|
+
"""
|
|
2377
|
+
Description: 智能体流式物模型上报接口
|
|
2378
|
+
Summary: 智能体流式物模型上报接口
|
|
2379
|
+
"""
|
|
2380
|
+
UtilClient.validate_model(request)
|
|
2381
|
+
return TeaCore.from_map(
|
|
2382
|
+
bot_models.StartAgentThingmodelResponse(),
|
|
2383
|
+
await self.do_request_async('1.0', 'blockchain.bot.agent.thingmodel.start', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime)
|
|
2384
|
+
)
|
|
2385
|
+
|
|
2330
2386
|
def create_acs_device(
|
|
2331
2387
|
self,
|
|
2332
2388
|
request: bot_models.CreateAcsDeviceRequest,
|
|
@@ -15523,6 +15579,62 @@ class Client:
|
|
|
15523
15579
|
await self.do_request_async('1.0', 'blockchain.bot.ai.streamtest.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime)
|
|
15524
15580
|
)
|
|
15525
15581
|
|
|
15582
|
+
def start_iotagent_chat(
|
|
15583
|
+
self,
|
|
15584
|
+
request: bot_models.StartIotagentChatRequest,
|
|
15585
|
+
) -> bot_models.StartIotagentChatResponse:
|
|
15586
|
+
"""
|
|
15587
|
+
Description: 智能体流式对话接口
|
|
15588
|
+
Summary: 智能体流式对话接口
|
|
15589
|
+
"""
|
|
15590
|
+
runtime = util_models.RuntimeOptions()
|
|
15591
|
+
headers = {}
|
|
15592
|
+
return self.start_iotagent_chat_ex(request, headers, runtime)
|
|
15593
|
+
|
|
15594
|
+
async def start_iotagent_chat_async(
|
|
15595
|
+
self,
|
|
15596
|
+
request: bot_models.StartIotagentChatRequest,
|
|
15597
|
+
) -> bot_models.StartIotagentChatResponse:
|
|
15598
|
+
"""
|
|
15599
|
+
Description: 智能体流式对话接口
|
|
15600
|
+
Summary: 智能体流式对话接口
|
|
15601
|
+
"""
|
|
15602
|
+
runtime = util_models.RuntimeOptions()
|
|
15603
|
+
headers = {}
|
|
15604
|
+
return await self.start_iotagent_chat_ex_async(request, headers, runtime)
|
|
15605
|
+
|
|
15606
|
+
def start_iotagent_chat_ex(
|
|
15607
|
+
self,
|
|
15608
|
+
request: bot_models.StartIotagentChatRequest,
|
|
15609
|
+
headers: Dict[str, str],
|
|
15610
|
+
runtime: util_models.RuntimeOptions,
|
|
15611
|
+
) -> bot_models.StartIotagentChatResponse:
|
|
15612
|
+
"""
|
|
15613
|
+
Description: 智能体流式对话接口
|
|
15614
|
+
Summary: 智能体流式对话接口
|
|
15615
|
+
"""
|
|
15616
|
+
UtilClient.validate_model(request)
|
|
15617
|
+
return TeaCore.from_map(
|
|
15618
|
+
bot_models.StartIotagentChatResponse(),
|
|
15619
|
+
self.do_request('1.0', 'blockchain.bot.iotagent.chat.start', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime)
|
|
15620
|
+
)
|
|
15621
|
+
|
|
15622
|
+
async def start_iotagent_chat_ex_async(
|
|
15623
|
+
self,
|
|
15624
|
+
request: bot_models.StartIotagentChatRequest,
|
|
15625
|
+
headers: Dict[str, str],
|
|
15626
|
+
runtime: util_models.RuntimeOptions,
|
|
15627
|
+
) -> bot_models.StartIotagentChatResponse:
|
|
15628
|
+
"""
|
|
15629
|
+
Description: 智能体流式对话接口
|
|
15630
|
+
Summary: 智能体流式对话接口
|
|
15631
|
+
"""
|
|
15632
|
+
UtilClient.validate_model(request)
|
|
15633
|
+
return TeaCore.from_map(
|
|
15634
|
+
bot_models.StartIotagentChatResponse(),
|
|
15635
|
+
await self.do_request_async('1.0', 'blockchain.bot.iotagent.chat.start', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime)
|
|
15636
|
+
)
|
|
15637
|
+
|
|
15526
15638
|
def exec_thingsdid_oneapi(
|
|
15527
15639
|
self,
|
|
15528
15640
|
request: bot_models.ExecThingsdidOneapiRequest,
|
|
@@ -11641,96 +11641,6 @@ class ResumeAcecContractResponse(TeaModel):
|
|
|
11641
11641
|
return self
|
|
11642
11642
|
|
|
11643
11643
|
|
|
11644
|
-
class StartAgentChatRequest(TeaModel):
|
|
11645
|
-
def __init__(
|
|
11646
|
-
self,
|
|
11647
|
-
auth_token: str = None,
|
|
11648
|
-
product_instance_id: str = None,
|
|
11649
|
-
agent_chat_request: str = None,
|
|
11650
|
-
):
|
|
11651
|
-
# OAuth模式下的授权token
|
|
11652
|
-
self.auth_token = auth_token
|
|
11653
|
-
self.product_instance_id = product_instance_id
|
|
11654
|
-
# 请求内容,内容为 AgentChatReq 对象的json字符串
|
|
11655
|
-
self.agent_chat_request = agent_chat_request
|
|
11656
|
-
|
|
11657
|
-
def validate(self):
|
|
11658
|
-
self.validate_required(self.agent_chat_request, 'agent_chat_request')
|
|
11659
|
-
|
|
11660
|
-
def to_map(self):
|
|
11661
|
-
_map = super().to_map()
|
|
11662
|
-
if _map is not None:
|
|
11663
|
-
return _map
|
|
11664
|
-
|
|
11665
|
-
result = dict()
|
|
11666
|
-
if self.auth_token is not None:
|
|
11667
|
-
result['auth_token'] = self.auth_token
|
|
11668
|
-
if self.product_instance_id is not None:
|
|
11669
|
-
result['product_instance_id'] = self.product_instance_id
|
|
11670
|
-
if self.agent_chat_request is not None:
|
|
11671
|
-
result['agent_chat_request'] = self.agent_chat_request
|
|
11672
|
-
return result
|
|
11673
|
-
|
|
11674
|
-
def from_map(self, m: dict = None):
|
|
11675
|
-
m = m or dict()
|
|
11676
|
-
if m.get('auth_token') is not None:
|
|
11677
|
-
self.auth_token = m.get('auth_token')
|
|
11678
|
-
if m.get('product_instance_id') is not None:
|
|
11679
|
-
self.product_instance_id = m.get('product_instance_id')
|
|
11680
|
-
if m.get('agent_chat_request') is not None:
|
|
11681
|
-
self.agent_chat_request = m.get('agent_chat_request')
|
|
11682
|
-
return self
|
|
11683
|
-
|
|
11684
|
-
|
|
11685
|
-
class StartAgentChatResponse(TeaModel):
|
|
11686
|
-
def __init__(
|
|
11687
|
-
self,
|
|
11688
|
-
req_msg_id: str = None,
|
|
11689
|
-
result_code: str = None,
|
|
11690
|
-
result_msg: str = None,
|
|
11691
|
-
chat_completion_object: str = None,
|
|
11692
|
-
):
|
|
11693
|
-
# 请求唯一ID,用于链路跟踪和问题排查
|
|
11694
|
-
self.req_msg_id = req_msg_id
|
|
11695
|
-
# 结果码,一般OK表示调用成功
|
|
11696
|
-
self.result_code = result_code
|
|
11697
|
-
# 异常信息的文本描述
|
|
11698
|
-
self.result_msg = result_msg
|
|
11699
|
-
# 会话结果
|
|
11700
|
-
self.chat_completion_object = chat_completion_object
|
|
11701
|
-
|
|
11702
|
-
def validate(self):
|
|
11703
|
-
pass
|
|
11704
|
-
|
|
11705
|
-
def to_map(self):
|
|
11706
|
-
_map = super().to_map()
|
|
11707
|
-
if _map is not None:
|
|
11708
|
-
return _map
|
|
11709
|
-
|
|
11710
|
-
result = dict()
|
|
11711
|
-
if self.req_msg_id is not None:
|
|
11712
|
-
result['req_msg_id'] = self.req_msg_id
|
|
11713
|
-
if self.result_code is not None:
|
|
11714
|
-
result['result_code'] = self.result_code
|
|
11715
|
-
if self.result_msg is not None:
|
|
11716
|
-
result['result_msg'] = self.result_msg
|
|
11717
|
-
if self.chat_completion_object is not None:
|
|
11718
|
-
result['chat_completion_object'] = self.chat_completion_object
|
|
11719
|
-
return result
|
|
11720
|
-
|
|
11721
|
-
def from_map(self, m: dict = None):
|
|
11722
|
-
m = m or dict()
|
|
11723
|
-
if m.get('req_msg_id') is not None:
|
|
11724
|
-
self.req_msg_id = m.get('req_msg_id')
|
|
11725
|
-
if m.get('result_code') is not None:
|
|
11726
|
-
self.result_code = m.get('result_code')
|
|
11727
|
-
if m.get('result_msg') is not None:
|
|
11728
|
-
self.result_msg = m.get('result_msg')
|
|
11729
|
-
if m.get('chat_completion_object') is not None:
|
|
11730
|
-
self.chat_completion_object = m.get('chat_completion_object')
|
|
11731
|
-
return self
|
|
11732
|
-
|
|
11733
|
-
|
|
11734
11644
|
class CreateLeaseRealpersonRequest(TeaModel):
|
|
11735
11645
|
def __init__(
|
|
11736
11646
|
self,
|
|
@@ -15785,6 +15695,186 @@ class GetAiidentificationQrcodeResponse(TeaModel):
|
|
|
15785
15695
|
return self
|
|
15786
15696
|
|
|
15787
15697
|
|
|
15698
|
+
class StartAgentChatRequest(TeaModel):
|
|
15699
|
+
def __init__(
|
|
15700
|
+
self,
|
|
15701
|
+
auth_token: str = None,
|
|
15702
|
+
product_instance_id: str = None,
|
|
15703
|
+
agent_chat_request: str = None,
|
|
15704
|
+
):
|
|
15705
|
+
# OAuth模式下的授权token
|
|
15706
|
+
self.auth_token = auth_token
|
|
15707
|
+
self.product_instance_id = product_instance_id
|
|
15708
|
+
# 请求内容,内容为 AgentChatReq 对象的json字符串
|
|
15709
|
+
self.agent_chat_request = agent_chat_request
|
|
15710
|
+
|
|
15711
|
+
def validate(self):
|
|
15712
|
+
self.validate_required(self.agent_chat_request, 'agent_chat_request')
|
|
15713
|
+
|
|
15714
|
+
def to_map(self):
|
|
15715
|
+
_map = super().to_map()
|
|
15716
|
+
if _map is not None:
|
|
15717
|
+
return _map
|
|
15718
|
+
|
|
15719
|
+
result = dict()
|
|
15720
|
+
if self.auth_token is not None:
|
|
15721
|
+
result['auth_token'] = self.auth_token
|
|
15722
|
+
if self.product_instance_id is not None:
|
|
15723
|
+
result['product_instance_id'] = self.product_instance_id
|
|
15724
|
+
if self.agent_chat_request is not None:
|
|
15725
|
+
result['agent_chat_request'] = self.agent_chat_request
|
|
15726
|
+
return result
|
|
15727
|
+
|
|
15728
|
+
def from_map(self, m: dict = None):
|
|
15729
|
+
m = m or dict()
|
|
15730
|
+
if m.get('auth_token') is not None:
|
|
15731
|
+
self.auth_token = m.get('auth_token')
|
|
15732
|
+
if m.get('product_instance_id') is not None:
|
|
15733
|
+
self.product_instance_id = m.get('product_instance_id')
|
|
15734
|
+
if m.get('agent_chat_request') is not None:
|
|
15735
|
+
self.agent_chat_request = m.get('agent_chat_request')
|
|
15736
|
+
return self
|
|
15737
|
+
|
|
15738
|
+
|
|
15739
|
+
class StartAgentChatResponse(TeaModel):
|
|
15740
|
+
def __init__(
|
|
15741
|
+
self,
|
|
15742
|
+
req_msg_id: str = None,
|
|
15743
|
+
result_code: str = None,
|
|
15744
|
+
result_msg: str = None,
|
|
15745
|
+
chat_completion_object: str = None,
|
|
15746
|
+
):
|
|
15747
|
+
# 请求唯一ID,用于链路跟踪和问题排查
|
|
15748
|
+
self.req_msg_id = req_msg_id
|
|
15749
|
+
# 结果码,一般OK表示调用成功
|
|
15750
|
+
self.result_code = result_code
|
|
15751
|
+
# 异常信息的文本描述
|
|
15752
|
+
self.result_msg = result_msg
|
|
15753
|
+
# 会话结果
|
|
15754
|
+
self.chat_completion_object = chat_completion_object
|
|
15755
|
+
|
|
15756
|
+
def validate(self):
|
|
15757
|
+
pass
|
|
15758
|
+
|
|
15759
|
+
def to_map(self):
|
|
15760
|
+
_map = super().to_map()
|
|
15761
|
+
if _map is not None:
|
|
15762
|
+
return _map
|
|
15763
|
+
|
|
15764
|
+
result = dict()
|
|
15765
|
+
if self.req_msg_id is not None:
|
|
15766
|
+
result['req_msg_id'] = self.req_msg_id
|
|
15767
|
+
if self.result_code is not None:
|
|
15768
|
+
result['result_code'] = self.result_code
|
|
15769
|
+
if self.result_msg is not None:
|
|
15770
|
+
result['result_msg'] = self.result_msg
|
|
15771
|
+
if self.chat_completion_object is not None:
|
|
15772
|
+
result['chat_completion_object'] = self.chat_completion_object
|
|
15773
|
+
return result
|
|
15774
|
+
|
|
15775
|
+
def from_map(self, m: dict = None):
|
|
15776
|
+
m = m or dict()
|
|
15777
|
+
if m.get('req_msg_id') is not None:
|
|
15778
|
+
self.req_msg_id = m.get('req_msg_id')
|
|
15779
|
+
if m.get('result_code') is not None:
|
|
15780
|
+
self.result_code = m.get('result_code')
|
|
15781
|
+
if m.get('result_msg') is not None:
|
|
15782
|
+
self.result_msg = m.get('result_msg')
|
|
15783
|
+
if m.get('chat_completion_object') is not None:
|
|
15784
|
+
self.chat_completion_object = m.get('chat_completion_object')
|
|
15785
|
+
return self
|
|
15786
|
+
|
|
15787
|
+
|
|
15788
|
+
class StartAgentThingmodelRequest(TeaModel):
|
|
15789
|
+
def __init__(
|
|
15790
|
+
self,
|
|
15791
|
+
auth_token: str = None,
|
|
15792
|
+
product_instance_id: str = None,
|
|
15793
|
+
agent_thing_model_request: str = None,
|
|
15794
|
+
):
|
|
15795
|
+
# OAuth模式下的授权token
|
|
15796
|
+
self.auth_token = auth_token
|
|
15797
|
+
self.product_instance_id = product_instance_id
|
|
15798
|
+
# 请求内容,内容为 AgentThingModelReq 对象的json字符串
|
|
15799
|
+
self.agent_thing_model_request = agent_thing_model_request
|
|
15800
|
+
|
|
15801
|
+
def validate(self):
|
|
15802
|
+
self.validate_required(self.agent_thing_model_request, 'agent_thing_model_request')
|
|
15803
|
+
|
|
15804
|
+
def to_map(self):
|
|
15805
|
+
_map = super().to_map()
|
|
15806
|
+
if _map is not None:
|
|
15807
|
+
return _map
|
|
15808
|
+
|
|
15809
|
+
result = dict()
|
|
15810
|
+
if self.auth_token is not None:
|
|
15811
|
+
result['auth_token'] = self.auth_token
|
|
15812
|
+
if self.product_instance_id is not None:
|
|
15813
|
+
result['product_instance_id'] = self.product_instance_id
|
|
15814
|
+
if self.agent_thing_model_request is not None:
|
|
15815
|
+
result['agent_thing_model_request'] = self.agent_thing_model_request
|
|
15816
|
+
return result
|
|
15817
|
+
|
|
15818
|
+
def from_map(self, m: dict = None):
|
|
15819
|
+
m = m or dict()
|
|
15820
|
+
if m.get('auth_token') is not None:
|
|
15821
|
+
self.auth_token = m.get('auth_token')
|
|
15822
|
+
if m.get('product_instance_id') is not None:
|
|
15823
|
+
self.product_instance_id = m.get('product_instance_id')
|
|
15824
|
+
if m.get('agent_thing_model_request') is not None:
|
|
15825
|
+
self.agent_thing_model_request = m.get('agent_thing_model_request')
|
|
15826
|
+
return self
|
|
15827
|
+
|
|
15828
|
+
|
|
15829
|
+
class StartAgentThingmodelResponse(TeaModel):
|
|
15830
|
+
def __init__(
|
|
15831
|
+
self,
|
|
15832
|
+
req_msg_id: str = None,
|
|
15833
|
+
result_code: str = None,
|
|
15834
|
+
result_msg: str = None,
|
|
15835
|
+
thing_model_completion_object: str = None,
|
|
15836
|
+
):
|
|
15837
|
+
# 请求唯一ID,用于链路跟踪和问题排查
|
|
15838
|
+
self.req_msg_id = req_msg_id
|
|
15839
|
+
# 结果码,一般OK表示调用成功
|
|
15840
|
+
self.result_code = result_code
|
|
15841
|
+
# 异常信息的文本描述
|
|
15842
|
+
self.result_msg = result_msg
|
|
15843
|
+
# 物模型上报结果
|
|
15844
|
+
self.thing_model_completion_object = thing_model_completion_object
|
|
15845
|
+
|
|
15846
|
+
def validate(self):
|
|
15847
|
+
pass
|
|
15848
|
+
|
|
15849
|
+
def to_map(self):
|
|
15850
|
+
_map = super().to_map()
|
|
15851
|
+
if _map is not None:
|
|
15852
|
+
return _map
|
|
15853
|
+
|
|
15854
|
+
result = dict()
|
|
15855
|
+
if self.req_msg_id is not None:
|
|
15856
|
+
result['req_msg_id'] = self.req_msg_id
|
|
15857
|
+
if self.result_code is not None:
|
|
15858
|
+
result['result_code'] = self.result_code
|
|
15859
|
+
if self.result_msg is not None:
|
|
15860
|
+
result['result_msg'] = self.result_msg
|
|
15861
|
+
if self.thing_model_completion_object is not None:
|
|
15862
|
+
result['thing_model_completion_object'] = self.thing_model_completion_object
|
|
15863
|
+
return result
|
|
15864
|
+
|
|
15865
|
+
def from_map(self, m: dict = None):
|
|
15866
|
+
m = m or dict()
|
|
15867
|
+
if m.get('req_msg_id') is not None:
|
|
15868
|
+
self.req_msg_id = m.get('req_msg_id')
|
|
15869
|
+
if m.get('result_code') is not None:
|
|
15870
|
+
self.result_code = m.get('result_code')
|
|
15871
|
+
if m.get('result_msg') is not None:
|
|
15872
|
+
self.result_msg = m.get('result_msg')
|
|
15873
|
+
if m.get('thing_model_completion_object') is not None:
|
|
15874
|
+
self.thing_model_completion_object = m.get('thing_model_completion_object')
|
|
15875
|
+
return self
|
|
15876
|
+
|
|
15877
|
+
|
|
15788
15878
|
class CreateAcsDeviceRequest(TeaModel):
|
|
15789
15879
|
def __init__(
|
|
15790
15880
|
self,
|
|
@@ -30243,7 +30333,6 @@ class RegisterElectrocarDeviceRequest(TeaModel):
|
|
|
30243
30333
|
auth_token: str = None,
|
|
30244
30334
|
product_instance_id: str = None,
|
|
30245
30335
|
device_name: str = None,
|
|
30246
|
-
nick_name: str = None,
|
|
30247
30336
|
trust_product_key: str = None,
|
|
30248
30337
|
kyt_apply_params: KytApplyParams = None,
|
|
30249
30338
|
):
|
|
@@ -30252,8 +30341,6 @@ class RegisterElectrocarDeviceRequest(TeaModel):
|
|
|
30252
30341
|
self.product_instance_id = product_instance_id
|
|
30253
30342
|
# 设备名称
|
|
30254
30343
|
self.device_name = device_name
|
|
30255
|
-
# 设备名称
|
|
30256
|
-
self.nick_name = nick_name
|
|
30257
30344
|
# 产品key
|
|
30258
30345
|
self.trust_product_key = trust_product_key
|
|
30259
30346
|
# 凭证申请参数
|
|
@@ -30261,7 +30348,6 @@ class RegisterElectrocarDeviceRequest(TeaModel):
|
|
|
30261
30348
|
|
|
30262
30349
|
def validate(self):
|
|
30263
30350
|
self.validate_required(self.device_name, 'device_name')
|
|
30264
|
-
self.validate_required(self.nick_name, 'nick_name')
|
|
30265
30351
|
self.validate_required(self.trust_product_key, 'trust_product_key')
|
|
30266
30352
|
self.validate_required(self.kyt_apply_params, 'kyt_apply_params')
|
|
30267
30353
|
if self.kyt_apply_params:
|
|
@@ -30279,8 +30365,6 @@ class RegisterElectrocarDeviceRequest(TeaModel):
|
|
|
30279
30365
|
result['product_instance_id'] = self.product_instance_id
|
|
30280
30366
|
if self.device_name is not None:
|
|
30281
30367
|
result['device_name'] = self.device_name
|
|
30282
|
-
if self.nick_name is not None:
|
|
30283
|
-
result['nick_name'] = self.nick_name
|
|
30284
30368
|
if self.trust_product_key is not None:
|
|
30285
30369
|
result['trust_product_key'] = self.trust_product_key
|
|
30286
30370
|
if self.kyt_apply_params is not None:
|
|
@@ -30295,8 +30379,6 @@ class RegisterElectrocarDeviceRequest(TeaModel):
|
|
|
30295
30379
|
self.product_instance_id = m.get('product_instance_id')
|
|
30296
30380
|
if m.get('device_name') is not None:
|
|
30297
30381
|
self.device_name = m.get('device_name')
|
|
30298
|
-
if m.get('nick_name') is not None:
|
|
30299
|
-
self.nick_name = m.get('nick_name')
|
|
30300
30382
|
if m.get('trust_product_key') is not None:
|
|
30301
30383
|
self.trust_product_key = m.get('trust_product_key')
|
|
30302
30384
|
if m.get('kyt_apply_params') is not None:
|
|
@@ -45883,6 +45965,96 @@ class QueryAiStreamtestResponse(TeaModel):
|
|
|
45883
45965
|
return self
|
|
45884
45966
|
|
|
45885
45967
|
|
|
45968
|
+
class StartIotagentChatRequest(TeaModel):
|
|
45969
|
+
def __init__(
|
|
45970
|
+
self,
|
|
45971
|
+
auth_token: str = None,
|
|
45972
|
+
product_instance_id: str = None,
|
|
45973
|
+
agent_chat_request: str = None,
|
|
45974
|
+
):
|
|
45975
|
+
# OAuth模式下的授权token
|
|
45976
|
+
self.auth_token = auth_token
|
|
45977
|
+
self.product_instance_id = product_instance_id
|
|
45978
|
+
# 请求内容,内容为json字符串
|
|
45979
|
+
self.agent_chat_request = agent_chat_request
|
|
45980
|
+
|
|
45981
|
+
def validate(self):
|
|
45982
|
+
self.validate_required(self.agent_chat_request, 'agent_chat_request')
|
|
45983
|
+
|
|
45984
|
+
def to_map(self):
|
|
45985
|
+
_map = super().to_map()
|
|
45986
|
+
if _map is not None:
|
|
45987
|
+
return _map
|
|
45988
|
+
|
|
45989
|
+
result = dict()
|
|
45990
|
+
if self.auth_token is not None:
|
|
45991
|
+
result['auth_token'] = self.auth_token
|
|
45992
|
+
if self.product_instance_id is not None:
|
|
45993
|
+
result['product_instance_id'] = self.product_instance_id
|
|
45994
|
+
if self.agent_chat_request is not None:
|
|
45995
|
+
result['agent_chat_request'] = self.agent_chat_request
|
|
45996
|
+
return result
|
|
45997
|
+
|
|
45998
|
+
def from_map(self, m: dict = None):
|
|
45999
|
+
m = m or dict()
|
|
46000
|
+
if m.get('auth_token') is not None:
|
|
46001
|
+
self.auth_token = m.get('auth_token')
|
|
46002
|
+
if m.get('product_instance_id') is not None:
|
|
46003
|
+
self.product_instance_id = m.get('product_instance_id')
|
|
46004
|
+
if m.get('agent_chat_request') is not None:
|
|
46005
|
+
self.agent_chat_request = m.get('agent_chat_request')
|
|
46006
|
+
return self
|
|
46007
|
+
|
|
46008
|
+
|
|
46009
|
+
class StartIotagentChatResponse(TeaModel):
|
|
46010
|
+
def __init__(
|
|
46011
|
+
self,
|
|
46012
|
+
req_msg_id: str = None,
|
|
46013
|
+
result_code: str = None,
|
|
46014
|
+
result_msg: str = None,
|
|
46015
|
+
chat_completion_object: str = None,
|
|
46016
|
+
):
|
|
46017
|
+
# 请求唯一ID,用于链路跟踪和问题排查
|
|
46018
|
+
self.req_msg_id = req_msg_id
|
|
46019
|
+
# 结果码,一般OK表示调用成功
|
|
46020
|
+
self.result_code = result_code
|
|
46021
|
+
# 异常信息的文本描述
|
|
46022
|
+
self.result_msg = result_msg
|
|
46023
|
+
# 会话结果
|
|
46024
|
+
self.chat_completion_object = chat_completion_object
|
|
46025
|
+
|
|
46026
|
+
def validate(self):
|
|
46027
|
+
pass
|
|
46028
|
+
|
|
46029
|
+
def to_map(self):
|
|
46030
|
+
_map = super().to_map()
|
|
46031
|
+
if _map is not None:
|
|
46032
|
+
return _map
|
|
46033
|
+
|
|
46034
|
+
result = dict()
|
|
46035
|
+
if self.req_msg_id is not None:
|
|
46036
|
+
result['req_msg_id'] = self.req_msg_id
|
|
46037
|
+
if self.result_code is not None:
|
|
46038
|
+
result['result_code'] = self.result_code
|
|
46039
|
+
if self.result_msg is not None:
|
|
46040
|
+
result['result_msg'] = self.result_msg
|
|
46041
|
+
if self.chat_completion_object is not None:
|
|
46042
|
+
result['chat_completion_object'] = self.chat_completion_object
|
|
46043
|
+
return result
|
|
46044
|
+
|
|
46045
|
+
def from_map(self, m: dict = None):
|
|
46046
|
+
m = m or dict()
|
|
46047
|
+
if m.get('req_msg_id') is not None:
|
|
46048
|
+
self.req_msg_id = m.get('req_msg_id')
|
|
46049
|
+
if m.get('result_code') is not None:
|
|
46050
|
+
self.result_code = m.get('result_code')
|
|
46051
|
+
if m.get('result_msg') is not None:
|
|
46052
|
+
self.result_msg = m.get('result_msg')
|
|
46053
|
+
if m.get('chat_completion_object') is not None:
|
|
46054
|
+
self.chat_completion_object = m.get('chat_completion_object')
|
|
46055
|
+
return self
|
|
46056
|
+
|
|
46057
|
+
|
|
45886
46058
|
class ExecThingsdidOneapiRequest(TeaModel):
|
|
45887
46059
|
def __init__(
|
|
45888
46060
|
self,
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = '1.12.59'
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|