Skip to content

Framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewAI empowers agents to work together seamlessly, tackling complex tasks.

1.7 KB
Raw Blame
"""File processing module for multimodal content handling.

This module provides validation, transformation, and processing utilities
for files used in multimodal LLM interactions.
"""

from crewai_files.processing.constraints import (
    ANTHROPIC_CONSTRAINTS,
    BEDROCK_CONSTRAINTS,
    GEMINI_CONSTRAINTS,
    OPENAI_COMPLETIONS_CONSTRAINTS,
    OPENAI_CONSTRAINTS,
    OPENAI_RESPONSES_CONSTRAINTS,
    AudioConstraints,
    ImageConstraints,
    PDFConstraints,
    ProviderConstraints,
    VideoConstraints,
    get_constraints_for_provider,
    get_supported_content_types,
)
from crewai_files.processing.enums import FileHandling
from crewai_files.processing.exceptions import (
    FileProcessingError,
    FileTooLargeError,
    FileValidationError,
    ProcessingDependencyError,
    UnsupportedFileTypeError,
)
from crewai_files.processing.processor import FileProcessor
from crewai_files.processing.validators import (
    validate_audio,
    validate_file,
    validate_image,
    validate_pdf,
    validate_text,
    validate_video,
)


__all__ = [
    "ANTHROPIC_CONSTRAINTS",
    "BEDROCK_CONSTRAINTS",
    "GEMINI_CONSTRAINTS",
    "OPENAI_COMPLETIONS_CONSTRAINTS",
    "OPENAI_CONSTRAINTS",
    "OPENAI_RESPONSES_CONSTRAINTS",
    "AudioConstraints",
    "FileHandling",
    "FileProcessingError",
    "FileProcessor",
    "FileTooLargeError",
    "FileValidationError",
    "ImageConstraints",
    "PDFConstraints",
    "ProcessingDependencyError",
    "ProviderConstraints",
    "UnsupportedFileTypeError",
    "VideoConstraints",
    "get_constraints_for_provider",
    "get_supported_content_types",
    "validate_audio",
    "validate_file",
    "validate_image",
    "validate_pdf",
    "validate_text",
    "validate_video",
]