easier cli command name

This commit is contained in:
Lorenze Jay
2024-07-12 13:46:30 -07:00
parent b47d0c48a2
commit 010db7790a
3 changed files with 5 additions and 5 deletions

View File

@@ -156,9 +156,9 @@ for async_result in async_results:
```
### Replaying from specific task:
You can now replay from a specific task using the `replay_from_task` method.
You can now replay from a specific task using our cli command replay.
The replay_from_tasks feature in CrewAI allows you to replay from a specific task using the command-line interface (CLI). By running the command `crewai replay_from_tasks -t <task_id>`, you can specify the task name for the replay process.
The replay_from_tasks feature in CrewAI allows you to replay from a specific task using the command-line interface (CLI). By running the command `crewai replay -t <task_id>`, you can specify the task name for the replay process.
Kickoffs will now create a `crew_tasks_ouput.json` file with the output of the tasks which you use to retrieve the task id to replay.
@@ -171,7 +171,7 @@ To use the replay_from_tasks feature, follow these steps:
3. Run the following command:
```shell
crewai replay-from-tasks -t <task_id>
crewai replay -t <task_id>
```
These methods provide flexibility in how you manage and execute tasks within your crew, allowing for both synchronous and asynchronous workflows tailored to your needs

View File

@@ -57,7 +57,7 @@ def train(n_iterations: int):
type=str,
help="Replay the crew from this task ID, including all subsequent tasks.",
)
def replay_from_task(task_id: str) -> None:
def replay(task_id: str) -> None:
"""
Replay the crew execution from a specific task.

View File

@@ -11,7 +11,7 @@ crewai = { extras = ["tools"], version = "^0.35.8" }
[tool.poetry.scripts]
{{folder_name}} = "{{folder_name}}.main:run"
train = "{{folder_name}}.main:train"
replay_from_task = "{{folder_name}}.main:replay_from_task"
replay = "{{folder_name}}.main:replay_from_task"
[build-system]
requires = ["poetry-core"]