From 319da2129a3b08439810507550ae081f9297f52a Mon Sep 17 00:00:00 2001 From: Brandon Hancock Date: Thu, 23 Jan 2025 23:48:36 -0500 Subject: [PATCH] WIP --- src/crewai/cli/cli.py | 8 ++++++++ src/crewai/cli/run_crew.py | 1 + src/crewai/crew.py | 3 --- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/crewai/cli/cli.py b/src/crewai/cli/cli.py index 334759a6d..22e77875e 100644 --- a/src/crewai/cli/cli.py +++ b/src/crewai/cli/cli.py @@ -1,3 +1,11 @@ +import warnings + +warnings.filterwarnings( + "ignore", + message="Valid config keys have changed in V2*", + category=UserWarning, +) + import os from importlib.metadata import version as get_version from typing import Optional, Tuple diff --git a/src/crewai/cli/run_crew.py b/src/crewai/cli/run_crew.py index 95b560109..13545eb3e 100644 --- a/src/crewai/cli/run_crew.py +++ b/src/crewai/cli/run_crew.py @@ -11,6 +11,7 @@ def run_crew() -> None: """ Run the crew by running a command in the UV environment. """ + click.echo("Running crew hello...") command = ["uv", "run", "run_crew"] crewai_version = get_crewai_version() min_required_version = "0.71.0" diff --git a/src/crewai/crew.py b/src/crewai/crew.py index 5d4b9ff79..139b20615 100644 --- a/src/crewai/crew.py +++ b/src/crewai/crew.py @@ -57,9 +57,6 @@ except ImportError: agentops = None -warnings.filterwarnings("ignore", category=SyntaxWarning, module="pysbd") - - class Crew(BaseModel): """ Represents a group of agents, defining how they should collaborate and the tasks they should perform.