|
|
@ -15,7 +15,7 @@ if __name__ == '__main__':
|
|
|
|
########## 测试 function call #########
|
|
|
|
########## 测试 function call #########
|
|
|
|
# print(dsr.invoke_with_tool_call('播放南卡口相机'))
|
|
|
|
# print(dsr.invoke_with_tool_call('播放南卡口相机'))
|
|
|
|
## [{'name': 'play_video', 'args': {'camera_name': '北卡口1号道相机'}, 'id': 'call_apnb8fiqdkaz313katcs3tjf', 'type': 'tool_call'}]
|
|
|
|
## [{'name': 'play_video', 'args': {'camera_name': '北卡口1号道相机'}, 'id': 'call_apnb8fiqdkaz313katcs3tjf', 'type': 'tool_call'}]
|
|
|
|
dsr.multi_with_tool_call_stream('将大屏切换为-1分屏', 1)
|
|
|
|
# dsr.multi_with_tool_call_stream('将大屏切换为-1分屏', 1)
|
|
|
|
## [{'name': 'split_screen', 'args': {'split_n': 2}, 'id': 'call_2o7c94f591xag8p6lcyice9q', 'type': 'tool_call'}]
|
|
|
|
## [{'name': 'split_screen', 'args': {'split_n': 2}, 'id': 'call_2o7c94f591xag8p6lcyice9q', 'type': 'tool_call'}]
|
|
|
|
# print(dsr.invoke_with_tool('播放北卡口入境1号道录像,从今天到2025-03-16 02:09:31'))
|
|
|
|
# print(dsr.invoke_with_tool('播放北卡口入境1号道录像,从今天到2025-03-16 02:09:31'))
|
|
|
|
## 由于大模型没有联网,所以无法判断‘今天’
|
|
|
|
## 由于大模型没有联网,所以无法判断‘今天’
|
|
|
@ -40,5 +40,5 @@ if __name__ == '__main__':
|
|
|
|
# dsr.multi_with_stream('我的第一个问题是什么?请直接返回问题,不要有多余输出及思考过程', 1)
|
|
|
|
# dsr.multi_with_stream('我的第一个问题是什么?请直接返回问题,不要有多余输出及思考过程', 1)
|
|
|
|
|
|
|
|
|
|
|
|
########## 测试 多轮对话-相机选择 #########
|
|
|
|
########## 测试 多轮对话-相机选择 #########
|
|
|
|
# dsr.multi_with_tool_call_stream('播放南卡口相机', 1)
|
|
|
|
dsr.multi_with_tool_call_stream('播放南卡口相机', 1)
|
|
|
|
# dsr.multi_with_tool_call_stream('1', 1)
|
|
|
|
dsr.multi_with_tool_call_stream('1', 1)
|
|
|
|