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

Uploaded Python 3

File details

Details for the file crewai_files-1.10.1.dev20260311.tar.gz.

File metadata

File hashes

Hashes for crewai_files-1.10.1.dev20260311.tar.gz
Algorithm Hash digest
SHA256 c8d6c100dae54adb82d2b1d60fded4429ccf78ee99aba4b92dc3511e86bf5c7f
MD5 d8aaa9699972ee452619559f74c619e3
BLAKE2b-256 723423d7f842e1dbfd3c13d34d7b3ebddb6e5180b5e9e08f1307c62c8ee34460

See more details on using hashes here.

File details

Details for the file crewai_files-1.10.1.dev20260311-py3-none-any.whl.

File metadata

File hashes

Hashes for crewai_files-1.10.1.dev20260311-py3-none-any.whl
Algorithm Hash digest
SHA256 65c22b2e00585093707ec1b91acd737416a2a062423e5fe0035a4def829104ee
MD5 84de336bd5db1b23f6a8cbb5025c1c0e
BLAKE2b-256 f4f2ca62e905e4bae285ab9995b85952afd40be17752c40967814506c474e1cc

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