PikoAi 0.1.19__py3-none-any.whl → 0.1.20__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.
@@ -26,7 +26,7 @@ class RateLimiter:
26
26
  self.last_call_time = time.time()
27
27
 
28
28
  class executor:
29
- def __init__(self, user_prompt, max_iter=10):
29
+ def __init__(self, user_prompt, max_iter=30):
30
30
  self.user_prompt = user_prompt
31
31
  self.max_iter = max_iter
32
32
  self.rate_limiter = RateLimiter(wait_time=3.0, max_retries=3)
@@ -130,7 +130,7 @@ class executor:
130
130
  task_done = True
131
131
 
132
132
  else:
133
- self.message.append({"role": "user", "content": "If the task i mentioned is complete then output TASK_DONE .If not then run another iteration."})
133
+ self.message.append({"role": "user", "content": "Continue with the task if not complete.Else simply output TASK_DONE. "})
134
134
  iteration += 1
135
135
 
136
136
  if not task_done:
@@ -42,15 +42,18 @@ These are the things that you learned from the mistakes you made earlier :
42
42
  - This is a standard Python environment, not a python notebook or a repl. previous execution
43
43
  context is not preserved between executions.
44
44
  - Don't execute dangerous commands like rm -rf * or access sensitive files
45
- - If you are stuck, have tried to fix an issue (e.g., a linter error) multiple times (e.g., 3 times) without success, or need clarification, ask the USER for input. Explain the situation clearly.
45
+ - If you are stuck, have tried to fix an issue (e.g., a linter error) multiple times (e.g., 3 times) without success, or need clarification, ask the USER for input.
46
46
  - Upon creating anything (like a new project, website, data analysis png) always show the output.You can do this by executing shell commands.
47
47
  - the python/shell code execution through tool call will be executed immediately and output will be shown. it wont be saved.
48
+ - When asked to do research, use the web_search and web_loader tools to do in depth research. Use multiple iterations and get information from multiple sources. Analyse data and provide insights.
48
49
 
49
50
 
50
51
  ** Important **
51
52
  - You can only perform one tool call at a time.
52
53
  - Always evaluate the output of the tool call before deciding the next step.
53
- - Continue performing actions until the user's goal is fully achieved. Only then, include 'TASK_DONE' in your response if that is the required signal for completion.
54
+ - Continue performing actions until the user's goal is fully achieved. Only then, include 'TASK_DONE' in your response.
54
55
  - Do not end the task immediately after a tool call without evaluating its output.
56
+ - The best way to give output is to save it open the file using shell commands.
57
+
55
58
 
56
59
  """
llm_interface/llm.py CHANGED
@@ -64,9 +64,9 @@ class LiteLLMInterface:
64
64
  except Exception as e:
65
65
  # litellm maps exceptions to OpenAI exceptions.
66
66
  # The executor should catch these and handle them.
67
- print(f"An error occurred during the API call: {e}")
67
+
68
68
  self.terminal.flush_markdown() # Ensure terminal is flushed even on error
69
- raise # Re-raise the exception to be caught by the executor
69
+ raise
70
70
 
71
71
 
72
72
  # class MistralModel:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: PikoAi
3
- Version: 0.1.19
3
+ Version: 0.1.20
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,8 +2,8 @@ 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=BzSYkT4aPW1yDLSNXNr9WEWZEcs1becEYYlop-eB8s8,6999
6
- Agents/Executor/prompts.py,sha256=pGY4uXNGYiw_TnTUsRjrVsWc9CV657q3916eui0oulU,2688
5
+ Agents/Executor/executor.py,sha256=BZdH3QEvv3xsAl7NXrIKBy5nMXTOvHOQ7ppM2YXrcPA,6975
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
9
9
  Env/base_executor.py,sha256=awTwJ44CKWV4JO2KUHfHDX0p1Ujw55hlaL5oNYTEW9M,893
@@ -26,10 +26,10 @@ Utils/__init__.py,sha256=oukU0ufroPRd8_N8d2xiFes9CTxSaw4NA6p2nS1kkSg,16
26
26
  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
- llm_interface/llm.py,sha256=tI_KDOW14QLWowA7bB3GPe2qjlk0sjS5fBavs9XD1fo,5185
30
- pikoai-0.1.19.dist-info/licenses/LICENSE,sha256=cELUVOboOAderKFp8bdtcM5VyJi61YH1oDbRhOuoQZw,1067
31
- pikoai-0.1.19.dist-info/METADATA,sha256=4N9c6Htp6lsrimD8ukdfxTZG59quiJodw6pIECoLVPg,2962
32
- pikoai-0.1.19.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
33
- pikoai-0.1.19.dist-info/entry_points.txt,sha256=xjZnheDymNDnQ0o84R0jZKEITrhNbzQWN-AhqfA_d6s,50
34
- pikoai-0.1.19.dist-info/top_level.txt,sha256=hWzBNE7UQsuNcENIOksGcJED08k3ZGRRn2X5jnStICU,53
35
- pikoai-0.1.19.dist-info/RECORD,,
29
+ llm_interface/llm.py,sha256=Am18eyEFYlgcackuYGz8_Y0L7lQ7SSUCpNAEjcyZaAU,5080
30
+ pikoai-0.1.20.dist-info/licenses/LICENSE,sha256=cELUVOboOAderKFp8bdtcM5VyJi61YH1oDbRhOuoQZw,1067
31
+ pikoai-0.1.20.dist-info/METADATA,sha256=tOpoh5fCs-_07akpneL4846eE61Dnh1eR1bmVdNBLIU,2962
32
+ pikoai-0.1.20.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
33
+ pikoai-0.1.20.dist-info/entry_points.txt,sha256=xjZnheDymNDnQ0o84R0jZKEITrhNbzQWN-AhqfA_d6s,50
34
+ pikoai-0.1.20.dist-info/top_level.txt,sha256=hWzBNE7UQsuNcENIOksGcJED08k3ZGRRn2X5jnStICU,53
35
+ pikoai-0.1.20.dist-info/RECORD,,