bioguider 0.2.8__py3-none-any.whl → 0.2.9__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.
- bioguider/agents/agent_tools.py +17 -8
- bioguider/agents/evaluation_installation_task.py +1 -2
- bioguider/agents/evaluation_task.py +39 -27
- {bioguider-0.2.8.dist-info → bioguider-0.2.9.dist-info}/METADATA +1 -1
- {bioguider-0.2.8.dist-info → bioguider-0.2.9.dist-info}/RECORD +7 -7
- {bioguider-0.2.8.dist-info → bioguider-0.2.9.dist-info}/LICENSE +0 -0
- {bioguider-0.2.8.dist-info → bioguider-0.2.9.dist-info}/WHEEL +0 -0
bioguider/agents/agent_tools.py
CHANGED
|
@@ -51,13 +51,22 @@ Returns:
|
|
|
51
51
|
return content
|
|
52
52
|
|
|
53
53
|
class summarize_file_tool(agent_tool):
|
|
54
|
-
"""
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
54
|
+
""" Read a file and generate a summary according to a specified prompt.
|
|
55
|
+
|
|
56
|
+
Arguments
|
|
57
|
+
----------
|
|
58
|
+
file_path : str, required
|
|
59
|
+
Path to the file to read.
|
|
60
|
+
summarize_prompt : str, optional
|
|
61
|
+
Instruction guiding the summarization focus (default is "N/A").
|
|
62
|
+
Use this to emphasize specific aspects of the content.
|
|
63
|
+
|
|
64
|
+
Returns
|
|
65
|
+
-------
|
|
66
|
+
str or None
|
|
67
|
+
A summarized version of the file content.
|
|
68
|
+
Returns None if the file does not exist or cannot be read.
|
|
69
|
+
"""
|
|
61
70
|
def __init__(
|
|
62
71
|
self,
|
|
63
72
|
llm: BaseChatOpenAI,
|
|
@@ -96,7 +105,7 @@ Returns:
|
|
|
96
105
|
summarized_text=summarized_text,
|
|
97
106
|
token_usage=token_usage,
|
|
98
107
|
)
|
|
99
|
-
def run(self, file_path: str, summarize_prompt: str) -> str | None:
|
|
108
|
+
def run(self, file_path: str, summarize_prompt: str = "N/A") -> str | None:
|
|
100
109
|
if file_path is None:
|
|
101
110
|
return None
|
|
102
111
|
if summarize_prompt is None or len(summarize_prompt) == 0:
|
|
@@ -52,14 +52,12 @@ Please assess the installation information using the following criteria. For eac
|
|
|
52
52
|
|
|
53
53
|
Your response **must exactly follow** the structure below:
|
|
54
54
|
|
|
55
|
-
```
|
|
56
55
|
**FinalAnswer**
|
|
57
56
|
**Overall Score:** [Poor / Fair / Good / Excellent]
|
|
58
57
|
**Ease of Access:** <your comments>
|
|
59
58
|
**Clarity of Dependency Specification:** <your comments>
|
|
60
59
|
**Hardware Requirements:** <your comments>
|
|
61
60
|
**Installation Guide:** <your comments>
|
|
62
|
-
```
|
|
63
61
|
|
|
64
62
|
---
|
|
65
63
|
|
|
@@ -149,6 +147,7 @@ class EvaluationInstallationTask(EvaluationTask):
|
|
|
149
147
|
schema=EvaluationInstallationResultSchema,
|
|
150
148
|
)
|
|
151
149
|
res = EvaluationInstallationResult(**res)
|
|
150
|
+
self.print_step(step_output=reasoning_process)
|
|
152
151
|
evaluation = {
|
|
153
152
|
"score": res.score,
|
|
154
153
|
"ease_of_access": res.ease_of_access,
|
|
@@ -18,7 +18,8 @@ from ..utils.gitignore_checker import GitignoreChecker
|
|
|
18
18
|
logger = logging.getLogger(__name__)
|
|
19
19
|
|
|
20
20
|
EVALUATION_README_SYSTEM_PROMPT = """
|
|
21
|
-
You are an expert in evaluating the quality of README files in software repositories.
|
|
21
|
+
You are an expert in evaluating the quality of README files in software repositories.
|
|
22
|
+
Your task is to analyze the provided README file and generate a comprehensive quality report.
|
|
22
23
|
|
|
23
24
|
---
|
|
24
25
|
|
|
@@ -28,9 +29,10 @@ First, determine whether the provided README is a **project-level README** (typi
|
|
|
28
29
|
|
|
29
30
|
---
|
|
30
31
|
|
|
31
|
-
### **
|
|
32
|
+
### **Evaluation Criteria**
|
|
33
|
+
|
|
34
|
+
#### If the README is a **project-level** file, evaluate it using the following criteria.
|
|
32
35
|
|
|
33
|
-
If the README is a **project-level** file, evaluate it using the following criteria.
|
|
34
36
|
For each criterion below, provide a brief assessment followed by specific, actionable comments for improvement.
|
|
35
37
|
|
|
36
38
|
**1. Project Clarity & Purpose**
|
|
@@ -38,30 +40,45 @@ For each criterion below, provide a brief assessment followed by specific, actio
|
|
|
38
40
|
* **Improvement Suggestions**:
|
|
39
41
|
* **Original text:** [Quote a specific line/section from the README.]
|
|
40
42
|
* **Improving comments:** [Provide your suggestions to improve clarity.]
|
|
43
|
+
* **Original text:** [Quote a specific line/section from the README.]
|
|
44
|
+
* **Improving comments:** [Provide your suggestions to improve clarity.]
|
|
45
|
+
...
|
|
41
46
|
|
|
42
47
|
**2. Installation Instructions**
|
|
43
48
|
* **Assessment**: [Your evaluation of the installation instructions.]
|
|
44
49
|
* **Improvement Suggestions**:
|
|
45
50
|
* **Original text:** [Quote text related to installation.]
|
|
46
51
|
* **Improving comments:** [Provide your suggestions.]
|
|
52
|
+
* **Original text:** [Quote text related to installation.]
|
|
53
|
+
* **Improving comments:** [Provide your suggestions.]
|
|
54
|
+
...
|
|
47
55
|
|
|
48
56
|
**3. Usage Instructions**
|
|
49
57
|
* **Assessment**: [Your evaluation of the usage instructions.]
|
|
50
58
|
* **Improvement Suggestions**:
|
|
51
59
|
* **Original text:** [Quote text related to usage.]
|
|
52
60
|
* **Improving comments:** [Provide your suggestions.]
|
|
61
|
+
* **Original text:** [Quote text related to usage.]
|
|
62
|
+
* **Improving comments:** [Provide your suggestions.]
|
|
63
|
+
...
|
|
53
64
|
|
|
54
65
|
**4. Contributing Guidelines**
|
|
55
66
|
* **Assessment**: [Your evaluation of the contributing guidelines.]
|
|
56
67
|
* **Improvement Suggestions**:
|
|
57
68
|
* **Original text:** [Quote text related to contributions.]
|
|
58
69
|
* **Improving comments:** [Provide your suggestions.]
|
|
70
|
+
* **Original text:** [Quote text related to contributions.]
|
|
71
|
+
* **Improving comments:** [Provide your suggestions.]
|
|
72
|
+
...
|
|
59
73
|
|
|
60
74
|
**5. License Information**
|
|
61
75
|
* **Assessment**: [Your evaluation of the license information.]
|
|
62
76
|
* **Improvement Suggestions**:
|
|
63
77
|
* **Original text:** [Quote text related to the license.]
|
|
64
78
|
* **Improving comments:** [Provide your suggestions.]
|
|
79
|
+
* **Original text:** [Quote text related to the license.]
|
|
80
|
+
* **Improving comments:** [Provide your suggestions.]
|
|
81
|
+
...
|
|
65
82
|
|
|
66
83
|
**6. Readability Analysis**
|
|
67
84
|
* **Flesch Reading Ease**: `{flesch_reading_ease}` (A higher score is better, with 60-70 being easily understood by most adults).
|
|
@@ -70,29 +87,9 @@ For each criterion below, provide a brief assessment followed by specific, actio
|
|
|
70
87
|
* **SMOG Index**: `{smog_index}` (Estimates the years of education needed to understand the text).
|
|
71
88
|
* **Assessment**: Based on these scores, evaluate the overall readability and technical complexity of the language used.
|
|
72
89
|
|
|
73
|
-
**Final Answer**
|
|
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
|
-
* **Overall 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.
|
|
90
|
-
|
|
91
90
|
---
|
|
92
91
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
If the README is a **folder-level** file, use the following criteria instead.
|
|
92
|
+
#### If if is a **folder-level** file, use the following criteria instead.
|
|
96
93
|
|
|
97
94
|
For each criterion below, provide a brief assessment followed by specific, actionable comments for improvement.
|
|
98
95
|
|
|
@@ -121,15 +118,30 @@ For each criterion below, provide a brief assessment followed by specific, actio
|
|
|
121
118
|
* **SMOG Index**: `{smog_index}` (Estimates the years of education needed to understand the text).
|
|
122
119
|
* **Assessment**: Based on these scores, evaluate the overall readability and technical complexity of the language used.
|
|
123
120
|
|
|
124
|
-
|
|
125
|
-
|
|
121
|
+
---
|
|
122
|
+
|
|
123
|
+
### Final Report Format
|
|
124
|
+
|
|
125
|
+
#### Your output **must exactly match** the following template:
|
|
126
|
+
|
|
127
|
+
**FinalAnswer**
|
|
128
|
+
|
|
126
129
|
* Project-Level README: Yes / No
|
|
127
|
-
* **Score:**
|
|
130
|
+
* **Score:** [Poor / Fair / Good / Excellent]
|
|
128
131
|
* **Key Strengths**: <brief summary of the README's strongest points in 2-3 sentences>
|
|
129
132
|
* **Overall Improvement Suggestions:**
|
|
130
133
|
- "Original text snippet 1" - Improving comment 1
|
|
131
134
|
- "Original text snippet 2" - Improving comment 2
|
|
132
135
|
- ...
|
|
136
|
+
|
|
137
|
+
#### Notes
|
|
138
|
+
|
|
139
|
+
* **Project-Level README**: "Yes" if root-level; "No" if folder-level.
|
|
140
|
+
* **Score**: Overall quality rating, could be Poor / Fair / Good / Excellent.
|
|
141
|
+
* **Key Strengths**: Briefly highlight the README's strongest aspects.
|
|
142
|
+
* **Improvement Suggestions**: Provide concrete snippets and suggested improvements.
|
|
143
|
+
|
|
144
|
+
|
|
133
145
|
---
|
|
134
146
|
|
|
135
147
|
### **README path:**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
bioguider/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
2
|
bioguider/agents/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
3
|
bioguider/agents/agent_task.py,sha256=SX4iLdGqQttT39qvr-RtXiSpQEzm7Z3ECVw8IGQzpDc,2828
|
|
4
|
-
bioguider/agents/agent_tools.py,sha256=
|
|
4
|
+
bioguider/agents/agent_tools.py,sha256=YWF44vGjTzK0H9dxfdZyJ5K2H4z2j1bz-Q0bVw1UoE8,7014
|
|
5
5
|
bioguider/agents/agent_utils.py,sha256=GASgM8pwGcbs3xQ8RaryBtWCim19rAcd3_c4EDranmU,12843
|
|
6
6
|
bioguider/agents/collection_execute_step.py,sha256=Ev4BLjjmBdsc52M1zrq7QK8g7fsffDkSxu-jN2rvedw,5614
|
|
7
7
|
bioguider/agents/collection_observe_step.py,sha256=iNeV6f16Emk1LMStSR4FXBPZ6Sc0eTjwxEfmoeegV-U,4554
|
|
@@ -16,8 +16,8 @@ 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_installation_task.py,sha256=
|
|
20
|
-
bioguider/agents/evaluation_task.py,sha256=
|
|
19
|
+
bioguider/agents/evaluation_installation_task.py,sha256=G8oFpyiT99bGyHGgqE6eCW6_i5le64i3Hd7hSQkrndE,6498
|
|
20
|
+
bioguider/agents/evaluation_task.py,sha256=0kwUkKixljs15VpasMCUdDjQH-xJwXzHV4GyNkGrmPc,17364
|
|
21
21
|
bioguider/agents/identification_execute_step.py,sha256=w3IjL8f2WiHCyiLjVSoySnIAXpi1-hK1DLKCnXbAN2Y,5587
|
|
22
22
|
bioguider/agents/identification_observe_step.py,sha256=OENwf9XyOSIHvJMp7eoyQOYGjjtPnPT2S29xf1rCATk,3667
|
|
23
23
|
bioguider/agents/identification_plan_step.py,sha256=p0BKziXdB4ph4D_T9FU5bH8CbHD5Gv0YuszMds_xh-Y,5224
|
|
@@ -42,7 +42,7 @@ bioguider/utils/file_utils.py,sha256=9VfAHsz1UkFPtzAmvWZvPl1TMaKIYNjNlLgsfB8tNjg
|
|
|
42
42
|
bioguider/utils/gitignore_checker.py,sha256=pOYUwsS9D5014LxcZb0cj3s2CAYaD2uF_pYJpaNKcho,6532
|
|
43
43
|
bioguider/utils/pyphen_utils.py,sha256=cdZc3qphkvMDeL5NiZ8Xou13M_uVNP7ifJ-FwxO-0BE,2680
|
|
44
44
|
bioguider/utils/utils.py,sha256=YP3HXgU_rvYDWkEcTzWGiYZw-mlfVrqGhUGSc0_4Pms,900
|
|
45
|
-
bioguider-0.2.
|
|
46
|
-
bioguider-0.2.
|
|
47
|
-
bioguider-0.2.
|
|
48
|
-
bioguider-0.2.
|
|
45
|
+
bioguider-0.2.9.dist-info/LICENSE,sha256=qzkvZcKwwA5DuSuhXMOm2LcO6BdEr4V7jwFZVL2-jL4,1065
|
|
46
|
+
bioguider-0.2.9.dist-info/METADATA,sha256=kctbCb5iK21lTibqx01l7hnLYUz10Be66afv61LwuJA,1867
|
|
47
|
+
bioguider-0.2.9.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
48
|
+
bioguider-0.2.9.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|