Spaces:
Sleeping
Sleeping
Create critic_agent.py
Browse files- agents/critic_agent.py +10 -0
agents/critic_agent.py
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from crewai import Agent
|
| 2 |
+
|
| 3 |
+
|
| 4 |
+
def create_critic_agent():
|
| 5 |
+
return Agent(
|
| 6 |
+
role="Critic",
|
| 7 |
+
goal="Review generated solutions and improve accuracy",
|
| 8 |
+
backstory="Code reviewer focused on optimization and correctness.",
|
| 9 |
+
verbose=True,
|
| 10 |
+
)
|