PikoAi 0.1.3__py3-none-any.whl → 0.1.4__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.
@@ -53,9 +53,8 @@ class executor:
53
53
  self.llm = LiteLLMInterface()
54
54
 
55
55
  def get_tool_dir(self):
56
- # Get the absolute path to the project root directory
57
- project_root = os.path.abspath(os.path.join(os.path.dirname(__file__), '../../../'))
58
- tool_dir_path = os.path.join(project_root, 'Src', 'Tools', 'tool_dir.json')
56
+ import pkg_resources
57
+ tool_dir_path = pkg_resources.resource_filename('Tools', 'tool_dir.json')
59
58
  with open(tool_dir_path, "r") as file:
60
59
  return file.read()
61
60
 
OpenCopilot.py CHANGED
@@ -235,7 +235,8 @@ Examples:
235
235
  def list_available_tools():
236
236
  """List all available tools."""
237
237
  try:
238
- tool_dir_path = os.path.join(os.path.dirname(__file__), 'Tools/tool_dir.json')
238
+ import pkg_resources
239
+ tool_dir_path = pkg_resources.resource_filename('Tools', 'tool_dir.json')
239
240
  with open(tool_dir_path, 'r') as f:
240
241
  tools = json.load(f)
241
242
  return tools
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: PikoAi
3
- Version: 0.1.3
3
+ Version: 0.1.4
4
4
  Summary: An AI-powered task automation tool
5
5
  Home-page: https://github.com/nihaaaar22/OS-Assistant
6
6
  Author: Nihar S
@@ -1,8 +1,8 @@
1
- OpenCopilot.py,sha256=sey9mzHUtn07aBpG8HyKjOXImoq3OAvNZo1bpXA8XEk,10691
1
+ OpenCopilot.py,sha256=e1MkPuuL5GzXMMub9dkb1sFW1Ut32u1eV7UhtWjHzbk,10719
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=8p226vZF8MUowWtfIuIcjL3U-2dVfJV4pfQvv47iLnQ,12488
5
+ Agents/Executor/executor.py,sha256=zaFO4IQNE1PscvGPV8zoRsQAJAYVTz2JsD_zUBLyYwg,12360
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
@@ -24,9 +24,9 @@ Utils/executor_utils.py,sha256=eVVxZDcAGxENRV5DhCkgh1AKiJEgfV_1q-iSQNWR5kI,1180
24
24
  Utils/ter_interface.py,sha256=Zay9mwyAyKYTNQAKOWXHAa3upo9TWprSf26STiHXk0g,6255
25
25
  llm_interface/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
26
26
  llm_interface/llm.py,sha256=tI_KDOW14QLWowA7bB3GPe2qjlk0sjS5fBavs9XD1fo,5185
27
- pikoai-0.1.3.dist-info/licenses/LICENSE,sha256=cELUVOboOAderKFp8bdtcM5VyJi61YH1oDbRhOuoQZw,1067
28
- pikoai-0.1.3.dist-info/METADATA,sha256=rasERryE1ZW_5pKdpqQbrgoJSNe0Z4wqtvmZMfGzgMo,2961
29
- pikoai-0.1.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
30
- pikoai-0.1.3.dist-info/entry_points.txt,sha256=QVeDO6N3nO3UScMb2ksusQWPgcVn86vXosgL-8gu6fo,33
31
- pikoai-0.1.3.dist-info/top_level.txt,sha256=hWzBNE7UQsuNcENIOksGcJED08k3ZGRRn2X5jnStICU,53
32
- pikoai-0.1.3.dist-info/RECORD,,
27
+ pikoai-0.1.4.dist-info/licenses/LICENSE,sha256=cELUVOboOAderKFp8bdtcM5VyJi61YH1oDbRhOuoQZw,1067
28
+ pikoai-0.1.4.dist-info/METADATA,sha256=wbdDCGpYQAUIb4b1WMPBKD1u4zQSWl4iZBv323NYUXA,2961
29
+ pikoai-0.1.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
30
+ pikoai-0.1.4.dist-info/entry_points.txt,sha256=QVeDO6N3nO3UScMb2ksusQWPgcVn86vXosgL-8gu6fo,33
31
+ pikoai-0.1.4.dist-info/top_level.txt,sha256=hWzBNE7UQsuNcENIOksGcJED08k3ZGRRn2X5jnStICU,53
32
+ pikoai-0.1.4.dist-info/RECORD,,
File without changes