crewAIInc / crewAI

Framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewAI empowers agents to work together seamlessly, tackling complex tasks.
https://crewai.com
MIT License
21.05k stars 2.92k forks source link

[BUG] CrewAI course: Automating Event Planning lab is broken. #1421

Open ianbruton opened 1 month ago

ianbruton commented 1 month ago

Description

screenshot from the lab environment within the course

image

running the code locally gives a different error ( I did not alter any of the agents, or tasks:

Steps to Reproduce

  1. do the training course at : https://learn.deeplearning.ai/courses/multi-ai-agent-systems-with-crewai/lesson/12/automate-event-planning-(code)

Expected behavior

the lab to work

Screenshots/Code snippets

it's your code

Operating System

macOS Sonoma

Python Version

3.10

crewAI Version

0.64.0

crewAI Tools Version

0.12.1

Virtual Environment

Poetry

Evidence

❯ python lab_4.py website_url: None Traceback (most recent call last): File "/Users/ian/Documents/personal/multi_agent_poc/ian_test/crewai/v12.py", line 131, in <module> event_management_crew = Crew( ^^^^^ File "/Users/ian/Documents/personal/multi_agent_poc/ian_test/.venv/lib/python3.11/site-packages/pydantic/main.py", line 212, in __init__ validated_self = self.__pydantic_validator__.validate_python(data, self_instance=self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pydantic_core._pydantic_core.ValidationError: 1 validation error for Crew The crew must end with at most one asynchronous task. [type=async_task_count, input_value={'agents': [Agent(role=Ve...wn. )], 'verbose': True}, input_type=dict]

Possible Solution

i don't know???

Additional context

none

github-actions[bot] commented 3 days ago

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.

vinodvpillai commented 1 day ago

Faced the same issue it only works with single asynchronous task as mentioned in the error message. As per my understanding running multiple tasks asynchronously within a single Crew could create significant complexity in coordinating task completions, handling dependencies between them, and meaningfully aggregating results.