antchain-bot 1.12.60__py3-none-any.whl → 1.12.66__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.
- {antchain_bot-1.12.60.dist-info → antchain_bot-1.12.66.dist-info}/METADATA +1 -1
- antchain_bot-1.12.66.dist-info/RECORD +8 -0
- antchain_sdk_bot/__init__.py +1 -1
- antchain_sdk_bot/client.py +226 -58
- antchain_sdk_bot/models.py +360 -90
- antchain_bot-1.12.60.dist-info/RECORD +0 -8
- {antchain_bot-1.12.60.dist-info → antchain_bot-1.12.66.dist-info}/LICENSE +0 -0
- {antchain_bot-1.12.60.dist-info → antchain_bot-1.12.66.dist-info}/WHEEL +0 -0
- {antchain_bot-1.12.60.dist-info → antchain_bot-1.12.66.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
antchain_sdk_bot/__init__.py,sha256=8bIv8ki_gPksYDaMBMQbNu9Q_PP1W4o_eQ5lrkw5SRk,23
|
|
2
|
+
antchain_sdk_bot/client.py,sha256=KobqyLVbOElRwuTAH-cTv-0wRCnai5y4hKThZCgrjf0,670984
|
|
3
|
+
antchain_sdk_bot/models.py,sha256=5oABJ4gxj8gRAxOqPK5oKNc4j003WtZ38lBy6PD9QeY,1722047
|
|
4
|
+
antchain_bot-1.12.66.dist-info/LICENSE,sha256=0CFItL6bHvxqS44T6vlLoW2R4Zaic304OO3WxN0oXF0,600
|
|
5
|
+
antchain_bot-1.12.66.dist-info/METADATA,sha256=7VOF2L5RvzTR4BVAMaJcQ7dnf89J05-zNM25tzI8B64,1989
|
|
6
|
+
antchain_bot-1.12.66.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
|
|
7
|
+
antchain_bot-1.12.66.dist-info/top_level.txt,sha256=gpn1OPRhS8ydjW8IxqApJiA6jx285ves96g9kcJN9iA,17
|
|
8
|
+
antchain_bot-1.12.66.dist-info/RECORD,,
|
antchain_sdk_bot/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = '1.12.
|
|
1
|
+
__version__ = '1.12.66'
|
antchain_sdk_bot/client.py
CHANGED
|
@@ -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.66',
|
|
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.66',
|
|
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,118 @@ 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
|
+
|
|
15638
|
+
def start_iotagent_thingmodel(
|
|
15639
|
+
self,
|
|
15640
|
+
request: bot_models.StartIotagentThingmodelRequest,
|
|
15641
|
+
) -> bot_models.StartIotagentThingmodelResponse:
|
|
15642
|
+
"""
|
|
15643
|
+
Description: 智能体流式物模型上报接口
|
|
15644
|
+
Summary: 智能体流式物模型上报接口
|
|
15645
|
+
"""
|
|
15646
|
+
runtime = util_models.RuntimeOptions()
|
|
15647
|
+
headers = {}
|
|
15648
|
+
return self.start_iotagent_thingmodel_ex(request, headers, runtime)
|
|
15649
|
+
|
|
15650
|
+
async def start_iotagent_thingmodel_async(
|
|
15651
|
+
self,
|
|
15652
|
+
request: bot_models.StartIotagentThingmodelRequest,
|
|
15653
|
+
) -> bot_models.StartIotagentThingmodelResponse:
|
|
15654
|
+
"""
|
|
15655
|
+
Description: 智能体流式物模型上报接口
|
|
15656
|
+
Summary: 智能体流式物模型上报接口
|
|
15657
|
+
"""
|
|
15658
|
+
runtime = util_models.RuntimeOptions()
|
|
15659
|
+
headers = {}
|
|
15660
|
+
return await self.start_iotagent_thingmodel_ex_async(request, headers, runtime)
|
|
15661
|
+
|
|
15662
|
+
def start_iotagent_thingmodel_ex(
|
|
15663
|
+
self,
|
|
15664
|
+
request: bot_models.StartIotagentThingmodelRequest,
|
|
15665
|
+
headers: Dict[str, str],
|
|
15666
|
+
runtime: util_models.RuntimeOptions,
|
|
15667
|
+
) -> bot_models.StartIotagentThingmodelResponse:
|
|
15668
|
+
"""
|
|
15669
|
+
Description: 智能体流式物模型上报接口
|
|
15670
|
+
Summary: 智能体流式物模型上报接口
|
|
15671
|
+
"""
|
|
15672
|
+
UtilClient.validate_model(request)
|
|
15673
|
+
return TeaCore.from_map(
|
|
15674
|
+
bot_models.StartIotagentThingmodelResponse(),
|
|
15675
|
+
self.do_request('1.0', 'blockchain.bot.iotagent.thingmodel.start', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime)
|
|
15676
|
+
)
|
|
15677
|
+
|
|
15678
|
+
async def start_iotagent_thingmodel_ex_async(
|
|
15679
|
+
self,
|
|
15680
|
+
request: bot_models.StartIotagentThingmodelRequest,
|
|
15681
|
+
headers: Dict[str, str],
|
|
15682
|
+
runtime: util_models.RuntimeOptions,
|
|
15683
|
+
) -> bot_models.StartIotagentThingmodelResponse:
|
|
15684
|
+
"""
|
|
15685
|
+
Description: 智能体流式物模型上报接口
|
|
15686
|
+
Summary: 智能体流式物模型上报接口
|
|
15687
|
+
"""
|
|
15688
|
+
UtilClient.validate_model(request)
|
|
15689
|
+
return TeaCore.from_map(
|
|
15690
|
+
bot_models.StartIotagentThingmodelResponse(),
|
|
15691
|
+
await self.do_request_async('1.0', 'blockchain.bot.iotagent.thingmodel.start', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime)
|
|
15692
|
+
)
|
|
15693
|
+
|
|
15526
15694
|
def exec_thingsdid_oneapi(
|
|
15527
15695
|
self,
|
|
15528
15696
|
request: bot_models.ExecThingsdidOneapiRequest,
|
antchain_sdk_bot/models.py
CHANGED
|
@@ -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,
|
|
@@ -45875,6 +45965,186 @@ class QueryAiStreamtestResponse(TeaModel):
|
|
|
45875
45965
|
return self
|
|
45876
45966
|
|
|
45877
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
|
+
|
|
46058
|
+
class StartIotagentThingmodelRequest(TeaModel):
|
|
46059
|
+
def __init__(
|
|
46060
|
+
self,
|
|
46061
|
+
auth_token: str = None,
|
|
46062
|
+
product_instance_id: str = None,
|
|
46063
|
+
agent_chat_request: str = None,
|
|
46064
|
+
):
|
|
46065
|
+
# OAuth模式下的授权token
|
|
46066
|
+
self.auth_token = auth_token
|
|
46067
|
+
self.product_instance_id = product_instance_id
|
|
46068
|
+
# 请求内容,内容为json字符串
|
|
46069
|
+
self.agent_chat_request = agent_chat_request
|
|
46070
|
+
|
|
46071
|
+
def validate(self):
|
|
46072
|
+
self.validate_required(self.agent_chat_request, 'agent_chat_request')
|
|
46073
|
+
|
|
46074
|
+
def to_map(self):
|
|
46075
|
+
_map = super().to_map()
|
|
46076
|
+
if _map is not None:
|
|
46077
|
+
return _map
|
|
46078
|
+
|
|
46079
|
+
result = dict()
|
|
46080
|
+
if self.auth_token is not None:
|
|
46081
|
+
result['auth_token'] = self.auth_token
|
|
46082
|
+
if self.product_instance_id is not None:
|
|
46083
|
+
result['product_instance_id'] = self.product_instance_id
|
|
46084
|
+
if self.agent_chat_request is not None:
|
|
46085
|
+
result['agent_chat_request'] = self.agent_chat_request
|
|
46086
|
+
return result
|
|
46087
|
+
|
|
46088
|
+
def from_map(self, m: dict = None):
|
|
46089
|
+
m = m or dict()
|
|
46090
|
+
if m.get('auth_token') is not None:
|
|
46091
|
+
self.auth_token = m.get('auth_token')
|
|
46092
|
+
if m.get('product_instance_id') is not None:
|
|
46093
|
+
self.product_instance_id = m.get('product_instance_id')
|
|
46094
|
+
if m.get('agent_chat_request') is not None:
|
|
46095
|
+
self.agent_chat_request = m.get('agent_chat_request')
|
|
46096
|
+
return self
|
|
46097
|
+
|
|
46098
|
+
|
|
46099
|
+
class StartIotagentThingmodelResponse(TeaModel):
|
|
46100
|
+
def __init__(
|
|
46101
|
+
self,
|
|
46102
|
+
req_msg_id: str = None,
|
|
46103
|
+
result_code: str = None,
|
|
46104
|
+
result_msg: str = None,
|
|
46105
|
+
chat_completion_object: str = None,
|
|
46106
|
+
):
|
|
46107
|
+
# 请求唯一ID,用于链路跟踪和问题排查
|
|
46108
|
+
self.req_msg_id = req_msg_id
|
|
46109
|
+
# 结果码,一般OK表示调用成功
|
|
46110
|
+
self.result_code = result_code
|
|
46111
|
+
# 异常信息的文本描述
|
|
46112
|
+
self.result_msg = result_msg
|
|
46113
|
+
# 物模型上报结果
|
|
46114
|
+
self.chat_completion_object = chat_completion_object
|
|
46115
|
+
|
|
46116
|
+
def validate(self):
|
|
46117
|
+
pass
|
|
46118
|
+
|
|
46119
|
+
def to_map(self):
|
|
46120
|
+
_map = super().to_map()
|
|
46121
|
+
if _map is not None:
|
|
46122
|
+
return _map
|
|
46123
|
+
|
|
46124
|
+
result = dict()
|
|
46125
|
+
if self.req_msg_id is not None:
|
|
46126
|
+
result['req_msg_id'] = self.req_msg_id
|
|
46127
|
+
if self.result_code is not None:
|
|
46128
|
+
result['result_code'] = self.result_code
|
|
46129
|
+
if self.result_msg is not None:
|
|
46130
|
+
result['result_msg'] = self.result_msg
|
|
46131
|
+
if self.chat_completion_object is not None:
|
|
46132
|
+
result['chat_completion_object'] = self.chat_completion_object
|
|
46133
|
+
return result
|
|
46134
|
+
|
|
46135
|
+
def from_map(self, m: dict = None):
|
|
46136
|
+
m = m or dict()
|
|
46137
|
+
if m.get('req_msg_id') is not None:
|
|
46138
|
+
self.req_msg_id = m.get('req_msg_id')
|
|
46139
|
+
if m.get('result_code') is not None:
|
|
46140
|
+
self.result_code = m.get('result_code')
|
|
46141
|
+
if m.get('result_msg') is not None:
|
|
46142
|
+
self.result_msg = m.get('result_msg')
|
|
46143
|
+
if m.get('chat_completion_object') is not None:
|
|
46144
|
+
self.chat_completion_object = m.get('chat_completion_object')
|
|
46145
|
+
return self
|
|
46146
|
+
|
|
46147
|
+
|
|
45878
46148
|
class ExecThingsdidOneapiRequest(TeaModel):
|
|
45879
46149
|
def __init__(
|
|
45880
46150
|
self,
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
antchain_sdk_bot/__init__.py,sha256=ZKO3GoM0jOHJNOI9HGFyMP4t29ZsUU-BJl33KKdf0j8,23
|
|
2
|
-
antchain_sdk_bot/client.py,sha256=YbSvtlDsx0L-pEF429gXIm0p9zIRYiR_xzJ3n6pvDjY,664342
|
|
3
|
-
antchain_sdk_bot/models.py,sha256=-i_qzKQz-U9FSF8OQIBP8jwmmuCoNLKArjEKj5190xU,1712560
|
|
4
|
-
antchain_bot-1.12.60.dist-info/LICENSE,sha256=0CFItL6bHvxqS44T6vlLoW2R4Zaic304OO3WxN0oXF0,600
|
|
5
|
-
antchain_bot-1.12.60.dist-info/METADATA,sha256=MI3F6hPSgHTiNwnBFHRJ34BqovDPXHAkoR6BBd3xf4o,1989
|
|
6
|
-
antchain_bot-1.12.60.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
|
|
7
|
-
antchain_bot-1.12.60.dist-info/top_level.txt,sha256=gpn1OPRhS8ydjW8IxqApJiA6jx285ves96g9kcJN9iA,17
|
|
8
|
-
antchain_bot-1.12.60.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|