Files
AetherTable/python/tests
John SmithandClaude 7c755caf4d feat(routing): optional LLM-assisted intent classification (iteration 10)
classify_with_llm() prompts the configured custom endpoint
(LLM_API/LLM_KEY/LLM_MODEL) for JSON classification into the real
IntentType enum, with layered honesty and safety:
- SAFETY_INTERVENTION always wins — keyword safety short-circuits
  before any network call; an LLM safety label overrides keyword
  disagreement
- any failure (kill-switch VTT_LLM_CLASSIFIER=0, no key, malformed or
  unknown output) falls back to the deterministic keyword classifier
  with provenance fields; never raises
- RULE_OF_COOL has no enum counterpart and is deliberately not mapped
complete_json() adds fence-tolerant JSON extraction + non-streaming
chat-completions with response_format json_object; degraded-marker
code preserved. 12 new tests, HTTP fully mocked.

Co-Authored-By: Claude <[email protected]>
2026-08-24 01:37:06 -04:00
..