jarvis-ai-assistant 0.1.34__py3-none-any.whl → 0.1.35__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- jarvis/__init__.py +1 -1
- jarvis/__pycache__/__init__.cpython-313.pyc +0 -0
- jarvis/__pycache__/agent.cpython-313.pyc +0 -0
- jarvis/agent.py +4 -0
- jarvis/tools/__pycache__/methodology.cpython-313.pyc +0 -0
- jarvis/tools/methodology.py +4 -8
- {jarvis_ai_assistant-0.1.34.dist-info → jarvis_ai_assistant-0.1.35.dist-info}/METADATA +1 -1
- {jarvis_ai_assistant-0.1.34.dist-info → jarvis_ai_assistant-0.1.35.dist-info}/RECORD +12 -12
- {jarvis_ai_assistant-0.1.34.dist-info → jarvis_ai_assistant-0.1.35.dist-info}/LICENSE +0 -0
- {jarvis_ai_assistant-0.1.34.dist-info → jarvis_ai_assistant-0.1.35.dist-info}/WHEEL +0 -0
- {jarvis_ai_assistant-0.1.34.dist-info → jarvis_ai_assistant-0.1.35.dist-info}/entry_points.txt +0 -0
- {jarvis_ai_assistant-0.1.34.dist-info → jarvis_ai_assistant-0.1.35.dist-info}/top_level.txt +0 -0
jarvis/__init__.py
CHANGED
Binary file
|
Binary file
|
jarvis/agent.py
CHANGED
@@ -286,4 +286,8 @@ arguments:
|
|
286
286
|
except Exception as e:
|
287
287
|
PrettyOutput.print(f"工具调用错误: {str(e)}", OutputType.ERROR)
|
288
288
|
return
|
289
|
+
if len(result) > 0:
|
290
|
+
PrettyOutput.print("执行工具调用...", OutputType.PROGRESS)
|
291
|
+
tool_result = self.tool_registry.handle_tool_calls(result)
|
292
|
+
PrettyOutput.print(tool_result, OutputType.RESULT)
|
289
293
|
|
Binary file
|
jarvis/tools/methodology.py
CHANGED
@@ -104,20 +104,16 @@ class MethodologyTool:
|
|
104
104
|
if not content:
|
105
105
|
return {
|
106
106
|
"success": False,
|
107
|
-
"error":
|
108
|
-
}
|
109
|
-
|
110
|
-
if operation == "update" and problem_type not in methodologies:
|
111
|
-
return {
|
112
|
-
"success": False,
|
113
|
-
"error": f"未找到问题类型 '{problem_type}' 的方法论,无法更新"
|
107
|
+
"error": "需要提供方法论内容"
|
114
108
|
}
|
115
109
|
|
116
110
|
methodologies[problem_type] = content
|
117
111
|
self._save_methodologies(methodologies)
|
112
|
+
|
113
|
+
action = "更新" if problem_type in methodologies else "添加"
|
118
114
|
return {
|
119
115
|
"success": True,
|
120
|
-
"stdout": f"已{
|
116
|
+
"stdout": f"已{action}问题类型 '{problem_type}' 的方法论"
|
121
117
|
}
|
122
118
|
|
123
119
|
else:
|
@@ -1,9 +1,9 @@
|
|
1
|
-
jarvis/__init__.py,sha256=
|
2
|
-
jarvis/agent.py,sha256=
|
1
|
+
jarvis/__init__.py,sha256=5fI-hCcWwDpuWaG2NdTnIprGfc5gh3M97CKK4kUaYDs,50
|
2
|
+
jarvis/agent.py,sha256=kopwMRC6ssHHqKCGivYbKw9QT1sfFGBp8mBlXpgvSL8,12050
|
3
3
|
jarvis/main.py,sha256=FOfc2v7iX9my5USyf4oxcGzyJe4AH4TwIEQk2WdNWrI,5768
|
4
4
|
jarvis/utils.py,sha256=JlkuC9RtspXH2VWDmj9nR0vnb8ie1gIsKc4vC7WRco8,7321
|
5
|
-
jarvis/__pycache__/__init__.cpython-313.pyc,sha256=
|
6
|
-
jarvis/__pycache__/agent.cpython-313.pyc,sha256=
|
5
|
+
jarvis/__pycache__/__init__.cpython-313.pyc,sha256=qozlnWUMO-ailx2DuRnwBKrO-4o-Vlb6ojK2FFcB-20,209
|
6
|
+
jarvis/__pycache__/agent.cpython-313.pyc,sha256=WjYlL3Cma6kJfYmyaqjztX0hayjzcHHgxFeCBVOBs_w,15571
|
7
7
|
jarvis/__pycache__/main.cpython-313.pyc,sha256=KKVD1bs_4MDOdq2f04rsJpI8Osp959Fo5KOsUUBvrDM,7985
|
8
8
|
jarvis/__pycache__/models.cpython-313.pyc,sha256=uWuRIjGrY4YDB3dGW5PGDLWaS03et8g11O725TjY_eU,5960
|
9
9
|
jarvis/__pycache__/tools.cpython-313.pyc,sha256=lAD4LrnnWzNZQmHXGfZ_2l7oskOpr2_2OC-gdFhxQY8,33933
|
@@ -27,7 +27,7 @@ jarvis/tools/__init__.py,sha256=Kj1bKj34lwRDKMKHLOrLyQElf2lHbqA2tDgP359eaDo,71
|
|
27
27
|
jarvis/tools/base.py,sha256=EGRGbdfbLXDLwtyoWdvp9rlxNX7bzc20t0Vc2VkwIEY,652
|
28
28
|
jarvis/tools/file_ops.py,sha256=h8g0eT9UvlJf4kt0DLXvdSsjcPj7x19lxWdDApeDfpg,3842
|
29
29
|
jarvis/tools/generator.py,sha256=qyNdarq5SGEFBjkIlohk13cP5wV9IeQK5qJs7MwGUZg,5740
|
30
|
-
jarvis/tools/methodology.py,sha256=
|
30
|
+
jarvis/tools/methodology.py,sha256=UG6s5VYRcd9wrKX4cg6f7zJhet5AIcthFGMOAdevBiw,5175
|
31
31
|
jarvis/tools/registry.py,sha256=lSdx1coMf2IFE8hfwCbCgSW83yVRCp0H981kj7c80e0,7167
|
32
32
|
jarvis/tools/shell.py,sha256=UPKshPyOaUwTngresUw-ot1jHjQIb4wCY5nkJqa38lU,2520
|
33
33
|
jarvis/tools/sub_agent.py,sha256=rEtAmSVY2ZjFOZEKr5m5wpACOQIiM9Zr_3dT92FhXYU,2621
|
@@ -38,7 +38,7 @@ jarvis/tools/__pycache__/calculator.cpython-313.pyc,sha256=C_qwTDGm6gc7QNxtPzPZX
|
|
38
38
|
jarvis/tools/__pycache__/calculator_tool.cpython-313.pyc,sha256=PI4LZNDTPdSe3ffWDRovLZ-r-vF8Kl-n6xdGdFWiBpY,4296
|
39
39
|
jarvis/tools/__pycache__/file_ops.cpython-313.pyc,sha256=qfgRIcO7JFsa_FxOOXV-3pNSnlovZDrcIkZ1WN3pOJI,3773
|
40
40
|
jarvis/tools/__pycache__/generator.cpython-313.pyc,sha256=sSO-y6fREIenF4cvFgaAtd0rAu95Epd5VZpjhmOfPRk,6155
|
41
|
-
jarvis/tools/__pycache__/methodology.cpython-313.pyc,sha256=
|
41
|
+
jarvis/tools/__pycache__/methodology.cpython-313.pyc,sha256=k_B9KD3FDJEt-wW_NwhVlK-hi1YB4iLCiCs82kVJHe8,6180
|
42
42
|
jarvis/tools/__pycache__/python_script.cpython-313.pyc,sha256=8JpryqTovEiTvBlWAK1KjZmPvHUuPc9GT9rTXBEQoJc,6693
|
43
43
|
jarvis/tools/__pycache__/rag.cpython-313.pyc,sha256=JH6-PSZRMKAvTZqCwlRXJGClxYXNMs-vetU0q7hBLz0,6064
|
44
44
|
jarvis/tools/__pycache__/registry.cpython-313.pyc,sha256=TFRMsyO-g0YiQiez-jpi2YwBLzWu89Y6QyuidNB-ojc,9310
|
@@ -49,9 +49,9 @@ jarvis/tools/__pycache__/user_confirmation.cpython-313.pyc,sha256=wK3Ev10lHSUSRv
|
|
49
49
|
jarvis/tools/__pycache__/user_input.cpython-313.pyc,sha256=JjTFOhObKsKF4Pn8KBRuKfV1_Ssj083fjU7Mfc_5z7c,2531
|
50
50
|
jarvis/tools/__pycache__/user_interaction.cpython-313.pyc,sha256=RuVZ-pmiPBDywY3efgXSfohMAciC1avMGPmBK5qlnew,3305
|
51
51
|
jarvis/tools/__pycache__/webpage.cpython-313.pyc,sha256=BjzSfnNzsKCrLETCcWjt32lNDLzwnjqcVGg4JfWd9OM,3008
|
52
|
-
jarvis_ai_assistant-0.1.
|
53
|
-
jarvis_ai_assistant-0.1.
|
54
|
-
jarvis_ai_assistant-0.1.
|
55
|
-
jarvis_ai_assistant-0.1.
|
56
|
-
jarvis_ai_assistant-0.1.
|
57
|
-
jarvis_ai_assistant-0.1.
|
52
|
+
jarvis_ai_assistant-0.1.35.dist-info/LICENSE,sha256=AGgVgQmTqFvaztRtCAXsAMryUymB18gZif7_l2e1XOg,1063
|
53
|
+
jarvis_ai_assistant-0.1.35.dist-info/METADATA,sha256=foV1g-55AuPkzNjRsR7zCfOOv8jodE53SorjSmpvYJs,9765
|
54
|
+
jarvis_ai_assistant-0.1.35.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
55
|
+
jarvis_ai_assistant-0.1.35.dist-info/entry_points.txt,sha256=iKu7OMfew9dtfGhW71gIMTg4wvafuPqKb4wyQOnMAGU,44
|
56
|
+
jarvis_ai_assistant-0.1.35.dist-info/top_level.txt,sha256=1BOxyWfzOP_ZXj8rVTDnNCJ92bBGB0rwq8N1PCpoMIs,7
|
57
|
+
jarvis_ai_assistant-0.1.35.dist-info/RECORD,,
|
File without changes
|
File without changes
|
{jarvis_ai_assistant-0.1.34.dist-info → jarvis_ai_assistant-0.1.35.dist-info}/entry_points.txt
RENAMED
File without changes
|
File without changes
|