mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-13 01:58:30 +00:00
- 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
18 lines
393 B
Python
18 lines
393 B
Python
"""Task output format definitions for CrewAI."""
|
|
|
|
from enum import Enum
|
|
|
|
|
|
class OutputFormat(str, Enum):
|
|
"""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"
|
|
RAW = "raw"
|