Skip to content

Commit

Permalink
dont forget crew level
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzejay committed Feb 14, 2025
1 parent 6eab0e3 commit 18791ea
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/crewai/crew.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,6 @@
from crewai.utilities.task_output_storage_handler import TaskOutputStorageHandler
from crewai.utilities.training_handler import CrewTrainingHandler

try:
import agentops # type: ignore
except ImportError:
agentops = None


warnings.filterwarnings("ignore", category=SyntaxWarning, module="pysbd")


Expand Down Expand Up @@ -1180,13 +1174,6 @@ def _interpolate_inputs(self, inputs: Dict[str, Any]) -> None:
def _finish_execution(self, final_string_output: str) -> None:
if self.max_rpm:
self._rpm_controller.stop_rpm_counter()
if agentops:
agentops.end_session(
end_state="Success",
end_state_reason="Finished Execution",
is_auto_end=True,
)
# self._telemetry.end_crew(self, final_string_output)

def calculate_usage_metrics(self) -> UsageMetrics:
"""Calculates and returns the usage metrics."""
Expand Down

0 comments on commit 18791ea

Please sign in to comment.