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.13.0rc1.dev20260331.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.13.0rc1.dev20260331-py3-none-any.whl (61.6 kB view details)

Uploaded Python 3

File details

Details for the file crewai_files-1.13.0rc1.dev20260331.tar.gz.

File metadata

File hashes

Hashes for crewai_files-1.13.0rc1.dev20260331.tar.gz
Algorithm Hash digest
SHA256 6b204e1028c007eda130089b14b23d48a154482a6c0d9ff6f441f357cd508586
MD5 2b3f9ade1e3cbd7007a591676fb569a3
BLAKE2b-256 789ed3d07c907acc0946c372105d7bca027751e42d8da03c7b583db045f9d2c0

See more details on using hashes here.

File details

Details for the file crewai_files-1.13.0rc1.dev20260331-py3-none-any.whl.

File metadata

File hashes

Hashes for crewai_files-1.13.0rc1.dev20260331-py3-none-any.whl
Algorithm Hash digest
SHA256 3b66ae6a2472d257338ae51762d4efd344569ca9f5d4379a7a9838346779a5a2
MD5 8a4fd9650d68f25e92e4e23e0f719b03
BLAKE2b-256 2d72258e001c5e41d60c1c320e56f9ad708a9f7da7b2ead695751152bfd46732

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