Framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewAI empowers agents to work together seamlessly, tackling complex tasks.
Fix #2547: Add TaskOutput and CrewOutput to public exports
Devin AI475b704f9513
diff --git a/src/crewai/__init__.py b/src/crewai/__init__.pyindex 0833afd58..c3835f82f 100644--- a/src/crewai/__init__.py+++ b/src/crewai/__init__.py@@ -2,11 +2,13 @@ import warningsfrom crewai.agent import Agentfrom crewai.crew import Crew+from crewai.crews.crew_output import CrewOutputfrom crewai.flow.flow import Flowfrom crewai.knowledge.knowledge import Knowledgefrom crewai.llm import LLMfrom crewai.process import Processfrom crewai.task import Task+from crewai.tasks.task_output import TaskOutputwarnings.filterwarnings("ignore",@@ -18,9 +20,11 @@ __version__ = "0.86.0"__all__ = ["Agent","Crew",- "Process",- "Task",- "LLM",+ "CrewOutput","Flow","Knowledge",+ "LLM",+ "Process",+ "Task",+ "TaskOutput",]diff --git a/tests/imports_test.py b/tests/imports_test.pynew file mode 100644index 000000000..0715e3c50--- /dev/null+++ b/tests/imports_test.py@@ -0,0 +1,15 @@+"""Test that all public API classes are properly importable."""+++def test_task_output_import():+ """Test that TaskOutput can be imported from crewai."""+ from crewai import TaskOutput++ assert TaskOutput is not None+++def test_crew_output_import():+ """Test that CrewOutput can be imported from crewai."""+ from crewai import CrewOutput++ assert CrewOutput is not None