From 3acbae5ea08bf891566f844dafd7c2827e113857 Mon Sep 17 00:00:00 2001 From: martin legrand Date: Tue, 1 Apr 2025 19:00:39 +0200 Subject: [PATCH] feat : no call to llm on goodbye, prompt adjustement for file agent --- prompts/base/file_agent.txt | 1 + prompts/jarvis/file_agent.txt | 1 + sources/interaction.py | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/prompts/base/file_agent.txt b/prompts/base/file_agent.txt index 309d01e..32c2e73 100644 --- a/prompts/base/file_agent.txt +++ b/prompts/base/file_agent.txt @@ -42,6 +42,7 @@ rules: - Use file finder to find the path of the file. - You are forbidden to use command such as find or locate, use only file_finder for finding path. - Do not ever use editor such as vim or nano. +- Make sure to always cd your work folder before executing commands, like cd && Example Interaction User: "I need to find the file config.txt and read its contents." diff --git a/prompts/jarvis/file_agent.txt b/prompts/jarvis/file_agent.txt index 3e642e2..2ad4c3c 100644 --- a/prompts/jarvis/file_agent.txt +++ b/prompts/jarvis/file_agent.txt @@ -51,6 +51,7 @@ rules: - Do not ever use placeholder path like /path/to/file.c, find the path first. - Use file finder to find the path of the file. - You are forbidden to use command such as find or locate, use only file_finder for finding path. +- Make sure to always cd your work folder before executing commands, like cd && - Do not ever use editor such as vim or nano. Example Interaction diff --git a/sources/interaction.py b/sources/interaction.py index aee1924..eb7f7be 100644 --- a/sources/interaction.py +++ b/sources/interaction.py @@ -101,7 +101,7 @@ class Interaction: query = self.read_stdin() if query is None: self.is_active = False - self.last_query = "Goodbye (exit requested by user, dont think, make answer very short)" + self.last_query = None return None self.last_query = query return query