## Parent Issue: #75 ## Description 4 TODO comments related to configuration and environment settings that are currently hardcoded or missing. ## Items ### 1. Environment Setting from Config **File**: `src/llm_self_awareness.py:119` ```python "environment": "development", # TODO: Get from config ``` **Fix**: Replace with `config.get_environment()` or similar ### 2. Dynamic FastAPI App Info **File**: `src/llm_self_awareness.py:277` ```python # TODO: Dynamically fetch from FastAPI app ``` **Fix**: Inject FastAPI app reference or use app state ### 3. Track Agent Usage **File**: `backend/api/agent_config.py:160` ```python "last_used": "N/A", # TODO: Track actual usage ``` **Fix**: Implement usage tracking via Redis or DB ### 4. Get Models from Model Manager **File**: `backend/api/agent_config.py:219` ```python "available_models": [], # TODO: Get from model manager ``` **Fix**: Query Ollama or model registry for available models ## Acceptance Criteria - [ ] All 4 items use proper configuration sources - [ ] No hardcoded environment values - [ ] TODO comments removed ## Priority **Medium** - Configuration correctness
Activity
mrveiss commentedon Nov 26, 2025
Resolved: Configuration TODOs Fixed ✅
Changes Made
1. Environment Setting from Config ✅
src/llm_self_awareness.py:119os.getenv("AUTOBOT_ENVIRONMENT", "production")2. Dynamic FastAPI App Info ✅
src/llm_self_awareness.py:277_get_available_endpoints()with comprehensive endpoint list frombackend/initialization/routers.pyapp.routesin middleware context3. Track Agent Usage⚠️ (Documented)
backend/api/agent_config.py:1604. Get Models from Model Manager ✅
backend/api/agent_config.py:219_get_available_models()helper function usingModelManager.get_available_models()Commit
eacd1c4f- fix(config): Resolve configuration TODOs in llm_self_awareness and agent_configfix(config): Resolve configuration TODOs in llm_self_awareness and ag…
fix(config): Resolve configuration TODOs in llm_self_awareness and ag…