fix: Remove telemetry dependency from Flow plot method

Co-Authored-By: Joe Moura <joao@crewai.com>
This commit is contained in:
Devin AI
2025-02-21 03:25:10 +00:00
parent dfba35e475
commit 9fad174b74

View File

@@ -1232,7 +1232,6 @@ class Flow(Generic[T], metaclass=FlowMeta):
elif level == "warning":
logger.warning(message)
<<<<<<< HEAD
def plot(self, filename: Optional[str] = "crewai_flow") -> None:
"""Plot the flow graph visualization.
@@ -1246,7 +1245,4 @@ class Flow(Generic[T], metaclass=FlowMeta):
flow_name=self.__class__.__name__,
),
)
self._telemetry.flow_plotting_span(
self.__class__.__name__, list(self._methods.keys())
)
plot_flow(self, filename)