diff --git a/src/crewai/telemtry.py b/src/crewai/telemtry.py new file mode 100644 index 000000000..a3cc37753 --- /dev/null +++ b/src/crewai/telemtry.py @@ -0,0 +1,10 @@ +""" +Backward compatibility module for crewai.telemtry to handle typo in import statements. + +This module allows older code that imports from `crewai.telemtry` (misspelled) +to continue working by re-exporting the Telemetry class from the correctly +spelled `crewai.telemetry` module. +""" +from crewai.telemetry import Telemetry + +__all__ = ["Telemetry"] diff --git a/tests/backward_compatibility_test.py b/tests/backward_compatibility_test.py new file mode 100644 index 000000000..acb88a8ed --- /dev/null +++ b/tests/backward_compatibility_test.py @@ -0,0 +1,10 @@ +import unittest + + +class BackwardCompatibilityTest(unittest.TestCase): + def test_telemtry_typo_compatibility(self): + """Test that the backward compatibility for the telemtry typo works.""" + from crewai.telemtry import Telemetry as MisspelledTelemetry + from crewai.telemetry import Telemetry + + self.assertIs(MisspelledTelemetry, Telemetry)