Commit 52e4328
##### Description of Change
Pure dead-code removal in the `langchain_agent` component, found during
a code review.
- **`summarize_conversation()` in `core.py`** referenced a non-existent
`self.agent` attribute (the class stores agents in `self.agents`, a
dict). It would have raised `AttributeError` if ever called — but it has
**no callers** anywhere in `components/` or `bases/`. Removed.
- **`helpers.py` (entire module)** — `update_person_interactions()` and
its private `_build_mutation_query()` were **unreferenced** across the
repo (nothing imports `helpers`). Interaction summaries are persisted
via the `lif_mutation` MCP tool driven by the `save_interaction_summary`
prompt, not this helper. Removed the file.
- Updated the component README layout table to drop the `helpers.py`
row.
No behavior change for any current caller, since neither symbol was
referenced. The public surface (`LIFAIAgent`) is unchanged.
**How to test:** `uv run pre-commit run --all-files` — ruff, cspell, ty,
and the full pytest suite pass. No runtime path is affected.
##### Related Issues
Closes #974
##### Type of Change
- [x] Code refactoring
##### Project Area(s) Affected
- [x] components/
---
##### Checklist
- [x] commit message follows commit guidelines (see
commitlint.config.mjs)
- [x] code passes linting checks (`uv run ruff check`)
- [x] code passes formatting checks (`uv run ruff format`)
- [x] code passes type checking (`uv run ty check`)
- [x] pre-commit hooks have been run successfully
##### Testing
- [x] Automated tests added/updated (existing suite green; no new
behavior to test)
##### Additional Notes
Dead code only — no tests added since there is no new behavior, and the
removed code had no test coverage or callers.
---------
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
1 parent c69532e commit 52e4328
3 files changed
Lines changed: 0 additions & 131 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | 13 | | |
15 | 14 | | |
16 | 15 | | |
| |||
29 | 28 | | |
30 | 29 | | |
31 | 30 | | |
32 | | - | |
33 | 31 | | |
34 | 32 | | |
35 | 33 | | |
| |||
207 | 205 | | |
208 | 206 | | |
209 | 207 | | |
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 | 208 | | |
237 | 209 | | |
238 | 210 | | |
| |||
This file was deleted.
0 commit comments