PikoAi 0.1.21__py3-none-any.whl → 0.1.22__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.
@@ -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 < 1.0:
25
- time.sleep(1.0 - elapsed)
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
- import pkg_resources
50
- tool_dir_path = pkg_resources.resource_filename('Tools', 'tool_dir.json')
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
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: PikoAi
3
- Version: 0.1.21
3
+ Version: 0.1.22
4
4
  Summary: An AI-powered task automation tool
5
5
  Home-page: https://github.com/nihaaaar22/OS-Assistant
6
6
  Author: Nihar S
@@ -2,7 +2,7 @@ OpenCopilot.py,sha256=kPTs0-ly84h4dM7AmBlK4uwst5Sj2AM6UAlE3okkD8U,12157
2
2
  cli.py,sha256=2UvmH74pcBFFezI0WHNyWTHMYasIM5NGnrUX6wsdveM,12945
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=BZdH3QEvv3xsAl7NXrIKBy5nMXTOvHOQ7ppM2YXrcPA,6975
5
+ Agents/Executor/executor.py,sha256=S83Rc1JVWuGvgnhV_fPMoCp8V4wwitbWy2MO_yV22X4,7212
6
6
  Agents/Executor/prompts.py,sha256=3GHNKArEe-pWucbZTgSeJ9yjk_HVhd6BapVpQNt_nEE,2890
7
7
  Env/__init__.py,sha256=KLe7UcNV5L395SxhMwbYGyu7KPrSNaoV_9QJo3mLop0,196
8
8
  Env/base_env.py,sha256=K4PoWwPXn3pKeu7_-JOlUuyNbyYQ9itMhQybFOm-3K4,1563
@@ -27,9 +27,9 @@ Utils/executor_utils.py,sha256=WwK3TKgw_hG_crg7ijRaqfidYnnNXYbbs37vKZRYK-0,491
27
27
  Utils/ter_interface.py,sha256=8Oe5818MAYC21SfUxtfnV9HQFcQ49z8Q030jjPqNP_g,3889
28
28
  llm_interface/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
29
29
  llm_interface/llm.py,sha256=Am18eyEFYlgcackuYGz8_Y0L7lQ7SSUCpNAEjcyZaAU,5080
30
- pikoai-0.1.21.dist-info/licenses/LICENSE,sha256=cELUVOboOAderKFp8bdtcM5VyJi61YH1oDbRhOuoQZw,1067
31
- pikoai-0.1.21.dist-info/METADATA,sha256=xFEbhY-qR2rg_KMhi6ei0g4HehBiILVRrVqLWFQn8c0,2962
32
- pikoai-0.1.21.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
33
- pikoai-0.1.21.dist-info/entry_points.txt,sha256=xjZnheDymNDnQ0o84R0jZKEITrhNbzQWN-AhqfA_d6s,50
34
- pikoai-0.1.21.dist-info/top_level.txt,sha256=hWzBNE7UQsuNcENIOksGcJED08k3ZGRRn2X5jnStICU,53
35
- pikoai-0.1.21.dist-info/RECORD,,
30
+ pikoai-0.1.22.dist-info/licenses/LICENSE,sha256=cELUVOboOAderKFp8bdtcM5VyJi61YH1oDbRhOuoQZw,1067
31
+ pikoai-0.1.22.dist-info/METADATA,sha256=zPCjowy7fdW0fEgpPXMWe1JqcfKf4_CUnthqd4eLy0k,2962
32
+ pikoai-0.1.22.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
33
+ pikoai-0.1.22.dist-info/entry_points.txt,sha256=xjZnheDymNDnQ0o84R0jZKEITrhNbzQWN-AhqfA_d6s,50
34
+ pikoai-0.1.22.dist-info/top_level.txt,sha256=hWzBNE7UQsuNcENIOksGcJED08k3ZGRRn2X5jnStICU,53
35
+ pikoai-0.1.22.dist-info/RECORD,,