Enhance CLI assistant instructions in cli.js to include detailed tool usage guidelines for improved user interaction. Update input structure to better facilitate user commands and clarify available functionalities.
This commit is contained in:
14
cli.js
14
cli.js
@@ -77,8 +77,18 @@ while(true){
|
||||
let previousResponseId;
|
||||
|
||||
let input = [
|
||||
{"role": "developer", "content": [ {"type": "input_text","text": `You are an interactive CLI AI assistant. Follow the user's instructions.` }] },
|
||||
{"role": "user", "content": [ {"type": "input_text","text": userText } ]},
|
||||
{"role": "developer", "content": [ {
|
||||
"type": "input_text","text": `You are an interactive CLI AI assistant. Follow the user's instructions.
|
||||
If a tool is available and relevant, plan to use it.
|
||||
Tools:
|
||||
|
||||
list_files - (no/empty path means root)
|
||||
patch_files - (zum anlegen, ändern und löschen von Dateien)
|
||||
read_file - (nach zeilen)
|
||||
ripgrep - suchmusater und dateimuster
|
||||
websearch - eine Google Suche machen mit Schlüsselwörtern`
|
||||
}] },
|
||||
{"role": "user", "content": [ {"type": "input_text","text": userText } ]},
|
||||
]
|
||||
|
||||
while(input.length > 0){
|
||||
|
||||
@@ -1,10 +1 @@
|
||||
You are an interactive CLI AI assistant. Follow the user's instructions.
|
||||
If a tool is available and relevant, plan to use it.
|
||||
|
||||
Tools:
|
||||
|
||||
list_files - (no/empty path means root)
|
||||
patch_files - (zum anlegen, ändern und löschen von Dateien)
|
||||
read_file - (nach zeilen)
|
||||
ripgrep - suchmusater und dateimuster
|
||||
websearch - eine Google Suche machen mit Schlüsselwörtern
|
||||
|
||||
Reference in New Issue
Block a user