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.11.0.dev20260321.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.11.0.dev20260321-py3-none-any.whl (61.6 kB view details)

Uploaded Python 3

File details

Details for the file crewai_files-1.11.0.dev20260321.tar.gz.

File metadata

File hashes

Hashes for crewai_files-1.11.0.dev20260321.tar.gz
Algorithm Hash digest
SHA256 57b77b3d1ade6278ac93cbab294d639d0dd215f1e4c2d9003ebe10925135a6d9
MD5 8db47d991a7b08529da8027d5e079a9d
BLAKE2b-256 4b600a3d75b283a5fc1fe7aea9c3ce2ac9c5a0208bb95ac7a357b7a94977f209

See more details on using hashes here.

File details

Details for the file crewai_files-1.11.0.dev20260321-py3-none-any.whl.

File metadata

File hashes

Hashes for crewai_files-1.11.0.dev20260321-py3-none-any.whl
Algorithm Hash digest
SHA256 f8ce26a268e94d50ee1b1ac7fcb305cd90aa5cfee1fd9c5782ffce1b512b988a
MD5 56bb09335b4f901738114fa2e04bb362
BLAKE2b-256 7be02a24163998e6fe9c7f2c85dd042900c236a8f21f0efe0f92ac7b29d8a298

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