crewAI icon indicating copy to clipboard operation
crewAI copied to clipboard

[FEATURE] Questions on the code design as shown in documentation

Open xtfocus opened this issue 1 year ago • 3 comments

Feature Area

Documentation

Is your feature request related to a an existing bug? Please link it here.

No

Describe the solution you'd like

I was studying the example code at https://docs.crewai.com/concepts/tasks. I have two questions:

  1. It bugs me a little here:
# Example task
task = Task(
    description='Find and summarize the latest AI news',
    expected_output='A bullet list summary of the top 5 most important AI news',
    agent=research_agent,
    tools=[search_tool]
)

# Execute the crew
crew = Crew(
    agents=[research_agent],
    tasks=[task],
    verbose=True
)

research_agent is repeatedly referred in task and crew. Is this intentional or a design flaw (redundancy)?

  1. Also, from the Task Attribute table, it seems that each Task can only have one Agent, but in here it's noted

Tasks within CrewAI can be collaborative, requiring multiple agents to work together

which seems conflicting to me.

Describe alternatives you've considered

No response

Additional context

No response

Willingness to Contribute

Yes, I'd be happy to submit a pull request

xtfocus avatar Nov 28 '24 07:11 xtfocus

Hi, was the intention to submit a feature request? I am assuming not?

Can you please expand on what your actual issue is and how we can help you with it

theCyberTech avatar Nov 28 '24 08:11 theCyberTech

Hi, was the intention to submit a feature request? I am assuming not?

Can you please expand on what your actual issue is and how we can help you with it

It's not a feature request per se, but could turn into one. It's more of a question on the code design. I could not find the appropriate label for my curiosity-driven question. Sorry about that.

xtfocus avatar Nov 28 '24 08:11 xtfocus

This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] avatar Dec 28 '24 12:12 github-actions[bot]

This issue was closed because it has been stalled for 5 days with no activity.

github-actions[bot] avatar Jan 02 '25 12:01 github-actions[bot]