mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-09 08:08:32 +00:00
WIP
This commit is contained in:
@@ -38,6 +38,10 @@ Each input creates its own run, flowing through all stages of the pipeline. Mult
|
|||||||
|
|
||||||
## Creating a Pipeline
|
## Creating a Pipeline
|
||||||
|
|
||||||
|
There are 2 ways to create a pipeline in crewAI: using the CLI and manually. We recommend using the CLI approach for its simplicity and ease of use, but we'll cover both approaches.
|
||||||
|
|
||||||
|
# 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.
|
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
|
### Example: Assembling a Pipeline
|
||||||
@@ -45,6 +49,8 @@ When creating a pipeline, you define a series of stages, each consisting of eith
|
|||||||
```python
|
```python
|
||||||
from crewai import Crew, Agent, Task, Pipeline
|
from crewai import Crew, Agent, Task, Pipeline
|
||||||
|
|
||||||
|
# Define your agents and tasks here...
|
||||||
|
|
||||||
# Define your crews
|
# Define your crews
|
||||||
research_crew = Crew(
|
research_crew = Crew(
|
||||||
agents=[researcher],
|
agents=[researcher],
|
||||||
@@ -72,6 +78,8 @@ my_pipeline = Pipeline(
|
|||||||
|
|
||||||
## Pipeline Methods
|
## Pipeline Methods
|
||||||
|
|
||||||
|
# TODO: DROP PROCESS_RUNS AND UPDATE TO KICKOFF
|
||||||
|
|
||||||
| Method | Description |
|
| 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. |
|
| **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. |
|
||||||
|
|||||||
Reference in New Issue
Block a user