Component | Purpose |
---|---|
Gemini Files API | Video upload and validation |
Gemini Cache API | Context extraction and preprocessing |
LLM Engine | Analysis using GPT-4 or Gemini models |
Prompt Templates | Structured analysis instructions |
Token Tracker | Usage monitoring and cost calculation |
Function | Purpose |
---|---|
getAIProAgentChatResponse() | Standard LLM agent processing |
getSalesCallResponse() | Sales-specific analysis pipeline |
Error Code | Description | Solution |
---|---|---|
VIDEO_TOO_LARGE | File exceeds size limit | Compress video or split into segments |
INVALID_URL | URL not accessible | Verify video is public and URL is correct |
QUOTA_EXCEEDED | API rate limit reached | Implement request throttling |
PROCESSING_FAILED | Analysis pipeline error | Retry with different prompt or video format |