itam-assistant 0.1.14__tar.gz → 0.1.15__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.
Files changed (19) hide show
  1. {itam_assistant-0.1.14 → itam_assistant-0.1.15}/PKG-INFO +1 -1
  2. {itam_assistant-0.1.14 → itam_assistant-0.1.15}/itam_assistant/do_ai.py +5 -4
  3. {itam_assistant-0.1.14 → itam_assistant-0.1.15}/itam_assistant.egg-info/PKG-INFO +1 -1
  4. {itam_assistant-0.1.14 → itam_assistant-0.1.15}/setup.py +1 -1
  5. {itam_assistant-0.1.14 → itam_assistant-0.1.15}/README.md +0 -0
  6. {itam_assistant-0.1.14 → itam_assistant-0.1.15}/itam_assistant/__init__.py +0 -0
  7. {itam_assistant-0.1.14 → itam_assistant-0.1.15}/itam_assistant/ailyapp_client.py +0 -0
  8. {itam_assistant-0.1.14 → itam_assistant-0.1.15}/itam_assistant/config.py +0 -0
  9. {itam_assistant-0.1.14 → itam_assistant-0.1.15}/itam_assistant/intent_detail.py +0 -0
  10. {itam_assistant-0.1.14 → itam_assistant-0.1.15}/itam_assistant/lark_client.py +0 -0
  11. {itam_assistant-0.1.14 → itam_assistant-0.1.15}/itam_assistant/logger.py +0 -0
  12. {itam_assistant-0.1.14 → itam_assistant-0.1.15}/itam_assistant/openapi.py +0 -0
  13. {itam_assistant-0.1.14 → itam_assistant-0.1.15}/itam_assistant/test.py +0 -0
  14. {itam_assistant-0.1.14 → itam_assistant-0.1.15}/itam_assistant.egg-info/SOURCES.txt +0 -0
  15. {itam_assistant-0.1.14 → itam_assistant-0.1.15}/itam_assistant.egg-info/dependency_links.txt +0 -0
  16. {itam_assistant-0.1.14 → itam_assistant-0.1.15}/itam_assistant.egg-info/requires.txt +0 -0
  17. {itam_assistant-0.1.14 → itam_assistant-0.1.15}/itam_assistant.egg-info/top_level.txt +0 -0
  18. {itam_assistant-0.1.14 → itam_assistant-0.1.15}/setup.cfg +0 -0
  19. {itam_assistant-0.1.14 → itam_assistant-0.1.15}/test/test.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: itam_assistant
3
- Version: 0.1.14
3
+ Version: 0.1.15
4
4
  Summary: 优化版本--算法-水位线
5
5
  Home-page: https://github.com/liujunmeiD/itam_assistant
6
6
  Author: liujunmeiD
@@ -213,6 +213,7 @@ def do_waterlevellineres_listassetspu(res, info,hardtype):
213
213
  info['label'] = [{'label': '', 'score': 0}]
214
214
  info['rt'] = False
215
215
  return info
216
+ info['output']['用户输出/output'] = 'requestId:' + res['requestId']
216
217
  if hardtype != 100:
217
218
  if res["data"].get("AiBorrowAndUseResponseList") == None:
218
219
  info['label'] = [{'label': '', 'score': 0}, {'label': '', 'score': 0.8}]
@@ -221,7 +222,6 @@ def do_waterlevellineres_listassetspu(res, info,hardtype):
221
222
  info['rt'] = True
222
223
  return info
223
224
  reslist = res["data"]["AiBorrowAndUseResponseList"]
224
- info['output']['用户输入/output'] = 'requestId:' + res['requestId']
225
225
  aaa = {}
226
226
  # 判断res["body"]["Results"]不为空,空则:label0 label1 为空,label默认2级
227
227
  if reslist:
@@ -239,6 +239,7 @@ def do_waterlevellineres_listassetspu(res, info,hardtype):
239
239
  'score': reslist[j]['Score']}
240
240
  info['label'].append(copy.deepcopy(aaa))
241
241
  # 判断label0和label1是否为空,为空则:label默认2级
242
+ info['rt'] = do_businessassertionrules(info['label'], info['exp'])
242
243
  else:
243
244
  info['label'] = [{'label': '', 'score': 0}, {'label': '', 'score': 0}]
244
245
  info['rt'] = False
@@ -529,7 +530,7 @@ def do_waterlevelline_autotest_aseetspu(collections, clientinfo, score_threshold
529
530
  "用户输入/userInput": "我要申请软件,名字叫:ai_xzh_all_restricted_software完全受限软件"
530
531
  },
531
532
  "output": {
532
- "用户输入/output": "我要申请软件,名字叫:ai_xzh_all_restricted_software完全受限软件"
533
+ "用户输出/output": "我要申请软件,名字叫:ai_xzh_all_restricted_software完全受限软件"
533
534
  },
534
535
  "rt": True,
535
536
  "label": [{"label": "GUI 软件申请", "score": 0.6}, {"label": "软件申请", "score": 0.5}],
@@ -539,8 +540,8 @@ def do_waterlevelline_autotest_aseetspu(collections, clientinfo, score_threshold
539
540
  }
540
541
  a =0
541
542
  for i in collections:
542
- info['input']['用户输入/userInput'] = i['ext']['资产名称']
543
- info['output']['用户输入/output'] = i['ext']['资产名称']
543
+ info['input']['用户输入/userInput'] = "用户对话:"+i['ext']['用户输入']+",关键词提取:"+i['ext']['资产名称']
544
+ info['output']['用户输出/output'] = i['ext']['资产名称']
544
545
  info['exp'] = []
545
546
  for j in [i['ext']['匹配型号1'], i['ext'].get('匹配型号2'),
546
547
  i['ext'].get('匹配型号3'), i['ext'].get('匹配型号4'),
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: itam_assistant
3
- Version: 0.1.14
3
+ Version: 0.1.15
4
4
  Summary: 优化版本--算法-水位线
5
5
  Home-page: https://github.com/liujunmeiD/itam_assistant
6
6
  Author: liujunmeiD
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name="itam_assistant", # 包名称
5
- version="0.1.14", # 版本号
5
+ version="0.1.15", # 版本号
6
6
  author="liujunmeiD",
7
7
  author_email="1105030421@qq.com",
8
8
  description="优化版本--算法-水位线",