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.2rc2.dev20260314.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.2rc2.dev20260314-py3-none-any.whl (61.6 kB view details)

Uploaded Python 3

File details

Details for the file crewai_files-1.10.2rc2.dev20260314.tar.gz.

File metadata

File hashes

Hashes for crewai_files-1.10.2rc2.dev20260314.tar.gz
Algorithm Hash digest
SHA256 444a9bb20aa1618fb53e76782de63aae7e009f861cbe67c5e50c1623bfddd952
MD5 de6d8faf05df8c21ee739d1b93114dd9
BLAKE2b-256 f53f1010b491fe79417279710ee57425ea310a3aab519a395c57046451f41143

See more details on using hashes here.

File details

Details for the file crewai_files-1.10.2rc2.dev20260314-py3-none-any.whl.

File metadata

File hashes

Hashes for crewai_files-1.10.2rc2.dev20260314-py3-none-any.whl
Algorithm Hash digest
SHA256 da9e8dc4c7c436deda72014fb3d574fe804f163d8e46659098cc21750e1997cd
MD5 5473528919f25f0b11ed4f015bd1013c
BLAKE2b-256 e7d98e4bd08a6a0b1f186e42974181163f71a63c25b04246242fff4f26539275

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