Function Signature
Supported File Types
Spreadsheets
- CSV (
.csv) - Excel (
.xlsx,.xls)
Documents
- PDF (
.pdf) - Markdown (
.md) - Text (
.txt)
Data
- JSON (
.json)
Images
- PNG, JPG (OCR with Tesseract)
File Processing Pipeline
Parse file content
Extract text from each file using format-specific parsers:Returns
{ text, metadata } with extracted content.Upload to storage
Upload raw file to S3-compatible storage:Files stored at
uploads/{conversationStateId}/{filename}.File Size Limits
Usage Example
AI-Generated Descriptions
The agent generates concise, informative descriptions: Example CSV (gene_expression.csv):Parser Implementations
CSV Parser
PDF Parser
Excel Parser
Image Parser (OCR)
Error Handling
The agent returns errors without crashing:Storage Configuration
Files are uploaded to S3-compatible storage:Integration with Analysis Agent
Uploaded datasets flow to the Analysis Agent:Related
File Upload API
S3 presigned URL flow
Analysis Agent
Process uploaded datasets
Storage Config
Configure S3 storage