Skip to main content

File handling utilities for CrewAI multimodal inputs

Project description

crewai-files

File handling utilities for CrewAI multimodal inputs.

Supported File Types

  • ImageFile - PNG, JPEG, GIF, WebP
  • PDFFile - PDF documents
  • TextFile - Plain text files
  • AudioFile - MP3, WAV, FLAC, OGG, M4A
  • VideoFile - MP4, WebM, MOV, AVI

Usage

from crewai_files import File, ImageFile, PDFFile

# Auto-detect file type
file = File(source="document.pdf")  # Resolves to PDFFile

# Or use specific types
image = ImageFile(source="chart.png")
pdf = PDFFile(source="report.pdf")

Passing Files to Crews

crew.kickoff(
    input_files={"chart": ImageFile(source="chart.png")}
)

Passing Files to Tasks

task = Task(
    description="Analyze the chart",
    expected_output="Analysis",
    agent=agent,
    input_files=[ImageFile(source="chart.png")],
)

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

crewai_files-1.10.2a1.dev20260312.tar.gz (678.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

crewai_files-1.10.2a1.dev20260312-py3-none-any.whl (61.6 kB view details)

Uploaded Python 3

File details

Details for the file crewai_files-1.10.2a1.dev20260312.tar.gz.

File metadata

File hashes

Hashes for crewai_files-1.10.2a1.dev20260312.tar.gz
Algorithm Hash digest
SHA256 4168234da71f27647d1f442f1b086f0c954ad75fbe242246d143ad44fb8df00a
MD5 5e649f760b3576ef60e3a55f1e5d39b2
BLAKE2b-256 68d5bfd8a3c444c1788ece18215572ec68e1da96c569e6f749c65ccb7a3e8598

See more details on using hashes here.

File details

Details for the file crewai_files-1.10.2a1.dev20260312-py3-none-any.whl.

File metadata

File hashes

Hashes for crewai_files-1.10.2a1.dev20260312-py3-none-any.whl
Algorithm Hash digest
SHA256 6d37d2e94e23fcf13afa8fe4ab93e4e862b2fa3fad0c9d7083b31e70ff7b2a1e
MD5 3c78c6769f4779f9e8c2dd526acda2bd
BLAKE2b-256 0e6cd9445bee6dd70c4cc883cec5f4aee5c48593caf86532ff914e1bda4f6c8f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page