mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-23 15:18:14 +00:00
Fix issue #2724: Allow specifying trained data file for run command
Co-Authored-By: Joe Moura <joao@crewai.com>
This commit is contained in:
@@ -201,9 +201,17 @@ def install(context):
|
||||
|
||||
|
||||
@crewai.command()
|
||||
def run():
|
||||
@click.option(
|
||||
"-f",
|
||||
"--filename",
|
||||
type=str,
|
||||
default="trained_agents_data.pkl",
|
||||
help="Path to a trained data file to use",
|
||||
)
|
||||
def run(filename: str):
|
||||
"""Run the Crew."""
|
||||
run_crew()
|
||||
click.echo(f"Running the Crew with trained data from {filename}")
|
||||
run_crew(trained_data_file=filename)
|
||||
|
||||
|
||||
@crewai.command()
|
||||
|
||||
Reference in New Issue
Block a user