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
+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
```