antchain-bot 1.12.53__py3-none-any.whl → 1.12.58__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.53.dist-info → antchain_bot-1.12.58.dist-info}/METADATA +1 -1
- antchain_bot-1.12.58.dist-info/RECORD +8 -0
- antchain_sdk_bot/__init__.py +1 -1
- antchain_sdk_bot/client.py +114 -2
- antchain_sdk_bot/models.py +196 -1
- antchain_bot-1.12.53.dist-info/RECORD +0 -8
- {antchain_bot-1.12.53.dist-info → antchain_bot-1.12.58.dist-info}/LICENSE +0 -0
- {antchain_bot-1.12.53.dist-info → antchain_bot-1.12.58.dist-info}/WHEEL +0 -0
- {antchain_bot-1.12.53.dist-info → antchain_bot-1.12.58.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
antchain_sdk_bot/__init__.py,sha256=5Ppehw8hYOuw5C6mMNsTzzWUYn6WYawc_Hry0JsRNHw,23
|
|
2
|
+
antchain_sdk_bot/client.py,sha256=O-OLLgkQmyZF-5rVYtXvLl9GPXlEIGS7mLG9KQwwrH8,664342
|
|
3
|
+
antchain_sdk_bot/models.py,sha256=gei5JEi_2Ij8skTidE_GcnO7w1rYeVbjCTHZTDEDEKg,1712888
|
|
4
|
+
antchain_bot-1.12.58.dist-info/LICENSE,sha256=0CFItL6bHvxqS44T6vlLoW2R4Zaic304OO3WxN0oXF0,600
|
|
5
|
+
antchain_bot-1.12.58.dist-info/METADATA,sha256=bIIsBuiPJPRr_kopdPamXV1VZuWkGSMFvQvX_2lHs10,1989
|
|
6
|
+
antchain_bot-1.12.58.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
|
|
7
|
+
antchain_bot-1.12.58.dist-info/top_level.txt,sha256=gpn1OPRhS8ydjW8IxqApJiA6jx285ves96g9kcJN9iA,17
|
|
8
|
+
antchain_bot-1.12.58.dist-info/RECORD,,
|
antchain_sdk_bot/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = '1.12.
|
|
1
|
+
__version__ = '1.12.58'
|
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.58',
|
|
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.58',
|
|
243
243
|
'_prod_code': 'BOT',
|
|
244
244
|
'_prod_channel': 'undefined'
|
|
245
245
|
}
|
|
@@ -443,6 +443,62 @@ 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
|
+
|
|
446
502
|
def create_lease_realperson(
|
|
447
503
|
self,
|
|
448
504
|
request: bot_models.CreateLeaseRealpersonRequest,
|
|
@@ -15411,6 +15467,62 @@ class Client:
|
|
|
15411
15467
|
await self.do_request_async('1.0', 'blockchain.bot.techintegration.skushipemptymodelbyuid.apply', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime)
|
|
15412
15468
|
)
|
|
15413
15469
|
|
|
15470
|
+
def query_ai_streamtest(
|
|
15471
|
+
self,
|
|
15472
|
+
request: bot_models.QueryAiStreamtestRequest,
|
|
15473
|
+
) -> bot_models.QueryAiStreamtestResponse:
|
|
15474
|
+
"""
|
|
15475
|
+
Description: 流式链路测试
|
|
15476
|
+
Summary: 流式链路测试
|
|
15477
|
+
"""
|
|
15478
|
+
runtime = util_models.RuntimeOptions()
|
|
15479
|
+
headers = {}
|
|
15480
|
+
return self.query_ai_streamtest_ex(request, headers, runtime)
|
|
15481
|
+
|
|
15482
|
+
async def query_ai_streamtest_async(
|
|
15483
|
+
self,
|
|
15484
|
+
request: bot_models.QueryAiStreamtestRequest,
|
|
15485
|
+
) -> bot_models.QueryAiStreamtestResponse:
|
|
15486
|
+
"""
|
|
15487
|
+
Description: 流式链路测试
|
|
15488
|
+
Summary: 流式链路测试
|
|
15489
|
+
"""
|
|
15490
|
+
runtime = util_models.RuntimeOptions()
|
|
15491
|
+
headers = {}
|
|
15492
|
+
return await self.query_ai_streamtest_ex_async(request, headers, runtime)
|
|
15493
|
+
|
|
15494
|
+
def query_ai_streamtest_ex(
|
|
15495
|
+
self,
|
|
15496
|
+
request: bot_models.QueryAiStreamtestRequest,
|
|
15497
|
+
headers: Dict[str, str],
|
|
15498
|
+
runtime: util_models.RuntimeOptions,
|
|
15499
|
+
) -> bot_models.QueryAiStreamtestResponse:
|
|
15500
|
+
"""
|
|
15501
|
+
Description: 流式链路测试
|
|
15502
|
+
Summary: 流式链路测试
|
|
15503
|
+
"""
|
|
15504
|
+
UtilClient.validate_model(request)
|
|
15505
|
+
return TeaCore.from_map(
|
|
15506
|
+
bot_models.QueryAiStreamtestResponse(),
|
|
15507
|
+
self.do_request('1.0', 'blockchain.bot.ai.streamtest.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime)
|
|
15508
|
+
)
|
|
15509
|
+
|
|
15510
|
+
async def query_ai_streamtest_ex_async(
|
|
15511
|
+
self,
|
|
15512
|
+
request: bot_models.QueryAiStreamtestRequest,
|
|
15513
|
+
headers: Dict[str, str],
|
|
15514
|
+
runtime: util_models.RuntimeOptions,
|
|
15515
|
+
) -> bot_models.QueryAiStreamtestResponse:
|
|
15516
|
+
"""
|
|
15517
|
+
Description: 流式链路测试
|
|
15518
|
+
Summary: 流式链路测试
|
|
15519
|
+
"""
|
|
15520
|
+
UtilClient.validate_model(request)
|
|
15521
|
+
return TeaCore.from_map(
|
|
15522
|
+
bot_models.QueryAiStreamtestResponse(),
|
|
15523
|
+
await self.do_request_async('1.0', 'blockchain.bot.ai.streamtest.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime)
|
|
15524
|
+
)
|
|
15525
|
+
|
|
15414
15526
|
def exec_thingsdid_oneapi(
|
|
15415
15527
|
self,
|
|
15416
15528
|
request: bot_models.ExecThingsdidOneapiRequest,
|
antchain_sdk_bot/models.py
CHANGED
|
@@ -11641,6 +11641,96 @@ 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
|
+
|
|
11644
11734
|
class CreateLeaseRealpersonRequest(TeaModel):
|
|
11645
11735
|
def __init__(
|
|
11646
11736
|
self,
|
|
@@ -30221,7 +30311,7 @@ class RegisterElectrocarDeviceResponse(TeaModel):
|
|
|
30221
30311
|
req_msg_id: str = None,
|
|
30222
30312
|
result_code: str = None,
|
|
30223
30313
|
result_msg: str = None,
|
|
30224
|
-
success:
|
|
30314
|
+
success: bool = None,
|
|
30225
30315
|
tuid: str = None,
|
|
30226
30316
|
car_key_init_data: str = None,
|
|
30227
30317
|
mqtt_content: str = None,
|
|
@@ -45688,6 +45778,111 @@ class ApplyTechintegrationSkushipemptymodelbyuidResponse(TeaModel):
|
|
|
45688
45778
|
return self
|
|
45689
45779
|
|
|
45690
45780
|
|
|
45781
|
+
class QueryAiStreamtestRequest(TeaModel):
|
|
45782
|
+
def __init__(
|
|
45783
|
+
self,
|
|
45784
|
+
auth_token: str = None,
|
|
45785
|
+
product_instance_id: str = None,
|
|
45786
|
+
query: str = None,
|
|
45787
|
+
user_id: str = None,
|
|
45788
|
+
):
|
|
45789
|
+
# OAuth模式下的授权token
|
|
45790
|
+
self.auth_token = auth_token
|
|
45791
|
+
self.product_instance_id = product_instance_id
|
|
45792
|
+
# 咨询内容
|
|
45793
|
+
self.query = query
|
|
45794
|
+
# 用户ID
|
|
45795
|
+
self.user_id = user_id
|
|
45796
|
+
|
|
45797
|
+
def validate(self):
|
|
45798
|
+
self.validate_required(self.query, 'query')
|
|
45799
|
+
self.validate_required(self.user_id, 'user_id')
|
|
45800
|
+
|
|
45801
|
+
def to_map(self):
|
|
45802
|
+
_map = super().to_map()
|
|
45803
|
+
if _map is not None:
|
|
45804
|
+
return _map
|
|
45805
|
+
|
|
45806
|
+
result = dict()
|
|
45807
|
+
if self.auth_token is not None:
|
|
45808
|
+
result['auth_token'] = self.auth_token
|
|
45809
|
+
if self.product_instance_id is not None:
|
|
45810
|
+
result['product_instance_id'] = self.product_instance_id
|
|
45811
|
+
if self.query is not None:
|
|
45812
|
+
result['query'] = self.query
|
|
45813
|
+
if self.user_id is not None:
|
|
45814
|
+
result['user_id'] = self.user_id
|
|
45815
|
+
return result
|
|
45816
|
+
|
|
45817
|
+
def from_map(self, m: dict = None):
|
|
45818
|
+
m = m or dict()
|
|
45819
|
+
if m.get('auth_token') is not None:
|
|
45820
|
+
self.auth_token = m.get('auth_token')
|
|
45821
|
+
if m.get('product_instance_id') is not None:
|
|
45822
|
+
self.product_instance_id = m.get('product_instance_id')
|
|
45823
|
+
if m.get('query') is not None:
|
|
45824
|
+
self.query = m.get('query')
|
|
45825
|
+
if m.get('user_id') is not None:
|
|
45826
|
+
self.user_id = m.get('user_id')
|
|
45827
|
+
return self
|
|
45828
|
+
|
|
45829
|
+
|
|
45830
|
+
class QueryAiStreamtestResponse(TeaModel):
|
|
45831
|
+
def __init__(
|
|
45832
|
+
self,
|
|
45833
|
+
req_msg_id: str = None,
|
|
45834
|
+
result_code: str = None,
|
|
45835
|
+
result_msg: str = None,
|
|
45836
|
+
success: bool = None,
|
|
45837
|
+
result: str = None,
|
|
45838
|
+
):
|
|
45839
|
+
# 请求唯一ID,用于链路跟踪和问题排查
|
|
45840
|
+
self.req_msg_id = req_msg_id
|
|
45841
|
+
# 结果码,一般OK表示调用成功
|
|
45842
|
+
self.result_code = result_code
|
|
45843
|
+
# 异常信息的文本描述
|
|
45844
|
+
self.result_msg = result_msg
|
|
45845
|
+
# 结果
|
|
45846
|
+
self.success = success
|
|
45847
|
+
# 结果
|
|
45848
|
+
self.result = result
|
|
45849
|
+
|
|
45850
|
+
def validate(self):
|
|
45851
|
+
pass
|
|
45852
|
+
|
|
45853
|
+
def to_map(self):
|
|
45854
|
+
_map = super().to_map()
|
|
45855
|
+
if _map is not None:
|
|
45856
|
+
return _map
|
|
45857
|
+
|
|
45858
|
+
result = dict()
|
|
45859
|
+
if self.req_msg_id is not None:
|
|
45860
|
+
result['req_msg_id'] = self.req_msg_id
|
|
45861
|
+
if self.result_code is not None:
|
|
45862
|
+
result['result_code'] = self.result_code
|
|
45863
|
+
if self.result_msg is not None:
|
|
45864
|
+
result['result_msg'] = self.result_msg
|
|
45865
|
+
if self.success is not None:
|
|
45866
|
+
result['success'] = self.success
|
|
45867
|
+
if self.result is not None:
|
|
45868
|
+
result['result'] = self.result
|
|
45869
|
+
return result
|
|
45870
|
+
|
|
45871
|
+
def from_map(self, m: dict = None):
|
|
45872
|
+
m = m or dict()
|
|
45873
|
+
if m.get('req_msg_id') is not None:
|
|
45874
|
+
self.req_msg_id = m.get('req_msg_id')
|
|
45875
|
+
if m.get('result_code') is not None:
|
|
45876
|
+
self.result_code = m.get('result_code')
|
|
45877
|
+
if m.get('result_msg') is not None:
|
|
45878
|
+
self.result_msg = m.get('result_msg')
|
|
45879
|
+
if m.get('success') is not None:
|
|
45880
|
+
self.success = m.get('success')
|
|
45881
|
+
if m.get('result') is not None:
|
|
45882
|
+
self.result = m.get('result')
|
|
45883
|
+
return self
|
|
45884
|
+
|
|
45885
|
+
|
|
45691
45886
|
class ExecThingsdidOneapiRequest(TeaModel):
|
|
45692
45887
|
def __init__(
|
|
45693
45888
|
self,
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
antchain_sdk_bot/__init__.py,sha256=S4OlsU-V9PEDNa6tSTC_dmyh4LZqTUMBzQx_EIhw1-E,23
|
|
2
|
-
antchain_sdk_bot/client.py,sha256=NvFdeUaAOF4607qFoYI8cTxYakBH1OPUX-LqqA3ikpI,660244
|
|
3
|
-
antchain_sdk_bot/models.py,sha256=e-MMT6IVBZ-8jXPDTQAvO-627fuQT2RlE1QdJk2Y3Us,1706453
|
|
4
|
-
antchain_bot-1.12.53.dist-info/LICENSE,sha256=0CFItL6bHvxqS44T6vlLoW2R4Zaic304OO3WxN0oXF0,600
|
|
5
|
-
antchain_bot-1.12.53.dist-info/METADATA,sha256=DOiMHlPUPsDqhF5RHDBgevWZt3rqxIhgmxSNaq98qDs,1989
|
|
6
|
-
antchain_bot-1.12.53.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
|
|
7
|
-
antchain_bot-1.12.53.dist-info/top_level.txt,sha256=gpn1OPRhS8ydjW8IxqApJiA6jx285ves96g9kcJN9iA,17
|
|
8
|
-
antchain_bot-1.12.53.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|