# isl270/multi-agent-ai-realtor architecture

> Architecture diagram of the GitHub repository isl270/multi-agent-ai-realtor, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-20). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/isl270/multi-agent-ai-realtor
- Repository: https://github.com/isl270/multi-agent-ai-realtor

## Overview

This is a LangGraph real-estate assistant. A user submits a chat request; the supervisor routes property searches to an agent that parses filters and queries Supabase, then creates a property carousel, or routes viewing requests to calendar tools that check availability and book appointments. The supervisor also manages conversation memory. The React UI renders the carousel. Calendar tool excerpts were not provided, so their links to the calendar utility rely on the SOURCE INDEX; UI delivery details are documented in the README.

Main entry points: [`src/agents/supervisor/supervisor.py`](https://github.com/isl270/multi-agent-ai-realtor/blob/main/src/agents/supervisor/supervisor.py) (Supervisor), [`src/agents/property_finder/property_finder_agent.py`](https://github.com/isl270/multi-agent-ai-realtor/blob/main/src/agents/property_finder/property_finder_agent.py) (Property Finder), [`src/agents/property_finder/tools/parse_property_search_query/parse_property_search_query.py`](https://github.com/isl270/multi-agent-ai-realtor/blob/main/src/agents/property_finder/tools/parse_property_search_query/parse_property_search_query.py) (Query parser), [`src/agents/property_finder/tools/search_properties/search_properties.py`](https://github.com/isl270/multi-agent-ai-realtor/blob/main/src/agents/property_finder/tools/search_properties/search_properties.py) (Property search)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_orchestration["Conversation orchestration"]
  node_graph_entry["LangGraph entry<br/>[graph.py]"]
  node_supervisor["Supervisor<br/>[supervisor.py]"]
  node_app_state["Shared app state<br/>[app_state.py]"]
  node_user_profile["User profile<br/>[user_profile.py]"]
end

subgraph group_property["Property search"]
  node_property_agent["Property Finder"]
  node_query_parser["Query parser"]
  node_filters["Search filters"]
  node_property_search["Property search"]
  node_property_model["Property model<br/>[property.py]"]
end

subgraph group_calendar["Viewing scheduling"]
  node_calendar_agent["Calendar Manager"]
  node_availability["Find availability"]
  node_booking["Schedule viewing"]
end

subgraph group_presentation["Generative UI"]
  node_carousel_renderer["Carousel renderer"]
  node_frontend_ui["Agent chat UI<br/>[ui.tsx]"]
  node_carousel["Property carousel<br/>[carousel.tsx]"]
  node_ui_button["Carousel controls<br/>[button.tsx]"]
end

subgraph group_integrations["External integrations"]
  node_supabase_client["Supabase client<br/>[supabase.py]"]
  node_property_db[("Supabase properties")]
  node_calendar_client["Google Calendar client<br/>[google_calendar.py]"]
  node_google_calendar["Google Calendar"]
  node_llm_config["LLM configuration<br/>[llm_config.py]"]
  node_openai["OpenAI models"]
end

node_user(("Chat user"))

node_user -->|"sends request"| node_graph_entry
node_graph_entry -->|"creates graph"| node_supervisor
node_supervisor -->|"delegates search"| node_property_agent
node_supervisor -->|"delegates scheduling"| node_calendar_agent
node_supervisor -->|"uses state"| node_app_state
node_supervisor -->|"manages memory"| node_user_profile
node_property_agent -->|"invokes tool"| node_query_parser
node_property_agent -->|"invokes tool"| node_property_search
node_query_parser -->|"produces filters"| node_filters
node_query_parser -->|"selects model"| node_llm_config
node_property_search -->|"queries RPC"| node_supabase_client
node_supabase_client -.->|"accesses data"| node_property_db
node_property_search -->|"maps results"| node_property_model
node_property_agent -->|"updates results"| node_app_state
node_calendar_agent -->|"invokes tool"| node_availability
node_calendar_agent -->|"invokes tool"| node_booking
node_availability -->|"checks slots"| node_calendar_client
node_booking -->|"creates event"| node_calendar_client
node_calendar_client -.->|"uses API"| node_google_calendar
node_supervisor -->|"renders results"| node_carousel_renderer
node_carousel_renderer -->|"reads properties"| node_app_state
node_frontend_ui -->|"renders component"| node_carousel
node_carousel -->|"uses controls"| node_ui_button
node_frontend_ui -->|"displays results"| node_user
node_llm_config -.->|"selects model"| node_openai

click node_graph_entry "https://github.com/isl270/multi-agent-ai-realtor/blob/main/src/graph.py"
click node_supervisor "https://github.com/isl270/multi-agent-ai-realtor/blob/main/src/agents/supervisor/supervisor.py"
click node_app_state "https://github.com/isl270/multi-agent-ai-realtor/blob/main/src/agents/supervisor/app_state.py"
click node_user_profile "https://github.com/isl270/multi-agent-ai-realtor/blob/main/src/agents/supervisor/user_profile.py"
click node_property_agent "https://github.com/isl270/multi-agent-ai-realtor/blob/main/src/agents/property_finder/property_finder_agent.py"
click node_query_parser "https://github.com/isl270/multi-agent-ai-realtor/blob/main/src/agents/property_finder/tools/parse_property_search_query/parse_property_search_query.py"
click node_filters "https://github.com/isl270/multi-agent-ai-realtor/blob/main/src/agents/property_finder/tools/parse_property_search_query/property_search_filters.py"
click node_property_search "https://github.com/isl270/multi-agent-ai-realtor/blob/main/src/agents/property_finder/tools/search_properties/search_properties.py"
click node_property_model "https://github.com/isl270/multi-agent-ai-realtor/blob/main/src/agents/property_finder/tools/search_properties/property.py"
click node_calendar_agent "https://github.com/isl270/multi-agent-ai-realtor/blob/main/src/agents/calendar_manager/calendar_manager.py"
click node_availability "https://github.com/isl270/multi-agent-ai-realtor/blob/main/src/agents/calendar_manager/tools/find_available_slots.py"
click node_booking "https://github.com/isl270/multi-agent-ai-realtor/blob/main/src/agents/calendar_manager/tools/schedule_viewing.py"
click node_carousel_renderer "https://github.com/isl270/multi-agent-ai-realtor/blob/main/src/agents/supervisor/tools/render_property_carousel.py"
click node_frontend_ui "https://github.com/isl270/multi-agent-ai-realtor/blob/main/src/frontend/ui.tsx"
click node_carousel "https://github.com/isl270/multi-agent-ai-realtor/blob/main/src/frontend/carousel.tsx"
click node_ui_button "https://github.com/isl270/multi-agent-ai-realtor/blob/main/src/frontend/button.tsx"
click node_supabase_client "https://github.com/isl270/multi-agent-ai-realtor/blob/main/src/utils/supabase.py"
click node_calendar_client "https://github.com/isl270/multi-agent-ai-realtor/blob/main/src/utils/google_calendar.py"
click node_llm_config "https://github.com/isl270/multi-agent-ai-realtor/blob/main/src/utils/llm_config.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_graph_entry,node_supervisor,node_app_state,node_user_profile,node_user toneBlue
class node_property_agent,node_query_parser,node_filters,node_property_search,node_property_model toneAmber
class node_calendar_agent,node_availability,node_booking toneMint
class node_carousel_renderer,node_frontend_ui,node_carousel,node_ui_button toneRose
class node_supabase_client,node_property_db,node_calendar_client,node_google_calendar,node_llm_config,node_openai toneIndigo
```

## Components

### Conversation orchestration

- [LangGraph entry](https://github.com/isl270/multi-agent-ai-realtor/blob/main/src/graph.py): `src/graph.py`
- [Supervisor](https://github.com/isl270/multi-agent-ai-realtor/blob/main/src/agents/supervisor/supervisor.py): `src/agents/supervisor/supervisor.py`
- [Shared app state](https://github.com/isl270/multi-agent-ai-realtor/blob/main/src/agents/supervisor/app_state.py): `src/agents/supervisor/app_state.py`
- [User profile](https://github.com/isl270/multi-agent-ai-realtor/blob/main/src/agents/supervisor/user_profile.py): `src/agents/supervisor/user_profile.py`

### Property search

- [Property Finder](https://github.com/isl270/multi-agent-ai-realtor/blob/main/src/agents/property_finder/property_finder_agent.py): `src/agents/property_finder/property_finder_agent.py`
- [Query parser](https://github.com/isl270/multi-agent-ai-realtor/blob/main/src/agents/property_finder/tools/parse_property_search_query/parse_property_search_query.py): `src/agents/property_finder/tools/parse_property_search_query/parse_property_search_query.py`
- [Search filters](https://github.com/isl270/multi-agent-ai-realtor/blob/main/src/agents/property_finder/tools/parse_property_search_query/property_search_filters.py): `src/agents/property_finder/tools/parse_property_search_query/property_search_filters.py`
- [Property search](https://github.com/isl270/multi-agent-ai-realtor/blob/main/src/agents/property_finder/tools/search_properties/search_properties.py): `src/agents/property_finder/tools/search_properties/search_properties.py`
- [Property model](https://github.com/isl270/multi-agent-ai-realtor/blob/main/src/agents/property_finder/tools/search_properties/property.py): `src/agents/property_finder/tools/search_properties/property.py`

### Viewing scheduling

- [Calendar Manager](https://github.com/isl270/multi-agent-ai-realtor/blob/main/src/agents/calendar_manager/calendar_manager.py): `src/agents/calendar_manager/calendar_manager.py`
- [Find availability](https://github.com/isl270/multi-agent-ai-realtor/blob/main/src/agents/calendar_manager/tools/find_available_slots.py): `src/agents/calendar_manager/tools/find_available_slots.py`
- [Schedule viewing](https://github.com/isl270/multi-agent-ai-realtor/blob/main/src/agents/calendar_manager/tools/schedule_viewing.py): `src/agents/calendar_manager/tools/schedule_viewing.py`

### Generative UI

- [Carousel renderer](https://github.com/isl270/multi-agent-ai-realtor/blob/main/src/agents/supervisor/tools/render_property_carousel.py): `src/agents/supervisor/tools/render_property_carousel.py`
- [Agent chat UI](https://github.com/isl270/multi-agent-ai-realtor/blob/main/src/frontend/ui.tsx): `src/frontend/ui.tsx`
- [Property carousel](https://github.com/isl270/multi-agent-ai-realtor/blob/main/src/frontend/carousel.tsx): `src/frontend/carousel.tsx`
- [Carousel controls](https://github.com/isl270/multi-agent-ai-realtor/blob/main/src/frontend/button.tsx): `src/frontend/button.tsx`

### External integrations

- [Supabase client](https://github.com/isl270/multi-agent-ai-realtor/blob/main/src/utils/supabase.py): `src/utils/supabase.py`
- **Supabase properties**
- [Google Calendar client](https://github.com/isl270/multi-agent-ai-realtor/blob/main/src/utils/google_calendar.py): `src/utils/google_calendar.py`
- **Google Calendar**
- [LLM configuration](https://github.com/isl270/multi-agent-ai-realtor/blob/main/src/utils/llm_config.py): `src/utils/llm_config.py`
- **OpenAI models**

### Other components

- **Chat user**

## Connections

- Chat user → LangGraph entry: sends request (evidence: `README.md`)
- LangGraph entry → Supervisor: creates graph (evidence: `src/graph.py`)
- Supervisor → Property Finder: delegates search (evidence: `src/agents/supervisor/supervisor.py`)
- Supervisor → Calendar Manager: delegates scheduling (evidence: `src/agents/supervisor/supervisor.py`)
- Supervisor → Shared app state: uses state (evidence: `src/agents/supervisor/supervisor.py`)
- Supervisor → User profile: manages memory (evidence: `src/agents/supervisor/supervisor.py`)
- Property Finder → Query parser: invokes tool (evidence: `src/agents/property_finder/property_finder_agent.py`)
- Property Finder → Property search: invokes tool (evidence: `src/agents/property_finder/property_finder_agent.py`)
- Query parser → Search filters: produces filters (evidence: `src/agents/property_finder/tools/parse_property_search_query/parse_property_search_query.py`)
- Query parser → LLM configuration: selects model (evidence: `src/agents/property_finder/tools/parse_property_search_query/parse_property_search_query.py`)
- Property search → Supabase client: queries RPC (evidence: `src/agents/property_finder/tools/search_properties/search_properties.py`)
- Supabase client → Supabase properties: accesses data
- Property search → Property model: maps results (evidence: `src/agents/property_finder/tools/search_properties/search_properties.py`)
- Property Finder → Shared app state: updates results (evidence: `src/agents/property_finder/property_finder_agent.py`)
- Calendar Manager → Find availability: invokes tool (evidence: `src/agents/calendar_manager/calendar_manager.py`)
- Calendar Manager → Schedule viewing: invokes tool (evidence: `src/agents/calendar_manager/calendar_manager.py`)
- Find availability → Google Calendar client: checks slots (evidence: `src/agents/calendar_manager/tools/find_available_slots.py`)
- Schedule viewing → Google Calendar client: creates event (evidence: `src/agents/calendar_manager/tools/schedule_viewing.py`)
- Google Calendar client → Google Calendar: uses API
- Supervisor → Carousel renderer: renders results (evidence: `src/agents/supervisor/supervisor.py`)
- Carousel renderer → Shared app state: reads properties (evidence: `src/agents/supervisor/tools/render_property_carousel.py`)
- Agent chat UI → Property carousel: renders component (evidence: `src/frontend/ui.tsx`)
- Property carousel → Carousel controls: uses controls (evidence: `src/frontend/carousel.tsx`)
- Agent chat UI → Chat user: displays results (evidence: `README.md`)
- LLM configuration → OpenAI models: selects model
