# aromalsathees/job_agent architecture

> Architecture diagram of the GitHub repository aromalsathees/job_agent, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-01). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/aromalsathees/job_agent
- Repository: https://github.com/aromalsathees/job_agent

## Overview

This Django application presents an Infopark Kochi job-search assistant. The intended user journey runs from the web routes to a view and then to a LangChain agent, which can search vacancies or retrieve a job description; search results are returned for the assistant’s response. The scraper fetches and parses Infopark listings and detail pages. The view-to-agent handoff is not shown in the available source, so that relationship is marked unverified. No README was provided, and database or other product capabilities are not evident in the sampled files.

Main entry points: [`support/langchain_agents.py`](https://github.com/aromalsathees/job_agent/blob/main/support/langchain_agents.py) (Support agent), [`support/urls.py`](https://github.com/aromalsathees/job_agent/blob/main/support/urls.py) (Support routes), [`support/views.py`](https://github.com/aromalsathees/job_agent/blob/main/support/views.py) (Request views), [`support/langchain_tools.py`](https://github.com/aromalsathees/job_agent/blob/main/support/langchain_tools.py) (Job search tools)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web interface"]
  node_routes["Support routes<br/>[urls.py]"]
  node_views["Request views<br/>[views.py]"]
end

subgraph group_assistant["Assistant orchestration"]
  node_agent["Support agent"]
  node_prompts["Agent instructions<br/>[system_prompts.py]"]
end

subgraph group_jobs["Job discovery"]
  node_tools["Job search tools<br/>[langchain_tools.py]"]
  node_scraper["Infopark scraper<br/>[scraper.py]"]
end

node_user(("Job seeker"))
node_gemini["Google Gemini"]
node_infopark["Infopark listings"]

node_user -->|"requests"| node_routes
node_routes -->|"routes to"| node_views
node_views -.->|"invokes"| node_agent
node_agent -->|"registers"| node_tools
node_agent -->|"uses prompt"| node_prompts
node_agent -->|"calls model"| node_gemini
node_tools -->|"fetches jobs"| node_scraper
node_scraper -->|"scrapes listings"| node_infopark

click node_routes "https://github.com/aromalsathees/job_agent/blob/main/support/urls.py"
click node_views "https://github.com/aromalsathees/job_agent/blob/main/support/views.py"
click node_agent "https://github.com/aromalsathees/job_agent/blob/main/support/langchain_agents.py"
click node_prompts "https://github.com/aromalsathees/job_agent/blob/main/support/system_prompts.py"
click node_tools "https://github.com/aromalsathees/job_agent/blob/main/support/langchain_tools.py"
click node_scraper "https://github.com/aromalsathees/job_agent/blob/main/support/scraper.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_routes,node_views toneBlue
class node_agent,node_prompts toneAmber
class node_tools,node_scraper toneMint
class node_user,node_gemini,node_infopark toneIndigo
```

## Components

### Web interface

- [Support routes](https://github.com/aromalsathees/job_agent/blob/main/support/urls.py): `support/urls.py`
- [Request views](https://github.com/aromalsathees/job_agent/blob/main/support/views.py): `support/views.py`

### Assistant orchestration

- [Support agent](https://github.com/aromalsathees/job_agent/blob/main/support/langchain_agents.py): `support/langchain_agents.py`
- [Agent instructions](https://github.com/aromalsathees/job_agent/blob/main/support/system_prompts.py): `support/system_prompts.py`

### Job discovery

- [Job search tools](https://github.com/aromalsathees/job_agent/blob/main/support/langchain_tools.py): `support/langchain_tools.py`
- [Infopark scraper](https://github.com/aromalsathees/job_agent/blob/main/support/scraper.py): `support/scraper.py`

### Other components

- **Job seeker**
- **Google Gemini**
- **Infopark listings**

## Connections

- Job seeker → Support routes: requests (evidence: `support/urls.py`)
- Support routes → Request views: routes to (evidence: `support/urls.py`)
- Request views → Support agent: invokes
- Support agent → Job search tools: registers (evidence: `support/langchain_agents.py`)
- Support agent → Agent instructions: uses prompt (evidence: `support/langchain_agents.py`)
- Support agent → Google Gemini: calls model (evidence: `support/langchain_agents.py`)
- Job search tools → Infopark scraper: fetches jobs (evidence: `support/langchain_tools.py`)
- Infopark scraper → Infopark listings: scrapes listings (evidence: `support/scraper.py`)
