jarvis-ai-assistant 0.1.0__py3-none-any.whl → 0.1.2__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.
Potentially problematic release.
This version of jarvis-ai-assistant might be problematic. Click here for more details.
- jarvis/__init__.py +1 -1
- jarvis/__pycache__/__init__.cpython-313.pyc +0 -0
- jarvis/tools/__pycache__/base.cpython-313.pyc +0 -0
- jarvis/tools/base.py +40 -15
- {jarvis_ai_assistant-0.1.0.dist-info → jarvis_ai_assistant-0.1.2.dist-info}/METADATA +1 -1
- {jarvis_ai_assistant-0.1.0.dist-info → jarvis_ai_assistant-0.1.2.dist-info}/RECORD +9 -8
- {jarvis_ai_assistant-0.1.0.dist-info → jarvis_ai_assistant-0.1.2.dist-info}/WHEEL +0 -0
- {jarvis_ai_assistant-0.1.0.dist-info → jarvis_ai_assistant-0.1.2.dist-info}/entry_points.txt +0 -0
- {jarvis_ai_assistant-0.1.0.dist-info → jarvis_ai_assistant-0.1.2.dist-info}/top_level.txt +0 -0
jarvis/__init__.py
CHANGED
|
Binary file
|
|
Binary file
|
jarvis/tools/base.py
CHANGED
|
@@ -117,7 +117,6 @@ class ToolRegistry:
|
|
|
117
117
|
def tool_help_text(self) -> str:
|
|
118
118
|
"""返回所有工具的帮助文本"""
|
|
119
119
|
return """Available Tools:
|
|
120
|
-
|
|
121
120
|
1. search: Search for information using DuckDuckGo
|
|
122
121
|
2. read_webpage: Extract content from webpages
|
|
123
122
|
3. execute_python: Run Python code with dependency management
|
|
@@ -127,29 +126,55 @@ class ToolRegistry:
|
|
|
127
126
|
7. file_operation: Read/write files in workspace directory
|
|
128
127
|
8. rag_query: Query documents using RAG
|
|
129
128
|
|
|
130
|
-
Guidelines:
|
|
131
|
-
1.
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
129
|
+
Output Guidelines:
|
|
130
|
+
1. Focus on Essential Information
|
|
131
|
+
- Filter out irrelevant or redundant information
|
|
132
|
+
- Only output the most relevant search results
|
|
133
|
+
- Summarize long content when possible
|
|
134
|
+
|
|
135
|
+
2. Context Management
|
|
136
|
+
- Avoid repeating information that's already known
|
|
137
|
+
- Don't echo back the entire content of files
|
|
138
|
+
- Use snippets instead of full documents
|
|
139
|
+
|
|
140
|
+
3. Error Handling
|
|
141
|
+
- Only show relevant parts of error messages
|
|
142
|
+
- Include troubleshooting steps when appropriate
|
|
143
|
+
- Omit stack traces unless specifically requested
|
|
144
|
+
|
|
145
|
+
4. Search Results
|
|
146
|
+
- Focus on the most relevant 2-3 results
|
|
147
|
+
- Extract key information instead of full articles
|
|
148
|
+
- Skip duplicate or similar content
|
|
149
|
+
|
|
150
|
+
5. RAG Queries
|
|
151
|
+
- Return only the most relevant passages
|
|
152
|
+
- Combine similar information
|
|
153
|
+
- Skip redundant context
|
|
154
|
+
|
|
155
|
+
Tool Usage Examples:
|
|
137
156
|
<tool_call>
|
|
138
157
|
{
|
|
139
|
-
"name": "
|
|
158
|
+
"name": "search",
|
|
140
159
|
"arguments": {
|
|
141
|
-
"
|
|
160
|
+
"query": "Python GIL",
|
|
161
|
+
"max_results": 2 # Limit results to save context
|
|
142
162
|
}
|
|
143
163
|
}
|
|
144
164
|
</tool_call>
|
|
145
165
|
|
|
146
|
-
Example:
|
|
147
166
|
<tool_call>
|
|
148
167
|
{
|
|
149
|
-
"name": "
|
|
168
|
+
"name": "read_webpage",
|
|
150
169
|
"arguments": {
|
|
151
|
-
"
|
|
152
|
-
"
|
|
170
|
+
"url": "https://example.com",
|
|
171
|
+
"extract_type": "text" # Only get main content
|
|
153
172
|
}
|
|
154
173
|
}
|
|
155
|
-
</tool_call>
|
|
174
|
+
</tool_call>
|
|
175
|
+
|
|
176
|
+
Remember:
|
|
177
|
+
1. Quality over quantity
|
|
178
|
+
2. Relevance over completeness
|
|
179
|
+
3. Conciseness over verbosity
|
|
180
|
+
4. Context efficiency is crucial"""
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
jarvis/.jarvis,sha256=S4ZMmLqlVLHAPmnwHFQ3vYt0gnDFp-KQRH4okBh8Hpw,209
|
|
2
|
-
jarvis/__init__.py,sha256=
|
|
2
|
+
jarvis/__init__.py,sha256=V3Qwm3k_WFeGUNccLbLJuCyWQyXYnRUkY5-KlBUm4UU,49
|
|
3
3
|
jarvis/agent.py,sha256=hEatrIothG6C_RuOsygZz4ez1aF1EycnUPwY2Krwiwk,4092
|
|
4
4
|
jarvis/main.py,sha256=wAeeGoRq8fFiTWUCQ31MYVeU9o6SZ48ORUow0jlMJJE,5259
|
|
5
5
|
jarvis/models.py,sha256=ZQAyc39e_UsNmHkME6ATp6053safQ7Gog-oWwETsrMM,4415
|
|
6
6
|
jarvis/utils.py,sha256=-fOPAgiKVPC6DevHM7A7IJvvIzvvFlGM0pHBKyBXDcA,3044
|
|
7
|
+
jarvis/__pycache__/__init__.cpython-313.pyc,sha256=u64PLu4KyOPrirhIqNXZSkj9B6yB1L_ohFYhPX8p334,208
|
|
7
8
|
jarvis/__pycache__/agent.cpython-313.pyc,sha256=I1JYUKC-zedURwuxQQjd9saj_yQKUhpdbb1KNWlY6Ss,4940
|
|
8
9
|
jarvis/__pycache__/models.cpython-313.pyc,sha256=fot2VOV0lgODg4b_WuD-kkq-g7uZGLuZlYXiljlW13U,6350
|
|
9
10
|
jarvis/__pycache__/tools.cpython-313.pyc,sha256=lAD4LrnnWzNZQmHXGfZ_2l7oskOpr2_2OC-gdFhxQY8,33933
|
|
10
11
|
jarvis/__pycache__/utils.cpython-313.pyc,sha256=o8Fubq8Dcrvv3ATzQ9BnZoZjQmU3_FNPrfTt0ANdKdI,5804
|
|
11
12
|
jarvis/tools/__init__.py,sha256=FNF5X32UzKvlT08-hPz7-7vcIyqqMngQYj36LXyNbV0,553
|
|
12
|
-
jarvis/tools/base.py,sha256=
|
|
13
|
+
jarvis/tools/base.py,sha256=xdZaoqxCOYVAwBmof_zqICg5ixb5-ksX-XbNXJw1O7k,5938
|
|
13
14
|
jarvis/tools/file_ops.py,sha256=05Vc4u-NGMjLD15WI52eL_nt_RyYt-Z_cXJnnBepf-c,3781
|
|
14
15
|
jarvis/tools/python_script.py,sha256=_eK8LqNs-Mz50zdcgwbjdd8-qAeOl6kJ_qRDvWawGMw,5006
|
|
15
16
|
jarvis/tools/rag.py,sha256=eBrn1fdqy-nd2nR0b4oH1EQpthTYVen-sYDhC5Ypl38,5647
|
|
@@ -19,7 +20,7 @@ jarvis/tools/user_confirmation.py,sha256=p0JverifHJfnALeIhtKtaVBBVEGkgSpUzT-PSyc
|
|
|
19
20
|
jarvis/tools/user_interaction.py,sha256=xOaoYsCKTa9-K3mg5tsu1zegn1HKcO40k2aJ3VygZqM,3073
|
|
20
21
|
jarvis/tools/webpage.py,sha256=UTEomu5j7jbOw8c5az2jsjv5E7LeokWKj1QahvZO7xc,3077
|
|
21
22
|
jarvis/tools/__pycache__/__init__.cpython-313.pyc,sha256=wktmOMuGMwQjQ--eRzooUNsL5YjY0bS_CbcSFUWze54,674
|
|
22
|
-
jarvis/tools/__pycache__/base.cpython-313.pyc,sha256=
|
|
23
|
+
jarvis/tools/__pycache__/base.cpython-313.pyc,sha256=hqhRtxwQwWLnBEzNqZ1FqcWYuyX87iu89SgHxu10Gho,8192
|
|
23
24
|
jarvis/tools/__pycache__/file_ops.cpython-313.pyc,sha256=bawv11xhWSj5wCtW0QeJLI-InhUBUXaSkogq6rZzvTQ,3636
|
|
24
25
|
jarvis/tools/__pycache__/python_script.cpython-313.pyc,sha256=8JpryqTovEiTvBlWAK1KjZmPvHUuPc9GT9rTXBEQoJc,6693
|
|
25
26
|
jarvis/tools/__pycache__/rag.cpython-313.pyc,sha256=JH6-PSZRMKAvTZqCwlRXJGClxYXNMs-vetU0q7hBLz0,6064
|
|
@@ -28,8 +29,8 @@ jarvis/tools/__pycache__/shell.cpython-313.pyc,sha256=Xtqt-LzMRfsCXeCE7QxFY8TR8X
|
|
|
28
29
|
jarvis/tools/__pycache__/user_confirmation.cpython-313.pyc,sha256=wK3Ev10lHSUSRvoYmi7A0GzxYkzU-C4Wfhs5qW_HBqs,2271
|
|
29
30
|
jarvis/tools/__pycache__/user_interaction.cpython-313.pyc,sha256=RuVZ-pmiPBDywY3efgXSfohMAciC1avMGPmBK5qlnew,3305
|
|
30
31
|
jarvis/tools/__pycache__/webpage.cpython-313.pyc,sha256=VcpkaV8IyOOtebedXjn8ybjr8AglU-3-Cs80yzE4FYo,3628
|
|
31
|
-
jarvis_ai_assistant-0.1.
|
|
32
|
-
jarvis_ai_assistant-0.1.
|
|
33
|
-
jarvis_ai_assistant-0.1.
|
|
34
|
-
jarvis_ai_assistant-0.1.
|
|
35
|
-
jarvis_ai_assistant-0.1.
|
|
32
|
+
jarvis_ai_assistant-0.1.2.dist-info/METADATA,sha256=0EX8k3LdrzeEWHqRTHlguT80fPxHLbVtpY65f1kMhOk,3675
|
|
33
|
+
jarvis_ai_assistant-0.1.2.dist-info/WHEEL,sha256=A3WOREP4zgxI0fKrHUG8DC8013e3dK3n7a6HDbcEIwE,91
|
|
34
|
+
jarvis_ai_assistant-0.1.2.dist-info/entry_points.txt,sha256=iKu7OMfew9dtfGhW71gIMTg4wvafuPqKb4wyQOnMAGU,44
|
|
35
|
+
jarvis_ai_assistant-0.1.2.dist-info/top_level.txt,sha256=1BOxyWfzOP_ZXj8rVTDnNCJ92bBGB0rwq8N1PCpoMIs,7
|
|
36
|
+
jarvis_ai_assistant-0.1.2.dist-info/RECORD,,
|
|
File without changes
|
{jarvis_ai_assistant-0.1.0.dist-info → jarvis_ai_assistant-0.1.2.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
|
File without changes
|