Commit 893a728
refactor!: remove in-app AI/LLM stack — RFlect is now zero-dependency (Workstream A)
RFlect predated MCP and made its own outbound LLM API calls for an in-app
chat assistant, GUI AI-report generation, and AI prose inside the MCP
generate_report tool. With an MCP agent driving the tools, the agent is the
LLM — so RFlect no longer needs to call one. This removes the entire
AI/LLM/API-key surface; the report path is deterministic and the optional
agent-authored-narrative interface lands in a follow-up (Workstream B).
BREAKING:
- Removed plot_antenna/llm_provider.py and plot_antenna/api_keys.py.
- generate_report no longer takes ai_* options or calls any LLM; it produces
deterministic, data-driven summaries/conclusions/captions.
- No API key or paid subscription is required for any RFlect feature.
Removed
- plot_antenna/gui/ai_chat_mixin.py (in-app chat) + its mixin wiring.
- GUI Tools-menu AI items (Manage API Keys, AI Settings, Generate Report
with AI, AI Chat Assistant) + their dialog methods in dialogs_mixin.
- The AI-vision RFAnalyzer internals in save.py; RFAnalyzer is now a
deterministic caption/summary generator.
- _create_llm_provider / _generate_ai_text + ai_* ReportOptions fields in
report_tools; provider plumbing in orchestration.
- AI_* keys from config_template; ai_analysis/ai_prompt/ai_generated flags
from report templates.
- tests/test_llm_provider.py, tests/test_api_keys.py, and the LLM-specific
test classes in test_mcp_report.
Renamed
- plot_antenna/ai_analysis.py -> analysis_engine.py (it was always pure
numpy compute — gain stats, HPBW, sidelobe, polarization, horizon — and
backs every MCP analysis tool; the old name was a misnomer). Importers and
tests/test_ai_analysis.py -> test_analysis_engine.py updated.
Verification: full suite 313 passed / 148 skipped; MCP server + GUI import
with no openai/anthropic packages installed; zero residual AI/LLM/key refs.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent b51a79d commit 893a728
20 files changed
Lines changed: 69 additions & 5490 deletions
File tree
- plot_antenna
- gui
- rflect-mcp
- templates
- tools
- tests
File renamed without changes.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | 154 | | |
257 | 155 | | |
258 | 156 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
| 10 | + | |
12 | 11 | | |
13 | 12 | | |
14 | 13 | | |
| |||
0 commit comments