How yukeshwaran186-max/market-research-agent works
This is a CrewAI market-research application: a query enters through the CLI, then live runs coordinate market research and CSV financial analysis with report synthesis; mock runs provide illustrative content instead. The resulting content is compiled into Markdown and A4 PDF reports, with execution benchmarks saved separately. The README documents the hierarchical Gemini manager, Tavily research, and report capabilities. Some implementation details, including web search and benchmark tracking, were not excerpted, so their internal behavior is not inferred.
Main entry points: main.py CLI Workflow · crew.py Crew Orchestrator · settings.py Runtime Configuration · tasks.py Research Tasks
Components 17
Workflow
- CLI Workflow
main.py - Crew Orchestrator
crew/crew.py - Research Tasks
crew/tasks.py
Research and Analysis
- Specialist Agents
crew/agents.py - Market Researcher
crew/agents.py - Financial Analyst
crew/agents.py - Report Writer
crew/agents.py - Web Search Tool
tools/web_search.py - Financial Metrics
tools/financial_parser.py - Metrics CSV
data/sample_financial_metrics.csv
Reporting
- Markdown Compiler
report/markdown_generator.py - PDF Compiler
report/pdf_generator.py - Execution Benchmarks
utils/benchmark.py
Runtime Services
- Runtime Configuration
config/settings.py - Google Gemini
- Tavily Search
Other components
- Query User
Connections 16
- Query User → CLI Workflow: submits query
README.md - CLI Workflow → Crew Orchestrator: creates and runs
main.py - Crew Orchestrator → Specialist Agents: creates agents
crew/crew.py - Crew Orchestrator → Research Tasks: creates tasks
crew/crew.py - Research Tasks → Report Writer: sets context
crew/tasks.py - Market Researcher → Web Search Tool: uses tool
crew/agents.py - Financial Analyst → Financial Metrics: uses tool
crew/agents.py - Financial Metrics → Metrics CSV: reads metrics
tools/financial_parser.py - CLI Workflow → Markdown Compiler: compiles content
main.py - CLI Workflow → PDF Compiler: compiles content
main.py - CLI Workflow → Execution Benchmarks: records execution
main.py - CLI Workflow → Runtime Configuration: validates environment
main.py - Specialist Agents → Runtime Configuration: gets LLM
crew/agents.py - Crew Orchestrator → Runtime Configuration: gets manager LLM
crew/crew.py - Runtime Configuration → Google Gemini: configures model
README.md - Web Search Tool → Tavily Search: searches web
README.md