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.12.0a3.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.12.0a3-py3-none-any.whl (61.5 kB view details)

Uploaded Python 3

File details

Details for the file crewai_files-1.12.0a3.tar.gz.

File metadata

  • Download URL: crewai_files-1.12.0a3.tar.gz
  • Upload date:
  • Size: 678.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.4

File hashes

Hashes for crewai_files-1.12.0a3.tar.gz
Algorithm Hash digest
SHA256 1304261bd7edda45800acd94d451541bd683bb9f9ee5ee8132f578439d59cfd6
MD5 9e2ecdbf1efd3304259ae4d3e92f16c8
BLAKE2b-256 958758dc1ffeec38299039688416f22bbf0d7a4f6f3518756f3159e3c012e44b

See more details on using hashes here.

File details

Details for the file crewai_files-1.12.0a3-py3-none-any.whl.

File metadata

File hashes

Hashes for crewai_files-1.12.0a3-py3-none-any.whl
Algorithm Hash digest
SHA256 f6809eb58fa4c0ec1f3af9fc71b8058c7b839ec66dee78cf3dedca5d7261f723
MD5 0e0accc0a9892abe868373eaebb99eaf
BLAKE2b-256 8ff7d48735769c6a92e41c35e72362bd7ce72bcfcbcf224f83979748460fb553

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