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.0a4.dev20260401.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.0a4.dev20260401-py3-none-any.whl (61.6 kB view details)

Uploaded Python 3

File details

Details for the file crewai_files-1.13.0a4.dev20260401.tar.gz.

File metadata

File hashes

Hashes for crewai_files-1.13.0a4.dev20260401.tar.gz
Algorithm Hash digest
SHA256 1129bb590edb963ef572e5b44e93d242ee70483d97ec85225ca665734c911912
MD5 1edc5f4acd06eb691fc497e7a803b926
BLAKE2b-256 1b1099639318d02d1ff8ac4770778b7a8ce50873d78ae7326fd9c1284f458206

See more details on using hashes here.

File details

Details for the file crewai_files-1.13.0a4.dev20260401-py3-none-any.whl.

File metadata

File hashes

Hashes for crewai_files-1.13.0a4.dev20260401-py3-none-any.whl
Algorithm Hash digest
SHA256 b8c4ac9d5dc4e0b4875d1f3c23648f905b8b6abb22dcaf525c573064deb79e39
MD5 e08c66a572c4f18fb12fc859a8410198
BLAKE2b-256 88b53a1bd428d15943aeb6b2f3d6cda0e78f987c850df423d9eb818a5c1ddf50

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