From 887283632b25f4b5c6c54bc529c20983bcd05cbe Mon Sep 17 00:00:00 2001 From: KennyDizi Date: Sun, 14 Jul 2024 10:03:19 +0700 Subject: [PATCH] Optimize relevant file and language description for review prompt --- pr_agent/settings/pr_reviewer_prompts.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pr_agent/settings/pr_reviewer_prompts.toml b/pr_agent/settings/pr_reviewer_prompts.toml index 41efaa2b..91efeff0 100644 --- a/pr_agent/settings/pr_reviewer_prompts.toml +++ b/pr_agent/settings/pr_reviewer_prompts.toml @@ -78,8 +78,8 @@ class Review(BaseModel): {%- if num_code_suggestions > 0 %} class CodeSuggestion(BaseModel): - relevant_file: str = Field(description="the relevant file full path") - language: str = Field(description="the language of the relevant file") + relevant_file: str = Field(description="The complete file path of the relevant file.") + language: str = Field(description="The programming language of the relevant file.") suggestion: str = Field(description="a concrete suggestion for meaningfully improving the new PR code. Also describe how, specifically, the suggestion can be applied to new PR code. Add tags with importance measure that matches each suggestion ('important' or 'medium'). Do not make suggestions for updating or adding docstrings, renaming PR title and description, or linter like.") relevant_line: str = Field(description="a single code line taken from the relevant file, to which the suggestion applies. The code line should start with a '+'. Make sure to output the line exactly as it appears in the relevant file") {%- endif %}