antchain-bot 1.12.62__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.62.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 +58 -2
- antchain_sdk_bot/models.py +90 -0
- antchain_bot-1.12.62.dist-info/RECORD +0 -8
- {antchain_bot-1.12.62.dist-info → antchain_bot-1.12.66.dist-info}/LICENSE +0 -0
- {antchain_bot-1.12.62.dist-info → antchain_bot-1.12.66.dist-info}/WHEEL +0 -0
- {antchain_bot-1.12.62.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
|
}
|
|
@@ -15635,6 +15635,62 @@ class Client:
|
|
|
15635
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
15636
|
)
|
|
15637
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
|
+
|
|
15638
15694
|
def exec_thingsdid_oneapi(
|
|
15639
15695
|
self,
|
|
15640
15696
|
request: bot_models.ExecThingsdidOneapiRequest,
|
antchain_sdk_bot/models.py
CHANGED
|
@@ -46055,6 +46055,96 @@ class StartIotagentChatResponse(TeaModel):
|
|
|
46055
46055
|
return self
|
|
46056
46056
|
|
|
46057
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
|
+
|
|
46058
46148
|
class ExecThingsdidOneapiRequest(TeaModel):
|
|
46059
46149
|
def __init__(
|
|
46060
46150
|
self,
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
antchain_sdk_bot/__init__.py,sha256=d1y6_6QMOIciBjJ9gop7uwjIqvlvQUVAiWJG3RBa4L8,23
|
|
2
|
-
antchain_sdk_bot/client.py,sha256=MPEwHzvLhZ42NggaDlGlPxx0E5qoccJexAMGvIMeoX8,668692
|
|
3
|
-
antchain_sdk_bot/models.py,sha256=agzYAz_1MqzofcWLwAy-IE805hY4IvWBWJ-LF6ZeDL0,1718932
|
|
4
|
-
antchain_bot-1.12.62.dist-info/LICENSE,sha256=0CFItL6bHvxqS44T6vlLoW2R4Zaic304OO3WxN0oXF0,600
|
|
5
|
-
antchain_bot-1.12.62.dist-info/METADATA,sha256=2ugcL862pbkKeXnMr0UB3GcnLgSAtFdVecTSwo1bx4U,1989
|
|
6
|
-
antchain_bot-1.12.62.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
|
|
7
|
-
antchain_bot-1.12.62.dist-info/top_level.txt,sha256=gpn1OPRhS8ydjW8IxqApJiA6jx285ves96g9kcJN9iA,17
|
|
8
|
-
antchain_bot-1.12.62.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|