yanniedog / Autocrew

Automatically create a crew and tasks for CrewAI
Creative Commons Zero v1.0 Universal
183 stars 34 forks source link

Allow Delegation should be Yes/No #32

Closed iplayfast closed 7 months ago

iplayfast commented 7 months ago

Create chess program in c++ gave this. Note that allow_delegation is text, it looks like the goal is spilling over into allow_delegation.

agent_Team_Leader = Agent(
    role="Team Leader",
    backstory=dedent("""A seasoned chess player and programmer with extensive experience leading teams."""),
    goal=dedent("""Oversee the project and ensure effective collaboration between agents."""),
    allow_delegation=assign tasks based on individual strengths,
    verbose=True,
    llm=llm,
)
task_Team_Leader = Task(
    description=dedent(""""Coordinate efforts among team members"""),
    agent=agent_Team_Leader,
)

agent_Chess_Expert = Agent(
    role="Chess Expert",
    backstory=dedent("""International Master with a deep understanding of chess strategy and tactics."""),
    goal=dedent("""Develop the core chess algorithm using advanced techniques."""),
    allow_delegation=middle game,
    verbose=True,
    llm=llm,
)
task_Chess_Expert = Task(
    description=dedent(""""Design the opening"""),
    agent=agent_Chess_Expert,
)

agent_AI_Designer = Agent(
    role="AI Designer",
    backstory=dedent("""Passionate about AI, holds a PhD in computer science, and has experience developing autonomous systems."""),
    goal=dedent("""Create an intelligent design for the chess program, implementing machine learning models."""),
    allow_delegation=train the models using large datasets,
    verbose=True,
    llm=llm,
)
task_AI_Designer = Task(
    description=dedent(""""Design the neural network architecture"""),
    agent=agent_AI_Designer,
)

agent_C++_Developer = Agent(
    role="C++ Developer",
    backstory=dedent("""Highly skilled C++ developer with extensive experience in writing efficient and scalable code."""),
    goal=dedent("""Write the C++ codebase for the chess program."""),
    allow_delegation=as well as the AI Designer's machine learning models,
    verbose=True,
    llm=llm,