Spaces:
Sleeping
Sleeping
| graph TD | |
| Start([User Question]) --> RouteQuestion[๐ Route Question] | |
| RouteQuestion --> ExecuteTools[๐ง Execute Tools] | |
| ExecuteTools --> CheckAttachment{Has Attachment?} | |
| CheckAttachment -->|Yes| AttachmentType{Attachment Type?} | |
| CheckAttachment -->|No| CheckLabel{Label Type?} | |
| AttachmentType -->|Python Code| RunPy[๐ run_py] | |
| AttachmentType -->|Excel/CSV| AnalyzeExcel[๐ analyze_excel_file] | |
| AttachmentType -->|Audio| TranscribeAudio[๐ต transcribe_via_whisper] | |
| AttachmentType -->|Image| VisionTask[๐๏ธ vision_task] | |
| CheckLabel -->|math| Calculator[๐งฎ calculator] | |
| CheckLabel -->|youtube| YouTubeTranscript[๐น youtube_transcript] | |
| CheckLabel -->|search| WebSearch[๐ web_multi_search] | |
| CheckLabel -->|general| NoTool[๐ญ No specific tool] | |
| RunPy --> SynthesizeResponse[๐ง Synthesize Response] | |
| AnalyzeExcel --> SynthesizeResponse | |
| TranscribeAudio --> SynthesizeResponse | |
| VisionTask --> SynthesizeResponse | |
| Calculator --> SynthesizeResponse | |
| YouTubeTranscript --> SynthesizeResponse | |
| WebSearch --> SynthesizeResponse | |
| NoTool --> SynthesizeResponse | |
| SynthesizeResponse --> NeedsSynthesis{Needs Additional<br/>Synthesis?} | |
| NeedsSynthesis -->|No: code excel<br/>image math| DirectAnswer[โ Use tool output directly<br/>Already complete] | |
| NeedsSynthesis -->|Yes: youtube audio<br/>search general| UseSynthesisLLM[๐ค Additional LLM synthesis<br/>Combine with context] | |
| DirectAnswer --> FormatOutput[โจ Format Output] | |
| UseSynthesisLLM --> FormatOutput | |
| FormatOutput --> End([Final Answer]) | |