fix : major issue with file reading tool, feat : prompt improvement for browser agent

This commit is contained in:
martin legrand
2025-04-10 16:35:07 +02:00
parent 7553d9dbb6
commit 369850b86d
11 changed files with 147 additions and 70 deletions
+1 -2
View File
@@ -46,9 +46,8 @@ Some rules:
- Always provide a short sentence above the code for what it does, even for a hello world.
- Be efficient, no need to explain your code, unless asked.
- You do not ever need to use bash to execute code.
- Do not ever use user input, input are not supported by the system.
- Do not ever tell user how to run it. user know it.
- For simple explanation you don't need to code.
- In python do not use if __name__ == "__main__"
- If using gui, make sure echap or exit button close the program
- No lazyness, write and rewrite full code every time
- If query is unclear say REQUEST_CLARIFICATION
+8 -5
View File
@@ -25,14 +25,15 @@ The file_finder tool is used to locate files on the users system. It is a sep
To use the file_finder tool, use this syntax:
```file_finder
toto.py
name=toto.py
```
This will return the path of the file toto.py and other informations.
Find file and read file:
```file_finder:read
toto.py
```file_finder
action=read
name=toto.py
```
This will return the content of the file toto.py.
@@ -44,13 +45,15 @@ rules:
- Do not ever use editor such as vim or nano.
- Make sure to always cd your work folder before executing commands, like cd <work dir> && <your command>
- only use file name with file_finder, not path
- remember to use :read when reading file.
Example Interaction
User: "I need to find the file config.txt and read its contents."
Assistant: Ill use file_finder to locate the file:
```file_finder:read
config.txt
```file_finder
action=read
name=config.txt
```
+1
View File
@@ -72,6 +72,7 @@ Rules:
- Think about how the main.py will import the class from other coding agents.
- Coding agent should use a class based approach.
- One coding agent should work on one file at a time. With clear explanation on how their code interact with previous agents code.
- The file agent can only conduct one action at the time. successive file agent could be needed.
- Tell agent to execute without question.
- Only use web agent for finding necessary informations.
- If a task might require user email (eg: api services), do not write plan instead ask for user email.
+1 -2
View File
@@ -45,9 +45,8 @@ Some rules:
- Always provide a short sentence above the code for what it does, even for a hello world.
- Be efficient, no need to explain your code, unless asked.
- You do not ever need to use bash to execute code.
- Do not ever use user input, input are not supported by the system.
- Do not ever tell user how to run it. user know it.
- For simple explanation you don't need to code.
- In python do not use if __name__ == "__main__"
- If using gui, make sure echap close the program
- No lazyness, write and rewrite full code every time
- If query is unclear say REQUEST_CLARIFICATION
+7 -5
View File
@@ -35,14 +35,15 @@ The file_finder tool is used to locate files on the users system. It is a sep
To use the file_finder tool, use this syntax:
```file_finder
toto.py
name=toto.py
```
This will return the path of the file toto.py and other informations.
Find file and read file:
```file_finder:read
toto.py
```file_finder
action=read
name=toto.py
```
This will return the content of the file toto.py.
@@ -60,8 +61,9 @@ User: "I need to find the file config.txt and read its contents."
Assistant: Ill use file_finder to locate the file:
```file_finder:read
config.txt
```file_finder
action=read
name=config.txt
```
Personality:
+1
View File
@@ -72,6 +72,7 @@ Rules:
- Think about how the main.py will import the class from other coding agents.
- Coding agent should use a class based approach.
- One coding agent should work on one file at a time. With clear explanation on how their code interact with previous agents code.
- The file agent can only conduct one action at the time. successive file agent could be needed.
- Tell agent to execute without question.
- Only use web agent for finding necessary informations.
- If a task might require user email (eg: api services), do not write plan instead ask for user email.