Updated Defining Tasks (markdown)

João Moura
2024-01-21 13:42:37 -03:00
parent 5ed4c2c3e9
commit 36be382615

@@ -19,11 +19,8 @@ Creating a task is straightforward. You define what needs to be done and, option
```python
from crewai import Task
# Define a simple task with just a description
simple_task = Task(description='Validate user input data')
# Define a task with a designated agent and specific tools
advanced_task = Task(description='Generate monthly sales report', agent=sales_agent, tools=[reporting_tool])
task = Task(description='Generate monthly sales report', agent=sales_agent, tools=[reporting_tool])
```
# Task Assignment
@@ -31,7 +28,7 @@ advanced_task = Task(description='Generate monthly sales report', agent=sales_ag
Tasks can be assigned to agents in several ways:
- Directly, by specifying the agent when creating the task.
- Through the Crew's process, which can assign tasks based on agent roles, availability, or other criteria.
- [WIP] Through the Crew's process, which can assign tasks based on agent roles, availability, or other criteria.
# Task Execution