Compare commits

...

1 Commits

Author SHA1 Message Date
Brandon Hancock
e6e2944454 add in 2 small improvements based on joao feedback 2024-08-28 16:43:14 -04:00
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"]