Devika is the first open-source implementation of an Agentic Software Engineer. Initially started as an open-source alternative to Devin.
Python
Fix - recursive rendering
homuch11a0a84cf67f
diff --git a/src/agents/decision/decision.py b/src/agents/decision/decision.pyindex 6a98445..9e98907 100644--- a/src/agents/decision/decision.py+++ b/src/agents/decision/decision.py@@ -33,8 +33,8 @@ class Decision:return responsedef execute(self, prompt: str, project_name: str) -> str:- prompt = self.render(prompt)- response = self.llm.inference(prompt, project_name)+ rendered_prompt = self.render(prompt)+ response = self.llm.inference(rendered_prompt, project_name)valid_response = self.validate_response(response)diff --git a/src/agents/internal_monologue/internal_monologue.py b/src/agents/internal_monologue/internal_monologue.pyindex 6a81820..dd6152c 100644--- a/src/agents/internal_monologue/internal_monologue.py+++ b/src/agents/internal_monologue/internal_monologue.py@@ -34,8 +34,8 @@ class InternalMonologue:return response["internal_monologue"]def execute(self, current_prompt: str, project_name: str) -> str:- current_prompt = self.render(current_prompt)- response = self.llm.inference(current_prompt, project_name)+ rendered_prompt = self.render(current_prompt)+ response = self.llm.inference(rendered_prompt, project_name)valid_response = self.validate_response(response)diff --git a/src/agents/researcher/researcher.py b/src/agents/researcher/researcher.pyindex c9c2574..a7de964 100644--- a/src/agents/researcher/researcher.py+++ b/src/agents/researcher/researcher.py@@ -43,10 +43,10 @@ class Researcher:}def execute(self, step_by_step_plan: str, contextual_keywords: List[str], project_name: str) -> str:- contextual_keywords = ", ".join(map(lambda k: k.capitalize(), contextual_keywords))- step_by_step_plan = self.render(step_by_step_plan, contextual_keywords)+ contextual_keywords_str = ", ".join(map(lambda k: k.capitalize(), contextual_keywords))+ prompt = self.render(step_by_step_plan, contextual_keywords_str)- response = self.llm.inference(step_by_step_plan, project_name)+ response = self.llm.inference(prompt, project_name)valid_response = self.validate_response(response)