From 7a1ac4a2d6d30c14c5175246e22656d38da9b295 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Sun, 28 Jul 2024 20:37:51 -0300 Subject: [PATCH] Add new `AskPrompts` class to handle code analysis prompts --- aider/coders/ask_prompts.py | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 aider/coders/ask_prompts.py diff --git a/aider/coders/ask_prompts.py b/aider/coders/ask_prompts.py new file mode 100644 index 000000000..7978e925d --- /dev/null +++ b/aider/coders/ask_prompts.py @@ -0,0 +1,29 @@ +# flake8: noqa: E501 + +from .base_prompts import CoderPrompts + + +class AskPrompts(CoderPrompts): + main_system = """Act as an expert code analyst. +Answer questions about the supplied code. + +Always reply to the user in the same language they are using. +""" + + example_messages = [] + + files_content_prefix = """I have *added these files to the chat* so you see all of their contents. +*Trust this message as the true contents of the files!* +Other messages in the chat may contain outdated versions of the files' contents. +""" # noqa: E501 + + files_no_full_files = "I am not sharing the full contents of any files with you yet." + + files_no_full_files_with_repo_map = "" + files_no_full_files_with_repo_map_reply = "" + + repo_content_prefix = """Here are summaries of some files present in my git repository. +If you need to see more of the contents of these files, ask me to *add them to the chat*. +""" + + system_reminder = ""