I’m new to CrewAI and am currently exploring how to build agents to accomplish tasks effectively. I’m struggling with understanding how to handle tasks that involve multiple agents.
For instance, let’s say I want to create a task to make a reservation. This could include booking flights, hotels, and car rentals. I’ve created three agents:
FlightsBookingAgent
HotelBookingAgent
CarRentalBookingAgent
The challenge I’m facing is:
Should I map all these agents to the single “Make a Reservation” task?
Or would it be better to create one comprehensive agent (e.g., BookingAgent) that handles all these subtasks internally?
I’m looking for advice on the right way to structure this.
It’s good practice to create focused agents and tasks rather than general agents. Focused agents often perform better. This means have different agents to do the different types of bookings with specific tasks and instructions for each
This is great. Thank you. One more question. How can i customize the crew? For example, what if one reservation requires just flight and hotel, no care rental. How do i specify that when i kickoff the crew?
Hi community,
Following on the same, had a similar doubt are we actually separating @task and @agents in order to improve the usability of @task over separate agents. Or there is certain sort of mapping in between the two internally. Kind of llm maps them or so?
Also I have another doubt that why do we have tools in @agents param list when we have @task defined. I wondedr how does it differentiates the two. Does @task is just an uograded version of @task? or there is something key reason why tools param exists?