Process File Enrichment
Process file enrichment request from the agent.
This endpoint is called by the agent’s process_file_enrichment tool to trigger background processing of LinkedIn URLs with comprehensive validation and error handling.
Features:
- Input validation for LinkedIn URLs and session parameters
- Credit checking and quota verification
- Optimized Arq job enqueueing with proper resource management
- Comprehensive error handling and status reporting
- Job priority and duration estimation
Args: request: File processing request details with validation current_user: Authenticated user with credit information redis_cache: Redis cache instance for session management supabase_service: Supabase service instance for job tracking
Returns: ProcessFileResponse with comprehensive job details
Raises: HTTPException: For validation errors, insufficient credits, or processing failures
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Response
Successful Response
Response model for file enrichment processing.
Background job ID
Processing session ID
Processing status
^(queued|processing|completed|failed)$Status message
Number of URLs to process
x >= 0Estimated processing duration in minutes
Credits required for this operation
Job priority level