fix : major issue with file reading tool, feat : prompt improvement for browser agent
This commit is contained in:
@@ -25,14 +25,15 @@ The file_finder tool is used to locate files on the user’s 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: I’ll use file_finder to locate the file:
|
||||
|
||||
```file_finder:read
|
||||
config.txt
|
||||
```file_finder
|
||||
action=read
|
||||
name=config.txt
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user