Skip to content

Commit

Permalink
remove all references to pipeline and pipeline router (crewAIInc#1661)
Browse files Browse the repository at this point in the history
* remove all references to pipeline and router

* fix linting

* drop poetry.lock
  • Loading branch information
bhancockio authored Dec 4, 2024
1 parent 066ad73 commit bbea797
Show file tree
Hide file tree
Showing 57 changed files with 10 additions and 10,079 deletions.
9 changes: 4 additions & 5 deletions docs/concepts/cli.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -28,20 +28,19 @@ crewai [COMMAND] [OPTIONS] [ARGUMENTS]

### 1. Create

Create a new crew or pipeline.
Create a new crew or flow.

```shell
crewai create [OPTIONS] TYPE NAME
```

- `TYPE`: Choose between "crew" or "pipeline"
- `NAME`: Name of the crew or pipeline
- `--router`: (Optional) Create a pipeline with router functionality
- `TYPE`: Choose between "crew" or "flow"
- `NAME`: Name of the crew or flow

Example:
```shell
crewai create crew my_new_crew
crewai create pipeline my_new_pipeline --router
crewai create flow my_new_flow
```

### 2. Version
Expand Down
1 change: 0 additions & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ nav:
- Processes: 'core-concepts/Processes.md'
- Crews: 'core-concepts/Crews.md'
- Collaboration: 'core-concepts/Collaboration.md'
- Pipeline: 'core-concepts/Pipeline.md'
- Training: 'core-concepts/Training-Crew.md'
- Memory: 'core-concepts/Memory.md'
- Planning: 'core-concepts/Planning.md'
Expand Down
7,507 changes: 0 additions & 7,507 deletions poetry.lock

This file was deleted.

4 changes: 0 additions & 4 deletions src/crewai/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
from crewai.flow.flow import Flow
from crewai.knowledge.knowledge import Knowledge
from crewai.llm import LLM
from crewai.pipeline import Pipeline
from crewai.process import Process
from crewai.routers import Router
from crewai.task import Task

warnings.filterwarnings(
Expand All @@ -22,8 +20,6 @@
"Crew",
"Process",
"Task",
"Pipeline",
"Router",
"LLM",
"Flow",
"Knowledge",
Expand Down
11 changes: 3 additions & 8 deletions src/crewai/cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
from crewai.cli.add_crew_to_flow import add_crew_to_flow
from crewai.cli.create_crew import create_crew
from crewai.cli.create_flow import create_flow
from crewai.cli.create_pipeline import create_pipeline
from crewai.memory.storage.kickoff_task_outputs_storage import (
KickoffTaskOutputsSQLiteStorage,
)
Expand All @@ -31,22 +30,18 @@ def crewai():


@crewai.command()
@click.argument("type", type=click.Choice(["crew", "pipeline", "flow"]))
@click.argument("type", type=click.Choice(["crew", "flow"]))
@click.argument("name")
@click.option("--provider", type=str, help="The provider to use for the crew")
@click.option("--skip_provider", is_flag=True, help="Skip provider validation")
def create(type, name, provider, skip_provider=False):
"""Create a new crew, pipeline, or flow."""
"""Create a new crew, or flow."""
if type == "crew":
create_crew(name, provider, skip_provider)
elif type == "pipeline":
create_pipeline(name)
elif type == "flow":
create_flow(name)
else:
click.secho(
"Error: Invalid type. Must be 'crew', 'pipeline', or 'flow'.", fg="red"
)
click.secho("Error: Invalid type. Must be 'crew' or 'flow'.", fg="red")


@crewai.command()
Expand Down
107 changes: 0 additions & 107 deletions src/crewai/cli/create_pipeline.py

This file was deleted.

2 changes: 0 additions & 2 deletions src/crewai/cli/templates/pipeline/.gitignore

This file was deleted.

57 changes: 0 additions & 57 deletions src/crewai/cli/templates/pipeline/README.md

This file was deleted.

Empty file.

This file was deleted.

This file was deleted.

This file was deleted.

Empty file.
Empty file.
Loading

0 comments on commit bbea797

Please sign in to comment.