Update src/agents/reflection_agent.py
Browse files158 unmodified lines159160161158 unmodified linesscore = positive_count / totalreturn score158 unmodified lines159160161162163164165166167168169170171172173174175176177178179180181182158 unmodified linesscore = positive_count / totalreturn scoredef review_hypothesis(self, hypothesis: str, research_goal: str) -> str:"""Review a single hypothesis in the context of the research goal and return feedback as a string."""prompt = f"""RESEARCH GOAL: {research_goal}HYPOTHESIS TO REVIEW:{hypothesis}Please conduct a thorough peer review of this hypothesis. Assess:1. Scientific validity and plausibility2. Strengths of the hypothesis3. Weaknesses, inconsistencies, or logical flaws4. Potential contradictions with established knowledge5. Ethical considerations or concerning implications6. Practical limitations for testing or implementation7. Suggested modifications to strengthen the hypothesisStructure your review clearly with sections for each aspect of the assessment."""return self.get_response(prompt)
src/agents/reflection_agent.py+21