TUMai-goes-Paris-ESSEC-Hack-Backend-Project-LaGent

TUMai-LaGent

A multi-agent system built with LangGraph and Mistral AI for intelligent property management and maintenance assistance.

Overview

TUMai-LaGent is an advanced property management assistant that leverages multiple AI agents to handle various aspects of property management, including maintenance requests, asset management, taxation, and general inquiries. The system uses Mistral AI for natural language processing and integrates with various tools and services to provide comprehensive assistance.

Architecture

The system is built using a multi-agent architecture with the following components:

Backend Agents

  1. Base Agent
    • Foundation for all specialized agents
    • Handles tool integration and basic message processing
  2. Categorizer Agent
    • Analyzes incoming messages to determine their category and urgency
    • Integrates with Supabase for result storage
    • Categories include: maintenance, tax, noise-complaint, and miscellaneous
  3. Router Agent
    • Routes messages to appropriate specialized agents based on content
    • Supports routing to: maintenance, asset_expert, taxation, and email_drafter
  4. Maintenance Agent
    • Handles maintenance-related queries
    • Features:
      • Location extraction from messages
      • Maintenance worker search using Tavily API
      • Automated email notifications
      • Integration with maintenance worker contact system
  5. Asset Expert Agent
    • Specializes in property asset management
    • Provides detailed information about property assets
    • Uses various tools for enhanced responses
  6. Taxation Report Generator
    • Handles tax-related queries and report generation
    • Provides tax-related information and guidance
  7. Email Drafter
    • Specializes in drafting professional emails
    • Helps with communication-related tasks

Tools Integration

The system integrates with several external tools and services:

Frontend Implementation

The frontend is built using modern web technologies:

The frontend provides a clean and intuitive interface for users to interact with the AI agents, featuring:

Setup and Installation

Backend

  1. Install dependencies:
    pip install -r requirements.txt
    
  2. Set up environment variables:
    cp .env.example .env
    # Edit .env with your API keys and configuration
    
  3. Run the backend server:
    python run_api.py
    

Frontend

  1. Install dependencies:
    cd frontend
    npm install
    
  2. Set up environment variables:
    cp .env.example .env
    # Edit .env with your configuration
    
  3. Start the development server:
    npm run dev
    

Environment Variables

Required environment variables:

License

This project is licensed under the MIT License - see the LICENSE file for details.