MCPcopy
hub / github.com/stitionai/devika / execute

Method execute

src/agents/coder/coder.py:115–134  ·  view source on GitHub ↗
(
        self,
        step_by_step_plan: str,
        user_context: str,
        search_results: dict,
        project_name: str
    )

Source from the content-addressed store, hash-verified

113
114 @retry_wrapper
115 def execute(
116 self,
117 step_by_step_plan: str,
118 user_context: str,
119 search_results: dict,
120 project_name: str
121 ) -> str:
122 prompt = self.render(step_by_step_plan, user_context, search_results)
123 response = self.llm.inference(prompt, project_name)
124
125 valid_response = self.validate_response(response)
126
127 if not valid_response:
128 return False
129
130 print(valid_response)
131
132 self.emulate_code_writing(valid_response, project_name)
133
134 return valid_response

Callers

nothing calls this directly

Calls 4

renderMethod · 0.95
validate_responseMethod · 0.95
emulate_code_writingMethod · 0.95
inferenceMethod · 0.45

Tested by

no test coverage detected