From 73f0eebb69fb409a5bd1dcf7645e27ebf65b4ae0 Mon Sep 17 00:00:00 2001 From: mrT23 Date: Wed, 26 Jun 2024 20:44:30 +0300 Subject: [PATCH] s --- pr_agent/settings/pr_description_prompts.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pr_agent/settings/pr_description_prompts.toml b/pr_agent/settings/pr_description_prompts.toml index 80df6d60..9c58eb3d 100644 --- a/pr_agent/settings/pr_description_prompts.toml +++ b/pr_agent/settings/pr_description_prompts.toml @@ -37,7 +37,7 @@ class PRType(str, Enum): {%- if enable_semantic_files_types %} -Class FileDescription(BaseModel): +class FileDescription(BaseModel): filename: str = Field(description="the relevant file full path") language: str = Field(description="the relevant file language") changes_summary: str = Field(description="concise summary of the changes in the relevant file, in bullet points (1-4 bullet points).") @@ -45,7 +45,7 @@ Class FileDescription(BaseModel): label: str = Field(description="a single semantic label that represents a type of code changes that occurred in the File. Possible values (partial list): 'bug fix', 'tests', 'enhancement', 'documentation', 'error handling', 'configuration changes', 'dependencies', 'formatting', 'miscellaneous', ...") {%- endif %} -Class PRDescription(BaseModel): +class PRDescription(BaseModel): type: List[PRType] = Field(description="one or more types that describe the PR content. Return the label member value (e.g. 'Bug fix', not 'bug_fix')") {%- if enable_semantic_files_types %} pr_files[List[FileDescription]] = Field(max_items=15, description="a list of the files in the PR, and their changes summary.")