chore: enhance typing and documentation in tasks module (#3467)

- Disable E501 line length linting rule
- Add Google-style docstrings to tasks leaf file
- Modernize typing and docs in task_output.py
- Improve typing and documentation in conditional_task.py
This commit is contained in:
Greyson LaLonde
2025-09-08 11:42:23 -04:00
committed by GitHub
parent 37c5e88d02
commit f936e0f69b
4 changed files with 87 additions and 24 deletions

View File

@@ -1,8 +1,16 @@
"""Task output format definitions for CrewAI."""
from enum import Enum
class OutputFormat(str, Enum):
"""Enum that represents the output format of a task."""
"""Enum that represents the output format of a task.
Attributes:
JSON: Output as JSON dictionary format
PYDANTIC: Output as Pydantic model instance
RAW: Output as raw unprocessed string
"""
JSON = "json"
PYDANTIC = "pydantic"