mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-07-24 08:15:10 +00:00
- add input_files parameter to Crew.kickoff(), Flow.kickoff(), Task, and Agent.kickoff() - add provider-specific file uploaders for OpenAI, Anthropic, Gemini, and Bedrock - add file type detection, constraint validation, and automatic format conversion - add URL file source support for multimodal content - add streaming uploads for large files - add prompt caching support for Anthropic - add OpenAI Responses API support
20 lines
517 B
Python
20 lines
517 B
Python
"""Enums for file processing configuration."""
|
|
|
|
from enum import Enum
|
|
|
|
|
|
class FileHandling(Enum):
|
|
"""Defines how files exceeding provider limits should be handled.
|
|
|
|
Attributes:
|
|
STRICT: Fail with an error if file exceeds limits.
|
|
AUTO: Automatically resize, compress, or optimize to fit limits.
|
|
WARN: Log a warning but attempt to process anyway.
|
|
CHUNK: Split large files into smaller pieces.
|
|
"""
|
|
|
|
STRICT = "strict"
|
|
AUTO = "auto"
|
|
WARN = "warn"
|
|
CHUNK = "chunk"
|