mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-11 17:18:29 +00:00
Updated Defining Tasks (markdown)
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user