add in 2 small improvements based on joao feedback (#1264)

This commit is contained in:
Brandon Hancock (bhancock_ai)
2024-09-07 03:13:23 -04:00
committed by GitHub
parent 0fd5c7bab0
commit 7cc143624c
2 changed files with 5 additions and 4 deletions

View File

@@ -32,8 +32,8 @@ Each input creates its own run, flowing through all stages of the pipeline. Mult
## Pipeline Attributes ## Pipeline Attributes
| Attribute | Parameters | Description | | Attribute | Parameters | Description |
| :--------- | :--------- | :------------------------------------------------------------------------------------ | | :--------- | :--------- | :---------------------------------------------------------------------------------------------- |
| **Stages** | `stages` | A list of crews, lists of crews, or routers representing the stages to be executed in sequence. | | **Stages** | `stages` | A list of crews, lists of crews, or routers representing the stages to be executed in sequence. |
## Creating a Pipeline ## Creating a Pipeline
@@ -239,7 +239,7 @@ email_router = Router(
pipeline=normal_pipeline pipeline=normal_pipeline
) )
}, },
default=Pipeline(stages=[normal_pipeline]) # Default to just classification if no urgency score default=Pipeline(stages=[normal_pipeline]) # Default to just normal if no urgency score
) )
# Use the router in a main pipeline # Use the router in a main pipeline

View File

@@ -2,6 +2,7 @@ from crewai.agent import Agent
from crewai.crew import Crew from crewai.crew import Crew
from crewai.pipeline import Pipeline from crewai.pipeline import Pipeline
from crewai.process import Process from crewai.process import Process
from crewai.routers import Router
from crewai.task import Task from crewai.task import Task
__all__ = ["Agent", "Crew", "Process", "Task", "Pipeline"] __all__ = ["Agent", "Crew", "Process", "Task", "Pipeline", "Router"]