PikoAi 0.1.1__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.
- Agents/Executor/executor.py +7 -7
- OpenCopilot.py +1 -1
- Tools/tool_manager.py +6 -5
- llm_interface/llm.py +1 -1
- {pikoai-0.1.1.dist-info → pikoai-0.1.2.dist-info}/METADATA +1 -1
- {pikoai-0.1.1.dist-info → pikoai-0.1.2.dist-info}/RECORD +10 -10
- {pikoai-0.1.1.dist-info → pikoai-0.1.2.dist-info}/WHEEL +0 -0
- {pikoai-0.1.1.dist-info → pikoai-0.1.2.dist-info}/entry_points.txt +0 -0
- {pikoai-0.1.1.dist-info → pikoai-0.1.2.dist-info}/licenses/LICENSE +0 -0
- {pikoai-0.1.1.dist-info → pikoai-0.1.2.dist-info}/top_level.txt +0 -0
Agents/Executor/executor.py
CHANGED
@@ -5,19 +5,19 @@ import os
|
|
5
5
|
import sys
|
6
6
|
import time
|
7
7
|
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '../../../')))
|
8
|
-
from
|
9
|
-
from
|
10
|
-
from
|
8
|
+
from Utils.ter_interface import TerminalInterface
|
9
|
+
from Utils.executor_utils import parse_tool_call, parse_code, parse_shell_command
|
10
|
+
from Agents.Executor.prompts import get_system_prompt, get_task_prompt # Import prompts
|
11
11
|
|
12
12
|
from typing import Optional
|
13
13
|
from mistralai.models.sdkerror import SDKError # This might be an issue if LiteLLM doesn't use SDKError
|
14
14
|
# LiteLLM maps exceptions to OpenAI exceptions.
|
15
15
|
# We'll keep it for now and see if errors arise during testing.
|
16
|
-
from
|
17
|
-
from
|
18
|
-
from
|
16
|
+
from Env import python_executor
|
17
|
+
from Env.shell import ShellExecutor # Import ShellExecutor
|
18
|
+
from llm_interface.llm import LiteLLMInterface # Import LiteLLMInterface
|
19
19
|
|
20
|
-
from
|
20
|
+
from Tools import tool_manager
|
21
21
|
|
22
22
|
class RateLimiter:
|
23
23
|
def __init__(self, wait_time: float = 5.0, max_retries: int = 3):
|
OpenCopilot.py
CHANGED
@@ -10,7 +10,7 @@ from prompt_toolkit.formatted_text import FormattedText
|
|
10
10
|
# Add the parent directory to the path to enable imports
|
11
11
|
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '../')))
|
12
12
|
|
13
|
-
from
|
13
|
+
from Agents.Executor.executor import executor
|
14
14
|
|
15
15
|
# sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '../')))
|
16
16
|
|
Tools/tool_manager.py
CHANGED
@@ -1,11 +1,12 @@
|
|
1
1
|
import sys
|
2
2
|
import os
|
3
|
+
import json
|
3
4
|
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '../../')))
|
4
|
-
from
|
5
|
-
from
|
6
|
-
from
|
7
|
-
from
|
8
|
-
from
|
5
|
+
from Tools.web_loader import load_data
|
6
|
+
from Tools.web_search import web_search
|
7
|
+
from Tools.file_task import file_reader, file_maker, file_writer, directory_maker
|
8
|
+
from Tools.system_details import get_os_details, get_datetime, get_memory_usage, get_cpu_info
|
9
|
+
from Tools.userinp import get_user_input
|
9
10
|
|
10
11
|
#need to transform it into map of dictionary
|
11
12
|
#name : [function : xyz,description : blah bah]
|
llm_interface/llm.py
CHANGED
@@ -10,7 +10,7 @@ import litellm # Added import for litellm
|
|
10
10
|
|
11
11
|
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '../../')))
|
12
12
|
|
13
|
-
from
|
13
|
+
from Utils.ter_interface import TerminalInterface
|
14
14
|
|
15
15
|
|
16
16
|
# Load environment variables from .env file
|
@@ -1,8 +1,8 @@
|
|
1
|
-
OpenCopilot.py,sha256=
|
1
|
+
OpenCopilot.py,sha256=sey9mzHUtn07aBpG8HyKjOXImoq3OAvNZo1bpXA8XEk,10691
|
2
2
|
cli.py,sha256=o2V_DETYXEiYm6617Xg8rDcAgb0ofmojPvdlOpNHwMY,11809
|
3
3
|
Agents/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
4
4
|
Agents/Executor/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
5
|
-
Agents/Executor/executor.py,sha256=
|
5
|
+
Agents/Executor/executor.py,sha256=8p226vZF8MUowWtfIuIcjL3U-2dVfJV4pfQvv47iLnQ,12488
|
6
6
|
Agents/Executor/prompts.py,sha256=wLS3lPAYWjeKF02LzJ8vP5bZ2VQrMJUd4A7rBfl6qSQ,3846
|
7
7
|
Env/__init__.py,sha256=KLe7UcNV5L395SxhMwbYGyu7KPrSNaoV_9QJo3mLop0,196
|
8
8
|
Env/base_env.py,sha256=ORM6U5qwj7cTuSHFtSmCSsE0cl6pZ28D97CEyyFnucI,1323
|
@@ -14,15 +14,15 @@ Env/shell.py,sha256=gr6czmeuSWtB3xSA9TZN7wnK2BENOuA9zjNttwbxztU,1877
|
|
14
14
|
Tools/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
15
15
|
Tools/file_task.py,sha256=VUhWq_G-SWvGahQo8PG7TOpElHUW3BGLUabrTdJS89o,12151
|
16
16
|
Tools/system_details.py,sha256=7-mTm3CG4NoatHcvcosalEgEcpWlNsCsZ7kuS3y_EmY,2262
|
17
|
-
Tools/tool_manager.py,sha256=
|
17
|
+
Tools/tool_manager.py,sha256=0i3bd_VxhbpWKLzyfSeYyv_33Z6HmvQDBUxPUxjLYlU,1736
|
18
18
|
Tools/userinp.py,sha256=vUhEj3y1W1_ZFHqo2xQwvqDyeOg3VsisSKTI0EurUH8,1205
|
19
19
|
Tools/web_loader.py,sha256=PyZk2g7WngZT0tCLs9Danx20dYspnaZwy4rlVE9Sx_4,5054
|
20
20
|
Tools/web_search.py,sha256=4EGq1VZqfDgG-_yXTd4_Ha1iEUcR-szdlgRV7oFPru4,1259
|
21
21
|
llm_interface/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
22
|
-
llm_interface/llm.py,sha256=
|
23
|
-
pikoai-0.1.
|
24
|
-
pikoai-0.1.
|
25
|
-
pikoai-0.1.
|
26
|
-
pikoai-0.1.
|
27
|
-
pikoai-0.1.
|
28
|
-
pikoai-0.1.
|
22
|
+
llm_interface/llm.py,sha256=tI_KDOW14QLWowA7bB3GPe2qjlk0sjS5fBavs9XD1fo,5185
|
23
|
+
pikoai-0.1.2.dist-info/licenses/LICENSE,sha256=cELUVOboOAderKFp8bdtcM5VyJi61YH1oDbRhOuoQZw,1067
|
24
|
+
pikoai-0.1.2.dist-info/METADATA,sha256=8m0dTg6SbBwPFM-cOtlKgQ4uRm_8-zqRYqk55kYESFk,2961
|
25
|
+
pikoai-0.1.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
26
|
+
pikoai-0.1.2.dist-info/entry_points.txt,sha256=QVeDO6N3nO3UScMb2ksusQWPgcVn86vXosgL-8gu6fo,33
|
27
|
+
pikoai-0.1.2.dist-info/top_level.txt,sha256=_xQTtTA77f_GF7zdtD6C3gMyPP8GqRZvuhOSTVvSePU,47
|
28
|
+
pikoai-0.1.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|