(
self,
conversation: list,
code_markdown: str,
os_system: str,
project_path: str,
project_name: str
)
| 198 | |
| 199 | @retry_wrapper |
| 200 | def execute( |
| 201 | self, |
| 202 | conversation: list, |
| 203 | code_markdown: str, |
| 204 | os_system: str, |
| 205 | project_path: str, |
| 206 | project_name: str |
| 207 | ) -> str: |
| 208 | prompt = self.render(conversation, code_markdown, os_system) |
| 209 | response = self.llm.inference(prompt, project_name) |
| 210 | |
| 211 | valid_response = self.validate_response(response) |
| 212 | |
| 213 | self.run_code( |
| 214 | valid_response, |
| 215 | project_path, |
| 216 | project_name, |
| 217 | conversation, |
| 218 | code_markdown, |
| 219 | os_system |
| 220 | ) |
| 221 | |
| 222 | return valid_response |
no test coverage detected