Compare commits

...

2 Commits

Author SHA1 Message Date
Brandon Hancock
1fbb002cc9 WIP. 2024-09-09 12:00:29 -04:00
Brandon Hancock
8b650ec283 WIP 2024-09-09 11:56:24 -04:00

View File

@@ -38,6 +38,18 @@ Each input creates its own run, flowing through all stages of the pipeline. Mult
## Creating a Pipeline
There are 2 ways to create a pipeline in crewAI: using the CLI and manually.
The CLI approach will generate a working pipeline consisting of 2 crews in the crewAI . If you choose to go the manual route, you will need to create the agents, tasks, and crews yourself.
We recommend using the CLI approach for its simplicity and ease of use, but we'll cover both approaches.
### Using the CLI
### Manual Method
# TODO: UPDATE TO TALK ABOUT BOTH CLI & MANUAL METHOD
When creating a pipeline, you define a series of stages, each consisting of either a single crew or a list of crews for parallel execution. The pipeline ensures that each stage is executed in order, with the output of one stage feeding into the next.
### Example: Assembling a Pipeline
@@ -45,6 +57,8 @@ When creating a pipeline, you define a series of stages, each consisting of eith
```python
from crewai import Crew, Agent, Task, Pipeline
# Define your agents and tasks here...
# Define your crews
research_crew = Crew(
agents=[researcher],
@@ -72,6 +86,8 @@ my_pipeline = Pipeline(
## Pipeline Methods
# TODO: DROP PROCESS_RUNS AND UPDATE TO KICKOFF
| Method | Description |
| :--------------- | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **process_runs** | Executes the pipeline, processing all stages and returning the results. This method initiates one or more runs through the pipeline, handling the flow of data between stages. |