mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-28 01:28:14 +00:00
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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user