Send Enrichment Message
Send a message in the enrichment chat session with enhanced processing.
Enhanced version with comprehensive validation, monitoring, and optimized resource management for enrichment chat interactions.
Features:
- Input validation and sanitization
- Rate limiting and credit estimation
- Performance monitoring and logging
- Comprehensive error handling
- Processing session integration
Args: request: Validated chat request with session ID and user message current_user: Authenticated user information enrichment_chat_service: Service for managing chat sessions
Returns: EnrichmentChatResponse: Enhanced response with timing and status information
Raises: HTTPException: For validation errors, rate limits, or processing failures
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Response
Successful Response
Enhanced response model for enrichment chat interactions.
Session identifier
Assistant's response message
Action to trigger in frontend (e.g., 'requestUpload', 'startProcessing')
Suggested fields to enrich based on user query
Status of ongoing enrichment processing
Estimated credits required for suggested operations
Remaining rate limit for user
Response time in milliseconds