# jimemedax-del/wirelessagent_r1 architecture

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

- Interactive diagram: https://gitdiagram.com/jimemedax-del/wirelessagent_r1
- Repository: https://github.com/jimemedax-del/wirelessagent_r1

## Overview

WirelessAgent is a research implementation and evaluation suite for LLM-assisted wireless network slicing. Its demonstrated workflow starts with campus-map-based radio propagation and CQI generation, then evaluates slicing with the WirelessAgent, prompt-based, and rule-based optimal implementations across center, north, and south scenarios. The repository also includes knowledge-base and no-knowledge-base agent variants and scripts that visualize comparative throughput and resource utilization. README documents the map-to-ray-tracing-to-slicing workflow; most implementation excerpts are partial, so internal wiring beyond the shown workload-balance call is not asserted.

Main entry points: [`RayTracing_cqi.py`](https://github.com/jimemedax-del/wirelessagent_r1/blob/main/RayTracing_cqi.py) (CQI ray tracing), [`Knowledge_Base/ray_tracing_results.csv`](https://github.com/jimemedax-del/wirelessagent_r1/blob/main/Knowledge_Base/ray_tracing_results.csv) (Ray-tracing results), [`WA_DS_V3_KB.py`](https://github.com/jimemedax-del/wirelessagent_r1/blob/main/WA_DS_V3_KB.py) (KB WirelessAgent), [`Thro_NetwScen_Methods/WA_DS_V3_Center.py`](https://github.com/jimemedax-del/wirelessagent_r1/blob/main/Thro_NetwScen_Methods/WA_DS_V3_Center.py) (Center agent)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_radio["Radio Modeling"]
  node_maps["Campus OSM maps"]
  node_raytrace["CQI ray tracing<br/>[RayTracing_cqi.py]"]
  node_raydata["Ray-tracing results"]
end

subgraph group_agents["Agent Slicing"]
  node_kbagent["KB WirelessAgent<br/>[WA_DS_V3_KB.py]"]
  node_nkbagent["No-KB agent<br/>[WA_DS_V3_NKB.py]"]
  node_centeragent["Center agent<br/>[WA_DS_V3_Center.py]"]
  node_northagent["North agent<br/>[WA_DS_V3_North.py]"]
  node_southagent["South agent<br/>[WA_DS_V3_South.py]"]
  node_workload["Workload balancing<br/>[WA_DS_V3_Center.py]"]
end

subgraph group_baselines["Comparison Methods"]
  node_centerprompt["Center prompt method"]
  node_northprompt["North prompt method"]
  node_southprompt["South prompt method"]
  node_centeroptimal["Center optimal method"]
  node_northoptimal["North optimal method"]
  node_southoptimal["South optimal method"]
end

subgraph group_evaluation["Results and Plots"]
  node_sliceoutputs["Slicing result datasets"]
  node_plotru["Resource-use comparison<br/>[Plot_RU_Num.py]"]
  node_plotcenter["Center throughput plot"]
  node_plotnorth["North throughput plot"]
  node_plotsouth["South throughput plot"]
end

node_operator(("Network researcher"))

node_operator -->|"sets map input"| node_raytrace
node_maps -->|"provides campus layout"| node_raytrace
node_raytrace -->|"produces CQI results"| node_raydata
node_raydata -->|"feeds slicing data"| node_kbagent
node_kbagent -->|"invokes balancing"| node_workload
node_operator -.->|"runs scenario"| node_centeragent
node_operator -.->|"runs scenario"| node_northagent
node_operator -.->|"runs scenario"| node_southagent
node_operator -.->|"runs variant"| node_nkbagent
node_operator -.->|"runs baseline"| node_centerprompt
node_operator -.->|"runs baseline"| node_northprompt
node_operator -.->|"runs baseline"| node_southprompt
node_operator -.->|"runs baseline"| node_centeroptimal
node_operator -.->|"runs baseline"| node_northoptimal
node_operator -.->|"runs baseline"| node_southoptimal
node_centeragent -.->|"exports results"| node_sliceoutputs
node_northagent -.->|"exports results"| node_sliceoutputs
node_southagent -.->|"exports results"| node_sliceoutputs
node_plotru -.->|"compares methods"| node_sliceoutputs
node_plotcenter -.->|"plots comparison"| node_sliceoutputs
node_plotnorth -.->|"plots comparison"| node_sliceoutputs
node_plotsouth -.->|"plots comparison"| node_sliceoutputs

click node_maps "https://github.com/jimemedax-del/wirelessagent_r1/tree/main/Knowledge_Base"
click node_raytrace "https://github.com/jimemedax-del/wirelessagent_r1/blob/main/RayTracing_cqi.py"
click node_kbagent "https://github.com/jimemedax-del/wirelessagent_r1/blob/main/WA_DS_V3_KB.py"
click node_nkbagent "https://github.com/jimemedax-del/wirelessagent_r1/blob/main/WA_DS_V3_NKB.py"
click node_centeragent "https://github.com/jimemedax-del/wirelessagent_r1/blob/main/Thro_NetwScen_Methods/WA_DS_V3_Center.py"
click node_northagent "https://github.com/jimemedax-del/wirelessagent_r1/blob/main/Thro_NetwScen_Methods/WA_DS_V3_North.py"
click node_southagent "https://github.com/jimemedax-del/wirelessagent_r1/blob/main/Thro_NetwScen_Methods/WA_DS_V3_South.py"
click node_workload "https://github.com/jimemedax-del/wirelessagent_r1/blob/main/Thro_NetwScen_Methods/WA_DS_V3_Center.py"
click node_centerprompt "https://github.com/jimemedax-del/wirelessagent_r1/blob/main/Thro_NetwScen_Methods/Prompt_Based_Center.py"
click node_northprompt "https://github.com/jimemedax-del/wirelessagent_r1/blob/main/Thro_NetwScen_Methods/Prompt_Based_North.py"
click node_southprompt "https://github.com/jimemedax-del/wirelessagent_r1/blob/main/Thro_NetwScen_Methods/Prompt_Based_South.py"
click node_centeroptimal "https://github.com/jimemedax-del/wirelessagent_r1/blob/main/Thro_NetwScen_Methods/Optimal_RA_Center.py"
click node_northoptimal "https://github.com/jimemedax-del/wirelessagent_r1/blob/main/Thro_NetwScen_Methods/Optimal_RA_North.py"
click node_southoptimal "https://github.com/jimemedax-del/wirelessagent_r1/blob/main/Thro_NetwScen_Methods/Optimal_RA_South.py"
click node_raydata "https://github.com/jimemedax-del/wirelessagent_r1/blob/main/Knowledge_Base/ray_tracing_results.csv"
click node_plotru "https://github.com/jimemedax-del/wirelessagent_r1/blob/main/Figure_Plots/Plot_RU_Num.py"
click node_plotcenter "https://github.com/jimemedax-del/wirelessagent_r1/blob/main/Figure_Plots/Plot_Throughput_center.py"
click node_plotnorth "https://github.com/jimemedax-del/wirelessagent_r1/blob/main/Figure_Plots/Plot_Throughput_north.py"
click node_plotsouth "https://github.com/jimemedax-del/wirelessagent_r1/blob/main/Figure_Plots/Plot_Throughput_south.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_maps,node_raytrace,node_raydata toneBlue
class node_kbagent,node_nkbagent,node_centeragent,node_northagent,node_southagent,node_workload toneAmber
class node_centerprompt,node_northprompt,node_southprompt,node_centeroptimal,node_northoptimal,node_southoptimal toneMint
class node_sliceoutputs,node_plotru,node_plotcenter,node_plotnorth,node_plotsouth toneRose
class node_operator toneIndigo
```

## Components

### Radio Modeling

- [Campus OSM maps](https://github.com/jimemedax-del/wirelessagent_r1/tree/main/Knowledge_Base): `Knowledge_Base`
- [CQI ray tracing](https://github.com/jimemedax-del/wirelessagent_r1/blob/main/RayTracing_cqi.py): `RayTracing_cqi.py`
- [Ray-tracing results](https://github.com/jimemedax-del/wirelessagent_r1/blob/main/Knowledge_Base/ray_tracing_results.csv): `Knowledge_Base/ray_tracing_results.csv`

### Agent Slicing

- [KB WirelessAgent](https://github.com/jimemedax-del/wirelessagent_r1/blob/main/WA_DS_V3_KB.py): `WA_DS_V3_KB.py`
- [No-KB agent](https://github.com/jimemedax-del/wirelessagent_r1/blob/main/WA_DS_V3_NKB.py): `WA_DS_V3_NKB.py`
- [Center agent](https://github.com/jimemedax-del/wirelessagent_r1/blob/main/Thro_NetwScen_Methods/WA_DS_V3_Center.py): `Thro_NetwScen_Methods/WA_DS_V3_Center.py`
- [North agent](https://github.com/jimemedax-del/wirelessagent_r1/blob/main/Thro_NetwScen_Methods/WA_DS_V3_North.py): `Thro_NetwScen_Methods/WA_DS_V3_North.py`
- [South agent](https://github.com/jimemedax-del/wirelessagent_r1/blob/main/Thro_NetwScen_Methods/WA_DS_V3_South.py): `Thro_NetwScen_Methods/WA_DS_V3_South.py`
- [Workload balancing](https://github.com/jimemedax-del/wirelessagent_r1/blob/main/Thro_NetwScen_Methods/WA_DS_V3_Center.py): `Thro_NetwScen_Methods/WA_DS_V3_Center.py`

### Comparison Methods

- [Center prompt method](https://github.com/jimemedax-del/wirelessagent_r1/blob/main/Thro_NetwScen_Methods/Prompt_Based_Center.py): `Thro_NetwScen_Methods/Prompt_Based_Center.py`
- [North prompt method](https://github.com/jimemedax-del/wirelessagent_r1/blob/main/Thro_NetwScen_Methods/Prompt_Based_North.py): `Thro_NetwScen_Methods/Prompt_Based_North.py`
- [South prompt method](https://github.com/jimemedax-del/wirelessagent_r1/blob/main/Thro_NetwScen_Methods/Prompt_Based_South.py): `Thro_NetwScen_Methods/Prompt_Based_South.py`
- [Center optimal method](https://github.com/jimemedax-del/wirelessagent_r1/blob/main/Thro_NetwScen_Methods/Optimal_RA_Center.py): `Thro_NetwScen_Methods/Optimal_RA_Center.py`
- [North optimal method](https://github.com/jimemedax-del/wirelessagent_r1/blob/main/Thro_NetwScen_Methods/Optimal_RA_North.py): `Thro_NetwScen_Methods/Optimal_RA_North.py`
- [South optimal method](https://github.com/jimemedax-del/wirelessagent_r1/blob/main/Thro_NetwScen_Methods/Optimal_RA_South.py): `Thro_NetwScen_Methods/Optimal_RA_South.py`

### Results and Plots

- **Slicing result datasets**
- [Resource-use comparison](https://github.com/jimemedax-del/wirelessagent_r1/blob/main/Figure_Plots/Plot_RU_Num.py): `Figure_Plots/Plot_RU_Num.py`
- [Center throughput plot](https://github.com/jimemedax-del/wirelessagent_r1/blob/main/Figure_Plots/Plot_Throughput_center.py): `Figure_Plots/Plot_Throughput_center.py`
- [North throughput plot](https://github.com/jimemedax-del/wirelessagent_r1/blob/main/Figure_Plots/Plot_Throughput_north.py): `Figure_Plots/Plot_Throughput_north.py`
- [South throughput plot](https://github.com/jimemedax-del/wirelessagent_r1/blob/main/Figure_Plots/Plot_Throughput_south.py): `Figure_Plots/Plot_Throughput_south.py`

### Other components

- **Network researcher**

## Connections

- Network researcher → CQI ray tracing: sets map input (evidence: `README.md`)
- Campus OSM maps → CQI ray tracing: provides campus layout (evidence: `README.md`)
- CQI ray tracing → Ray-tracing results: produces CQI results (evidence: `README.md`)
- Ray-tracing results → KB WirelessAgent: feeds slicing data (evidence: `README.md`)
- KB WirelessAgent → Workload balancing: invokes balancing (evidence: `WA_DS_V3_KB.py`)
- Network researcher → Center agent: runs scenario
- Network researcher → North agent: runs scenario
- Network researcher → South agent: runs scenario
- Network researcher → No-KB agent: runs variant
- Network researcher → Center prompt method: runs baseline
- Network researcher → North prompt method: runs baseline
- Network researcher → South prompt method: runs baseline
- Network researcher → Center optimal method: runs baseline
- Network researcher → North optimal method: runs baseline
- Network researcher → South optimal method: runs baseline
- Center agent → Slicing result datasets: exports results
- North agent → Slicing result datasets: exports results
- South agent → Slicing result datasets: exports results
- Resource-use comparison → Slicing result datasets: compares methods
- Center throughput plot → Slicing result datasets: plots comparison
- North throughput plot → Slicing result datasets: plots comparison
- South throughput plot → Slicing result datasets: plots comparison
