How antonio9966/agente_4_en_1 works
This is a web application for academic literature review: users search scholarly sources or add PDFs, extract study details, compare evidence, compose a research document, and export it. The frontend coordinates the workflow through an API layer; the Express server routes requests to search, PDF, analysis, and export services. The evidence shows several backend calls directly, but not every frontend callback or route implementation, so uncertain UI composition links are dashed. External academic and LLM integrations are represented at the service boundary.
Main entry points: App.tsx Workflow coordinator · index.ts Express routes · agent2Extractor.ts Study extraction · pdfProcessor.ts PDF processing
Components 22
Review workspace
- Workflow coordinator
src/App.tsx - Search panel
src/components/Stage1SearchPanel.tsx - Extraction panel
src/components/Stage2ExtractionPanel.tsx - Comparison panel
src/components/Stage3ComparisonPanel.tsx - Document panel
src/components/Stage4DocumentPanel.tsx - LLM settings
src/components/SettingsModal.tsx - Stage navigator
src/components/StepperHeader.tsx
HTTP interface
- API client
src/api.ts - Express routes
server/index.ts
Research pipeline
- Academic search
server/services/academicApis.ts - PDF processing
server/services/pdfProcessor.ts - Private PDF store
server/services/pdfProcessor.ts - Study extraction
server/services/agent2Extractor.ts
Analysis and output
- Evidence comparison
server/services/agent3Comparator.ts - Document composition
server/services/agent4Composer.ts - APA formatting
server/services/apa7.ts - LLM client
server/services/llmClient.ts - Document export
server/services/exporter.ts - Shared data types
server/types.ts
Other components
- Researcher
- Scholarly APIs
- LLM providers
Connections 24
- Researcher → Workflow coordinator: uses
- Workflow coordinator → Search panel: presents
src/App.tsx - Workflow coordinator → Extraction panel: presents
src/App.tsx - Workflow coordinator → Comparison panel: presents
src/App.tsx - Workflow coordinator → Document panel: presents
src/App.tsx - Workflow coordinator → LLM settings: presents
src/App.tsx - Workflow coordinator → Stage navigator: presents
src/App.tsx - Workflow coordinator → API client: requests
src/App.tsx - API client → Express routes: HTTP requests
- Express routes → Academic search: dispatches search
server/index.ts - Academic search → Scholarly APIs: queries
server/services/academicApis.ts - Express routes → PDF processing: parses uploads
server/index.ts - PDF processing → Private PDF store: stores PDFs
server/services/pdfProcessor.ts - Express routes → PDF processing: removes uploads
server/index.ts - Express routes → Study extraction: dispatches extraction
server/index.ts - Study extraction → PDF processing: loads PDF content
server/services/agent2Extractor.ts - Study extraction → LLM client: requests analysis
server/services/agent2Extractor.ts - Study extraction → APA formatting: uses citations
server/services/agent2Extractor.ts - Express routes → Evidence comparison: dispatches comparison
server/index.ts - Evidence comparison → LLM client: requests analysis
server/services/agent3Comparator.ts - Express routes → Document composition: dispatches composition
server/index.ts - Document composition → LLM client: requests composition
server/services/agent4Composer.ts - Express routes → Document export: exports document
server/index.ts - LLM client → LLM providers: sends prompts
server/services/llmClient.ts