Fix #2547: Add TaskOutput and CrewOutput to public exports

Co-Authored-By: Joe Moura <joao@crewai.com>
This commit is contained in:
Devin AI
2025-04-09 09:35:05 +00:00
parent 409892d65f
commit 475b704f95
2 changed files with 22 additions and 3 deletions

View File

@@ -2,11 +2,13 @@ import warnings
from crewai.agent import Agent
from crewai.crew import Crew
from crewai.crews.crew_output import CrewOutput
from crewai.flow.flow import Flow
from crewai.knowledge.knowledge import Knowledge
from crewai.llm import LLM
from crewai.process import Process
from crewai.task import Task
from crewai.tasks.task_output import TaskOutput
warnings.filterwarnings(
"ignore",
@@ -18,9 +20,11 @@ __version__ = "0.86.0"
__all__ = [
"Agent",
"Crew",
"Process",
"Task",
"LLM",
"CrewOutput",
"Flow",
"Knowledge",
"LLM",
"Process",
"Task",
"TaskOutput",
]

15
tests/imports_test.py Normal file
View File

@@ -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