How weeehung/nearaihack25 works
Project Type and Purpose
• Project type: A Python-based, modular AI framework for automating company due diligence.
• Purpose: Orchestrate specialized “agents” (small AI services) via a workflow engine (PocketFlow), process heterogeneous inputs, and generate a unified due-diligence report.
File Structure
• Root:
– agent.py: entry point (CLI/controller).
– requirements.txt, metadata.json, tests/: self-contained Python package.
• agents/ directory:
– One module per domain-expert agent (Screening, Market_analysis, Competitors, Team_eval, Tech_dd, Due_dillegence_report, Final_decision).
– base_agent.py and format.py: shared abstractions & data formats.
• No persistent database—data flows in memory or files.
• External dependencies: OpenAI (or other LLM providers), JSON/text/URL/PDF parsers.
README for Additional Insights
• PocketFlow integration: each agent is a “node” in a Flow graph.
• Data Sharing: agents exchange structured insights.
• Aggregation: final report agent collates all partial analyses, then final decision agent produces recommendations.
Main Components and Their Relationships
a. User Interface / Orchestration Layer
– agent.py (CLI): accepts company name and inputs → invokes Flow.
– PocketFlow Engine: coordinates execution order, parallelism, and data routing between agents.
b. Specialized Agents (Processing Nodes)
– ScreeningAgent
– MarketAnalysisAgent
– CompetitorsAgent
– TeamEvaluationAgent
– TechnicalDueDiligenceAgent
– DueDiligenceReportAgent (aggregator)
– FinalDecisionAgent
c. External Services and Data Sources
– LLM Provider (OpenAI API) for natural‐language analysis.
– Websites, documents (PDF/HTML), databases via HTTP/JSON inputs.
d. Outputs
– Final report (Markdown, JSON, PDF).
– Optional integration points (downstream analytics, dashboards).
Architectural Patterns and Design Principles
• Workflow/Orchestration Pattern: PocketFlow defines directed acyclic graph (DAG) of agent nodes.
• Modular, Pluggable Agents: each agent encapsulates one domain of expertise.
• Data-Flow Architecture: explicit data tokens pass between nodes.
• Separation of Concerns: CLI, orchestration, processing, and reporting are distinct layers.
• Extensibility: add new agents by implementing BaseAgent and plugging into the Flow.