mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-09 08:08:32 +00:00
add in 2 small improvements based on joao feedback (#1264)
This commit is contained in:
committed by
GitHub
parent
0fd5c7bab0
commit
7cc143624c
@@ -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
|
||||||
|
|||||||
@@ -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"]
|
||||||
|
|||||||
Reference in New Issue
Block a user