bioguider 0.2.4__py3-none-any.whl → 0.2.5__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of bioguider might be problematic. Click here for more details.

@@ -71,8 +71,22 @@ For each criterion below, provide a brief assessment followed by specific, actio
71
71
  * **Assessment**: Based on these scores, evaluate the overall readability and technical complexity of the language used.
72
72
 
73
73
  **Final Answer**
74
- * Project-Level README: Yes / No
75
- * Provide a final, overall assessment of the README file's quality, summarizing the key strengths and areas for improvement.
74
+ The final answer **must exactly match** the following format:
75
+ ```
76
+ * Project-Level README: Yes / No
77
+ * **Score:** <number from 0 to 100>
78
+ * **Key Strengths**: <brief summary of the README's strongest points in 2-3 sentences>
79
+ * **Improvement Suggestions:**
80
+ - "Original text snippet 1" - Improving comment 1
81
+ - "Original text snippet 2" - Improving comment 2
82
+ - ...
83
+ ```
84
+
85
+ * **Project-Level README**: Indicate “Yes” if the README is project-level, otherwise “No.”
86
+ * **Score**: Provide an overall quality score (100 = perfect).
87
+ * **Key Strengths**: Provide the README's strongest points in 2-3 sentences
88
+ * **Overall Improvement Suggestions**:
89
+ * List each original text snippet that needs improvement, followed by your suggestion.
76
90
 
77
91
  ---
78
92
 
@@ -108,8 +122,9 @@ For each criterion below, provide a brief assessment followed by specific, actio
108
122
  * **Assessment**: Based on these scores, evaluate the overall readability and technical complexity of the language used.
109
123
 
110
124
  **Final Answer**
125
+ The final answer **must exactly match** the following format:
111
126
  * Project-Level README: Yes / No
112
- * Provide a final, overall assessment of the README file's quality, summarizing the key strengths and areas for improvement.
127
+ * Overall Assessment: provide a final, overall assessment of the README file's quality, summarizing the key strengths and areas for improvement.
113
128
  ---
114
129
 
115
130
  ### **README path:**
@@ -167,8 +182,38 @@ class EvaluationTask(ABC):
167
182
  pass
168
183
 
169
184
  class EvaluationREADMEResult(BaseModel):
170
- project_level: Optional[bool]=Field(description="a boolean value specifying if the README file is **project-level** README. TRUE: project-level, FALSE, folder-level")
171
- overall_assessment: Optional[str]=Field(description="an overall assessment")
185
+ project_level: Optional[bool]=Field(description="A boolean value specifying if the README file is **project-level** README. TRUE: project-level, FALSE, folder-level")
186
+ score: Optional[float]=Field(description="An overall score")
187
+ key_strengths: Optional[str]=Field(description="A string specifying the key strengths of README file.")
188
+ overall_improvement_suggestions: Optional[list[str]]=Field(description="A list of overall improvement suggestions")
189
+
190
+ EvaluationREADMEResultSchema = {
191
+ "title": "EvaluationREADMEResult",
192
+ "type": "object",
193
+ "properties": {
194
+ "project_level": {
195
+ "anyOf": [{"type": "boolean"}, {"type": "null"}],
196
+ "description": "A boolean value specifying if the README file is **project-level** README. TRUE: project-level, FALSE: folder-level.",
197
+ "title": "Project Level"
198
+ },
199
+ "score": {
200
+ "anyOf": [{"type": "number"}, {"type": "null"}],
201
+ "description": "An overall score",
202
+ "title": "Score"
203
+ },
204
+ "key_strengths": {
205
+ "anyOf": [{"type": "string"}, {"type": "null"}],
206
+ "description": "A string specifying the key strengths of README file.",
207
+ "title": "Key Strengths",
208
+ },
209
+ "overall_improvement_suggestions": {
210
+ "anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}],
211
+ "description": "A list of improvement suggestions",
212
+ "title": "Overall Improvement Suggestions"
213
+ }
214
+ },
215
+ "required": ["project_level", "score", "key_strengths", "overall_improvement_suggestions"]
216
+ }
172
217
 
173
218
  class EvaluationREADMETask(EvaluationTask):
174
219
  def __init__(
@@ -195,7 +240,14 @@ class EvaluationREADMETask(EvaluationTask):
195
240
  logger.error(f"Error in reading file {readme_file}")
196
241
  continue
197
242
  if len(readme_content.strip()) == 0:
198
- readme_content = "empty file"
243
+ readme_evaluations[readme_file] = {
244
+ "evaluation": {
245
+ "project_level": "/" in readme_file,
246
+ "overall_assessment": f"{readme_file} is an empty file."
247
+ },
248
+ "reasoning_process": f"{readme_file} is an empty file.",
249
+ }
250
+ continue
199
251
 
200
252
  readability = PyphenReadability()
201
253
  flesch_reading_ease, flesch_kincaid_grade, gunning_fog_index, smog_index, \
@@ -215,14 +267,17 @@ class EvaluationREADMETask(EvaluationTask):
215
267
  response, _, token_usage, reasoning_process = agent.go(
216
268
  system_prompt=system_prompt,
217
269
  instruction_prompt="Before arriving at the conclusion, clearly explain your reasoning step by step. Now, let's begin the evaluation.",
218
- schema=EvaluationREADMEResult,
270
+ schema=EvaluationREADMEResultSchema,
219
271
  )
272
+ response = EvaluationREADMEResult(**response)
220
273
  self.print_step(step_output=f"README: {readme_file}")
221
274
  self.print_step(step_output=reasoning_process)
222
275
  readme_evaluations[readme_file] = {
223
276
  "evaluation": {
224
277
  "project_level": response.project_level,
225
- "overall_assessment": response.overall_assessment,
278
+ "score": response.score,
279
+ "key_strengths": response.key_strengths,
280
+ "overall_assessment": response.overall_improvement_suggestions,
226
281
  },
227
282
  "reasoning_process": reasoning_process
228
283
  }
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: bioguider
3
- Version: 0.2.4
3
+ Version: 0.2.5
4
4
  Summary: An AI-Powered package to help biomedical developers to generate clear documentation
5
5
  License: MIT
6
6
  Author: Cankun Wang
@@ -16,7 +16,7 @@ bioguider/agents/dockergeneration_observe_step.py,sha256=93PO_Y4YyUShVTKRt0nErcj
16
16
  bioguider/agents/dockergeneration_plan_step.py,sha256=SB8tQM9PkIKsD2o1DFD7bedcxz6r6hSy8n_EVK60Fz0,7235
17
17
  bioguider/agents/dockergeneration_task.py,sha256=ezsweVHJsFpOyOI6rYMt1DZ3PE19dcq4J3Lm-d0IA8M,6220
18
18
  bioguider/agents/dockergeneration_task_utils.py,sha256=v7emqrJlVW-A5ZdLmPSdiaMSKCR8uzy9UYzx_1cgzyo,9041
19
- bioguider/agents/evaluation_task.py,sha256=RRcbw4qTUPElZuiBAMj7heGsDV3t93l_IrioudMTGpc,14316
19
+ bioguider/agents/evaluation_task.py,sha256=khUSDTcuBTbCDdLQ1uHkzumsWDGevdXhzKM11XtPXRs,16884
20
20
  bioguider/agents/identification_execute_step.py,sha256=_9x_KITVtNJjQlgjfq-LazoUl46Tctaj_W_AVxz5q-w,5488
21
21
  bioguider/agents/identification_observe_step.py,sha256=OENwf9XyOSIHvJMp7eoyQOYGjjtPnPT2S29xf1rCATk,3667
22
22
  bioguider/agents/identification_plan_step.py,sha256=p0BKziXdB4ph4D_T9FU5bH8CbHD5Gv0YuszMds_xh-Y,5224
@@ -41,7 +41,7 @@ bioguider/utils/file_utils.py,sha256=9VfAHsz1UkFPtzAmvWZvPl1TMaKIYNjNlLgsfB8tNjg
41
41
  bioguider/utils/gitignore_checker.py,sha256=pOYUwsS9D5014LxcZb0cj3s2CAYaD2uF_pYJpaNKcho,6532
42
42
  bioguider/utils/pyphen_utils.py,sha256=cdZc3qphkvMDeL5NiZ8Xou13M_uVNP7ifJ-FwxO-0BE,2680
43
43
  bioguider/utils/utils.py,sha256=YP3HXgU_rvYDWkEcTzWGiYZw-mlfVrqGhUGSc0_4Pms,900
44
- bioguider-0.2.4.dist-info/LICENSE,sha256=qzkvZcKwwA5DuSuhXMOm2LcO6BdEr4V7jwFZVL2-jL4,1065
45
- bioguider-0.2.4.dist-info/METADATA,sha256=VD_LpYetLIYKw2y-JH7_OZZT8D5oIbmzSCx8t5kgyJY,1823
46
- bioguider-0.2.4.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
47
- bioguider-0.2.4.dist-info/RECORD,,
44
+ bioguider-0.2.5.dist-info/LICENSE,sha256=qzkvZcKwwA5DuSuhXMOm2LcO6BdEr4V7jwFZVL2-jL4,1065
45
+ bioguider-0.2.5.dist-info/METADATA,sha256=QQTOJ7Zj3RdXKBtcJwWtyWC51V_hgqJ-HovctZiegOo,1823
46
+ bioguider-0.2.5.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
47
+ bioguider-0.2.5.dist-info/RECORD,,