ai-hedge-fundAI Investor AgentsAI Agents Overview

AI Agents Overview: Your Team of Specialized AI Experts

This section introduces you to the specialized AI agents within the AI Hedge Fund platform. Think of them as your personal team of expert advisors, each playing a unique role in analyzing market information and helping make smart investment decisions. Understanding what each agent does will clearly show you how the entire AI system works together.

Your AI Expert Team

Our AI system is not a single, all-knowing entity. Instead, it’s a powerful team made up of 12 different Investor-Inspired Agents (each thinking like a famous investor) and 6 different Functional Agents (each performing a specific, objective analysis). This diverse team works together to cover all aspects of investment decision-making.

How Your AI Experts Work: A Simple Step-by-Step Process

Every AI agent in our system follows a clear, simple process to contribute to the overall investment decision:

  1. They Get Information: Each agent looks at a shared “whiteboard” (called AgentState) to get the latest market data, company details, or signals from other agents. This ensures everyone is working with the most current information.

  2. They Do Their Expert Analysis: Each agent then uses its special skills and knowledge to process this information. This might involve complex calculations, reading and interpreting financial news, or thinking like a famous investor.

  3. They Provide Insights: After their analysis, agents write their findings back onto the shared “whiteboard” (AgentState). These insights are usually a straightforward signal (like “bullish” - suggesting to buy, or “bearish” - suggesting to sell) and a simple reason why they reached that conclusion.

This continuous flow of information and insights between agents, all using the AgentState as their central hub, forms the backbone of our AI team’s collaborative decision-making.

Two Categories of AI Experts

1. Investor-Inspired Agents: Thinking Like Investment Legends

These AI agents are specifically designed to analyze and evaluate companies just like famous, successful investors would. They embody the unique philosophies and strategies of these financial legends. This allows you to gain deep insights from various, well-defined investment perspectives.

Each of these agents systematically gathers specific financial data, performs quantitative analyses based on their namesake’s criteria, and then uses an LLM (Large Language Model) as its “brain.” The LLM is guided by strict “thinking instructions” (prompts) to interpret these facts and deliver an investment opinion in that investor’s distinct style.

2. Functional Agents: Providing Objective Analysis and Rules

These agents perform specific, factual analysis tasks that are vital for building a complete and disciplined investment strategy. They give you solid data and enforce critical rules to keep your strategy on track.

Feature/ResponsibilityCode FilePurpose and Implementation Details
Agent State Definitionsrc/graph/state.pyDefines the AgentState TypedDict, which acts as the shared memory for all agents, containing messages, data, and metadata fields for information exchange.
Warren Buffett Agent Logicsrc/agents/warren_buffett.pyImplements the specific logic for the Warren Buffett-inspired agent, including data fetching, quantitative analysis functions (e.g., analyze_fundamentals, analyze_moat), intrinsic value calculation, and the LLM prompting structure.
Benjamin Graham Agent Logicsrc/agents/ben_graham.pyImplements the logic for the Benjamin Graham-inspired agent, focusing on earnings stability, financial strength, and deep value valuation methods like Net-Net and Graham Number.
Bill Ackman Agent Logicsrc/agents/bill_ackman.pyImplements the logic for the Bill Ackman-inspired agent, focusing on business quality, financial discipline, activism potential, and valuation with a margin of safety.
Cathie Wood Agent Logicsrc/agents/cathie_wood.pyImplements the logic for the Cathie Wood-inspired agent, focusing on disruptive potential, innovation-driven growth, and high-growth valuation scenarios.
Charlie Munger Agent Logicsrc/agents/charlie_munger.pyImplements the logic for the Charlie Munger-inspired agent, focusing on moat strength, management quality, business predictability, and Munger-style valuation.
Michael Burry Agent Logicsrc/agents/michael_burry.pyImplements the logic for the Michael Burry-inspired agent, focusing on deep value, contrarian sentiment, balance sheet strength, and insider activity.
Mohnish Pabrai Agent Logicsrc/agents/mohnish_pabrai.pyImplements the logic for the Mohnish Pabrai-inspired agent, focusing on downside protection, simple businesses, FCF yield, and “heads I win, tails I don’t lose much” valuation.
Peter Lynch Agent Logicsrc/agents/peter_lynch.pyImplements the logic for the Peter Lynch-inspired agent, focusing on “growth at a reasonable price” (GARP), consistent growth, manageable debt, and the PEG ratio.
Rakesh Jhunjhunwala Agent Logicsrc/agents/rakesh_jhunjhunwala.pyImplements the logic for the Rakesh Jhunjhunwala-inspired agent, focusing on profitability, growth, balance sheet, cash flow, management actions, and intrinsic value with a significant margin of safety.
Stanley Druckenmiller Agent Logicsrc/agents/stanley_druckenmiller.pyImplements the logic for the Stanley Druckenmiller-inspired agent, focusing on asymmetric risk-reward, growth, momentum, sentiment, insider activity, and valuation.
Aswath Damodaran Agent Logicsrc/agents/aswath_damodaran.pyImplements the logic for the Aswath Damodaran-inspired agent, focusing on rigorous intrinsic valuation framework, cash flow-based DCF models, and comprehensive risk assessment.
Fundamentals Analyst Logicsrc/agents/fundamentals.pyImplements a general fundamental analysis agent, assessing profitability, growth, financial health, and valuation ratios (P/E, P/B, P/S).
Technicals Analyst Logicsrc/agents/technicals.pyImplements a comprehensive technical analysis agent, combining trend following, mean reversion, momentum, volatility, and statistical arbitrage signals.
Valuation Analyst Logicsrc/agents/valuation.pyImplements a comprehensive valuation agent, combining owner earnings, enhanced DCF with scenarios, EV/EBITDA, and Residual Income models for a holistic intrinsic value assessment.
Sentiment Analyst Logicsrc/agents/sentiment.pyImplements the logic for the Sentiment Analyst agent, including fetching insider trades and company news, analyzing sentiment from both sources, and combining signals with weighted proportions.
Risk Manager Logicsrc/agents/risk_manager.pyImplements the deterministic logic for the Risk Manager agent, including fetching historical prices, calculating volatility and correlation metrics, and computing volatility- and correlation-adjusted position limits.
Portfolio Manager Logicsrc/agents/portfolio_manager.pyImplements the logic for the Portfolio Manager agent, responsible for synthesizing all agent signals, strictly adhering to risk constraints, deterministically calculating allowed actions, and generating final simulated trading decisions using an LLM.
Financial Data Toolssrc/tools/api.pyContains functions (e.g., get_financial_metrics, search_line_items, get_market_cap, get_insider_trades, get_company_news, get_prices) which are used by various agents to fetch real-time and historical financial data from external APIs.
LLM Interaction Utilitysrc/utils/llm.pyProvides the call_llm function, which handles sending prompts to the Large Language Model and parsing its structured outputs based on Pydantic models (e.g., WarrenBuffettSignal, PortfolioDecision).
LangGraph Orchestrationapp/backend/services/graph.pyContains the create_graph function that dynamically builds the LangGraph state machine from user-defined nodes and edges, including the logic for mandatory insertion of the risk_management_agent.