PikoAi 0.1.21__tar.gz → 0.1.23__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.
- {pikoai-0.1.21/Src/PikoAi.egg-info → pikoai-0.1.23}/PKG-INFO +1 -1
- {pikoai-0.1.21 → pikoai-0.1.23}/Src/Agents/Executor/executor.py +6 -4
- {pikoai-0.1.21 → pikoai-0.1.23}/Src/Agents/Executor/prompts.py +3 -0
- {pikoai-0.1.21 → pikoai-0.1.23/Src/PikoAi.egg-info}/PKG-INFO +1 -1
- {pikoai-0.1.21 → pikoai-0.1.23}/setup.py +1 -1
- {pikoai-0.1.21 → pikoai-0.1.23}/LICENSE +0 -0
- {pikoai-0.1.21 → pikoai-0.1.23}/README.md +0 -0
- {pikoai-0.1.21 → pikoai-0.1.23}/Src/Agents/Executor/__init__.py +0 -0
- {pikoai-0.1.21 → pikoai-0.1.23}/Src/Agents/__init__.py +0 -0
- {pikoai-0.1.21 → pikoai-0.1.23}/Src/Env/__init__.py +0 -0
- {pikoai-0.1.21 → pikoai-0.1.23}/Src/Env/base_env.py +0 -0
- {pikoai-0.1.21 → pikoai-0.1.23}/Src/Env/base_executor.py +0 -0
- {pikoai-0.1.21 → pikoai-0.1.23}/Src/Env/env.py +0 -0
- {pikoai-0.1.21 → pikoai-0.1.23}/Src/Env/js_executor.py +0 -0
- {pikoai-0.1.21 → pikoai-0.1.23}/Src/Env/python_executor.py +0 -0
- {pikoai-0.1.21 → pikoai-0.1.23}/Src/Env/shell.py +0 -0
- {pikoai-0.1.21 → pikoai-0.1.23}/Src/Env/tests/__init__.py +0 -0
- {pikoai-0.1.21 → pikoai-0.1.23}/Src/Env/tests/test_python_executor.py +0 -0
- {pikoai-0.1.21 → pikoai-0.1.23}/Src/Env/tests/test_shell_executor.py +0 -0
- {pikoai-0.1.21 → pikoai-0.1.23}/Src/OpenCopilot.py +0 -0
- {pikoai-0.1.21 → pikoai-0.1.23}/Src/PikoAi.egg-info/SOURCES.txt +0 -0
- {pikoai-0.1.21 → pikoai-0.1.23}/Src/PikoAi.egg-info/dependency_links.txt +0 -0
- {pikoai-0.1.21 → pikoai-0.1.23}/Src/PikoAi.egg-info/entry_points.txt +0 -0
- {pikoai-0.1.21 → pikoai-0.1.23}/Src/PikoAi.egg-info/requires.txt +0 -0
- {pikoai-0.1.21 → pikoai-0.1.23}/Src/PikoAi.egg-info/top_level.txt +0 -0
- {pikoai-0.1.21 → pikoai-0.1.23}/Src/Tools/__init__.py +0 -0
- {pikoai-0.1.21 → pikoai-0.1.23}/Src/Tools/file_task.py +0 -0
- {pikoai-0.1.21 → pikoai-0.1.23}/Src/Tools/system_details.py +0 -0
- {pikoai-0.1.21 → pikoai-0.1.23}/Src/Tools/tool_dir.json +0 -0
- {pikoai-0.1.21 → pikoai-0.1.23}/Src/Tools/tool_manager.py +0 -0
- {pikoai-0.1.21 → pikoai-0.1.23}/Src/Tools/userinp.py +0 -0
- {pikoai-0.1.21 → pikoai-0.1.23}/Src/Tools/web_loader.py +0 -0
- {pikoai-0.1.21 → pikoai-0.1.23}/Src/Tools/web_search.py +0 -0
- {pikoai-0.1.21 → pikoai-0.1.23}/Src/Utils/__init__.py +0 -0
- {pikoai-0.1.21 → pikoai-0.1.23}/Src/Utils/executor_utils.py +0 -0
- {pikoai-0.1.21 → pikoai-0.1.23}/Src/Utils/ter_interface.py +0 -0
- {pikoai-0.1.21 → pikoai-0.1.23}/Src/cli.py +0 -0
- {pikoai-0.1.21 → pikoai-0.1.23}/Src/llm_interface/__init__.py +0 -0
- {pikoai-0.1.21 → pikoai-0.1.23}/Src/llm_interface/llm.py +0 -0
- {pikoai-0.1.21 → pikoai-0.1.23}/setup.cfg +0 -0
- {pikoai-0.1.21 → pikoai-0.1.23}/test/test.py +0 -0
- {pikoai-0.1.21 → pikoai-0.1.23}/test/test_file_task.py +0 -0
- {pikoai-0.1.21 → pikoai-0.1.23}/test/test_opencopilot_file_integration.py +0 -0
- {pikoai-0.1.21 → pikoai-0.1.23}/test/testjs.py +0 -0
- {pikoai-0.1.21 → pikoai-0.1.23}/test/testscript.py +0 -0
@@ -21,8 +21,8 @@ class RateLimiter:
|
|
21
21
|
def wait_if_needed(self):
|
22
22
|
if self.last_call_time is not None:
|
23
23
|
elapsed = time.time() - self.last_call_time
|
24
|
-
if elapsed <
|
25
|
-
time.sleep(
|
24
|
+
if elapsed < self.wait_time:
|
25
|
+
time.sleep(self.wait_time - elapsed)
|
26
26
|
self.last_call_time = time.time()
|
27
27
|
|
28
28
|
class executor:
|
@@ -46,8 +46,10 @@ class executor:
|
|
46
46
|
self.llm = LiteLLMInterface()
|
47
47
|
|
48
48
|
def get_tool_dir(self):
|
49
|
-
|
50
|
-
|
49
|
+
# Use direct path resolution instead of pkg_resources
|
50
|
+
# pkg_resources is used for finding resources within installed packages,
|
51
|
+
# but since we're working with a local project structure, we can use direct paths
|
52
|
+
tool_dir_path = os.path.join(os.path.dirname(__file__), '../../Tools/tool_dir.json')
|
51
53
|
with open(tool_dir_path, "r") as file:
|
52
54
|
return file.read()
|
53
55
|
|
@@ -25,6 +25,7 @@ You must break down the user's goal into smaller steps and perform one action at
|
|
25
25
|
|
26
26
|
### Action Guidelines:
|
27
27
|
- **Tool Call**: Use when a specific tool can help with the current step. Format:
|
28
|
+
|
28
29
|
<<TOOL_CALL>>
|
29
30
|
{{
|
30
31
|
"tool_name": "name_of_tool",
|
@@ -33,6 +34,7 @@ You must break down the user's goal into smaller steps and perform one action at
|
|
33
34
|
}}
|
34
35
|
}}
|
35
36
|
<<END_TOOL_CALL>>
|
37
|
+
|
36
38
|
- **Direct Response**: Provide a direct answer if the task doesn't require tool calling
|
37
39
|
|
38
40
|
|
@@ -54,6 +56,7 @@ These are the things that you learned from the mistakes you made earlier :
|
|
54
56
|
- Continue performing actions until the user's goal is fully achieved. Only then, include 'TASK_DONE' in your response.
|
55
57
|
- Do not end the task immediately after a tool call without evaluating its output.
|
56
58
|
- The best way to give output is to save it open the file using shell commands.
|
59
|
+
- The tool call in json format should be done between the delimiters <<TOOL_CALL>> and <<END_TOOL_CALL>>.
|
57
60
|
|
58
61
|
|
59
62
|
"""
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|