# AI Agent Codebase Analysis Report Generated on: 2025-06-19 03:38:07 ## 📊 Summary - **Total upgrade points:** 3573 - **Files analyzed:** 102 ### By Category - **Monitoring:** 1899 - **Orchestration:** 147 - **Testing:** 1513 - **Agent_specific:** 14 ## 📌 MONITORING Upgrade Points ### 🔴 HIGH Priority (1229 items) #### simple_hybrid_demo.py:58 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self, name: str):` #### simple_hybrid_demo.py:67 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def add_state(self, state: AgentState):` #### simple_hybrid_demo.py:71 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def add_transition(self, transition: Transition):` #### simple_hybrid_demo.py:75 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def set_initial_state(self, state_name: str):` #### simple_hybrid_demo.py:99 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def execute_transition(self, transition: Transition):` #### simple_hybrid_demo.py:111 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def update_learning(self, transition: Transition):` #### simple_hybrid_demo.py:143 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self, name: str):` #### simple_hybrid_demo.py:228 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self):` #### simple_hybrid_demo.py:256 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self, name: str, function: Callable, description: str):` #### simple_hybrid_demo.py:261 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def run(self, **kwargs):` #### simple_hybrid_demo.py:305 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self, name: str, tools: List[SimpleTool], max_steps: int = 10):` #### simple_hybrid_demo.py:378 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self, name: str, tools: List[SimpleTool] = None):` #### simple_hybrid_demo.py:469 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def update_performance(self, mode: str, success: bool, execution_time: float):` #### simple_hybrid_demo.py:484 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def demo_basic_hybrid_agent():` #### simple_hybrid_demo.py:532 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def demo_fsm_learning():` #### simple_hybrid_demo.py:553 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def has_energy(state):` #### simple_hybrid_demo.py:556 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def is_tired(state):` #### simple_hybrid_demo.py:559 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def work_complete(state):` #### simple_hybrid_demo.py:562 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def rested(state):` #### simple_hybrid_demo.py:603 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def demo_chain_of_thought():` #### simple_hybrid_demo.py:640 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def main():` #### simple_hybrid_demo.py:273 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### simple_hybrid_demo.py:335 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### simple_hybrid_demo.py:425 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### simple_hybrid_demo.py:655 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### simple_hybrid_demo.py:338 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def reasoning_path(self, query: str, context: Dict[str, Any]) -> List[ReasoningStep]:` #### simple_hybrid_demo.py:406 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def execute_task(self, task: Dict[str, Any]) -> Any:` #### simple_hybrid_demo.py:434 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def execute_fsm_task(self, task: Dict[str, Any]) -> Any:` #### simple_hybrid_demo.py:450 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def execute_react_task(self, task: Dict[str, Any]) -> Any:` #### simple_hybrid_demo.py:460 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def execute_cot_task(self, task: Dict[str, Any]) -> Any:` #### simple_hybrid_demo.py:484 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def demo_basic_hybrid_agent():` #### simple_hybrid_demo.py:532 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def demo_fsm_learning():` #### simple_hybrid_demo.py:603 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def demo_chain_of_thought():` #### simple_hybrid_demo.py:640 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def main():` #### simple_hybrid_demo.py:253 - **Issue:** Tools without telemetry - **Fix:** Wrap with OpenTelemetry spans - **Code:** `class SimpleTool:` #### simple_hybrid_demo.py:264 - **Issue:** Tools without telemetry - **Fix:** Wrap with OpenTelemetry spans - **Code:** `class DemoTools:` #### session.py:57 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self, max_size: int = 1000, ttl_seconds: int = 3600):` #### session.py:69 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def _cleanup_expired(self):` #### session.py:106 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def set(self, key: str, value: Any):` #### session.py:120 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def invalidate(self, pattern: str = None):` #### session.py:149 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self):` #### session.py:174 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def update_session(self, session_id: str, **kwargs):` #### session.py:184 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def record_query(self, session_id: str, response_time: float, tool_usage: Dict[str, int] = None):` #### session.py:196 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def record_cache_hit(self, session_id: str):` #### session.py:202 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def record_error(self, session_id: str, error: Dict[str, Any]):` #### session.py:230 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def cleanup_old_sessions(self, max_age_hours: float = 24.0):` #### session.py:255 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self, max_workers: int = 4):` #### session.py:294 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def cancel_task(self, task_id: str):` #### session.py:307 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def shutdown(self, wait: bool = True):` #### session.py:312 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __enter__(self):` #### session.py:315 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __exit__(self, exc_type, exc_val, exc_tb):` #### session.py:89 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### session.py:286 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except concurrent.futures.TimeoutError:` #### session.py:289 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### ai_codebase_analyzer.py:57 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self, root_dir: str = ".", patterns_path: str = "analyzer_patterns.yaml", max_workers: ...` #### ai_codebase_analyzer.py:279 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `code_snippet="@pytest.fixture\ndef sample_data():"` #### ai_codebase_analyzer.py:383 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `code_snippet=f"def __init__(self, service: ServiceType):"` #### ai_codebase_analyzer.py:73 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except FileNotFoundError:` #### ai_codebase_analyzer.py:76 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### ai_codebase_analyzer.py:121 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### ai_codebase_analyzer.py:162 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### ai_codebase_analyzer.py:386 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### ai_codebase_analyzer.py:339 - **Issue:** Tool decorators without metrics wrapper - **Fix:** Wrap with OpenTelemetry spans - **Code:** `if "tool" in str(file_path).lower() and "@tool" in content:` #### demo_hybrid_architecture.py:64 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self, name: str, function, description: str):` #### demo_hybrid_architecture.py:69 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def run(self, **kwargs):` #### demo_hybrid_architecture.py:72 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def demo_basic_hybrid_agent():` #### demo_hybrid_architecture.py:120 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def demo_multi_agent_system():` #### demo_hybrid_architecture.py:178 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def demo_fsm_learning():` #### demo_hybrid_architecture.py:199 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def has_energy(state):` #### demo_hybrid_architecture.py:202 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def is_tired(state):` #### demo_hybrid_architecture.py:205 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def work_complete(state):` #### demo_hybrid_architecture.py:208 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def rested(state):` #### demo_hybrid_architecture.py:249 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def demo_chain_of_thought():` #### demo_hybrid_architecture.py:288 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def demo_performance_optimization():` #### demo_hybrid_architecture.py:345 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def demo_emergent_behavior():` #### demo_hybrid_architecture.py:392 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def main():` #### demo_hybrid_architecture.py:36 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### demo_hybrid_architecture.py:410 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### demo_hybrid_architecture.py:72 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def demo_basic_hybrid_agent():` #### demo_hybrid_architecture.py:120 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def demo_multi_agent_system():` #### demo_hybrid_architecture.py:178 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def demo_fsm_learning():` #### demo_hybrid_architecture.py:249 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def demo_chain_of_thought():` #### demo_hybrid_architecture.py:288 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def demo_performance_optimization():` #### demo_hybrid_architecture.py:345 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def demo_emergent_behavior():` #### demo_hybrid_architecture.py:392 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def main():` #### demo_hybrid_architecture.py:27 - **Issue:** Tools without telemetry - **Fix:** Wrap with OpenTelemetry spans - **Code:** `class DemoTools:` #### demo_hybrid_architecture.py:61 - **Issue:** Tools without telemetry - **Fix:** Wrap with OpenTelemetry spans - **Code:** `class CustomTool:` #### app.py:127 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self):` #### app.py:138 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def setup_environment(self):` #### app.py:160 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def initialize_components(self):` #### app.py:185 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def _initialize_integration_hub(self):` #### app.py:195 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def _initialize_tools_with_fallback(self):` #### app.py:208 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def _get_basic_tools(self):` #### app.py:213 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def _initialize_agent(self):` #### app.py:227 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def _initialize_minimal_setup(self):` #### app.py:243 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def timeout_handler(signum, frame):` #### app.py:267 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def build_interface(self):` #### app.py:275 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def build_gradio_interface(process_chat_message, process_gaia_questions, session_manager):` #### app.py:308 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def main():` #### app.py:74 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except ImportError as e:` #### app.py:154 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### app.py:178 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### app.py:191 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### app.py:204 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except ImportError:` #### app.py:223 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### app.py:262 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### app.py:325 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### app.py:334 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### app.py:185 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def _initialize_integration_hub(self):` #### simple_test.py:15 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_imports():` #### simple_test.py:42 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_embedding_manager():` #### simple_test.py:76 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_integration_hub():` #### simple_test.py:114 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_config():` #### simple_test.py:144 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_enhanced_components():` #### simple_test.py:167 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def main():` #### simple_test.py:22 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### simple_test.py:29 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### simple_test.py:36 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### simple_test.py:72 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### simple_test.py:110 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### simple_test.py:140 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### simple_test.py:161 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### simple_test.py:186 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### simple_test.py:90 - **Issue:** Tools without telemetry - **Fix:** Wrap with OpenTelemetry spans - **Code:** `class TestTool(BaseTool):` #### test_integration_fixes.py:31 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def test_tool_call_tracker():` #### test_integration_fixes.py:65 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_circuit_breaker():` #### test_integration_fixes.py:90 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_local_knowledge_tool():` #### test_integration_fixes.py:129 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_error_categorization():` #### test_integration_fixes.py:152 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def test_fallback_logic():` #### test_integration_fixes.py:160 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self, name):` #### test_integration_fixes.py:163 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def execute(self, params):` #### test_integration_fixes.py:185 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def test_async_cleanup():` #### test_integration_fixes.py:192 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def async_cleanup():` #### test_integration_fixes.py:197 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def sync_cleanup():` #### test_integration_fixes.py:219 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def main():` #### test_integration_fixes.py:213 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### test_integration_fixes.py:241 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### test_integration_fixes.py:31 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def test_tool_call_tracker():` #### test_integration_fixes.py:152 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def test_fallback_logic():` #### test_integration_fixes.py:163 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def execute(self, params):` #### test_integration_fixes.py:185 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def test_async_cleanup():` #### test_integration_fixes.py:192 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def async_cleanup():` #### test_integration_fixes.py:219 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def main():` #### test_integration_fixes.py:159 - **Issue:** Tools without telemetry - **Fix:** Wrap with OpenTelemetry spans - **Code:** `class MockTool:` #### tests/test_session.py:14 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_session_metrics_initialization(self):` #### tests/test_session.py:26 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_average_response_time(self):` #### tests/test_session.py:38 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_cache_hit_rate(self):` #### tests/test_session.py:50 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_uptime_hours(self):` #### tests/test_session.py:62 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_cache_initialization(self):` #### tests/test_session.py:71 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_cache_set_and_get(self):` #### tests/test_session.py:84 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_cache_expiration(self):` #### tests/test_session.py:96 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_cache_size_limit(self):` #### tests/test_session.py:107 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_cache_stats(self):` #### tests/test_session.py:123 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_rate_limiter_initialization(self):` #### tests/test_session.py:131 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_rate_limiting_enforcement(self):` #### tests/test_session.py:147 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_rate_limiter_status(self):` #### tests/test_session.py:163 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_session_creation(self):` #### tests/test_session.py:178 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_update_query_metrics(self):` #### tests/test_session.py:192 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_update_tool_usage(self):` #### tests/test_session.py:206 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_add_error(self):` #### tests/test_session.py:222 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_global_analytics(self):` #### tests/test_session.py:249 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_cleanup_old_sessions(self):` #### tests/test_repositories.py:24 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def repository(self):` #### tests/test_repositories.py:28 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def sample_message(self):` #### tests/test_repositories.py:35 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def test_save_message(self, repository, sample_message):` #### tests/test_repositories.py:43 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def test_find_by_id(self, repository, sample_message):` #### tests/test_repositories.py:53 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def test_find_by_id_not_found(self, repository):` #### tests/test_repositories.py:59 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def test_find_by_session(self, repository):` #### tests/test_repositories.py:77 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def test_find_by_type(self, repository):` #### tests/test_repositories.py:95 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def test_delete_message(self, repository, sample_message):` #### tests/test_repositories.py:111 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def test_delete_nonexistent_message(self, repository):` #### tests/test_repositories.py:116 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def test_get_statistics(self, repository):` #### tests/test_repositories.py:138 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def repository(self):` #### tests/test_repositories.py:142 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def sample_session(self):` #### tests/test_repositories.py:148 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def test_save_session(self, repository, sample_session):` #### tests/test_repositories.py:156 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def test_find_by_id(self, repository, sample_session):` #### tests/test_repositories.py:166 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def test_find_by_id_not_found(self, repository):` #### tests/test_repositories.py:172 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def test_find_active(self, repository):` #### tests/test_repositories.py:189 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def test_delete_session(self, repository, sample_session):` #### tests/test_repositories.py:205 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def test_get_statistics(self, repository):` #### tests/test_repositories.py:226 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def repository(self):` #### tests/test_repositories.py:230 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def sample_tool(self):` #### tests/test_repositories.py:238 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def test_save_tool(self, repository, sample_tool):` #### tests/test_repositories.py:246 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def test_find_by_id(self, repository, sample_tool):` #### tests/test_repositories.py:256 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def test_find_by_name(self, repository, sample_tool):` #### tests/test_repositories.py:266 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def test_find_by_name_not_found(self, repository):` #### tests/test_repositories.py:272 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def test_find_by_type(self, repository):` #### tests/test_repositories.py:290 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def test_delete_tool(self, repository, sample_tool):` #### tests/test_repositories.py:310 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def test_get_statistics(self, repository):` #### tests/test_repositories.py:329 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def repository(self):` #### tests/test_repositories.py:333 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def sample_user(self):` #### tests/test_repositories.py:339 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def test_save_user(self, repository, sample_user):` #### tests/test_repositories.py:347 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def test_find_by_id(self, repository, sample_user):` #### tests/test_repositories.py:357 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def test_find_by_email(self, repository, sample_user):` #### tests/test_repositories.py:367 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def test_find_by_email_not_found(self, repository):` #### tests/test_repositories.py:373 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def test_find_all(self, repository):` #### tests/test_repositories.py:388 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def test_delete_user(self, repository, sample_user):` #### tests/test_repositories.py:408 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def test_get_statistics(self, repository):` #### tests/test_repositories.py:35 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def test_save_message(self, repository, sample_message):` #### tests/test_repositories.py:43 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def test_find_by_id(self, repository, sample_message):` #### tests/test_repositories.py:53 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def test_find_by_id_not_found(self, repository):` #### tests/test_repositories.py:59 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def test_find_by_session(self, repository):` #### tests/test_repositories.py:77 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def test_find_by_type(self, repository):` #### tests/test_repositories.py:95 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def test_delete_message(self, repository, sample_message):` #### tests/test_repositories.py:111 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def test_delete_nonexistent_message(self, repository):` #### tests/test_repositories.py:116 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def test_get_statistics(self, repository):` #### tests/test_repositories.py:148 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def test_save_session(self, repository, sample_session):` #### tests/test_repositories.py:156 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def test_find_by_id(self, repository, sample_session):` #### tests/test_repositories.py:166 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def test_find_by_id_not_found(self, repository):` #### tests/test_repositories.py:172 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def test_find_active(self, repository):` #### tests/test_repositories.py:189 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def test_delete_session(self, repository, sample_session):` #### tests/test_repositories.py:205 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def test_get_statistics(self, repository):` #### tests/test_repositories.py:238 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def test_save_tool(self, repository, sample_tool):` #### tests/test_repositories.py:246 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def test_find_by_id(self, repository, sample_tool):` #### tests/test_repositories.py:256 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def test_find_by_name(self, repository, sample_tool):` #### tests/test_repositories.py:266 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def test_find_by_name_not_found(self, repository):` #### tests/test_repositories.py:272 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def test_find_by_type(self, repository):` #### tests/test_repositories.py:290 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def test_delete_tool(self, repository, sample_tool):` #### tests/test_repositories.py:310 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def test_get_statistics(self, repository):` #### tests/test_repositories.py:339 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def test_save_user(self, repository, sample_user):` #### tests/test_repositories.py:347 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def test_find_by_id(self, repository, sample_user):` #### tests/test_repositories.py:357 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def test_find_by_email(self, repository, sample_user):` #### tests/test_repositories.py:367 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def test_find_by_email_not_found(self, repository):` #### tests/test_repositories.py:373 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def test_find_all(self, repository):` #### tests/test_repositories.py:388 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def test_delete_user(self, repository, sample_user):` #### tests/test_repositories.py:408 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def test_get_statistics(self, repository):` #### tests/test_repositories.py:222 - **Issue:** Tools without telemetry - **Fix:** Wrap with OpenTelemetry spans - **Code:** `class TestInMemoryToolRepository:` #### tests/test_core_entities.py:20 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_agent_creation(self):` #### tests/test_core_entities.py:36 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_agent_serialization(self):` #### tests/test_core_entities.py:54 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_agent_from_dict(self):` #### tests/test_core_entities.py:77 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_message_creation(self):` #### tests/test_core_entities.py:93 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_message_serialization(self):` #### tests/test_core_entities.py:111 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_message_from_dict(self):` #### tests/test_core_entities.py:134 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_tool_creation(self):` #### tests/test_core_entities.py:151 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_tool_execution(self):` #### tests/test_core_entities.py:168 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_tool_serialization(self):` #### tests/test_core_entities.py:191 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_session_creation(self):` #### tests/test_core_entities.py:206 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_session_serialization(self):` #### tests/test_core_entities.py:222 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_session_closure(self):` #### tests/test_core_entities.py:238 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_user_creation(self):` #### tests/test_core_entities.py:251 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_user_serialization(self):` #### tests/test_core_entities.py:266 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_user_deactivation(self):` #### tests/test_core_entities.py:131 - **Issue:** Tools without telemetry - **Fix:** Wrap with OpenTelemetry spans - **Code:** `class TestTool:` #### tests/gaia_testing_framework.py:51 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self):` #### tests/gaia_testing_framework.py:564 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def _print_comprehensive_analysis(self, analysis: Dict[str, Any]):` #### tests/gaia_testing_framework.py:654 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def _init_results_csv(self, path: str = "test_results.csv"):` #### tests/gaia_testing_framework.py:662 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def _append_result_csv(self, res: AgentTestResult):` #### tests/gaia_testing_framework.py:680 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def _get_grader_llm(self):` #### tests/gaia_testing_framework.py:756 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def _check_expected_behavior(self, result, expected_behavior, duration):` #### tests/gaia_testing_framework.py:766 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def main():` #### tests/gaia_testing_framework.py:319 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### tests/gaia_testing_framework.py:355 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### tests/gaia_testing_framework.py:689 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception:` #### tests/gaia_testing_framework.py:721 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### tests/gaia_testing_framework.py:743 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### gaia_logic.py:30 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self, log_handler: Optional[logging.Handler] = None):` #### gaia_logic.py:119 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def _update_stats(self, processing_time: float, success: bool):` #### gaia_logic.py:150 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self):` #### gaia_logic.py:54 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### gaia_logic.py:160 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### gaia_logic.py:183 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### gaia_logic.py:240 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except requests.exceptions.RequestException as e:` #### gaia_logic.py:244 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### gaia_logic.py:302 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### gaia_logic.py:348 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except requests.exceptions.HTTPError as e:` #### gaia_logic.py:360 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### gaia_logic.py:372 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except ImportError:` #### tests/test_integration.py:26 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def integration_hub():` #### tests/test_integration.py:31 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def embedding_manager():` #### tests/test_integration.py:38 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_embedding_manager_singleton(self, embedding_manager):` #### tests/test_integration.py:45 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_embedding_method_consistency(self, embedding_manager):` #### tests/test_integration.py:53 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_embedding_output_consistency(self, embedding_manager):` #### tests/test_integration.py:63 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_batch_embedding(self, embedding_manager):` #### tests/test_integration.py:80 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_config_import(self):` #### tests/test_integration.py:88 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_embedding_manager_import(self):` #### tests/test_integration.py:97 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_database_enhanced_import(self):` #### tests/test_integration.py:105 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_crew_enhanced_import(self):` #### tests/test_integration.py:113 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_llamaindex_enhanced_import(self):` #### tests/test_integration.py:124 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_crew_execution_is_sync(self):` #### tests/test_integration.py:155 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def test_hub_initialization(self, integration_hub):` #### tests/test_integration.py:166 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def test_hub_cleanup(self, integration_hub):` #### tests/test_integration.py:175 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_tool_registration(self):` #### tests/test_integration.py:200 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_get_tools_function(self):` #### tests/test_integration.py:209 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_embedding_fallback(self, embedding_manager):` #### tests/test_integration.py:220 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def test_database_error_handling(self):` #### tests/test_integration.py:232 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_config_validation(self):` #### tests/test_integration.py:248 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def test_full_integration_flow(self, integration_hub):` #### tests/test_integration.py:276 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_configuration_consistency(self):` #### tests/test_integration.py:296 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_embedding_performance(self, embedding_manager):` #### tests/test_integration.py:315 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_tool_registry_performance(self):` #### tests/test_integration.py:85 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except ImportError as e:` #### tests/test_integration.py:94 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except ImportError as e:` #### tests/test_integration.py:102 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except ImportError as e:` #### tests/test_integration.py:110 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except ImportError as e:` #### tests/test_integration.py:118 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except ImportError as e:` #### tests/test_integration.py:148 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except ImportError:` #### tests/test_integration.py:161 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### tests/test_integration.py:172 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### tests/test_integration.py:229 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except ImportError:` #### tests/test_integration.py:273 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### tests/test_integration.py:155 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def test_hub_initialization(self, integration_hub):` #### tests/test_integration.py:166 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def test_hub_cleanup(self, integration_hub):` #### tests/test_integration.py:220 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def test_database_error_handling(self):` #### tests/test_integration.py:248 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def test_full_integration_flow(self, integration_hub):` #### tests/test_integration.py:131 - **Issue:** Tools without telemetry - **Fix:** Wrap with OpenTelemetry spans - **Code:** `class DummyTool(BaseTool):` #### tests/test_integration.py:185 - **Issue:** Tools without telemetry - **Fix:** Wrap with OpenTelemetry spans - **Code:** `class TestTool(BaseTool):` #### tests/test_integration.py:323 - **Issue:** Tools without telemetry - **Fix:** Wrap with OpenTelemetry spans - **Code:** `class PerfTool(BaseTool):` #### tests/test_enhanced_error_handling.py:61 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_valid_input(self):` #### tests/test_enhanced_error_handling.py:69 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_empty_input(self):` #### tests/test_enhanced_error_handling.py:75 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_too_short_input(self):` #### tests/test_enhanced_error_handling.py:81 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_problematic_patterns(self):` #### tests/test_enhanced_error_handling.py:97 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_control_characters(self):` #### tests/test_enhanced_error_handling.py:107 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_url_injection(self):` #### tests/test_enhanced_error_handling.py:120 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_sanitization(self):` #### tests/test_enhanced_error_handling.py:129 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_suggestions_provided(self):` #### tests/test_enhanced_error_handling.py:139 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def setUp(self):` #### tests/test_enhanced_error_handling.py:142 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_track_execution(self):` #### tests/test_enhanced_error_handling.py:153 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_health_status(self):` #### tests/test_enhanced_error_handling.py:166 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_error_distribution(self):` #### tests/test_enhanced_error_handling.py:176 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_recommendations(self):` #### tests/test_enhanced_error_handling.py:189 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def setUp(self):` #### tests/test_enhanced_error_handling.py:192 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_logical_transition(self):` #### tests/test_enhanced_error_handling.py:203 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_sufficient_evidence(self):` #### tests/test_enhanced_error_handling.py:216 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_circular_reasoning_detection(self):` #### tests/test_enhanced_error_handling.py:227 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_contradiction_detection(self):` #### tests/test_enhanced_error_handling.py:241 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def setUp(self):` #### tests/test_enhanced_error_handling.py:244 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_fact_extraction(self):` #### tests/test_enhanced_error_handling.py:255 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_fact_verification(self):` #### tests/test_enhanced_error_handling.py:267 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_numeric_answer_building(self):` #### tests/test_enhanced_error_handling.py:274 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_person_answer_building(self):` #### tests/test_enhanced_error_handling.py:281 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_answer_question_check(self):` #### tests/test_enhanced_error_handling.py:292 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def setUp(self):` #### tests/test_enhanced_error_handling.py:297 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_state_transition_with_error(self):` #### tests/test_enhanced_error_handling.py:310 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_circuit_breaker_logic(self):` #### tests/test_enhanced_error_handling.py:319 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_tool_parameter_validation(self):` #### tests/test_enhanced_error_handling.py:331 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_plan_validation(self):` #### tests/test_enhanced_error_handling.py:372 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_end_to_end_validation_flow(self):` #### tests/test_enhanced_error_handling.py:383 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_error_recovery_scenario(self):` #### tests/test_enhanced_error_handling.py:398 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_reasoning_validation_integration(self):` #### tests/test_enhanced_error_handling.py:414 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def run_comprehensive_tests():` #### tests/test_enhanced_error_handling.py:31 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except ImportError as e:` #### tests/test_enhanced_error_handling.py:49 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except ImportError as e2:` #### tests/test_config.py:13 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_environment_detection(self):` #### tests/test_config.py:48 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_model_config(self):` #### tests/test_config.py:65 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_api_config_loading(self):` #### tests/test_config.py:86 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_performance_config(self):` #### tests/test_config.py:96 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_config_validation(self):` #### tests/test_config.py:115 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_get_model(self):` #### tests/test_config.py:131 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_environment_overrides(self):` #### tests/test_integration_fixes.py:19 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def test_config_imports():` #### tests/test_integration_fixes.py:38 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def test_llamaindex_fixes():` #### tests/test_integration_fixes.py:56 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def test_database_fixes():` #### tests/test_integration_fixes.py:79 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def test_integration_manager():` #### tests/test_integration_fixes.py:98 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def test_health_check():` #### tests/test_integration_fixes.py:116 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def test_config_cli():` #### tests/test_integration_fixes.py:139 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def main():` #### tests/test_integration_fixes.py:34 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### tests/test_integration_fixes.py:52 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### tests/test_integration_fixes.py:69 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### tests/test_integration_fixes.py:75 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### tests/test_integration_fixes.py:94 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### tests/test_integration_fixes.py:112 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### tests/test_integration_fixes.py:135 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### tests/test_integration_fixes.py:157 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### tests/test_integration_fixes.py:19 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def test_config_imports():` #### tests/test_integration_fixes.py:38 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def test_llamaindex_fixes():` #### tests/test_integration_fixes.py:56 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def test_database_fixes():` #### tests/test_integration_fixes.py:79 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def test_integration_manager():` #### tests/test_integration_fixes.py:98 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def test_health_check():` #### tests/test_integration_fixes.py:116 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def test_config_cli():` #### tests/test_integration_fixes.py:139 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def main():` #### scripts/setup_supabase.py:110 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def generate_env_template():` #### scripts/setup_supabase.py:136 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def main():` #### scripts/setup_supabase.py:20 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except ImportError as e:` #### scripts/setup_supabase.py:46 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### scripts/setup_supabase.py:73 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception:` #### scripts/setup_supabase.py:105 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### scripts/setup_supabase.py:200 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/integration_hub.py:47 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self, max_depth: int = 10, max_repeats: int = 3):` #### src/integration_hub.py:78 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def end_call(self):` #### src/integration_hub.py:83 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def reset(self):` #### src/integration_hub.py:95 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self, failure_threshold: int = 5, recovery_timeout: float = 60.0):` #### src/integration_hub.py:117 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def record_success(self, tool_name: str):` #### src/integration_hub.py:123 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def record_failure(self, tool_name: str):` #### src/integration_hub.py:144 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def share_result(self, tool_name: str, key: str, value: Any):` #### src/integration_hub.py:156 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def set_tool_output(self, tool_name: str, output: Any):` #### src/integration_hub.py:163 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self):` #### src/integration_hub.py:167 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def set_limit(self, tool_name: str, calls_per_minute: int, burst_size: int = None):` #### src/integration_hub.py:227 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self):` #### src/integration_hub.py:231 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def register_tool_requirements(self, tool_name: str, requirements: Dict[str, Any]):` #### src/integration_hub.py:278 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self):` #### src/integration_hub.py:303 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def acquire(self, resource_type: str, timeout: float = 30.0):` #### src/integration_hub.py:327 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def release(self, resource_type: str, resource):` #### src/integration_hub.py:353 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self):` #### src/integration_hub.py:658 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def _update_database_metrics(self, tool_name: str, success: bool, latency: float, error: str =...` #### src/integration_hub.py:744 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self):` #### src/integration_hub.py:765 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def track_tool_usage(self, session_id: str, tool_name: str, result: Dict[str, Any]):` #### src/integration_hub.py:789 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self, metric_service: Any = None, db_client: Any = None):` #### src/integration_hub.py:890 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def _update_error_metrics(self, tool_name: str, error_type: str, recovery_strategy: str):` #### src/integration_hub.py:929 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __new__(cls):` #### src/integration_hub.py:935 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def _initialize(self):` #### src/integration_hub.py:953 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def _setup_local_embeddings(self):` #### src/integration_hub.py:1000 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self):` #### src/integration_hub.py:1012 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def initialize(self):` #### src/integration_hub.py:1061 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def _initialize_new_components(self):` #### src/integration_hub.py:1083 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def _initialize_monitoring(self):` #### src/integration_hub.py:1105 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def _monitoring_loop(self, monitoring: 'MonitoringDashboard'):` #### src/integration_hub.py:1115 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def _initialize_tools(self):` #### src/integration_hub.py:1147 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def _initialize_database(self):` #### src/integration_hub.py:1160 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def cleanup_db():` #### src/integration_hub.py:1172 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def _initialize_knowledge_base(self):` #### src/integration_hub.py:1199 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def _initialize_tool_orchestrator(self):` #### src/integration_hub.py:1223 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def _initialize_session_manager(self):` #### src/integration_hub.py:1234 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def _initialize_error_handler(self):` #### src/integration_hub.py:1249 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def _initialize_langchain(self):` #### src/integration_hub.py:1259 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def _initialize_crewai(self):` #### src/integration_hub.py:1322 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def cleanup(self):` #### src/integration_hub.py:1349 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def initialize_integrations():` #### src/integration_hub.py:1353 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def cleanup_integrations():` #### src/integration_hub.py:1388 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self, embedding_manager: EmbeddingManager):` #### src/integration_hub.py:1392 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def index_tool(self, tool_name: str, description: str, examples: List[str]):` #### src/integration_hub.py:1427 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self):` #### src/integration_hub.py:1431 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def register_version(self, tool_name: str, version: str, schema: Dict[str, Any]):` #### src/integration_hub.py:1487 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def deprecate_version(self, tool_name: str, version: str):` #### src/integration_hub.py:1497 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self, components: Dict[str, Any]):` #### src/integration_hub.py:1508 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def collect_metrics(self):` #### src/integration_hub.py:1602 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def _check_alerts(self, metrics: Dict[str, Any]):` #### src/integration_hub.py:1644 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def clear_alerts(self, alert_type: str = None):` #### src/integration_hub.py:1654 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self, integration_hub: 'IntegrationHub'):` #### src/integration_hub.py:1686 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def _test_tool_registration(self):` #### src/integration_hub.py:1701 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def _test_tool_execution(self):` #### src/integration_hub.py:1713 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def _test_session_persistence(self):` #### src/integration_hub.py:1726 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def _test_error_handling(self):` #### src/integration_hub.py:1738 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def _test_fallback_mechanisms(self):` #### src/integration_hub.py:1747 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def _test_cross_tool_communication(self):` #### src/integration_hub.py:1759 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self, old_registry, unified_registry: UnifiedToolRegistry):` #### src/integration_hub.py:298 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/integration_hub.py:316 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except asyncio.TimeoutError:` #### src/integration_hub.py:323 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/integration_hub.py:334 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except asyncio.QueueFull:` #### src/integration_hub.py:532 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/integration_hub.py:587 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/integration_hub.py:628 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/integration_hub.py:674 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/integration_hub.py:913 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/integration_hub.py:947 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except ImportError:` #### src/integration_hub.py:961 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except ImportError:` #### src/integration_hub.py:976 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/integration_hub.py:1056 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/integration_hub.py:1079 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/integration_hub.py:1102 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/integration_hub.py:1111 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/integration_hub.py:1141 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except ImportError as e:` #### src/integration_hub.py:1168 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/integration_hub.py:1186 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except ImportError:` #### src/integration_hub.py:1192 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/integration_hub.py:1219 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/integration_hub.py:1230 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/integration_hub.py:1245 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/integration_hub.py:1255 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/integration_hub.py:1265 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/integration_hub.py:1335 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/integration_hub.py:1675 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/integration_hub.py:1779 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/integration_hub.py:1793 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/integration_hub.py:176 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def check_and_wait(self, tool_name: str) -> bool:` #### src/integration_hub.py:282 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def create_pool(self, resource_type: str, factory_func: Callable,` #### src/integration_hub.py:303 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def acquire(self, resource_type: str, timeout: float = 30.0):` #### src/integration_hub.py:327 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def release(self, resource_type: str, resource):` #### src/integration_hub.py:464 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def execute_with_fallback(self, tool_name: str, params: Dict[str, Any],` #### src/integration_hub.py:540 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def execute_with_compatibility_check(self, tool_name: str, params: Dict[str, Any],` #### src/integration_hub.py:553 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def execute_with_resource_pool(self, tool_name: str, params: Dict[str, Any],` #### src/integration_hub.py:578 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def _execute_tool(self, tool: BaseTool, params: Dict[str, Any]) -> Dict[str, Any]:` #### src/integration_hub.py:590 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def _try_fallback_tools(self, failed_tool: str, params: Dict[str, Any]) -> Optional[Dict[str, ...` #### src/integration_hub.py:658 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def _update_database_metrics(self, tool_name: str, success: bool, latency: float, error: str =...` #### src/integration_hub.py:765 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def track_tool_usage(self, session_id: str, tool_name: str, result: Dict[str, Any]):` #### src/integration_hub.py:795 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def handle_error(self, context: Dict[str, Any]) -> Dict[str, Any]:` #### src/integration_hub.py:890 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def _update_error_metrics(self, tool_name: str, error_type: str, recovery_strategy: str):` #### src/integration_hub.py:1012 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def initialize(self):` #### src/integration_hub.py:1061 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def _initialize_new_components(self):` #### src/integration_hub.py:1083 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def _initialize_monitoring(self):` #### src/integration_hub.py:1105 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def _monitoring_loop(self, monitoring: 'MonitoringDashboard'):` #### src/integration_hub.py:1115 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def _initialize_tools(self):` #### src/integration_hub.py:1147 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def _initialize_database(self):` #### src/integration_hub.py:1160 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def cleanup_db():` #### src/integration_hub.py:1172 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def _initialize_knowledge_base(self):` #### src/integration_hub.py:1199 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def _initialize_tool_orchestrator(self):` #### src/integration_hub.py:1223 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def _initialize_session_manager(self):` #### src/integration_hub.py:1234 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def _initialize_error_handler(self):` #### src/integration_hub.py:1249 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def _initialize_langchain(self):` #### src/integration_hub.py:1259 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def _initialize_crewai(self):` #### src/integration_hub.py:1322 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def cleanup(self):` #### src/integration_hub.py:1349 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def initialize_integrations():` #### src/integration_hub.py:1353 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def cleanup_integrations():` #### src/integration_hub.py:1508 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def collect_metrics(self):` #### src/integration_hub.py:1526 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def _collect_tool_metrics(self) -> Dict[str, Any]:` #### src/integration_hub.py:1549 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def _collect_session_metrics(self) -> Dict[str, Any]:` #### src/integration_hub.py:1566 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def _collect_error_metrics(self) -> Dict[str, Any]:` #### src/integration_hub.py:1580 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def _collect_performance_metrics(self) -> Dict[str, Any]:` #### src/integration_hub.py:1589 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def _collect_resource_metrics(self) -> Dict[str, Any]:` #### src/integration_hub.py:1602 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def _check_alerts(self, metrics: Dict[str, Any]):` #### src/integration_hub.py:1658 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def run_integration_tests(self) -> Dict[str, Any]:` #### src/integration_hub.py:1686 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def _test_tool_registration(self):` #### src/integration_hub.py:1701 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def _test_tool_execution(self):` #### src/integration_hub.py:1713 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def _test_session_persistence(self):` #### src/integration_hub.py:1726 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def _test_error_handling(self):` #### src/integration_hub.py:1738 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def _test_fallback_mechanisms(self):` #### src/integration_hub.py:1747 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def _test_cross_tool_communication(self):` #### src/integration_hub.py:350 - **Issue:** Tools without telemetry - **Fix:** Wrap with OpenTelemetry spans - **Code:** `class UnifiedToolRegistry:` #### src/integration_hub.py:1385 - **Issue:** Tools without telemetry - **Fix:** Wrap with OpenTelemetry spans - **Code:** `class SemanticToolDiscovery:` #### src/crew_enhanced.py:15 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self, tools: List[BaseTool]):` #### src/crew_enhanced.py:19 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def _get_model(self, model_type: str):` #### src/crew_enhanced.py:80 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def _create_dummy_tool(self, name: str):` #### src/crew_enhanced.py:174 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self, orchestrator: GAIACrewOrchestrator):` #### src/crew_enhanced.py:248 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self):` #### src/crew_enhanced.py:255 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self):` #### src/crew_enhanced.py:263 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self, storage_path: str = "./knowledge_cache"):` #### src/crew_enhanced.py:270 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self, index):` #### src/crew_enhanced.py:213 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/crew_enhanced.py:241 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/crew_enhanced.py:82 - **Issue:** Tool decorators without metrics wrapper - **Fix:** Wrap with OpenTelemetry spans - **Code:** `@tool` #### tests/test_tools.py:1 - **Issue:** Missing OpenTelemetry instrumentation - **Fix:** Add OpenTelemetry spans for distributed tracing - **Code:** `from opentelemetry import trace tracer = trace.get_tracer(__name__)` #### tests/test_tools.py:27 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_web_researcher_success(self, mock_wikipedia):` #### tests/test_tools.py:40 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_web_researcher_error(self, mock_wikipedia):` #### tests/test_tools.py:56 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_semantic_search_success(self, mock_engine):` #### tests/test_tools.py:76 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_semantic_search_invalid_params(self):` #### tests/test_tools.py:85 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_python_interpreter_simple(self):` #### tests/test_tools.py:92 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_python_interpreter_imports(self):` #### tests/test_tools.py:99 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_python_interpreter_error(self):` #### tests/test_tools.py:106 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_python_interpreter_timeout(self):` #### tests/test_tools.py:120 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_tavily_search_success(self, mock_tavily, mock_getenv):` #### tests/test_tools.py:136 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_tavily_search_no_api_key(self, mock_getenv):` #### tests/test_tools.py:150 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_file_reader_text_file(self, mock_open):` #### tests/test_tools.py:161 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_file_reader_with_lines(self, mock_open):` #### tests/test_tools.py:182 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_file_reader_nonexistent_file(self):` #### tests/test_tools.py:190 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_file_reader_pdf(self, mock_open, mock_pypdf):` #### tests/test_tools.py:201 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_enhanced_tools_discoverable():` #### tests/test_tools.py:209 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_production_tools_discoverable():` #### tests/test_tools.py:217 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_interactive_tools_discoverable():` #### tests/test_tools.py:225 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test_introspection_lists_tools():` #### tests/test_tools.py:52 - **Issue:** Tools without telemetry - **Fix:** Wrap with OpenTelemetry spans - **Code:** `class TestSemanticSearchTool:` #### src/advanced_hybrid_architecture.py:84 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self, name: str):` #### src/advanced_hybrid_architecture.py:93 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def add_state(self, state: AgentState):` #### src/advanced_hybrid_architecture.py:97 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def add_transition(self, transition: Transition):` #### src/advanced_hybrid_architecture.py:101 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def set_initial_state(self, state_name: str):` #### src/advanced_hybrid_architecture.py:125 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def execute_transition(self, transition: Transition):` #### src/advanced_hybrid_architecture.py:137 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def update_learning(self, transition: Transition):` #### src/advanced_hybrid_architecture.py:169 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self, name: str):` #### src/advanced_hybrid_architecture.py:174 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def add_child_fsm(self, state_name: str, child_fsm: ProbabilisticFSM):` #### src/advanced_hybrid_architecture.py:203 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self, name: str, tools: List[BaseTool], max_steps: int = 10):` #### src/advanced_hybrid_architecture.py:285 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def discover_tool(self, tool: BaseTool):` #### src/advanced_hybrid_architecture.py:298 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self, name: str):` #### src/advanced_hybrid_architecture.py:383 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self):` #### src/advanced_hybrid_architecture.py:411 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self, name: str, tools: List[BaseTool] = None):` #### src/advanced_hybrid_architecture.py:585 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def update_performance(self, mode: str, success: bool, execution_time: float):` #### src/advanced_hybrid_architecture.py:603 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self):` #### src/advanced_hybrid_architecture.py:607 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def register_agent(self, agent: HybridAgent, capabilities: List[str]):` #### src/advanced_hybrid_architecture.py:621 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self):` #### src/advanced_hybrid_architecture.py:627 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def add_agent(self, agent: HybridAgent, capabilities: List[str]):` #### src/advanced_hybrid_architecture.py:682 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self):` #### src/advanced_hybrid_architecture.py:686 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def store(self, key: str, value: Any):` #### src/advanced_hybrid_architecture.py:711 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self):` #### src/advanced_hybrid_architecture.py:731 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def analyze_patterns(self):` #### src/advanced_hybrid_architecture.py:778 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self):` #### src/advanced_hybrid_architecture.py:800 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def precompute_task(self, agent: HybridAgent, task: Dict[str, Any]):` #### src/advanced_hybrid_architecture.py:808 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self, max_size: int = 1000):` #### src/advanced_hybrid_architecture.py:821 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def store(self, task: Dict[str, Any], result: Any):` #### src/advanced_hybrid_architecture.py:843 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self):` #### src/advanced_hybrid_architecture.py:846 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def record_sequence(self, tasks: List[Dict[str, Any]]):` #### src/advanced_hybrid_architecture.py:872 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self):` #### src/advanced_hybrid_architecture.py:875 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def record_usage(self, resource: str, amount: float):` #### src/advanced_hybrid_architecture.py:899 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self):` #### src/advanced_hybrid_architecture.py:954 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def main():` #### src/advanced_hybrid_architecture.py:237 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/advanced_hybrid_architecture.py:471 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/advanced_hybrid_architecture.py:240 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def parallel_reasoning(self, query: str, context: Dict[str, Any],` #### src/advanced_hybrid_architecture.py:251 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def reasoning_path(self, query: str, context: Dict[str, Any],` #### src/advanced_hybrid_architecture.py:450 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def execute_task(self, task: Dict[str, Any]) -> Any:` #### src/advanced_hybrid_architecture.py:480 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def execute_fsm_task(self, task: Dict[str, Any]) -> Any:` #### src/advanced_hybrid_architecture.py:496 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def execute_react_task(self, task: Dict[str, Any]) -> Any:` #### src/advanced_hybrid_architecture.py:515 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def execute_cot_task(self, task: Dict[str, Any]) -> Any:` #### src/advanced_hybrid_architecture.py:524 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def execute_fsm_react_task(self, task: Dict[str, Any]) -> Any:` #### src/advanced_hybrid_architecture.py:631 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def distribute_task(self, task: Dict[str, Any]) -> Any:` #### src/advanced_hybrid_architecture.py:655 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def collaborate_on_task(self, complex_task: Dict[str, Any]) -> Any:` #### src/advanced_hybrid_architecture.py:800 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def precompute_task(self, agent: HybridAgent, task: Dict[str, Any]):` #### src/advanced_hybrid_architecture.py:911 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def execute_complex_task(self, task: Dict[str, Any]) -> Any:` #### src/advanced_hybrid_architecture.py:954 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def main():` #### src/tools_production.py:1 - **Issue:** Missing OpenTelemetry instrumentation - **Fix:** Add OpenTelemetry spans for distributed tracing - **Code:** `from opentelemetry import trace tracer = trace.get_tracer(__name__)` #### src/tools_production.py:18 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def get_whisper_model():` #### src/tools_production.py:26 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except ImportError:` #### src/tools_production.py:99 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/tools_production.py:104 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except ImportError:` #### src/tools_production.py:109 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/tools_production.py:132 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except ImportError:` #### src/tools_production.py:134 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except ValueError as e:` #### src/tools_production.py:182 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/tools_production.py:185 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/tools_production.py:222 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/tools_production.py:245 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/tools_production.py:271 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except ImportError:` #### src/tools_production.py:274 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/tools_production.py:297 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except ImportError:` #### src/tools_production.py:300 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/tools_production.py:323 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/tools_production.py:368 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/tools_production.py:31 - **Issue:** Tool decorators without metrics wrapper - **Fix:** Wrap with OpenTelemetry spans - **Code:** `@tool` #### src/tools_production.py:113 - **Issue:** Tool decorators without metrics wrapper - **Fix:** Wrap with OpenTelemetry spans - **Code:** `@tool` #### src/tools_production.py:189 - **Issue:** Tool decorators without metrics wrapper - **Fix:** Wrap with OpenTelemetry spans - **Code:** `@tool` #### src/tools_production.py:226 - **Issue:** Tool decorators without metrics wrapper - **Fix:** Wrap with OpenTelemetry spans - **Code:** `@tool` #### src/tools_production.py:249 - **Issue:** Tool decorators without metrics wrapper - **Fix:** Wrap with OpenTelemetry spans - **Code:** `@tool` #### src/tools_production.py:278 - **Issue:** Tool decorators without metrics wrapper - **Fix:** Wrap with OpenTelemetry spans - **Code:** `@tool` #### src/tools_production.py:304 - **Issue:** Tool decorators without metrics wrapper - **Fix:** Wrap with OpenTelemetry spans - **Code:** `@tool` #### src/tools_production.py:327 - **Issue:** Tool decorators without metrics wrapper - **Fix:** Wrap with OpenTelemetry spans - **Code:** `@tool` #### src/crew_workflow.py:7 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except ImportError:` #### src/crew_workflow.py:83 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/integration_manager.py:27 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self):` #### src/integration_manager.py:32 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def initialize_all(self):` #### src/integration_manager.py:158 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def shutdown(self):` #### src/integration_manager.py:14 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except ImportError:` #### src/integration_manager.py:17 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except ImportError:` #### src/integration_manager.py:73 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except ImportError as e:` #### src/integration_manager.py:86 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except ImportError as e:` #### src/integration_manager.py:96 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/integration_manager.py:116 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except ImportError as e:` #### src/integration_manager.py:132 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except ImportError as e:` #### src/integration_manager.py:169 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/integration_manager.py:32 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def initialize_all(self):` #### src/integration_manager.py:158 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def shutdown(self):` #### src/integration_manager.py:180 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def get_integration_manager() -> IntegrationManager:` #### src/next_gen_integration.py:102 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def run(self, inputs: dict):` #### src/next_gen_integration.py:159 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def _apply_operational_parameters(self, params: OperationalParameters):` #### src/next_gen_integration.py:176 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def _setup_interactive_callbacks(self):` #### src/next_gen_integration.py:182 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def _track_tool_performance(self, result: dict):` #### src/next_gen_integration.py:210 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def _learn_from_clarifications(self, original_query: str, result: dict):` #### src/next_gen_integration.py:397 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def setup_interactive_ui_callbacks(agent: NextGenFSMAgent, ui_callbacks: dict):` #### src/database.py:33 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def get_vector_store():` #### src/database.py:61 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self, client: Client):` #### src/database.py:65 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def emit(self, record):` #### src/database.py:84 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def log_interaction(self, session_id: str, user_message: str, assistant_response: str):` #### src/database.py:99 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def create_tables():` #### src/database.py:52 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/database.py:80 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/database.py:96 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/database.py:112 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/database.py:129 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/advanced_agent_fsm.py:51 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def circuit(*args, **kwargs):` #### src/advanced_agent_fsm.py:52 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def decorator(func):` #### src/advanced_agent_fsm.py:109 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def filter(self, record):` #### src/advanced_agent_fsm.py:119 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def correlation_context(correlation_id: str):` #### src/advanced_agent_fsm.py:179 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __post_init__(self):` #### src/advanced_agent_fsm.py:317 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __post_init__(self):` #### src/advanced_agent_fsm.py:500 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self, max_requests_per_minute=60, burst_allowance=10):` #### src/advanced_agent_fsm.py:505 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def wait_if_needed(self):` #### src/advanced_agent_fsm.py:525 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self, api_key: str, base_url: str = "https://api.groq.com/openai/v1"):` #### src/advanced_agent_fsm.py:553 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def _add_timeout(self, original_request):` #### src/advanced_agent_fsm.py:555 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def request_with_timeout(*args, **kwargs):` #### src/advanced_agent_fsm.py:628 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self, api_client: ResilientAPIClient):` #### src/advanced_agent_fsm.py:717 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __post_init__(self):` #### src/advanced_agent_fsm.py:873 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self):` #### src/advanced_agent_fsm.py:877 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def register_tool(self, tool_doc: ToolDocumentation):` #### src/advanced_agent_fsm.py:910 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self):` #### src/advanced_agent_fsm.py:913 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def register_tool(self, announcement: ToolAnnouncement):` #### src/advanced_agent_fsm.py:930 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self):` #### src/advanced_agent_fsm.py:946 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def track_execution(self, operation: str, success: bool, duration: float, error: str = None):` #### src/advanced_agent_fsm.py:1046 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def reset_metrics(self):` #### src/advanced_agent_fsm.py:1059 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self):` #### src/advanced_agent_fsm.py:1188 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self, api_client: ResilientAPIClient = None):` #### src/advanced_agent_fsm.py:48 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except ImportError:` #### src/advanced_agent_fsm.py:60 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except ImportError:` #### src/advanced_agent_fsm.py:610 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except requests.exceptions.HTTPError as http_err:` #### src/advanced_agent_fsm.py:614 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except requests.exceptions.ConnectionError as conn_err:` #### src/advanced_agent_fsm.py:617 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except requests.exceptions.Timeout as timeout_err:` #### src/advanced_agent_fsm.py:620 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except requests.exceptions.RequestException as req_err:` #### src/advanced_agent_fsm.py:694 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except ValidationError as e:` #### src/advanced_agent_fsm.py:698 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/advanced_agent_fsm.py:761 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except ImportError:` #### src/advanced_agent_fsm.py:778 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except ImportError:` #### src/advanced_agent_fsm.py:807 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except ImportError:` #### src/advanced_agent_fsm.py:841 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/advanced_agent_fsm.py:1214 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/advanced_agent_fsm.py:1475 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/advanced_agent_fsm.py:908 - **Issue:** Tools without telemetry - **Fix:** Wrap with OpenTelemetry spans - **Code:** `class MCPToolRegistry:` #### src/embedding_manager.py:19 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __new__(cls):` #### src/embedding_manager.py:25 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def _initialize(self):` #### src/embedding_manager.py:43 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def _setup_local_embeddings(self):` #### src/embedding_manager.py:37 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except ImportError:` #### src/embedding_manager.py:51 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except ImportError:` #### src/embedding_manager.py:69 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/embedding_manager.py:76 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/embedding_manager.py:92 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/embedding_manager.py:99 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/knowledge_utils.py:18 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self, cache_dir: str = "./knowledge_cache"):` #### src/knowledge_utils.py:26 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def _load_local_docs(self):` #### src/knowledge_utils.py:37 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def _build_index(self):` #### src/knowledge_utils.py:34 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/knowledge_utils.py:15 - **Issue:** Tools without telemetry - **Fix:** Wrap with OpenTelemetry spans - **Code:** `class LocalKnowledgeTool:` #### src/integration_hub_examples.py:13 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def demonstrate_tool_compatibility_checker():` #### src/integration_hub_examples.py:59 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def demonstrate_semantic_tool_discovery():` #### src/integration_hub_examples.py:102 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def demonstrate_resource_pool_manager():` #### src/integration_hub_examples.py:114 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def create_db_connection():` #### src/integration_hub_examples.py:143 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def demonstrate_tool_version_manager():` #### src/integration_hub_examples.py:195 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def demonstrate_rate_limit_manager():` #### src/integration_hub_examples.py:213 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def simulate_tool_call(tool_name: str, call_number: int):` #### src/integration_hub_examples.py:232 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def demonstrate_monitoring_dashboard():` #### src/integration_hub_examples.py:265 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def demonstrate_integration_test_framework():` #### src/integration_hub_examples.py:289 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def demonstrate_migration_helper():` #### src/integration_hub_examples.py:297 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self):` #### src/integration_hub_examples.py:321 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def demonstrate_advanced_orchestrator_features():` #### src/integration_hub_examples.py:342 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def main():` #### src/integration_hub_examples.py:366 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/integration_hub_examples.py:13 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def demonstrate_tool_compatibility_checker():` #### src/integration_hub_examples.py:59 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def demonstrate_semantic_tool_discovery():` #### src/integration_hub_examples.py:102 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def demonstrate_resource_pool_manager():` #### src/integration_hub_examples.py:114 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def create_db_connection():` #### src/integration_hub_examples.py:143 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def demonstrate_tool_version_manager():` #### src/integration_hub_examples.py:195 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def demonstrate_rate_limit_manager():` #### src/integration_hub_examples.py:213 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def simulate_tool_call(tool_name: str, call_number: int):` #### src/integration_hub_examples.py:232 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def demonstrate_monitoring_dashboard():` #### src/integration_hub_examples.py:265 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def demonstrate_integration_test_framework():` #### src/integration_hub_examples.py:289 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def demonstrate_migration_helper():` #### src/integration_hub_examples.py:321 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def demonstrate_advanced_orchestrator_features():` #### src/integration_hub_examples.py:342 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def main():` #### src/config_cli.py:24 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def cli():` #### src/config_cli.py:29 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def validate():` #### src/config_cli.py:40 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def show():` #### src/config_cli.py:48 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def save(file_path):` #### src/config_cli.py:57 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def load(file_path):` #### src/config_cli.py:65 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def env():` #### src/config_cli.py:99 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def update(section, key, value):` #### src/config_cli.py:112 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def test():` #### src/config_cli.py:15 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except ImportError:` #### src/config_cli.py:18 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except ImportError:` #### src/knowledge_ingestion.py:25 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self):` #### src/knowledge_ingestion.py:198 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self, db_client=None, cache=None):` #### src/knowledge_ingestion.py:204 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def update_knowledge_lifecycle(self, doc_id: str, doc_metadata: Dict[str, Any]):` #### src/knowledge_ingestion.py:223 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def trigger_reindex(self, force: bool = False):` #### src/knowledge_ingestion.py:245 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def invalidate_cache(self, pattern: str = "knowledge_base:*"):` #### src/knowledge_ingestion.py:274 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def _perform_reindex(self):` #### src/knowledge_ingestion.py:368 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def start(self):` #### src/knowledge_ingestion.py:385 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def stop(self):` #### src/knowledge_ingestion.py:390 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def _process_directory(self, directory: str):` #### src/knowledge_ingestion.py:405 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def _poll_urls(self):` #### src/knowledge_ingestion.py:419 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def add_watch_directory(self, directory: str):` #### src/knowledge_ingestion.py:424 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def add_poll_url(self, url: str):` #### src/knowledge_ingestion.py:429 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def run_ingestion_service(config: Dict[str, Any]):` #### src/knowledge_ingestion.py:93 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/knowledge_ingestion.py:121 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/knowledge_ingestion.py:191 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/knowledge_ingestion.py:220 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/knowledge_ingestion.py:242 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/knowledge_ingestion.py:254 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/knowledge_ingestion.py:270 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/knowledge_ingestion.py:331 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/knowledge_ingestion.py:364 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/knowledge_ingestion.py:402 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/knowledge_ingestion.py:415 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/knowledge_ingestion.py:451 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/knowledge_ingestion.py:204 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def update_knowledge_lifecycle(self, doc_id: str, doc_metadata: Dict[str, Any]):` #### src/knowledge_ingestion.py:223 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def trigger_reindex(self, force: bool = False):` #### src/knowledge_ingestion.py:245 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def invalidate_cache(self, pattern: str = "knowledge_base:*"):` #### src/knowledge_ingestion.py:257 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def _get_recent_document_count(self) -> int:` #### src/knowledge_ingestion.py:274 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def _perform_reindex(self):` #### src/knowledge_ingestion.py:297 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def ingest_document(self, doc_path: str) -> str:` #### src/knowledge_ingestion.py:335 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def ingest_url(self, url: str) -> str:` #### src/knowledge_ingestion.py:405 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def _poll_urls(self):` #### src/database_enhanced.py:39 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self, url: str, key: str, pool_size: int = 10):` #### src/database_enhanced.py:47 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def initialize(self):` #### src/database_enhanced.py:70 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def get_client(self):` #### src/database_enhanced.py:81 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def close(self):` #### src/database_enhanced.py:90 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self, pool: SupabaseConnectionPool):` #### src/database_enhanced.py:147 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self, pool: SupabaseConnectionPool):` #### src/database_enhanced.py:245 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self, client: Client):` #### src/database_enhanced.py:249 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def subscribe_to_tool_metrics(self, callback):` #### src/database_enhanced.py:258 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def subscribe_to_knowledge_updates(self, callback):` #### src/database_enhanced.py:267 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def unsubscribe_all(self):` #### src/database_enhanced.py:277 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def initialize_supabase_enhanced(url: Optional[str] = None, key: Optional[str] = None):` #### src/database_enhanced.py:15 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except ImportError:` #### src/database_enhanced.py:18 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except ImportError:` #### src/database_enhanced.py:140 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/database_enhanced.py:198 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/database_enhanced.py:238 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/database_enhanced.py:255 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/database_enhanced.py:264 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/database_enhanced.py:273 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/database_enhanced.py:313 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/database_enhanced.py:47 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def initialize(self):` #### src/database_enhanced.py:70 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def get_client(self):` #### src/database_enhanced.py:81 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def close(self):` #### src/database_enhanced.py:107 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def _get_cached_embedding(self, text: str) -> np.ndarray:` #### src/database_enhanced.py:112 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def batch_insert_embeddings(` #### src/database_enhanced.py:152 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def get_embedding(self, text: str) -> np.ndarray:` #### src/database_enhanced.py:158 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def hybrid_search(` #### src/database_enhanced.py:203 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def _rerank_results(self, query: str, results: List[SearchResult]) -> List[SearchResult]:` #### src/database_enhanced.py:215 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def _fallback_search(self, client, query_embedding: np.ndarray, top_k: int) -> List[SearchResu...` #### src/database_enhanced.py:249 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def subscribe_to_tool_metrics(self, callback):` #### src/database_enhanced.py:258 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def subscribe_to_knowledge_updates(self, callback):` #### src/database_enhanced.py:267 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def unsubscribe_all(self):` #### src/database_enhanced.py:277 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def initialize_supabase_enhanced(url: Optional[str] = None, key: Optional[str] = None):` #### src/health_check.py:15 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except ImportError:` #### src/health_check.py:18 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except ImportError:` #### src/health_check.py:51 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/health_check.py:75 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/health_check.py:88 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except ImportError:` #### src/health_check.py:93 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/health_check.py:106 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except ImportError:` #### src/health_check.py:111 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/health_check.py:181 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/health_check.py:225 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/health_check.py:257 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/health_check.py:275 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except ImportError:` #### src/health_check.py:280 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/health_check.py:298 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except ImportError:` #### src/health_check.py:303 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/health_check.py:25 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def check_integrations_health() -> Dict[str, Any]:` #### src/health_check.py:163 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def check_specific_integration(integration_name: str) -> Dict[str, Any]:` #### src/health_check.py:187 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def _check_supabase_health() -> Dict[str, Any]:` #### src/health_check.py:231 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def _check_llamaindex_health() -> Dict[str, Any]:` #### src/health_check.py:263 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def _check_langchain_health() -> Dict[str, Any]:` #### src/health_check.py:286 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def _check_crewai_health() -> Dict[str, Any]:` #### src/tools_introspection.py:1 - **Issue:** Missing OpenTelemetry instrumentation - **Fix:** Add OpenTelemetry spans for distributed tracing - **Code:** `from opentelemetry import trace tracer = trace.get_tracer(__name__)` #### src/tools_introspection.py:36 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self, tool_registry: Optional[Dict[str, BaseTool]] = None):` #### src/tools_introspection.py:185 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def clear_error_history(self):` #### src/tools_introspection.py:194 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def register_tools(tools: List[BaseTool]):` #### src/tools_introspection.py:301 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/llamaindex_enhanced.py:61 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self, vector_store: Optional[Any] = None):` #### src/llamaindex_enhanced.py:68 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def _setup_service_context(self):` #### src/llamaindex_enhanced.py:175 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self):` #### src/llamaindex_enhanced.py:181 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def _setup_loaders(self):` #### src/llamaindex_enhanced.py:235 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self, storage_path: str = "./knowledge_cache"):` #### src/llamaindex_enhanced.py:241 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def _load_existing_index(self):` #### src/llamaindex_enhanced.py:305 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self, index: VectorStoreIndex):` #### src/llamaindex_enhanced.py:310 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def _setup_query_engine(self):` #### src/llamaindex_enhanced.py:34 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except ImportError:` #### src/llamaindex_enhanced.py:45 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except ImportError:` #### src/llamaindex_enhanced.py:48 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except ImportError:` #### src/llamaindex_enhanced.py:190 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/llamaindex_enhanced.py:218 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/llamaindex_enhanced.py:227 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/llamaindex_enhanced.py:252 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/llamaindex_enhanced.py:280 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/llamaindex_enhanced.py:299 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/llamaindex_enhanced.py:338 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/llamaindex_enhanced.py:355 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/llamaindex_enhanced.py:408 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/tools_interactive.py:1 - **Issue:** Missing OpenTelemetry instrumentation - **Fix:** Add OpenTelemetry spans for distributed tracing - **Code:** `from opentelemetry import trace tracer = trace.get_tracer(__name__)` #### src/tools_interactive.py:18 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self):` #### src/tools_interactive.py:23 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def set_clarification_callback(self, callback: Callable):` #### src/tools_interactive.py:27 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def add_pending_clarification(self, question_id: str, question: str, context: Dict):` #### src/tools_interactive.py:39 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def set_user_response(self, question_id: str, response: str):` #### src/tools_interactive.py:207 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def set_clarification_callback(callback: Callable):` #### src/tools_interactive.py:227 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def clear_pending_clarifications():` #### src/tools_interactive.py:103 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/tools_interactive.py:138 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/tools_interactive.py:172 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/multi_agent_system.py:41 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self, tools: List[BaseTool], model_config: Dict[str, Any] = None):` #### src/multi_agent_system.py:304 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def _update_tool_metrics(self):` #### src/multi_agent_system.py:58 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except ImportError:` #### src/multi_agent_system.py:75 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except ImportError:` #### src/multi_agent_system.py:181 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/multi_agent_system.py:298 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/multi_agent_system.py:314 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/langchain_enhanced.py:24 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self):` #### src/langchain_enhanced.py:28 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def on_llm_start(self, serialized: Dict[str, Any], prompts: List[str], **kwargs):` #### src/langchain_enhanced.py:33 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def on_llm_end(self, response, **kwargs):` #### src/langchain_enhanced.py:39 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def on_llm_error(self, error: str, **kwargs):` #### src/langchain_enhanced.py:46 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self):` #### src/langchain_enhanced.py:50 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def on_llm_error(self, error: str, **kwargs):` #### src/langchain_enhanced.py:67 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self, tools: List[BaseTool]):` #### src/langchain_enhanced.py:155 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self, llm, tools: List[BaseTool]):` #### src/langchain_enhanced.py:193 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def create_optimized_chain(self):` #### src/langchain_enhanced.py:235 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def initialize_enhanced_agent(llm, tools: List[BaseTool]):` #### src/langchain_enhanced.py:114 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/langchain_enhanced.py:130 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/langchain_enhanced.py:146 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/langchain_enhanced.py:221 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/langchain_enhanced.py:86 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def execute_parallel(` #### src/langchain_enhanced.py:120 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def _execute_single(self, tool_call: ToolCall) -> Any:` #### src/langchain_enhanced.py:206 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def run(self, inputs: Dict[str, Any]) -> Dict[str, Any]:` #### src/langchain_enhanced.py:64 - **Issue:** Tools without telemetry - **Fix:** Wrap with OpenTelemetry spans - **Code:** `class ParallelToolExecutor:` #### src/tools_enhanced.py:1 - **Issue:** Missing OpenTelemetry instrumentation - **Fix:** Add OpenTelemetry spans for distributed tracing - **Code:** `from opentelemetry import trace tracer = trace.get_tracer(__name__)` #### src/tools_enhanced.py:23 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self, *_, **__): pass` #### src/tools_enhanced.py:24 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def run(self, query: str):` #### src/tools_enhanced.py:45 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self, *_, **__): pass` #### src/tools_enhanced.py:46 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def invoke(self, prompt: str):` #### src/tools_enhanced.py:514 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def get_enhanced_tools():` #### src/tools_enhanced.py:20 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except ImportError:` #### src/tools_enhanced.py:31 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except ImportError:` #### src/tools_enhanced.py:41 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except ImportError:` #### src/tools_enhanced.py:74 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except ImportError as e:` #### src/tools_enhanced.py:154 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/tools_enhanced.py:197 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/tools_enhanced.py:262 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/tools_enhanced.py:336 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/tools_enhanced.py:376 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/tools_enhanced.py:385 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/tools_enhanced.py:395 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/tools_enhanced.py:408 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/tools_enhanced.py:415 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/tools_enhanced.py:422 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/tools_enhanced.py:429 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/tools_enhanced.py:437 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/tools_enhanced.py:508 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/tools_enhanced.py:523 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except ImportError:` #### src/tools_enhanced.py:529 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except ImportError:` #### src/tools_enhanced.py:537 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except ImportError:` #### src/tools_enhanced.py:32 - **Issue:** Tool decorators without metrics wrapper - **Fix:** Wrap with OpenTelemetry spans - **Code:** `@tool` #### src/tools_enhanced.py:112 - **Issue:** Tool decorators without metrics wrapper - **Fix:** Wrap with OpenTelemetry spans - **Code:** `@tool` #### src/tools_enhanced.py:158 - **Issue:** Tool decorators without metrics wrapper - **Fix:** Wrap with OpenTelemetry spans - **Code:** `@tool` #### src/tools_enhanced.py:201 - **Issue:** Tool decorators without metrics wrapper - **Fix:** Wrap with OpenTelemetry spans - **Code:** `@tool` #### src/tools_enhanced.py:266 - **Issue:** Tool decorators without metrics wrapper - **Fix:** Wrap with OpenTelemetry spans - **Code:** `@tool` #### src/tools_enhanced.py:445 - **Issue:** Tool decorators without metrics wrapper - **Fix:** Wrap with OpenTelemetry spans - **Code:** `@tool` #### src/main.py:34 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self):` #### src/main.py:156 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def main():` #### src/main.py:63 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/main.py:176 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except KeyboardInterrupt:` #### src/main.py:41 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def initialize(self) -> None:` #### src/main.py:67 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def _initialize_configuration(self) -> None:` #### src/main.py:79 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def _initialize_logging(self) -> None:` #### src/main.py:87 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def _initialize_services(self) -> None:` #### src/main.py:107 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def _initialize_interfaces(self) -> None:` #### src/main.py:123 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def run_web(self) -> None:` #### src/main.py:131 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def run_cli(self) -> None:` #### src/main.py:139 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def shutdown(self) -> None:` #### src/main.py:156 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def main():` #### src/tools/__init__.py:1 - **Issue:** Missing OpenTelemetry instrumentation - **Fix:** Add OpenTelemetry spans for distributed tracing - **Code:** `from opentelemetry import trace tracer = trace.get_tracer(__name__)` #### src/tools/__init__.py:21 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except ImportError as e:` #### src/tools/__init__.py:39 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except ImportError:` #### src/tools/__init__.py:52 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except ImportError:` #### src/tools/__init__.py:64 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except ImportError:` #### src/tools/__init__.py:75 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except ImportError:` #### src/tools/file_reader.py:1 - **Issue:** Missing OpenTelemetry instrumentation - **Fix:** Add OpenTelemetry spans for distributed tracing - **Code:** `from opentelemetry import trace tracer = trace.get_tracer(__name__)` #### src/tools/file_reader.py:37 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/tools/file_reader.py:15 - **Issue:** Tool decorators without metrics wrapper - **Fix:** Wrap with OpenTelemetry spans - **Code:** `@tool` #### src/tools/semantic_search_tool.py:1 - **Issue:** Missing OpenTelemetry instrumentation - **Fix:** Add OpenTelemetry spans for distributed tracing - **Code:** `from opentelemetry import trace tracer = trace.get_tracer(__name__)` #### src/tools/semantic_search_tool.py:19 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except ImportError:` #### src/tools/semantic_search_tool.py:79 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/tools/semantic_search_tool.py:29 - **Issue:** Tool decorators without metrics wrapper - **Fix:** Wrap with OpenTelemetry spans - **Code:** `@tool` #### src/tools/tavily_search.py:1 - **Issue:** Missing OpenTelemetry instrumentation - **Fix:** Add OpenTelemetry spans for distributed tracing - **Code:** `from opentelemetry import trace tracer = trace.get_tracer(__name__)` #### src/tools/tavily_search.py:35 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/tools/tavily_search.py:61 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/tools/tavily_search.py:67 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/tools/tavily_search.py:15 - **Issue:** Tool decorators without metrics wrapper - **Fix:** Wrap with OpenTelemetry spans - **Code:** `@tool` #### src/tools/tavily_search.py:38 - **Issue:** Tool decorators without metrics wrapper - **Fix:** Wrap with OpenTelemetry spans - **Code:** `@tool` #### src/tools/base_tool.py:1 - **Issue:** Missing OpenTelemetry instrumentation - **Fix:** Add OpenTelemetry spans for distributed tracing - **Code:** `from opentelemetry import trace tracer = trace.get_tracer(__name__)` #### src/tools/base_tool.py:22 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self, *_, **__):` #### src/tools/base_tool.py:24 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def run(self, query: str):` #### src/tools/base_tool.py:132 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def _exponential_backoff(func, max_retries: int = 4):` #### src/tools/base_tool.py:486 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def _call():` #### src/tools/base_tool.py:541 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self, *args, **kwargs):` #### src/tools/base_tool.py:544 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def search(self, *args, **kwargs):` #### src/tools/base_tool.py:19 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except ImportError:` #### src/tools/base_tool.py:39 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except ImportError:` #### src/tools/base_tool.py:52 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except ImportError:` #### src/tools/base_tool.py:79 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/tools/base_tool.py:84 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except ImportError as e:` #### src/tools/base_tool.py:99 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except ImportError as e:` #### src/tools/base_tool.py:109 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except ImportError as e:` #### src/tools/base_tool.py:119 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except ImportError as e:` #### src/tools/base_tool.py:137 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/tools/base_tool.py:178 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except FileNotFoundError:` #### src/tools/base_tool.py:180 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/tools/base_tool.py:238 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/tools/base_tool.py:260 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/tools/base_tool.py:310 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/tools/base_tool.py:352 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/tools/base_tool.py:388 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/tools/base_tool.py:438 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/tools/base_tool.py:463 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/tools/base_tool.py:492 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/tools/base_tool.py:535 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/tools/base_tool.py:568 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/tools/base_tool.py:604 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/tools/base_tool.py:612 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as fallback_error:` #### src/tools/base_tool.py:547 - **Issue:** Tools without telemetry - **Fix:** Wrap with OpenTelemetry spans - **Code:** `class WebSearchTool(BaseTool):` #### src/tools/base_tool.py:557 - **Issue:** Tools without telemetry - **Fix:** Wrap with OpenTelemetry spans - **Code:** `class CalculatorTool(BaseTool):` #### src/tools/base_tool.py:571 - **Issue:** Tools without telemetry - **Fix:** Wrap with OpenTelemetry spans - **Code:** `class CodeAnalysisTool(BaseTool):` #### src/tools/base_tool.py:581 - **Issue:** Tools without telemetry - **Fix:** Wrap with OpenTelemetry spans - **Code:** `class DataValidationTool(BaseTool):` #### src/tools/base_tool.py:40 - **Issue:** Tool decorators without metrics wrapper - **Fix:** Wrap with OpenTelemetry spans - **Code:** `@tool` #### src/tools/base_tool.py:152 - **Issue:** Tool decorators without metrics wrapper - **Fix:** Wrap with OpenTelemetry spans - **Code:** `@tool` #### src/tools/base_tool.py:183 - **Issue:** Tool decorators without metrics wrapper - **Fix:** Wrap with OpenTelemetry spans - **Code:** `@tool` #### src/tools/base_tool.py:241 - **Issue:** Tool decorators without metrics wrapper - **Fix:** Wrap with OpenTelemetry spans - **Code:** `@tool` #### src/tools/base_tool.py:271 - **Issue:** Tool decorators without metrics wrapper - **Fix:** Wrap with OpenTelemetry spans - **Code:** `@tool` #### src/tools/base_tool.py:313 - **Issue:** Tool decorators without metrics wrapper - **Fix:** Wrap with OpenTelemetry spans - **Code:** `@tool` #### src/tools/base_tool.py:355 - **Issue:** Tool decorators without metrics wrapper - **Fix:** Wrap with OpenTelemetry spans - **Code:** `@tool` #### src/tools/base_tool.py:391 - **Issue:** Tool decorators without metrics wrapper - **Fix:** Wrap with OpenTelemetry spans - **Code:** `@tool` #### src/tools/base_tool.py:441 - **Issue:** Tool decorators without metrics wrapper - **Fix:** Wrap with OpenTelemetry spans - **Code:** `@tool` #### src/tools/base_tool.py:470 - **Issue:** Tool decorators without metrics wrapper - **Fix:** Wrap with OpenTelemetry spans - **Code:** `@tool` #### src/tools/base_tool.py:519 - **Issue:** Tool decorators without metrics wrapper - **Fix:** Wrap with OpenTelemetry spans - **Code:** `@tool` #### src/tools/python_interpreter.py:1 - **Issue:** Missing OpenTelemetry instrumentation - **Fix:** Add OpenTelemetry spans for distributed tracing - **Code:** `from opentelemetry import trace tracer = trace.get_tracer(__name__)` #### src/tools/python_interpreter.py:44 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/tools/python_interpreter.py:16 - **Issue:** Tool decorators without metrics wrapper - **Fix:** Wrap with OpenTelemetry spans - **Code:** `@tool` #### src/tools/weather.py:1 - **Issue:** Missing OpenTelemetry instrumentation - **Fix:** Add OpenTelemetry spans for distributed tracing - **Code:** `from opentelemetry import trace tracer = trace.get_tracer(__name__)` #### src/tools/weather.py:58 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/tools/weather.py:16 - **Issue:** Tool decorators without metrics wrapper - **Fix:** Wrap with OpenTelemetry spans - **Code:** `@tool` #### src/tools/advanced_file_reader.py:1 - **Issue:** Missing OpenTelemetry instrumentation - **Fix:** Add OpenTelemetry spans for distributed tracing - **Code:** `from opentelemetry import trace tracer = trace.get_tracer(__name__)` #### src/tools/advanced_file_reader.py:50 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/tools/advanced_file_reader.py:17 - **Issue:** Tool decorators without metrics wrapper - **Fix:** Wrap with OpenTelemetry spans - **Code:** `@tool` #### src/reasoning/reasoning_path.py:41 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self):` #### src/reasoning/reasoning_path.py:246 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def record_reasoning(self, path: ReasoningPath):` #### src/tools/audio_transcriber.py:1 - **Issue:** Missing OpenTelemetry instrumentation - **Fix:** Add OpenTelemetry spans for distributed tracing - **Code:** `from opentelemetry import trace tracer = trace.get_tracer(__name__)` #### src/tools/audio_transcriber.py:37 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except ImportError:` #### src/tools/audio_transcriber.py:41 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/tools/audio_transcriber.py:15 - **Issue:** Tool decorators without metrics wrapper - **Fix:** Wrap with OpenTelemetry spans - **Code:** `@tool` #### src/config/integrations.py:94 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self):` #### src/config/integrations.py:102 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def _load_from_environment(self):` #### src/config/integrations.py:141 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/config/integrations.py:207 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/config/integrations.py:226 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/errors/error_category.py:61 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self, failure_threshold: int = 5, recovery_timeout: int = 60):` #### src/errors/error_category.py:68 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def call(self, func, *args, **kwargs):` #### src/errors/error_category.py:96 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self):` #### src/errors/error_category.py:245 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def track_error(self, error_category: ErrorCategory):` #### src/errors/error_category.py:253 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def record_recovery(self, error_category: ErrorCategory, success: bool):` #### src/errors/error_category.py:83 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/infrastructure/database/in_memory_tool_repository.py:1 - **Issue:** Missing OpenTelemetry instrumentation - **Fix:** Add OpenTelemetry spans for distributed tracing - **Code:** `from opentelemetry import trace tracer = trace.get_tracer(__name__)` #### src/infrastructure/database/in_memory_tool_repository.py:13 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self):` #### src/infrastructure/database/in_memory_tool_repository.py:17 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def save(self, tool: Tool) -> Tool:` #### src/infrastructure/database/in_memory_tool_repository.py:22 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def find_by_id(self, tool_id: UUID) -> Optional[Tool]:` #### src/infrastructure/database/in_memory_tool_repository.py:25 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def find_by_name(self, name: str) -> Optional[Tool]:` #### src/infrastructure/database/in_memory_tool_repository.py:28 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def find_by_type(self, tool_type: ToolType) -> List[Tool]:` #### src/infrastructure/database/in_memory_tool_repository.py:31 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def delete(self, tool_id: UUID) -> bool:` #### src/infrastructure/database/in_memory_tool_repository.py:40 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def get_statistics(self) -> dict:` #### src/infrastructure/database/in_memory_tool_repository.py:12 - **Issue:** Tools without telemetry - **Fix:** Wrap with OpenTelemetry spans - **Code:** `class InMemoryToolRepository(ToolRepository):` #### src/infrastructure/database/in_memory_message_repository.py:13 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self):` #### src/infrastructure/database/in_memory_message_repository.py:16 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def save(self, message: Message) -> Message:` #### src/infrastructure/database/in_memory_message_repository.py:20 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def find_by_id(self, message_id: UUID) -> Optional[Message]:` #### src/infrastructure/database/in_memory_message_repository.py:23 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def find_by_session(self, session_id: UUID) -> List[Message]:` #### src/infrastructure/database/in_memory_message_repository.py:26 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def find_by_type(self, message_type: MessageType) -> List[Message]:` #### src/infrastructure/database/in_memory_message_repository.py:29 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def delete(self, message_id: UUID) -> bool:` #### src/infrastructure/database/in_memory_message_repository.py:35 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def get_statistics(self) -> dict:` #### src/infrastructure/database/in_memory_session_repository.py:13 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self):` #### src/infrastructure/database/in_memory_session_repository.py:16 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def save(self, session: Session) -> Session:` #### src/infrastructure/database/in_memory_session_repository.py:20 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def find_by_id(self, session_id: UUID) -> Optional[Session]:` #### src/infrastructure/database/in_memory_session_repository.py:23 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def find_active(self) -> List[Session]:` #### src/infrastructure/database/in_memory_session_repository.py:26 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def delete(self, session_id: UUID) -> bool:` #### src/infrastructure/database/in_memory_session_repository.py:32 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def get_statistics(self) -> dict:` #### src/infrastructure/database/in_memory_user_repository.py:13 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self):` #### src/infrastructure/database/in_memory_user_repository.py:17 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def save(self, user: User) -> User:` #### src/infrastructure/database/in_memory_user_repository.py:23 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def find_by_id(self, user_id: UUID) -> Optional[User]:` #### src/infrastructure/database/in_memory_user_repository.py:26 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def find_by_email(self, email: str) -> Optional[User]:` #### src/infrastructure/database/in_memory_user_repository.py:29 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def find_all(self) -> List[User]:` #### src/infrastructure/database/in_memory_user_repository.py:32 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def delete(self, user_id: UUID) -> bool:` #### src/infrastructure/database/in_memory_user_repository.py:41 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def get_statistics(self) -> dict:` #### src/infrastructure/database/supabase_repositories.py:32 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self, client: Client):` #### src/infrastructure/database/supabase_repositories.py:146 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self, client: Client):` #### src/infrastructure/database/supabase_repositories.py:309 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self, client: Client):` #### src/infrastructure/database/supabase_repositories.py:409 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self, client: Client):` #### src/infrastructure/database/supabase_repositories.py:60 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/infrastructure/database/supabase_repositories.py:71 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/infrastructure/database/supabase_repositories.py:80 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/infrastructure/database/supabase_repositories.py:89 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/infrastructure/database/supabase_repositories.py:98 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/infrastructure/database/supabase_repositories.py:120 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/infrastructure/database/supabase_repositories.py:177 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/infrastructure/database/supabase_repositories.py:190 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/infrastructure/database/supabase_repositories.py:203 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/infrastructure/database/supabase_repositories.py:215 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/infrastructure/database/supabase_repositories.py:224 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/infrastructure/database/supabase_repositories.py:251 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/infrastructure/database/supabase_repositories.py:267 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/infrastructure/database/supabase_repositories.py:282 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/infrastructure/database/supabase_repositories.py:335 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/infrastructure/database/supabase_repositories.py:346 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/infrastructure/database/supabase_repositories.py:355 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/infrastructure/database/supabase_repositories.py:364 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/infrastructure/database/supabase_repositories.py:385 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/infrastructure/database/supabase_repositories.py:434 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/infrastructure/database/supabase_repositories.py:445 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/infrastructure/database/supabase_repositories.py:454 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/infrastructure/database/supabase_repositories.py:463 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/infrastructure/database/supabase_repositories.py:472 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/infrastructure/database/supabase_repositories.py:481 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/infrastructure/database/supabase_repositories.py:502 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/infrastructure/database/supabase_repositories.py:36 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def save(self, message: Message) -> Message:` #### src/infrastructure/database/supabase_repositories.py:64 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def find_by_id(self, message_id: UUID) -> Optional[Message]:` #### src/infrastructure/database/supabase_repositories.py:75 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def find_by_session(self, session_id: UUID) -> List[Message]:` #### src/infrastructure/database/supabase_repositories.py:84 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def find_by_type(self, message_type: MessageType) -> List[Message]:` #### src/infrastructure/database/supabase_repositories.py:93 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def delete(self, message_id: UUID) -> bool:` #### src/infrastructure/database/supabase_repositories.py:102 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def get_statistics(self) -> dict:` #### src/infrastructure/database/supabase_repositories.py:151 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def save(self, tool: Tool) -> Tool:` #### src/infrastructure/database/supabase_repositories.py:181 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def find_by_id(self, tool_id: UUID) -> Optional[Tool]:` #### src/infrastructure/database/supabase_repositories.py:194 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def find_by_name(self, name: str) -> Optional[Tool]:` #### src/infrastructure/database/supabase_repositories.py:207 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def find_by_type(self, tool_type: ToolType) -> List[Tool]:` #### src/infrastructure/database/supabase_repositories.py:219 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def delete(self, tool_id: UUID) -> bool:` #### src/infrastructure/database/supabase_repositories.py:228 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def get_statistics(self) -> dict:` #### src/infrastructure/database/supabase_repositories.py:255 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def _update_metrics(self, tool: Tool) -> None:` #### src/infrastructure/database/supabase_repositories.py:270 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def _load_metrics(self, tool: Tool) -> None:` #### src/infrastructure/database/supabase_repositories.py:313 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def save(self, session: Session) -> Session:` #### src/infrastructure/database/supabase_repositories.py:339 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def find_by_id(self, session_id: UUID) -> Optional[Session]:` #### src/infrastructure/database/supabase_repositories.py:350 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def find_active(self) -> List[Session]:` #### src/infrastructure/database/supabase_repositories.py:359 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def delete(self, session_id: UUID) -> bool:` #### src/infrastructure/database/supabase_repositories.py:368 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def get_statistics(self) -> dict:` #### src/infrastructure/database/supabase_repositories.py:413 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def save(self, agent: Agent) -> Agent:` #### src/infrastructure/database/supabase_repositories.py:438 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def find_by_id(self, agent_id: UUID) -> Optional[Agent]:` #### src/infrastructure/database/supabase_repositories.py:449 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def find_by_type(self, agent_type: AgentType) -> List[Agent]:` #### src/infrastructure/database/supabase_repositories.py:458 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def find_available(self) -> List[Agent]:` #### src/infrastructure/database/supabase_repositories.py:467 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def delete(self, agent_id: UUID) -> bool:` #### src/infrastructure/database/supabase_repositories.py:476 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def update_performance_metrics(self, agent_id: UUID, metrics: dict) -> bool:` #### src/infrastructure/database/supabase_repositories.py:485 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def get_statistics(self) -> dict:` #### src/infrastructure/database/supabase_repositories.py:144 - **Issue:** Tools without telemetry - **Fix:** Wrap with OpenTelemetry spans - **Code:** `class SupabaseToolRepository(ToolRepository):` #### src/infrastructure/di/container.py:29 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self):` #### src/infrastructure/di/container.py:133 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def inject(*service_names: str):` #### src/infrastructure/di/container.py:145 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def wrapper(*args, **kwargs):` #### src/infrastructure/di/container.py:169 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def get_instance(*args, **kwargs):` #### src/infrastructure/di/container.py:177 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def setup_container():` #### src/infrastructure/di/container.py:90 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/infrastructure/events/event_bus.py:8 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def my_handler(event: Event):` #### src/infrastructure/events/event_bus.py:11 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def main():` #### src/infrastructure/events/event_bus.py:51 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self, max_queue_size: int = 10000):` #### src/infrastructure/events/event_bus.py:114 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except asyncio.QueueFull:` #### src/infrastructure/events/event_bus.py:182 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except asyncio.TimeoutError:` #### src/infrastructure/events/event_bus.py:184 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/infrastructure/events/event_bus.py:204 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/infrastructure/events/event_bus.py:8 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def my_handler(event: Event):` #### src/infrastructure/events/event_bus.py:11 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def main():` #### src/infrastructure/events/event_bus.py:66 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def __aenter__(self) -> "EventBus":` #### src/infrastructure/events/event_bus.py:70 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def __aexit__(self, exc_type, exc, tb) -> None:` #### src/infrastructure/events/event_bus.py:73 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def start(self) -> None:` #### src/infrastructure/events/event_bus.py:85 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def shutdown(self) -> None:` #### src/infrastructure/events/event_bus.py:98 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def stop(self) -> None:` #### src/infrastructure/events/event_bus.py:102 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def publish(self, event: Event) -> None:` #### src/infrastructure/events/event_bus.py:168 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def _process_events(self) -> None:` #### src/infrastructure/events/event_bus.py:188 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def _handle_event(self, event: Event) -> None:` #### src/infrastructure/events/event_bus.py:200 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def _safe_handle(self, subscription: EventSubscription, event: Event) -> None:` #### src/infrastructure/logging/logging_service.py:10 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self, config: LoggingConfig):` #### src/infrastructure/logging/logging_service.py:15 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def _configure_logger(self):` #### src/infrastructure/logging/logging_service.py:30 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def initialize(self):` #### src/infrastructure/logging/logging_service.py:34 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def info(self, msg: str, extra: Optional[Dict[str, Any]] = None):` #### src/infrastructure/logging/logging_service.py:37 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def warning(self, msg: str, extra: Optional[Dict[str, Any]] = None):` #### src/infrastructure/logging/logging_service.py:40 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def error(self, msg: str, extra: Optional[Dict[str, Any]] = None):` #### src/infrastructure/logging/logging_service.py:43 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def log_interaction(self, **kwargs):` #### src/infrastructure/logging/logging_service.py:46 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def log_error(self, error_type: str, message: str, context: Optional[dict] = None):` #### src/infrastructure/logging/logging_service.py:30 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def initialize(self):` #### src/infrastructure/logging/logging_service.py:43 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def log_interaction(self, **kwargs):` #### src/infrastructure/logging/logging_service.py:46 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def log_error(self, error_type: str, message: str, context: Optional[dict] = None):` #### src/application/agents/agent_executor.py:10 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def execute(self, agent: Agent, message: Message) -> Dict[str, Any]:` #### src/infrastructure/config/configuration_service.py:38 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self, config_dir: Optional[str] = None):` #### src/infrastructure/config/configuration_service.py:162 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/infrastructure/config/configuration_service.py:240 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/infrastructure/config/configuration_service.py:355 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/infrastructure/config/configuration_service.py:44 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def load_configuration(self) -> SystemConfig:` #### src/infrastructure/config/configuration_service.py:136 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def _load_from_file(self) -> Dict[str, Any]:` #### src/infrastructure/config/configuration_service.py:152 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def _read_config_file(self, file_path: Path) -> Dict[str, Any]:` #### src/infrastructure/config/configuration_service.py:231 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def _load_from_secrets(self) -> Dict[str, Any]:` #### src/infrastructure/config/configuration_service.py:351 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def _notify_watchers(self, config: SystemConfig) -> None:` #### src/infrastructure/config/configuration_service.py:366 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def reload(self) -> SystemConfig:` #### src/application/tools/tool_executor.py:1 - **Issue:** Missing OpenTelemetry instrumentation - **Fix:** Add OpenTelemetry spans for distributed tracing - **Code:** `from opentelemetry import trace tracer = trace.get_tracer(__name__)` #### src/application/tools/tool_executor.py:20 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/application/tools/tool_executor.py:9 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def execute(self, tool: Tool, parameters: Dict[str, Any]) -> Dict[str, Any]:` #### src/gaia/metrics/gaia_metrics.py:9 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self):` #### src/gaia/metrics/gaia_metrics.py:100 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def export_metrics(self, filename: str = "gaia_metrics.json"):` #### src/gaia/metrics/gaia_metrics.py:105 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def print_summary(self):` #### src/application/services/query_classifier.py:89 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self, anthropic_api_key: Optional[str] = None):` #### src/application/services/query_classifier.py:171 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/gaia/tools/gaia_specialized.py:1 - **Issue:** Missing OpenTelemetry instrumentation - **Fix:** Add OpenTelemetry spans for distributed tracing - **Code:** `from opentelemetry import trace tracer = trace.get_tracer(__name__)` #### src/gaia/tools/gaia_specialized.py:41 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except ImportError:` #### src/gaia/tools/gaia_specialized.py:43 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/gaia/tools/gaia_specialized.py:81 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/gaia/tools/gaia_specialized.py:117 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/gaia/tools/gaia_specialized.py:162 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/gaia/tools/gaia_specialized.py:5 - **Issue:** Tool decorators without metrics wrapper - **Fix:** Wrap with OpenTelemetry spans - **Code:** `@tool` #### src/gaia/tools/gaia_specialized.py:46 - **Issue:** Tool decorators without metrics wrapper - **Fix:** Wrap with OpenTelemetry spans - **Code:** `@tool` #### src/gaia/tools/gaia_specialized.py:84 - **Issue:** Tool decorators without metrics wrapper - **Fix:** Wrap with OpenTelemetry spans - **Code:** `@tool` #### src/gaia/tools/gaia_specialized.py:120 - **Issue:** Tool decorators without metrics wrapper - **Fix:** Wrap with OpenTelemetry spans - **Code:** `@tool` #### src/gaia/caching/gaia_cache.py:11 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self, ttl_seconds: int = 3600):` #### src/gaia/caching/gaia_cache.py:51 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self):` #### src/gaia/caching/gaia_cache.py:70 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self):` #### src/gaia/caching/gaia_cache.py:78 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def record_recovery_attempt(self, error_type: str, success: bool):` #### src/gaia/testing/gaia_test_patterns.py:151 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/gaia/tools/__init__.py:1 - **Issue:** Missing OpenTelemetry instrumentation - **Fix:** Add OpenTelemetry spans for distributed tracing - **Code:** `from opentelemetry import trace tracer = trace.get_tracer(__name__)` #### src/shared/exceptions/domain.py:11 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self, message: str, error_code: Optional[str] = None, details: Optional[Dict[str, Any]]...` #### src/shared/exceptions/domain.py:26 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self, message: str, field: Optional[str] = None, value: Optional[Any] = None):` #### src/shared/exceptions/domain.py:39 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self, message: str, rule_name: Optional[str] = None):` #### src/shared/exceptions/domain.py:48 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self, message: str, current_state: str, attempted_action: str):` #### src/shared/exceptions/domain.py:61 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self, message: str, tool_name: str, tool_input: Optional[Dict[str, Any]] = None):` #### src/core/use_cases/process_message.py:124 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/core/use_cases/process_message.py:206 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/core/use_cases/process_message.py:44 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def execute(` #### src/core/use_cases/process_message.py:174 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def _select_agent(self, message: str, context: Optional[Dict[str, Any]]) -> Agent:` #### src/core/use_cases/process_message.py:190 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def _execute_agent(self, agent: Agent, message: Message) -> Dict[str, Any]:` #### src/core/use_cases/process_message.py:212 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def _update_agent_metrics(self, agent: Agent, result: Dict[str, Any]) -> None:` #### src/core/use_cases/process_message.py:224 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def _log_interaction(` #### src/core/services/meta_cognition.py:73 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self):` #### src/core/services/meta_cognition.py:249 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self, meta_cognition: MetaCognition, confidence_threshold: float = 0.7):` #### src/core/services/working_memory.py:67 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self, api_key: Optional[str] = None):` #### src/core/services/working_memory.py:306 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def clear_memory(self):` #### src/core/services/working_memory.py:131 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/core/services/working_memory.py:278 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/core/services/data_quality.py:41 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __init__(self, quality_level: DataQualityLevel = DataQualityLevel.STANDARD):` #### src/core/services/data_quality.py:176 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except TypeError:` #### src/core/entities/tool.py:1 - **Issue:** Missing OpenTelemetry instrumentation - **Fix:** Add OpenTelemetry spans for distributed tracing - **Code:** `from opentelemetry import trace tracer = trace.get_tracer(__name__)` #### src/core/entities/tool.py:65 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __post_init__(self):` #### src/core/entities/tool.py:136 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __post_init__(self):` #### src/core/entities/tool.py:197 - **Issue:** Exception handling without logging - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `except Exception as e:` #### src/core/entities/message.py:67 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __post_init__(self):` #### src/core/interfaces/session_repository.py:16 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def save(self, session: Session) -> Session:` #### src/core/interfaces/session_repository.py:20 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def find_by_id(self, session_id: UUID) -> Optional[Session]:` #### src/core/interfaces/session_repository.py:24 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def find_active(self) -> List[Session]:` #### src/core/interfaces/session_repository.py:28 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def delete(self, session_id: UUID) -> bool:` #### src/core/interfaces/session_repository.py:32 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def get_statistics(self) -> dict:` #### src/core/interfaces/user_repository.py:16 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def save(self, user: User) -> User:` #### src/core/interfaces/user_repository.py:20 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def find_by_id(self, user_id: UUID) -> Optional[User]:` #### src/core/interfaces/user_repository.py:24 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def find_by_email(self, email: str) -> Optional[User]:` #### src/core/interfaces/user_repository.py:28 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def find_all(self) -> List[User]:` #### src/core/interfaces/user_repository.py:32 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def delete(self, user_id: UUID) -> bool:` #### src/core/interfaces/user_repository.py:36 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def get_statistics(self) -> dict:` #### src/core/entities/agent.py:65 - **Issue:** Functions without performance metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `def __post_init__(self):` #### src/core/interfaces/tool_repository.py:1 - **Issue:** Missing OpenTelemetry instrumentation - **Fix:** Add OpenTelemetry spans for distributed tracing - **Code:** `from opentelemetry import trace tracer = trace.get_tracer(__name__)` #### src/core/interfaces/tool_repository.py:16 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def save(self, tool: Tool) -> Tool:` #### src/core/interfaces/tool_repository.py:20 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def find_by_id(self, tool_id: UUID) -> Optional[Tool]:` #### src/core/interfaces/tool_repository.py:24 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def find_by_name(self, name: str) -> Optional[Tool]:` #### src/core/interfaces/tool_repository.py:28 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def find_by_type(self, tool_type: ToolType) -> List[Tool]:` #### src/core/interfaces/tool_repository.py:32 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def delete(self, tool_id: UUID) -> bool:` #### src/core/interfaces/tool_repository.py:36 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def get_statistics(self) -> dict:` #### src/core/interfaces/message_repository.py:16 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def save(self, message: Message) -> Message:` #### src/core/interfaces/message_repository.py:20 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def find_by_id(self, message_id: UUID) -> Optional[Message]:` #### src/core/interfaces/message_repository.py:24 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def find_by_session(self, session_id: UUID) -> List[Message]:` #### src/core/interfaces/message_repository.py:28 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def find_by_type(self, message_type: MessageType) -> List[Message]:` #### src/core/interfaces/message_repository.py:32 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def delete(self, message_id: UUID) -> bool:` #### src/core/interfaces/message_repository.py:36 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def get_statistics(self) -> dict:` #### src/core/interfaces/agent_repository.py:22 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def save(self, agent: Agent) -> Agent:` #### src/core/interfaces/agent_repository.py:38 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def find_by_id(self, agent_id: UUID) -> Optional[Agent]:` #### src/core/interfaces/agent_repository.py:54 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def find_by_type(self, agent_type: AgentType) -> List[Agent]:` #### src/core/interfaces/agent_repository.py:70 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def find_available(self) -> List[Agent]:` #### src/core/interfaces/agent_repository.py:83 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def update_state(self, agent_id: UUID, state: AgentState) -> bool:` #### src/core/interfaces/agent_repository.py:100 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def update_performance_metrics(` #### src/core/interfaces/agent_repository.py:121 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def delete(self, agent_id: UUID) -> bool:` #### src/core/interfaces/agent_repository.py:137 - **Issue:** Async functions without timing metrics - **Fix:** Add @metrics_decorator or use prometheus_client - **Code:** `async def get_statistics(self) -> Dict[str, Any]:` #### project_root:0 - **Issue:** Missing monitoring directory - **Fix:** Create monitoring/ with Grafana dashboards and alerts - **Code:** `monitoring/dashboards/, monitoring/alerts/` ### 🔴 MEDIUM Priority (670 items) #### simple_hybrid_demo.py:486 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("\n" + "="*60)` #### simple_hybrid_demo.py:487 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("DEMO 1: Basic Hybrid Agent")` #### simple_hybrid_demo.py:488 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("="*60)` #### simple_hybrid_demo.py:522 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"\n--- Task {i}: {task['type']} ---")` #### simple_hybrid_demo.py:523 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"Query: {task.get('query', 'State-based task')}")` #### simple_hybrid_demo.py:526 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"Mode used: {agent.current_mode}")` #### simple_hybrid_demo.py:527 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"Result: {result}")` #### simple_hybrid_demo.py:530 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"Performance by mode: {agent.mode_performance}")` #### simple_hybrid_demo.py:534 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("\n" + "="*60)` #### simple_hybrid_demo.py:535 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("DEMO 2: FSM Learning")` #### simple_hybrid_demo.py:536 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("="*60)` #### simple_hybrid_demo.py:580 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("Running FSM with learning...")` #### simple_hybrid_demo.py:581 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("Initial state:", fsm.current_state.name)` #### simple_hybrid_demo.py:586 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"Step {step + 1}: {fsm.current_state.name} (energy: {fsm.current_state.data.get('energy', 0)}...` #### simple_hybrid_demo.py:598 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"Step {step + 1}: No valid transitions")` #### simple_hybrid_demo.py:601 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"\nLearned transition probabilities: {fsm.learned_transitions}")` #### simple_hybrid_demo.py:605 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("\n" + "="*60)` #### simple_hybrid_demo.py:606 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("DEMO 3: Chain of Thought Reasoning")` #### simple_hybrid_demo.py:607 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("="*60)` #### simple_hybrid_demo.py:623 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"\n--- Query: {query} ---")` #### simple_hybrid_demo.py:627 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"Complexity score: {complexity:.3f}")` #### simple_hybrid_demo.py:631 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"Selected template: {template}")` #### simple_hybrid_demo.py:635 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"Reasoning steps: {len(steps)}")` #### simple_hybrid_demo.py:638 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f" Step {i+1}: {step.thought[:80]}... (confidence: {step.confidence:.2f})")` #### simple_hybrid_demo.py:642 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("Advanced AI Agent Architecture - Simplified Demonstration")` #### simple_hybrid_demo.py:643 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("=" * 60)` #### simple_hybrid_demo.py:651 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("\n" + "="*60)` #### simple_hybrid_demo.py:652 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("All demonstrations completed successfully!")` #### simple_hybrid_demo.py:653 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("="*60)` #### simple_hybrid_demo.py:657 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"Error: {str(e)}")` #### simple_hybrid_demo.py:163 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info("Using cached reasoning")` #### session.py:67 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info(f"Initialized AsyncResponseCache with max_size={self.max_size}, ttl={self.ttl_seconds}s"...` #### session.py:87 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.debug(f"Cleaned up {len(expired_keys)} expired cache entries")` #### session.py:98 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.debug(f"Cache hit for key: {key[:50]}...")` #### session.py:118 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.debug(f"Cache set for key: {key[:50]}...")` #### session.py:132 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info(f"Invalidated {len(keys_to_remove)} cache entries")` #### session.py:153 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info("SessionManager initialized")` #### session.py:163 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info(f"Created new session: {session_id}")` #### session.py:182 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.debug(f"Updated session {session_id}: {kwargs}")` #### session.py:245 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info(f"Cleaned up {len(sessions_to_remove)} old sessions")` #### session.py:260 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info(f"ParallelAgentPool initialized with {max_workers} workers")` #### session.py:271 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.debug(f"Submitted task {task_id} for parallel execution")` #### session.py:300 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info(f"Cancelled task {task_id}")` #### session.py:310 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info("ParallelAgentPool shutdown complete")` #### ai_codebase_analyzer.py:532 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("\n" + "="*80)` #### ai_codebase_analyzer.py:533 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("🔍 CODEBASE ANALYSIS REPORT")` #### ai_codebase_analyzer.py:534 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("="*80 + "\n")` #### ai_codebase_analyzer.py:538 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"📊 SUMMARY")` #### ai_codebase_analyzer.py:539 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f" Total upgrade points: {summary['total_upgrade_points']}")` #### ai_codebase_analyzer.py:540 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f" Files analyzed: {summary['files_analyzed']}")` #### ai_codebase_analyzer.py:541 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f" By category:")` #### ai_codebase_analyzer.py:543 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f" - {cat.capitalize()}: {count}")` #### ai_codebase_analyzer.py:544 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print()` #### ai_codebase_analyzer.py:550 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"\n📌 {category.upper()} UPGRADE POINTS")` #### ai_codebase_analyzer.py:551 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("-" * 60)` #### ai_codebase_analyzer.py:556 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"\n🔴 {priority.upper()} Priority ({len(points)} items):")` #### ai_codebase_analyzer.py:558 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f" 📁 {point['file']}:{point['line']}")` #### ai_codebase_analyzer.py:559 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f" Issue: {point['description']}")` #### ai_codebase_analyzer.py:560 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f" Fix: {point['suggestion']}")` #### ai_codebase_analyzer.py:561 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print()` #### ai_codebase_analyzer.py:563 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("\n💡 Recommendations:")` #### ai_codebase_analyzer.py:565 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f" • {rec}")` #### ai_codebase_analyzer.py:719 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(output)` #### ai_codebase_analyzer.py:107 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info(f"🔍 Analyzing codebase at: {self.root_dir}")` #### ai_codebase_analyzer.py:111 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info(f"📁 Found {len(python_files)} Python files")` #### ai_codebase_analyzer.py:387 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.debug(f"AST analysis failed for {file_path}: {e}")` #### ai_codebase_analyzer.py:689 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info("Running self-test mode...")` #### ai_codebase_analyzer.py:696 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info(f"Self-test passed: Found {report['summary']['total_upgrade_points']} upgrade points")` #### ai_codebase_analyzer.py:717 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info(f"Report written to {args.output}")` #### demo_hybrid_architecture.py:74 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("\n" + "="*60)` #### demo_hybrid_architecture.py:75 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("DEMO 1: Basic Hybrid Agent")` #### demo_hybrid_architecture.py:76 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("="*60)` #### demo_hybrid_architecture.py:110 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"\n--- Task {i}: {task['type']} ---")` #### demo_hybrid_architecture.py:111 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"Query: {task.get('query', 'State-based task')}")` #### demo_hybrid_architecture.py:114 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"Mode used: {agent.current_mode}")` #### demo_hybrid_architecture.py:115 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"Result: {result}")` #### demo_hybrid_architecture.py:118 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"Performance by mode: {agent.mode_performance}")` #### demo_hybrid_architecture.py:122 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("\n" + "="*60)` #### demo_hybrid_architecture.py:123 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("DEMO 2: Multi-Agent System")` #### demo_hybrid_architecture.py:124 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("="*60)` #### demo_hybrid_architecture.py:167 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("Executing complex collaborative task...")` #### demo_hybrid_architecture.py:169 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"Collaborative result: {result}")` #### demo_hybrid_architecture.py:173 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"\nSystem Health Summary:")` #### demo_hybrid_architecture.py:174 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"- Resource usage: {health['resource_usage']}")` #### demo_hybrid_architecture.py:175 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"- Behavior patterns observed: {health['behavior_patterns']}")` #### demo_hybrid_architecture.py:176 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"- Cache size: {health['cache_stats']['size']}/{health['cache_stats']['max_size']}")` #### demo_hybrid_architecture.py:180 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("\n" + "="*60)` #### demo_hybrid_architecture.py:181 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("DEMO 3: FSM Learning")` #### demo_hybrid_architecture.py:182 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("="*60)` #### demo_hybrid_architecture.py:226 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("Running FSM with learning...")` #### demo_hybrid_architecture.py:227 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("Initial state:", fsm.current_state.name)` #### demo_hybrid_architecture.py:232 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"Step {step + 1}: {fsm.current_state.name} (energy: {fsm.current_state.data.get('energy', 0)}...` #### demo_hybrid_architecture.py:244 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"Step {step + 1}: No valid transitions")` #### demo_hybrid_architecture.py:247 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"\nLearned transition probabilities: {fsm.learned_transitions}")` #### demo_hybrid_architecture.py:251 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("\n" + "="*60)` #### demo_hybrid_architecture.py:252 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("DEMO 4: Chain of Thought Reasoning")` #### demo_hybrid_architecture.py:253 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("="*60)` #### demo_hybrid_architecture.py:271 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"\n--- Query: {query} ---")` #### demo_hybrid_architecture.py:275 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"Complexity score: {complexity:.3f}")` #### demo_hybrid_architecture.py:279 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"Selected template: {template}")` #### demo_hybrid_architecture.py:283 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"Reasoning steps: {len(steps)}")` #### demo_hybrid_architecture.py:286 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f" Step {i+1}: {step.thought[:80]}... (confidence: {step.confidence:.2f})")` #### demo_hybrid_architecture.py:290 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("\n" + "="*60)` #### demo_hybrid_architecture.py:291 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("DEMO 5: Performance Optimization")` #### demo_hybrid_architecture.py:292 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("="*60)` #### demo_hybrid_architecture.py:327 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("Testing caching...")` #### demo_hybrid_architecture.py:330 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"Cached result: {cached_result}")` #### demo_hybrid_architecture.py:335 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"Predicted next tasks: {len(predictions)}")` #### demo_hybrid_architecture.py:343 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"Resource usage summary: {usage_summary}")` #### demo_hybrid_architecture.py:347 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("\n" + "="*60)` #### demo_hybrid_architecture.py:348 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("DEMO 6: Emergent Behavior")` #### demo_hybrid_architecture.py:349 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("="*60)` #### demo_hybrid_architecture.py:368 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("Simulating agent behaviors...")` #### demo_hybrid_architecture.py:381 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"Total behavior patterns recorded: {len(engine.behavior_patterns)}")` #### demo_hybrid_architecture.py:389 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"Original behavior: {original_behavior}")` #### demo_hybrid_architecture.py:390 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"Evolved behavior: {evolved_behavior}")` #### demo_hybrid_architecture.py:394 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("Advanced AI Agent Architecture Demonstration")` #### demo_hybrid_architecture.py:395 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("=" * 60)` #### demo_hybrid_architecture.py:406 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("\n" + "="*60)` #### demo_hybrid_architecture.py:407 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("All demonstrations completed successfully!")` #### demo_hybrid_architecture.py:408 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("="*60)` #### demo_hybrid_architecture.py:412 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"Error: {str(e)}")` #### app.py:77 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"Import Error: {e}")` #### app.py:78 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"Current working directory: {os.getcwd()}")` #### app.py:79 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"Python path: {sys.path}")` #### app.py:80 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"Contents of src directory: {os.listdir('src') if os.path.exists('src') else 'src directory n...` #### app.py:327 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"Failed to start application: {e}")` #### app.py:145 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info("LangSmith tracing enabled")` #### app.py:153 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info("Supabase logging enabled")` #### app.py:158 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info(f"Using model: {self.model_name}")` #### app.py:176 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info("All components initialized successfully")` #### app.py:190 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info("Integration hub initialized successfully")` #### simple_test.py:1 - **Issue:** No metrics collection found - **Fix:** Add Prometheus metrics for performance monitoring - **Code:** `from prometheus_client import Counter, Histogram` #### simple_test.py:17 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("🔍 Testing basic imports...")` #### simple_test.py:21 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("✅ Embedding manager import successful")` #### simple_test.py:23 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"❌ Embedding manager import failed: {e}")` #### simple_test.py:28 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("✅ Integration hub import successful")` #### simple_test.py:30 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"❌ Integration hub import failed: {e}")` #### simple_test.py:35 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("✅ Config import successful")` #### simple_test.py:37 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"❌ Config import failed: {e}")` #### simple_test.py:44 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("\n🔍 Testing embedding manager...")` #### simple_test.py:50 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"✅ Embedding manager created: method={manager.get_method()}, dimension={manager.get_dimension...` #### simple_test.py:55 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("✅ Singleton behavior confirmed")` #### simple_test.py:57 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("❌ Singleton behavior failed")` #### simple_test.py:63 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"✅ Embedding created: length={len(embedding)}")` #### simple_test.py:68 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"✅ Batch embedding created: count={len(batch_embeddings)}")` #### simple_test.py:73 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"❌ Embedding manager test failed: {e}")` #### simple_test.py:78 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("\n🔍 Testing integration hub...")` #### simple_test.py:84 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("✅ Integration hub created")` #### simple_test.py:99 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("✅ Tool registered successfully")` #### simple_test.py:103 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("✅ Tool retrieval successful")` #### simple_test.py:105 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("❌ Tool retrieval failed")` #### simple_test.py:111 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"❌ Integration hub test failed: {e}")` #### simple_test.py:116 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("\n🔍 Testing configuration...")` #### simple_test.py:127 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("✅ Configuration structure valid")` #### simple_test.py:131 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"✅ Configuration validation: valid={is_valid}, issues={len(issues)}")` #### simple_test.py:136 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("✅ Configuration serialization successful")` #### simple_test.py:141 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"❌ Configuration test failed: {e}")` #### simple_test.py:146 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("\n🔍 Testing enhanced components...")` #### simple_test.py:160 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"✅ {name} import successful")` #### simple_test.py:162 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"⚠️ {name} import failed: {e}")` #### simple_test.py:169 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("🚀 Starting AI Agent Integration Tests")` #### simple_test.py:170 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("=" * 50)` #### simple_test.py:187 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"❌ {test_name} test crashed: {e}")` #### simple_test.py:191 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("\n" + "=" * 50)` #### simple_test.py:192 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("📊 Test Results Summary:")` #### simple_test.py:193 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("=" * 50)` #### simple_test.py:200 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"{test_name}: {status}")` #### simple_test.py:204 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"\nOverall: {passed}/{total} tests passed")` #### simple_test.py:207 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("🎉 All tests passed! Your AI Agent integration is working correctly.")` #### simple_test.py:209 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("⚠️ Some tests failed. Check the output above for details.")` #### test_integration_fixes.py:1 - **Issue:** No metrics collection found - **Fix:** Add Prometheus metrics for performance monitoring - **Code:** `from prometheus_client import Counter, Histogram` #### test_integration_fixes.py:33 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("\n=== Testing Tool Call Tracker ===")` #### test_integration_fixes.py:63 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("✅ Tool call tracker working correctly")` #### test_integration_fixes.py:67 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("\n=== Testing Circuit Breaker ===")` #### test_integration_fixes.py:88 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("✅ Circuit breaker working correctly")` #### test_integration_fixes.py:92 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("\n=== Testing Local Knowledge Tool ===")` #### test_integration_fixes.py:127 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("✅ Local knowledge tool working correctly")` #### test_integration_fixes.py:131 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("\n=== Testing Error Categorization ===")` #### test_integration_fixes.py:150 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("✅ Error categorization working correctly")` #### test_integration_fixes.py:154 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("\n=== Testing Fallback Tool Logic ===")` #### test_integration_fixes.py:183 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("✅ Fallback tool logic working correctly")` #### test_integration_fixes.py:187 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("\n=== Testing Async Cleanup ===")` #### test_integration_fixes.py:214 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"❌ Cleanup failed: {e}")` #### test_integration_fixes.py:217 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("✅ Async cleanup working correctly")` #### test_integration_fixes.py:221 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("🧪 Testing Integration Hub Critical Fixes")` #### test_integration_fixes.py:232 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("\n🎉 All critical fixes are working correctly!")` #### test_integration_fixes.py:233 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("\nSummary of implemented fixes:")` #### test_integration_fixes.py:234 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("1. ✅ Async cleanup handlers - Properly handle async/sync cleanup functions")` #### test_integration_fixes.py:235 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("2. ✅ Fallback tool logic - Intelligent tool fallback with parameter adaptation")` #### test_integration_fixes.py:236 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("3. ✅ Enhanced local knowledge search - TF-IDF scoring with inverted index")` #### test_integration_fixes.py:237 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("4. ✅ Improved error categorization - Detailed error pattern matching")` #### test_integration_fixes.py:238 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("5. ✅ Tool call loop prevention - Track and prevent infinite loops")` #### test_integration_fixes.py:239 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("6. ✅ Circuit breaker pattern - Automatic failure detection and recovery")` #### test_integration_fixes.py:242 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"\n❌ Test failed: {e}")` #### tests/test_repositories.py:1 - **Issue:** No metrics collection found - **Fix:** Add Prometheus metrics for performance monitoring - **Code:** `from prometheus_client import Counter, Histogram` #### tests/test_core_entities.py:1 - **Issue:** No metrics collection found - **Fix:** Add Prometheus metrics for performance monitoring - **Code:** `from prometheus_client import Counter, Histogram` #### tests/gaia_testing_framework.py:205 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("🚀 GAIA Testing Framework - Advanced Agent Evaluation")` #### tests/gaia_testing_framework.py:206 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("=" * 70)` #### tests/gaia_testing_framework.py:207 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"📊 Questions: {len(self.questions)}")` #### tests/gaia_testing_framework.py:208 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"📂 Categories: {len(set(q.category for q in self.questions))}")` #### tests/gaia_testing_framework.py:209 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"🎯 Difficulty Levels: {len(set(q.difficulty for q in self.questions))}")` #### tests/gaia_testing_framework.py:210 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("=" * 70)` #### tests/gaia_testing_framework.py:220 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"\n🔍 Test {i}/{len(self.questions)}: {question.id}")` #### tests/gaia_testing_framework.py:221 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f" Question: {question.question[:80]}{'...' if len(question.question) > 80 else ''}")` #### tests/gaia_testing_framework.py:235 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f" {status} | Expected: '{question.expected_answer}' | Got: '{result.agent_answer}'")` #### tests/gaia_testing_framework.py:236 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f" ⏱️ Time: {result.execution_time:.1f}s | 🧠 Steps: {result.reasoning_steps} | 📈 Confidence...` #### tests/gaia_testing_framework.py:566 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("\n" + "=" * 70)` #### tests/gaia_testing_framework.py:567 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("📊 COMPREHENSIVE GAIA EVALUATION RESULTS")` #### tests/gaia_testing_framework.py:568 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("=" * 70)` #### tests/gaia_testing_framework.py:572 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"🎯 Overall Accuracy: {accuracy:.1%} ({analysis.get('correct_answers', 0)}/{analysis.get('tota...` #### tests/gaia_testing_framework.py:573 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"⏱️ Average Time: {analysis.get('avg_execution_time', 0):.1f}s")` #### tests/gaia_testing_framework.py:574 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"🧠 Average Reasoning Steps: {analysis.get('avg_reasoning_steps', 0):.1f}")` #### tests/gaia_testing_framework.py:575 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"📈 Average Confidence: {analysis.get('avg_confidence', 0):.1%}")` #### tests/gaia_testing_framework.py:576 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"✅ Average Validation Score: {analysis.get('avg_validation_score', 0):.1%}")` #### tests/gaia_testing_framework.py:579 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"\n📋 Category Performance:")` #### tests/gaia_testing_framework.py:581 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f" {category.replace('_', ' ').title()}: {stats['accuracy']:.1%} "` #### tests/gaia_testing_framework.py:585 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"\n🎚️ Difficulty Analysis:")` #### tests/gaia_testing_framework.py:587 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f" {difficulty.title()}: {accuracy:.1%}")` #### tests/gaia_testing_framework.py:590 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"\n🛠️ Tool Usage (Top 5):")` #### tests/gaia_testing_framework.py:593 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f" {tool}: {count} times")` #### tests/gaia_testing_framework.py:598 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"\n🚨 Error Analysis:")` #### tests/gaia_testing_framework.py:600 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f" {error_type}: {count} occurrences")` #### tests/gaia_testing_framework.py:602 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("=" * 70)` #### tests/gaia_testing_framework.py:768 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("🧪 GAIA Testing Framework")` #### tests/gaia_testing_framework.py:769 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("Advanced evaluation system for ReAct agents")` #### tests/gaia_testing_framework.py:770 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("=" * 50)` #### tests/gaia_testing_framework.py:775 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"✅ Test suite initialized with {len(test_suite.questions)} questions")` #### tests/gaia_testing_framework.py:776 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"📂 Categories: {len(set(q.category for q in test_suite.questions))}")` #### tests/gaia_testing_framework.py:777 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"🎯 Difficulty levels: {len(set(q.difficulty for q in test_suite.questions))}")` #### tests/gaia_testing_framework.py:780 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("\n🔍 Sample Test Questions:")` #### tests/gaia_testing_framework.py:782 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"\n{i+1}. [{question.category}] {question.question}")` #### tests/gaia_testing_framework.py:783 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f" Expected: {question.expected_answer}")` #### tests/gaia_testing_framework.py:784 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f" Tools: {', '.join(question.requires_tools)}")` #### tests/gaia_testing_framework.py:786 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("\n✅ Framework ready for agent testing!")` #### tests/gaia_testing_framework.py:787 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("Usage: test_suite.test_agent_performance(your_agent)")` #### gaia_logic.py:1 - **Issue:** No metrics collection found - **Fix:** Add Prometheus metrics for performance monitoring - **Code:** `from prometheus_client import Counter, Histogram` #### gaia_logic.py:44 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info("Initialized AdvancedGAIAAgent with FSM backend")` #### gaia_logic.py:178 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info(f"Starting GAIA evaluation for user: {username}")` #### gaia_logic.py:219 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info(f"Fetching questions from: {self.questions_url}")` #### gaia_logic.py:233 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info(f"First question structure: {first_question}")` #### gaia_logic.py:234 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info(f"Question type: {type(first_question.get('question'))}")` #### gaia_logic.py:235 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info(f"Question value: {first_question.get('question')}")` #### gaia_logic.py:237 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info(f"Successfully fetched {len(questions_data)} questions")` #### gaia_logic.py:256 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info(f"Starting processing of {len(questions_data)} questions")` #### gaia_logic.py:280 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info(f"Processing question {i}/{len(questions_data)} (ID: {task_id})")` #### gaia_logic.py:300 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info(f"Question {i} completed in {question_time:.1f}s")` #### gaia_logic.py:314 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info(f"Completed processing in {total_time:.1f}s "` #### gaia_logic.py:322 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info(f"Submitting {len(submission_data['answers'])} answers")` #### gaia_logic.py:345 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info("GAIA submission completed successfully!")` #### tests/test_integration.py:1 - **Issue:** No metrics collection found - **Fix:** Add Prometheus metrics for performance monitoring - **Code:** `from prometheus_client import Counter, Histogram` #### tests/test_enhanced_error_handling.py:32 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"Import error: {e}")` #### tests/test_enhanced_error_handling.py:33 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("Trying alternative import paths...")` #### tests/test_enhanced_error_handling.py:50 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"Alternative import also failed: {e2}")` #### tests/test_enhanced_error_handling.py:51 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("Available modules in src:")` #### tests/test_enhanced_error_handling.py:55 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f" - {item.name}")` #### tests/test_enhanced_error_handling.py:438 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"\n{'='*60}")` #### tests/test_enhanced_error_handling.py:439 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"COMPREHENSIVE TEST RESULTS")` #### tests/test_enhanced_error_handling.py:440 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"{'='*60}")` #### tests/test_enhanced_error_handling.py:441 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"Tests run: {result.testsRun}")` #### tests/test_enhanced_error_handling.py:442 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"Failures: {len(result.failures)}")` #### tests/test_enhanced_error_handling.py:443 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"Errors: {len(result.errors)}")` #### tests/test_enhanced_error_handling.py:444 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"Success rate: {((result.testsRun - len(result.failures) - len(result.errors)) / result.tests...` #### tests/test_enhanced_error_handling.py:447 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"\nFAILURES:")` #### tests/test_enhanced_error_handling.py:449 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"- {test}: {traceback}")` #### tests/test_enhanced_error_handling.py:452 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"\nERRORS:")` #### tests/test_enhanced_error_handling.py:454 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"- {test}: {traceback}")` #### tests/test_config.py:1 - **Issue:** No metrics collection found - **Fix:** Add Prometheus metrics for performance monitoring - **Code:** `from prometheus_client import Counter, Histogram` #### tests/test_integration_fixes.py:1 - **Issue:** No metrics collection found - **Fix:** Add Prometheus metrics for performance monitoring - **Code:** `from prometheus_client import Counter, Histogram` #### tests/test_integration_fixes.py:21 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("🔍 Testing configuration imports...")` #### tests/test_integration_fixes.py:25 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("✅ Integration config imported successfully")` #### tests/test_integration_fixes.py:29 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"✅ Config validation: {'valid' if is_valid else 'invalid'}")` #### tests/test_integration_fixes.py:31 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"⚠️ Issues: {issues}")` #### tests/test_integration_fixes.py:35 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"❌ Config import failed: {e}")` #### tests/test_integration_fixes.py:40 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("\n🔍 Testing LlamaIndex fixes...")` #### tests/test_integration_fixes.py:44 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"✅ LlamaIndex enhanced imported (available: {LLAMAINDEX_AVAILABLE})")` #### tests/test_integration_fixes.py:49 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"✅ Knowledge base created: {type(kb).__name__}")` #### tests/test_integration_fixes.py:53 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"❌ LlamaIndex test failed: {e}")` #### tests/test_integration_fixes.py:58 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("\n🔍 Testing database fixes...")` #### tests/test_integration_fixes.py:65 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("✅ Supabase configured, testing initialization...")` #### tests/test_integration_fixes.py:68 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("✅ Supabase initialization successful")` #### tests/test_integration_fixes.py:70 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"⚠️ Supabase initialization failed (expected if not fully configured): {e}")` #### tests/test_integration_fixes.py:72 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("⚠️ Supabase not configured, skipping initialization test")` #### tests/test_integration_fixes.py:76 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"❌ Database test failed: {e}")` #### tests/test_integration_fixes.py:81 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("\n🔍 Testing integration manager...")` #### tests/test_integration_fixes.py:87 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("✅ Integration manager created")` #### tests/test_integration_fixes.py:91 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"✅ Status check: {status['initialized']}")` #### tests/test_integration_fixes.py:95 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"❌ Integration manager test failed: {e}")` #### tests/test_integration_fixes.py:100 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("\n🔍 Testing health check...")` #### tests/test_integration_fixes.py:106 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("✅ Health summary generated")` #### tests/test_integration_fixes.py:107 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f" Config valid: {summary['config_valid']}")` #### tests/test_integration_fixes.py:108 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f" Supabase configured: {summary['supabase_configured']}")` #### tests/test_integration_fixes.py:109 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f" API keys: {summary['api_keys_available']}")` #### tests/test_integration_fixes.py:113 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"❌ Health check test failed: {e}")` #### tests/test_integration_fixes.py:118 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("\n🔍 Testing configuration CLI...")` #### tests/test_integration_fixes.py:122 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("✅ Config CLI imported successfully")` #### tests/test_integration_fixes.py:130 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"✅ CLI command '{cmd}' available")` #### tests/test_integration_fixes.py:132 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"⚠️ CLI command '{cmd}' missing")` #### tests/test_integration_fixes.py:136 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"❌ Config CLI test failed: {e}")` #### tests/test_integration_fixes.py:141 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("🚀 Starting integration fixes test suite...\n")` #### tests/test_integration_fixes.py:158 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"❌ Test {test.__name__} crashed: {e}")` #### tests/test_integration_fixes.py:161 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"\n📊 Test Results:")` #### tests/test_integration_fixes.py:162 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f" Passed: {sum(results)}/{len(results)}")` #### tests/test_integration_fixes.py:163 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f" Failed: {len(results) - sum(results)}/{len(results)}")` #### tests/test_integration_fixes.py:166 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("🎉 All tests passed! Integration fixes are working correctly.")` #### tests/test_integration_fixes.py:169 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("⚠️ Some tests failed. Check the output above for details.")` #### scripts/setup_supabase.py:21 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"Error importing required modules: {e}")` #### scripts/setup_supabase.py:22 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("Please install required packages: pip install supabase python-dotenv")` #### scripts/setup_supabase.py:44 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("✅ Successfully connected to Supabase!")` #### scripts/setup_supabase.py:47 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"❌ Failed to connect to Supabase: {e}")` #### scripts/setup_supabase.py:83 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("\n⚠️ Please verify these extensions are enabled in your Supabase SQL Editor:")` #### scripts/setup_supabase.py:84 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(" - pgvector (for semantic search)")` #### scripts/setup_supabase.py:85 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(" - uuid-ossp (for UUID generation)")` #### scripts/setup_supabase.py:86 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("\nRun this SQL to check: SELECT * FROM pg_extension;")` #### scripts/setup_supabase.py:103 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("✅ Sample data created successfully!")` #### scripts/setup_supabase.py:106 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"❌ Failed to create sample data: {e}")` #### scripts/setup_supabase.py:133 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("✅ Created .env.template file")` #### scripts/setup_supabase.py:138 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("🚀 Supabase Setup Script for AI Agent")` #### scripts/setup_supabase.py:139 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("=" * 50)` #### scripts/setup_supabase.py:142 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("\n1. Checking environment variables...")` #### scripts/setup_supabase.py:146 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"❌ Missing environment variables: {', '.join(missing_vars)}")` #### scripts/setup_supabase.py:147 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("\nPlease create a .env file with the following variables:")` #### scripts/setup_supabase.py:149 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f" {var}=your-value-here")` #### scripts/setup_supabase.py:152 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("\nRefer to .env.template for a complete example.")` #### scripts/setup_supabase.py:155 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("✅ All required environment variables are set")` #### scripts/setup_supabase.py:158 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("\n2. Testing Supabase connection...")` #### scripts/setup_supabase.py:162 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("\n❌ Could not connect to Supabase.")` #### scripts/setup_supabase.py:163 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("Please check your SUPABASE_URL and SUPABASE_KEY.")` #### scripts/setup_supabase.py:167 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("\n3. Checking database tables...")` #### scripts/setup_supabase.py:174 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"\n✅ Found {len(existing_tables)} existing tables:")` #### scripts/setup_supabase.py:176 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f" - {table}")` #### scripts/setup_supabase.py:179 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"\n⚠️ Missing {len(missing_tables)} tables:")` #### scripts/setup_supabase.py:181 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f" - {table}")` #### scripts/setup_supabase.py:182 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("\nPlease run the SQL commands from SUPABASE_SQL_SETUP.md in your Supabase SQL Editor.")` #### scripts/setup_supabase.py:185 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("\n4. Checking PostgreSQL extensions...")` #### scripts/setup_supabase.py:189 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("\n5. Setting up extended database features...")` #### scripts/setup_supabase.py:193 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("✅ Extended database initialized")` #### scripts/setup_supabase.py:197 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f" - Found {len(metrics)} tool metrics")` #### scripts/setup_supabase.py:199 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("⚠️ Extended database features not available (missing credentials)")` #### scripts/setup_supabase.py:201 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"❌ Error with extended database: {e}")` #### scripts/setup_supabase.py:204 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("\n" + "=" * 50)` #### scripts/setup_supabase.py:205 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("📊 Setup Summary:")` #### scripts/setup_supabase.py:208 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("✅ All tables are properly set up!")` #### scripts/setup_supabase.py:209 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("\n🎉 Your Supabase database is ready for the AI Agent!")` #### scripts/setup_supabase.py:216 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"⚠️ {len(missing_tables)} tables need to be created.")` #### scripts/setup_supabase.py:217 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("\nNext steps:")` #### scripts/setup_supabase.py:218 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("1. Open your Supabase project SQL Editor")` #### scripts/setup_supabase.py:219 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("2. Run the SQL commands from SUPABASE_SQL_SETUP.md")` #### scripts/setup_supabase.py:220 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("3. Re-run this script to verify setup")` #### scripts/setup_supabase.py:222 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("\n📚 For complete setup instructions, see SUPABASE_SQL_SETUP.md")` #### src/integration_hub.py:641 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `('calculator', 'python_interpreter'): lambda p: {'code': f"result = {p.get('expression', '')}; print...` #### src/integration_hub.py:112 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info(f"Circuit breaker closed for {tool_name}")` #### src/integration_hub.py:174 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info(f"Set rate limit for {tool_name}: {calls_per_minute} calls/minute")` #### src/integration_hub.py:197 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info(f"Rate limit reached for {tool_name}, waiting {wait_time:.2f}s")` #### src/integration_hub.py:234 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info(f"Registered requirements for tool: {tool_name}")` #### src/integration_hub.py:301 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info(f"Created resource pool for {resource_type}: {min_size}-{max_size} resources")` #### src/integration_hub.py:386 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info(f"Registered tool: {tool.name}")` #### src/integration_hub.py:493 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.debug(f"Cache hit for {tool_name}")` #### src/integration_hub.py:527 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info(f"Fallback tool succeeded for {tool_name}")` #### src/integration_hub.py:614 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info(f"Trying fallback tool: {fallback_tool}")` #### src/integration_hub.py:625 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info(f"Fallback tool {fallback_tool} succeeded")` #### src/integration_hub.py:757 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info(f"Created enhanced session: {session_id}")` #### src/integration_hub.py:946 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info("Using OpenAI embeddings")` #### src/integration_hub.py:960 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info("Using local sentence transformers")` #### src/integration_hub.py:1018 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info("Initializing Enhanced Integration Hub...")` #### src/integration_hub.py:1054 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info("Enhanced Integration Hub initialized successfully")` #### src/integration_hub.py:1077 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info("New integration components initialized")` #### src/integration_hub.py:1100 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info("Monitoring dashboard initialized")` #### src/integration_hub.py:1139 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info(f"Registered {len(unified_tool_registry.tools)} tools in unified registry")` #### src/integration_hub.py:1166 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info("Supabase database initialized")` #### src/integration_hub.py:1184 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info("Knowledge base initialized")` #### src/integration_hub.py:1217 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info("Tool orchestrator initialized")` #### src/integration_hub.py:1228 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info("Enhanced session manager ready")` #### src/integration_hub.py:1243 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info("Metric-aware error handler initialized")` #### src/integration_hub.py:1253 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info("LangChain agent initialized")` #### src/integration_hub.py:1263 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info("CrewAI multi-agent system initialized")` #### src/integration_hub.py:1324 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info("Cleaning up Integration Hub...")` #### src/integration_hub.py:1340 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info("Integration Hub cleanup completed")` #### src/integration_hub.py:1402 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info(f"Indexed tool for semantic search: {tool_name}")` #### src/integration_hub.py:1440 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info(f"Registered version {version} for tool {tool_name}")` #### src/integration_hub.py:1799 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info(f"Migration completed: {len(migration_report['migrated'])} migrated, "` #### src/crew_enhanced.py:1 - **Issue:** No metrics collection found - **Fix:** Add Prometheus metrics for performance monitoring - **Code:** `from prometheus_client import Counter, Histogram` #### src/crew_enhanced.py:239 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info("Enhanced CrewAI initialized successfully")` #### src/config.py:1 - **Issue:** No metrics collection found - **Fix:** Add Prometheus metrics for performance monitoring - **Code:** `from prometheus_client import Counter, Histogram` #### tests/test_tools.py:1 - **Issue:** No metrics collection found - **Fix:** Add Prometheus metrics for performance monitoring - **Code:** `from prometheus_client import Counter, Histogram` #### tests/test_tools.py:87 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `code = "result = 2 + 2\nprint(result)"` #### tests/test_tools.py:94 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `code = "import math\nresult = math.sqrt(16)\nprint(result)"` #### src/advanced_hybrid_architecture.py:992 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"\nExecuting task: {task['type']}")` #### src/advanced_hybrid_architecture.py:994 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"Result: {result}")` #### src/advanced_hybrid_architecture.py:998 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"\nSystem Health: {health}")` #### src/advanced_hybrid_architecture.py:289 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info(f"Discovered new tool: {tool.name}")` #### src/advanced_hybrid_architecture.py:318 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info("Using cached reasoning")` #### src/advanced_hybrid_architecture.py:746 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info(f"Successful pattern found: {key} with {success_rate:.2%} success rate")` #### src/advanced_hybrid_architecture.py:788 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info("Using cached result")` #### src/tools_production.py:1 - **Issue:** No metrics collection found - **Fix:** Add Prometheus metrics for performance monitoring - **Code:** `from prometheus_client import Counter, Histogram` #### src/tools_production.py:22 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info("Loading Whisper model...")` #### src/tools_production.py:44 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info(f"Production video analyzer called with URL: {video_url}")` #### src/tools_production.py:80 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info("Transcribing audio with Whisper...")` #### src/tools_production.py:126 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info(f"Production chess analyzer called with FEN: {fen_string}")` #### src/tools_production.py:238 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info(f"Chess image analyzer called with: {image_path}")` #### src/tools_production.py:261 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info(f"Music discography tool called for: {artist_name}")` #### src/tools_production.py:290 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info(f"Sports data tool called with: {query}")` #### src/tools_production.py:316 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info(f"Text reversal tool called with: {text[:50]}...")` #### src/tools_production.py:339 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info(f"Mathematical calculator called with: {expression}")` #### src/crew_workflow.py:1 - **Issue:** No metrics collection found - **Fix:** Add Prometheus metrics for performance monitoring - **Code:** `from prometheus_client import Counter, Histogram` #### src/integration_manager.py:1 - **Issue:** No metrics collection found - **Fix:** Add Prometheus metrics for performance monitoring - **Code:** `from prometheus_client import Counter, Histogram` #### src/integration_manager.py:36 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info("Integration manager already initialized")` #### src/integration_manager.py:44 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info("Starting integration initialization...")` #### src/integration_manager.py:49 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info("Initializing Supabase components...")` #### src/integration_manager.py:52 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info("✅ Supabase components initialized")` #### src/integration_manager.py:54 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info("⚠️ Supabase not configured, skipping")` #### src/integration_manager.py:58 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info("Initializing LlamaIndex components...")` #### src/integration_manager.py:61 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info("✅ LlamaIndex components initialized")` #### src/integration_manager.py:63 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info("⚠️ LlamaIndex disabled, skipping")` #### src/integration_manager.py:67 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info("Initializing LangChain components...")` #### src/integration_manager.py:72 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info("✅ LangChain components initialized")` #### src/integration_manager.py:76 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info("⚠️ LangChain disabled, skipping")` #### src/integration_manager.py:80 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info("Initializing CrewAI components...")` #### src/integration_manager.py:85 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info("✅ CrewAI components initialized")` #### src/integration_manager.py:89 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info("⚠️ CrewAI disabled, skipping")` #### src/integration_manager.py:92 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info("🎉 All integrations initialized successfully")` #### src/integration_manager.py:160 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info("Shutting down integrations...")` #### src/integration_manager.py:168 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info("✅ Supabase connections closed")` #### src/integration_manager.py:175 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info("✅ Integration manager shutdown complete")` #### src/next_gen_integration.py:431 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"Result: {result.get('final_answer', 'No answer generated')}")` #### src/next_gen_integration.py:109 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info(f"NextGen agent processing query: {query[:100]}...")` #### src/next_gen_integration.py:164 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info(f"Updated model preference to: {params.model_preference}")` #### src/next_gen_integration.py:169 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info(f"Updated verification level to: {params.verification_level}")` #### src/next_gen_integration.py:174 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info(f"Updated max reasoning steps to: {params.max_reasoning_steps}")` #### src/next_gen_integration.py:180 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info("Interactive tool callbacks would be set up here")` #### src/next_gen_integration.py:248 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info(f"Attempting self-correction for tool error: {tool_name}")` #### src/next_gen_integration.py:275 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info(f"Self-corrected parameters: {corrected_params}")` #### src/next_gen_integration.py:363 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info(f"Tool recommendations: {recommendations}")` #### src/next_gen_integration.py:418 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info("Interactive UI callbacks configured")` #### src/database.py:1 - **Issue:** No metrics collection found - **Fix:** Add Prometheus metrics for performance monitoring - **Code:** `from prometheus_client import Counter, Histogram` #### src/database.py:82 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"Log handler error: {e}")` #### src/database.py:29 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info("Supabase client initialized")` #### src/database.py:110 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info("Database tables created successfully")` #### src/advanced_agent_fsm.py:513 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info(f"Rate limiting: sleeping for {sleep_time:.2f} seconds")` #### src/advanced_agent_fsm.py:568 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info(f"Initiating API call to {self.base_url}/chat/completions",` #### src/advanced_agent_fsm.py:585 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.debug("JSON response format enforced")` #### src/advanced_agent_fsm.py:604 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info("API call successful",` #### src/advanced_agent_fsm.py:637 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info("Creating structured plan", extra={'query_length': len(query)})` #### src/advanced_agent_fsm.py:684 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.debug("Raw plan response received", extra={'response_length': len(plan_json)})` #### src/advanced_agent_fsm.py:689 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info("Plan validation successful",` #### src/advanced_agent_fsm.py:759 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info(f"Registered {len(tools)} tools with unified registry")` #### src/advanced_agent_fsm.py:776 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info("Tool introspection initialized")` #### src/advanced_agent_fsm.py:818 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info(f"FSMReActAgent initialized with {len(tools)} tools")` #### src/embedding_manager.py:1 - **Issue:** No metrics collection found - **Fix:** Add Prometheus metrics for performance monitoring - **Code:** `from prometheus_client import Counter, Histogram` #### src/embedding_manager.py:36 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info("Using OpenAI embeddings")` #### src/embedding_manager.py:50 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info("Using local sentence transformer embeddings")` #### src/knowledge_utils.py:1 - **Issue:** No metrics collection found - **Fix:** Add Prometheus metrics for performance monitoring - **Code:** `from prometheus_client import Counter, Histogram` #### src/knowledge_utils.py:33 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info(f"Loaded {len(self.local_docs)} local documents")` #### src/integration_hub_examples.py:15 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("\n=== Tool Compatibility Checker Demo ===")` #### src/integration_hub_examples.py:21 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("Tool compatibility checker not available")` #### src/integration_hub_examples.py:49 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"search_tool + file_processor compatible: {checker.check_compatibility('search_tool', 'file_p...` #### src/integration_hub_examples.py:50 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"search_tool + incompatible_tool compatible: {checker.check_compatibility('search_tool', 'inc...` #### src/integration_hub_examples.py:54 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"Tools compatible with search_tool: {compatible}")` #### src/integration_hub_examples.py:57 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"Tools incompatible with search_tool: {incompatible}")` #### src/integration_hub_examples.py:61 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("\n=== Semantic Tool Discovery Demo ===")` #### src/integration_hub_examples.py:67 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("Semantic tool discovery not available")` #### src/integration_hub_examples.py:98 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"\nTask: {task}")` #### src/integration_hub_examples.py:100 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f" - {tool_name}: {similarity:.3f}")` #### src/integration_hub_examples.py:104 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("\n=== Resource Pool Manager Demo ===")` #### src/integration_hub_examples.py:110 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("Resource pool manager not available")` #### src/integration_hub_examples.py:122 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("Acquiring database connections...")` #### src/integration_hub_examples.py:128 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f" Acquired connection {i+1}: {conn['connection_id']}")` #### src/integration_hub_examples.py:132 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"Pool stats: {stats}")` #### src/integration_hub_examples.py:137 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f" Released connection {i+1}: {conn['connection_id']}")` #### src/integration_hub_examples.py:141 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"Final pool stats: {final_stats}")` #### src/integration_hub_examples.py:145 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("\n=== Tool Version Manager Demo ===")` #### src/integration_hub_examples.py:151 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("Tool version manager not available")` #### src/integration_hub_examples.py:181 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"Latest version of search_tool: {latest}")` #### src/integration_hub_examples.py:186 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"Migrated params 1.0->2.0: {migrated_params}")` #### src/integration_hub_examples.py:189 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"Migrated params 2.0->3.0: {migrated_params_2}")` #### src/integration_hub_examples.py:193 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("Deprecated search_tool version 1.0")` #### src/integration_hub_examples.py:197 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("\n=== Rate Limit Manager Demo ===")` #### src/integration_hub_examples.py:203 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("Rate limit manager not available")` #### src/integration_hub_examples.py:211 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("Simulating tool calls with rate limiting...")` #### src/integration_hub_examples.py:215 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f" {tool_name} call {call_number} executed at {datetime.now().strftime('%H:%M:%S')}")` #### src/integration_hub_examples.py:229 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"\nAPI tool stats: {api_stats}")` #### src/integration_hub_examples.py:230 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"Search tool stats: {search_stats}")` #### src/integration_hub_examples.py:234 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("\n=== Monitoring Dashboard Demo ===")` #### src/integration_hub_examples.py:240 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("Monitoring dashboard not available")` #### src/integration_hub_examples.py:244 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("Collecting metrics...")` #### src/integration_hub_examples.py:247 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"Tool metrics: {metrics.get('tool_metrics', {})}")` #### src/integration_hub_examples.py:248 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"Session metrics: {metrics.get('session_metrics', {})}")` #### src/integration_hub_examples.py:249 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"Resource metrics: {metrics.get('resource_metrics', {})}")` #### src/integration_hub_examples.py:254 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"Active alerts: {alerts}")` #### src/integration_hub_examples.py:256 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("No active alerts")` #### src/integration_hub_examples.py:262 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"Critical alerts: {len(critical_alerts)}")` #### src/integration_hub_examples.py:263 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"Warning alerts: {len(warning_alerts)}")` #### src/integration_hub_examples.py:267 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("\n=== Integration Test Framework Demo ===")` #### src/integration_hub_examples.py:273 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("Integration test framework not available")` #### src/integration_hub_examples.py:277 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("Running integration tests...")` #### src/integration_hub_examples.py:280 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("Test Results:")` #### src/integration_hub_examples.py:283 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f" {test_name}: {status}")` #### src/integration_hub_examples.py:285 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f" Error: {result.get('error', 'Unknown error')}")` #### src/integration_hub_examples.py:287 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f" Details: {result.get('details', 'No details')}")` #### src/integration_hub_examples.py:291 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("\n=== Migration Helper Demo ===")` #### src/integration_hub_examples.py:313 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("Migrating tools from old registry...")` #### src/integration_hub_examples.py:316 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"Migration results:")` #### src/integration_hub_examples.py:317 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f" Migrated: {migration_report['migrated']}")` #### src/integration_hub_examples.py:318 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f" Failed: {migration_report['failed']}")` #### src/integration_hub_examples.py:319 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f" Warnings: {migration_report['warnings']}")` #### src/integration_hub_examples.py:323 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("\n=== Advanced Orchestrator Features Demo ===")` #### src/integration_hub_examples.py:329 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("Tool orchestrator not available")` #### src/integration_hub_examples.py:333 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("Testing compatibility checking...")` #### src/integration_hub_examples.py:335 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"Compatibility check result: {result}")` #### src/integration_hub_examples.py:338 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("Testing resource pool execution...")` #### src/integration_hub_examples.py:340 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"Resource pool result: {result}")` #### src/integration_hub_examples.py:344 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("Integration Hub Improvements - Comprehensive Demo")` #### src/integration_hub_examples.py:345 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("=" * 50)` #### src/integration_hub_examples.py:363 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("\n" + "=" * 50)` #### src/integration_hub_examples.py:364 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("All demonstrations completed successfully!")` #### src/integration_hub_examples.py:367 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"Error during demonstration: {e}")` #### src/config_cli.py:1 - **Issue:** No metrics collection found - **Fix:** Add Prometheus metrics for performance monitoring - **Code:** `from prometheus_client import Counter, Histogram` #### src/knowledge_ingestion.py:1 - **Issue:** No metrics collection found - **Fix:** Add Prometheus metrics for performance monitoring - **Code:** `from prometheus_client import Counter, Histogram` #### src/knowledge_ingestion.py:42 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info(f"Processing file: {file_path}")` #### src/knowledge_ingestion.py:52 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info(f"File already processed: {file_path}")` #### src/knowledge_ingestion.py:90 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info(f"Successfully ingested {len(documents)} chunks from {file_path}")` #### src/knowledge_ingestion.py:128 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info(f"Processing URL: {url}")` #### src/knowledge_ingestion.py:153 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info(f"URL already processed: {url}")` #### src/knowledge_ingestion.py:188 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info(f"Successfully ingested {len(documents)} chunks from {url}")` #### src/knowledge_ingestion.py:218 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info(f"Updated knowledge lifecycle for document {doc_id}")` #### src/knowledge_ingestion.py:230 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.debug(f"Reindex not needed yet ({doc_count} recent docs)")` #### src/knowledge_ingestion.py:233 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info("Triggering vector store reindex...")` #### src/knowledge_ingestion.py:240 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info("Vector store reindex completed")` #### src/knowledge_ingestion.py:252 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info(f"Invalidated cache pattern: {pattern}")` #### src/knowledge_ingestion.py:281 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info("Performing vector store reindex...")` #### src/knowledge_ingestion.py:328 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info(f"Successfully ingested document {doc_id} from {doc_path}")` #### src/knowledge_ingestion.py:361 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info(f"Successfully ingested URL {doc_id} from {url}")` #### src/knowledge_ingestion.py:375 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info("Starting knowledge ingestion service...")` #### src/knowledge_ingestion.py:388 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info("Stopped knowledge ingestion service")` #### src/knowledge_ingestion.py:422 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info(f"Added watch directory: {directory}")` #### src/knowledge_ingestion.py:427 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info(f"Added poll URL: {url}")` #### src/database_enhanced.py:67 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info(f"Supabase connection pool initialized with {self.pool_size} connections")` #### src/database_enhanced.py:139 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info(f"Inserted {len(batch_data)} documents")` #### src/database_enhanced.py:254 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info("Subscribed to tool metrics")` #### src/database_enhanced.py:263 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info("Subscribed to knowledge updates")` #### src/database_enhanced.py:272 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info(f"Unsubscribed from {name}")` #### src/database_enhanced.py:303 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info("Enhanced Supabase components initialized successfully")` #### src/health_check.py:1 - **Issue:** No metrics collection found - **Fix:** Add Prometheus metrics for performance monitoring - **Code:** `from prometheus_client import Counter, Histogram` #### src/tools_introspection.py:1 - **Issue:** No metrics collection found - **Fix:** Add Prometheus metrics for performance monitoring - **Code:** `from prometheus_client import Counter, Histogram` #### src/tools_introspection.py:142 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `{"code": "print('Hello, World!')", "description": "Simple print statement"},` #### src/tools_introspection.py:143 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `{"code": "import math; print(math.pi)", "description": "Use math library"}` #### src/llamaindex_enhanced.py:1 - **Issue:** No metrics collection found - **Fix:** Add Prometheus metrics for performance monitoring - **Code:** `from prometheus_client import Counter, Histogram` #### src/llamaindex_enhanced.py:251 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info(f"Loaded existing index from {self.storage_path}")` #### src/llamaindex_enhanced.py:253 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info(f"No existing index found at {self.storage_path}: {e}")` #### src/llamaindex_enhanced.py:277 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info(f"Added {len(documents)} documents incrementally")` #### src/llamaindex_enhanced.py:336 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info("GAIA query engine setup completed")` #### src/llamaindex_enhanced.py:401 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info("Creating enhanced knowledge base with Supabase")` #### src/llamaindex_enhanced.py:405 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info(f"Creating incremental knowledge base at {storage_path}")` #### src/tools_interactive.py:1 - **Issue:** No metrics collection found - **Fix:** Add Prometheus metrics for performance monitoring - **Code:** `from prometheus_client import Counter, Histogram` #### src/tools_interactive.py:134 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info(f"User feedback collected: {feedback_data}")` #### src/multi_agent_system.py:56 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info(f"Multi-agent system registered {len(tools)} tools with unified registry")` #### src/multi_agent_system.py:73 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info("Multi-agent system initialized with tool introspection")` #### src/multi_agent_system.py:138 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info(f"Created {role} agent with {len(agent_tools)} tools")` #### src/multi_agent_system.py:161 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info(f"Found {len(role_tools)} reliable tools for {role}")` #### src/multi_agent_system.py:178 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info(f"Found {len(suitable_tools)} suitable tools for {role} via introspection")` #### src/multi_agent_system.py:191 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info(f"Using {len(fallback_tools)} fallback tools for {role}")` #### src/multi_agent_system.py:312 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.debug("Tool metrics would be updated here")` #### src/langchain_enhanced.py:31 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info("LLM started")` #### src/langchain_enhanced.py:37 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info(f"LLM completed in {duration:.2f}s")` #### src/tools_enhanced.py:1 - **Issue:** No metrics collection found - **Fix:** Add Prometheus metrics for performance monitoring - **Code:** `from prometheus_client import Counter, Histogram` #### src/tools_enhanced.py:73 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info("Production tools loaded successfully")` #### src/tools_enhanced.py:125 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info(f"GAIA video analyzer called with URL: {video_url}")` #### src/tools_enhanced.py:172 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info(f"Chess logic tool called with FEN: {fen_string}")` #### src/tools_enhanced.py:222 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info(f"Enhanced web researcher called: query='{query}', date_range={date_range}, type={search...` #### src/tools_enhanced.py:279 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info(f"Abstract reasoning tool called with puzzle: {puzzle_text[:100]}...")` #### src/tools_enhanced.py:452 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info(f"Enhanced tools loaded successfully: {len(tools)} tools available")` #### src/tools_enhanced.py:495 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info(f"Enhanced image analyzer called: {filename}, task: {task}")` #### src/main.py:1 - **Issue:** No metrics collection found - **Fix:** Add Prometheus metrics for performance monitoring - **Code:** `from prometheus_client import Counter, Histogram` #### src/main.py:64 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"Failed to initialize application: {str(e)}")` #### src/main.py:177 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("\nShutting down...")` #### src/main.py:61 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `self.logger.info("AI Agent application initialized successfully")` #### src/main.py:105 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `self.logger.info("All services initialized successfully")` #### src/main.py:121 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `self.logger.info("User interfaces initialized successfully")` #### src/main.py:128 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `self.logger.info(f"Starting web interface on {self.config.api_host}:{self.config.api_port}")` #### src/main.py:136 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `self.logger.info("Starting CLI interface")` #### src/main.py:141 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `self.logger.info("Shutting down AI Agent application")` #### src/main.py:153 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `self.logger.info("Application shutdown complete")` #### src/tools/file_reader.py:1 - **Issue:** No metrics collection found - **Fix:** Add Prometheus metrics for performance monitoring - **Code:** `from prometheus_client import Counter, Histogram` #### src/tools/semantic_search_tool.py:1 - **Issue:** No metrics collection found - **Fix:** Add Prometheus metrics for performance monitoring - **Code:** `from prometheus_client import Counter, Histogram` #### src/tools/tavily_search.py:1 - **Issue:** No metrics collection found - **Fix:** Add Prometheus metrics for performance monitoring - **Code:** `from prometheus_client import Counter, Histogram` #### src/tools/base_tool.py:66 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"🎮 GPU Acceleration: Using device '{device}' for embeddings")` #### src/tools/base_tool.py:75 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("🚀 Loading high-performance embedding model for GPU...")` #### src/tools/base_tool.py:78 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("✅ High-performance GPU embedding model loaded successfully")` #### src/tools/base_tool.py:80 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"⚠️ Could not load large model, using standard model: {e}")` #### src/tools/base_tool.py:83 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"✅ Semantic search initialized with device: {device}")` #### src/tools/base_tool.py:597 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info("Knowledge base tool initialized with vector store")` #### src/tools/base_tool.py:603 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info("Knowledge base tool initialized with local fallback")` #### src/tools/base_tool.py:611 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info("Knowledge base tool initialized with local fallback after error")` #### src/tools/python_interpreter.py:1 - **Issue:** No metrics collection found - **Fix:** Add Prometheus metrics for performance monitoring - **Code:** `from prometheus_client import Counter, Histogram` #### src/tools/weather.py:1 - **Issue:** No metrics collection found - **Fix:** Add Prometheus metrics for performance monitoring - **Code:** `from prometheus_client import Counter, Histogram` #### src/tools/advanced_file_reader.py:1 - **Issue:** No metrics collection found - **Fix:** Add Prometheus metrics for performance monitoring - **Code:** `from prometheus_client import Counter, Histogram` #### src/reasoning/reasoning_path.py:1 - **Issue:** No metrics collection found - **Fix:** Add Prometheus metrics for performance monitoring - **Code:** `from prometheus_client import Counter, Histogram` #### src/tools/audio_transcriber.py:1 - **Issue:** No metrics collection found - **Fix:** Add Prometheus metrics for performance monitoring - **Code:** `from prometheus_client import Counter, Histogram` #### src/config/integrations.py:138 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info("Configuration updated successfully")` #### src/config/integrations.py:205 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info(f"Configuration saved to {file_path}")` #### src/config/integrations.py:223 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info(f"Configuration loaded from {file_path}")` #### src/errors/error_category.py:1 - **Issue:** No metrics collection found - **Fix:** Add Prometheus metrics for performance monitoring - **Code:** `from prometheus_client import Counter, Histogram` #### src/infrastructure/database/in_memory_tool_repository.py:1 - **Issue:** No metrics collection found - **Fix:** Add Prometheus metrics for performance monitoring - **Code:** `from prometheus_client import Counter, Histogram` #### src/infrastructure/database/in_memory_message_repository.py:1 - **Issue:** No metrics collection found - **Fix:** Add Prometheus metrics for performance monitoring - **Code:** `from prometheus_client import Counter, Histogram` #### src/infrastructure/database/in_memory_session_repository.py:1 - **Issue:** No metrics collection found - **Fix:** Add Prometheus metrics for performance monitoring - **Code:** `from prometheus_client import Counter, Histogram` #### src/infrastructure/database/in_memory_user_repository.py:1 - **Issue:** No metrics collection found - **Fix:** Add Prometheus metrics for performance monitoring - **Code:** `from prometheus_client import Counter, Histogram` #### src/infrastructure/di/container.py:1 - **Issue:** No metrics collection found - **Fix:** Add Prometheus metrics for performance monitoring - **Code:** `from prometheus_client import Counter, Histogram` #### src/infrastructure/events/event_bus.py:1 - **Issue:** No metrics collection found - **Fix:** Add Prometheus metrics for performance monitoring - **Code:** `from prometheus_client import Counter, Histogram` #### src/infrastructure/events/event_bus.py:9 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"Handled event: {event.type} from {event.source}")` #### src/infrastructure/events/event_bus.py:164 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `logger.info(f"Subscription removed: {subscription_id}")` #### src/infrastructure/logging/logging_service.py:1 - **Issue:** No metrics collection found - **Fix:** Add Prometheus metrics for performance monitoring - **Code:** `from prometheus_client import Counter, Histogram` #### src/infrastructure/logging/logging_service.py:35 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `self.logger.info(msg, extra=extra)` #### src/infrastructure/logging/logging_service.py:44 - **Issue:** Logging without structured data - **Fix:** Use structured logging with extra fields - **Code:** `self.logger.info(f"Interaction: {kwargs}")` #### src/application/agents/agent_executor.py:1 - **Issue:** No metrics collection found - **Fix:** Add Prometheus metrics for performance monitoring - **Code:** `from prometheus_client import Counter, Histogram` #### src/infrastructure/config/configuration_service.py:7 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(config.model_config.primary_model)` #### src/application/tools/tool_executor.py:1 - **Issue:** No metrics collection found - **Fix:** Add Prometheus metrics for performance monitoring - **Code:** `from prometheus_client import Counter, Histogram` #### src/gaia/metrics/gaia_metrics.py:109 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("=" * 60)` #### src/gaia/metrics/gaia_metrics.py:110 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("GAIA PERFORMANCE METRICS SUMMARY")` #### src/gaia/metrics/gaia_metrics.py:111 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("=" * 60)` #### src/gaia/metrics/gaia_metrics.py:112 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"Overall Accuracy: {stats['overall_accuracy']:.1%}")` #### src/gaia/metrics/gaia_metrics.py:113 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"Total Questions: {stats['total_questions']}")` #### src/gaia/metrics/gaia_metrics.py:114 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"Question Types Tested: {stats['question_types_tested']}")` #### src/gaia/metrics/gaia_metrics.py:115 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"Average Response Time: {stats['avg_response_time']:.2f}s")` #### src/gaia/metrics/gaia_metrics.py:117 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("\n📊 Accuracy by Question Type:")` #### src/gaia/metrics/gaia_metrics.py:119 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f" {qtype}: {accuracy:.1%}")` #### src/gaia/metrics/gaia_metrics.py:121 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("\n🛠️ Tool Effectiveness:")` #### src/gaia/metrics/gaia_metrics.py:123 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f" {tool}: {effectiveness:.1%}")` #### src/gaia/metrics/gaia_metrics.py:125 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("\n📈 Confidence Calibration:")` #### src/gaia/metrics/gaia_metrics.py:127 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f" {qtype}: {cal['accuracy']:.1%} accuracy, {cal['avg_confidence']:.1%} confidence")` #### src/gaia/metrics/gaia_metrics.py:130 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("\n🚨 Error Analysis:")` #### src/gaia/metrics/gaia_metrics.py:132 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f" {error}: {count} occurrences")` #### src/application/services/query_classifier.py:1 - **Issue:** No metrics collection found - **Fix:** Add Prometheus metrics for performance monitoring - **Code:** `from prometheus_client import Counter, Histogram` #### src/application/services/query_classifier.py:121 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"Query classification completed in {latency:.1f}ms")` #### src/application/services/query_classifier.py:172 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"LLM classification failed: {e}, falling back to heuristic")` #### src/application/services/query_classifier.py:269 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"\nQuery: {query}")` #### src/application/services/query_classifier.py:270 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"Category: {classification.category}")` #### src/application/services/query_classifier.py:271 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"Confidence: {classification.confidence}")` #### src/application/services/query_classifier.py:272 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"Parameters: {params}")` #### src/gaia/tools/gaia_specialized.py:1 - **Issue:** No metrics collection found - **Fix:** Add Prometheus metrics for performance monitoring - **Code:** `from prometheus_client import Counter, Histogram` #### src/gaia/caching/gaia_cache.py:1 - **Issue:** No metrics collection found - **Fix:** Add Prometheus metrics for performance monitoring - **Code:** `from prometheus_client import Counter, Histogram` #### src/gaia/testing/gaia_test_patterns.py:1 - **Issue:** No metrics collection found - **Fix:** Add Prometheus metrics for performance monitoring - **Code:** `from prometheus_client import Counter, Histogram` #### src/gaia/testing/gaia_test_patterns.py:184 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"Question: {question}")` #### src/gaia/testing/gaia_test_patterns.py:185 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"Identified Pattern: {pattern.name}")` #### src/gaia/testing/gaia_test_patterns.py:186 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"Expected Output Type: {pattern.expected_output_type}")` #### src/gaia/testing/gaia_test_patterns.py:191 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"Validation Result: {validation_result}")` #### src/gaia/testing/gaia_test_patterns.py:195 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"Generated {len(test_cases)} test cases")` #### src/shared/exceptions/domain.py:1 - **Issue:** No metrics collection found - **Fix:** Add Prometheus metrics for performance monitoring - **Code:** `from prometheus_client import Counter, Histogram` #### src/shared/types/__init__.py:1 - **Issue:** No metrics collection found - **Fix:** Add Prometheus metrics for performance monitoring - **Code:** `from prometheus_client import Counter, Histogram` #### src/core/services/meta_cognition.py:1 - **Issue:** No metrics collection found - **Fix:** Add Prometheus metrics for performance monitoring - **Code:** `from prometheus_client import Counter, Histogram` #### src/core/services/meta_cognition.py:286 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"\nQuery: {query}")` #### src/core/services/meta_cognition.py:287 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"Confidence: {score.confidence:.2f}")` #### src/core/services/meta_cognition.py:288 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"Should use tools: {should_use}")` #### src/core/services/meta_cognition.py:289 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"Reasoning: {score.reasoning}")` #### src/core/services/meta_cognition.py:291 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"Recommended tools: {', '.join(score.recommended_tools)}")` #### src/core/services/working_memory.py:1 - **Issue:** No metrics collection found - **Fix:** Add Prometheus metrics for performance monitoring - **Code:** `from prometheus_client import Counter, Histogram` #### src/core/services/working_memory.py:132 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"Error updating working memory: {e}")` #### src/core/services/working_memory.py:279 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(f"Error compressing memory: {e}")` #### src/core/services/working_memory.py:340 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("Working Memory State:")` #### src/core/services/working_memory.py:341 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(memory.current_state.to_json())` #### src/core/services/working_memory.py:343 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("\nMemory Context String:")` #### src/core/services/working_memory.py:344 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(memory.get_memory_for_prompt())` #### src/core/services/working_memory.py:346 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print("\nMemory Stats:")` #### src/core/services/working_memory.py:347 - **Issue:** Using print instead of structured logging - **Fix:** Use structured logging with extra fields - **Code:** `print(memory.get_memory_stats())` #### src/core/entities/message.py:1 - **Issue:** No metrics collection found - **Fix:** Add Prometheus metrics for performance monitoring - **Code:** `from prometheus_client import Counter, Histogram` #### src/core/interfaces/session_repository.py:1 - **Issue:** No metrics collection found - **Fix:** Add Prometheus metrics for performance monitoring - **Code:** `from prometheus_client import Counter, Histogram` #### src/core/interfaces/user_repository.py:1 - **Issue:** No metrics collection found - **Fix:** Add Prometheus metrics for performance monitoring - **Code:** `from prometheus_client import Counter, Histogram` #### src/core/interfaces/__init__.py:1 - **Issue:** No metrics collection found - **Fix:** Add Prometheus metrics for performance monitoring - **Code:** `from prometheus_client import Counter, Histogram` #### src/core/entities/agent.py:1 - **Issue:** No metrics collection found - **Fix:** Add Prometheus metrics for performance monitoring - **Code:** `from prometheus_client import Counter, Histogram` #### src/core/interfaces/tool_repository.py:1 - **Issue:** No metrics collection found - **Fix:** Add Prometheus metrics for performance monitoring - **Code:** `from prometheus_client import Counter, Histogram` #### src/core/interfaces/message_repository.py:1 - **Issue:** No metrics collection found - **Fix:** Add Prometheus metrics for performance monitoring - **Code:** `from prometheus_client import Counter, Histogram` ### 💡 Recommendations - Implement distributed tracing with OpenTelemetry - Add Prometheus metrics for all critical operations - Set up centralized logging with ELK or similar - Create Grafana dashboards for real-time monitoring ## 📌 ORCHESTRATION Upgrade Points ### 🔴 HIGH Priority (29 items) #### scripts/setup_supabase.py:113 - **Issue:** Database calls without circuit breaker - **Fix:** Implement circuit breaker pattern - **Code:** `SUPABASE_URL=https://your-project-id.supabase.co` #### src/integration_hub.py:1024 - **Issue:** Database calls without circuit breaker - **Fix:** Implement circuit breaker pattern - **Code:** `if self.config.supabase.is_configured():` #### src/integration_hub.py:1153 - **Issue:** Database calls without circuit breaker - **Fix:** Implement circuit breaker pattern - **Code:** `url=self.config.supabase.url,` #### src/integration_hub.py:1154 - **Issue:** Database calls without circuit breaker - **Fix:** Implement circuit breaker pattern - **Code:** `key=self.config.supabase.key` #### src/integration_manager.py:48 - **Issue:** Database calls without circuit breaker - **Fix:** Implement circuit breaker pattern - **Code:** `if self.config.supabase.is_configured():` #### src/advanced_agent_fsm.py:1 - **Issue:** Missing workflow orchestration - **Fix:** Implement workflow engine (e.g., Temporal, Airflow) - **Code:** `Consider using LangGraph or custom FSM` #### src/config_cli.py:117 - **Issue:** Database calls without circuit breaker - **Fix:** Implement circuit breaker pattern - **Code:** `if integration_config.supabase.is_configured():` #### src/database_enhanced.py:100 - **Issue:** Database calls without circuit breaker - **Fix:** Implement circuit breaker pattern - **Code:** `self._batch_size = config.supabase.batch_size if config else 100` #### src/database_enhanced.py:282 - **Issue:** Database calls without circuit breaker - **Fix:** Implement circuit breaker pattern - **Code:** `if integration_config and integration_config.supabase.is_configured():` #### src/database_enhanced.py:283 - **Issue:** Database calls without circuit breaker - **Fix:** Implement circuit breaker pattern - **Code:** `url = integration_config.supabase.url` #### src/database_enhanced.py:284 - **Issue:** Database calls without circuit breaker - **Fix:** Implement circuit breaker pattern - **Code:** `key = integration_config.supabase.key` #### src/health_check.py:35 - **Issue:** Database calls without circuit breaker - **Fix:** Implement circuit breaker pattern - **Code:** `if integration_config.supabase.is_configured():` #### src/health_check.py:189 - **Issue:** Database calls without circuit breaker - **Fix:** Implement circuit breaker pattern - **Code:** `if not integration_config.supabase.is_configured():` #### src/health_check.py:314 - **Issue:** Database calls without circuit breaker - **Fix:** Implement circuit breaker pattern - **Code:** `"supabase_configured": integration_config.supabase.is_configured(),` #### src/llamaindex_enhanced.py:395 - **Issue:** Database calls without circuit breaker - **Fix:** Implement circuit breaker pattern - **Code:** `use_supabase = integration_config.supabase.is_configured() if integration_config else False` #### src/multi_agent_system.py:1 - **Issue:** Missing workflow orchestration - **Fix:** Implement workflow engine (e.g., Temporal, Airflow) - **Code:** `Consider using LangGraph or custom FSM` #### src/config/integrations.py:106 - **Issue:** Database calls without circuit breaker - **Fix:** Implement circuit breaker pattern - **Code:** `self.supabase.url = os.getenv("SUPABASE_URL", "")` #### src/config/integrations.py:107 - **Issue:** Database calls without circuit breaker - **Fix:** Implement circuit breaker pattern - **Code:** `self.supabase.key = os.getenv("SUPABASE_KEY", "")` #### src/config/integrations.py:108 - **Issue:** Database calls without circuit breaker - **Fix:** Implement circuit breaker pattern - **Code:** `self.supabase.service_key = os.getenv("SUPABASE_SERVICE_KEY", "")` #### src/config/integrations.py:109 - **Issue:** Database calls without circuit breaker - **Fix:** Implement circuit breaker pattern - **Code:** `self.supabase.db_password = os.getenv("SUPABASE_DB_PASSWORD", "")` #### src/config/integrations.py:150 - **Issue:** Database calls without circuit breaker - **Fix:** Implement circuit breaker pattern - **Code:** `if self.supabase.is_configured():` #### src/config/integrations.py:151 - **Issue:** Database calls without circuit breaker - **Fix:** Implement circuit breaker pattern - **Code:** `if not self.supabase.url.startswith("https://"):` #### src/config/integrations.py:172 - **Issue:** Database calls without circuit breaker - **Fix:** Implement circuit breaker pattern - **Code:** `"url": self.supabase.url,` #### src/config/integrations.py:173 - **Issue:** Database calls without circuit breaker - **Fix:** Implement circuit breaker pattern - **Code:** `"key": "***" if self.supabase.key else "",` #### src/config/integrations.py:174 - **Issue:** Database calls without circuit breaker - **Fix:** Implement circuit breaker pattern - **Code:** `"collection_name": self.supabase.collection_name,` #### src/config/integrations.py:175 - **Issue:** Database calls without circuit breaker - **Fix:** Implement circuit breaker pattern - **Code:** `"enable_realtime": self.supabase.enable_realtime` #### src/application/agents/agent_executor.py:1 - **Issue:** Missing workflow orchestration - **Fix:** Implement workflow engine (e.g., Temporal, Airflow) - **Code:** `Consider using LangGraph or custom FSM` #### src/core/entities/agent.py:1 - **Issue:** Missing workflow orchestration - **Fix:** Implement workflow engine (e.g., Temporal, Airflow) - **Code:** `Consider using LangGraph or custom FSM` #### src/core/interfaces/agent_repository.py:1 - **Issue:** Missing workflow orchestration - **Fix:** Implement workflow engine (e.g., Temporal, Airflow) - **Code:** `Consider using LangGraph or custom FSM` ### 🔴 MEDIUM Priority (118 items) #### simple_hybrid_demo.py:1 - **Issue:** Async code without parallel execution - **Fix:** Use asyncio.gather() for parallel tool execution - **Code:** `results = await asyncio.gather(*tasks)` #### simple_hybrid_demo.py:228 - **Issue:** Constructor without type hints for DI - **Fix:** Add type hints for dependency injection - **Code:** `def __init__(self, service: ServiceType):` #### session.py:149 - **Issue:** Constructor without type hints for DI - **Fix:** Add type hints for dependency injection - **Code:** `def __init__(self, service: ServiceType):` #### demo_hybrid_architecture.py:1 - **Issue:** Async code without parallel execution - **Fix:** Use asyncio.gather() for parallel tool execution - **Code:** `results = await asyncio.gather(*tasks)` #### app.py:1 - **Issue:** Async code without parallel execution - **Fix:** Use asyncio.gather() for parallel tool execution - **Code:** `results = await asyncio.gather(*tasks)` #### app.py:127 - **Issue:** Constructor without type hints for DI - **Fix:** Add type hints for dependency injection - **Code:** `def __init__(self, service: ServiceType):` #### test_integration_fixes.py:1 - **Issue:** Async code without parallel execution - **Fix:** Use asyncio.gather() for parallel tool execution - **Code:** `results = await asyncio.gather(*tasks)` #### test_integration_fixes.py:160 - **Issue:** Constructor without type hints for DI - **Fix:** Add type hints for dependency injection - **Code:** `def __init__(self, service: ServiceType):` #### tests/test_session.py:1 - **Issue:** Async code without parallel execution - **Fix:** Use asyncio.gather() for parallel tool execution - **Code:** `results = await asyncio.gather(*tasks)` #### tests/test_repositories.py:1 - **Issue:** Async code without parallel execution - **Fix:** Use asyncio.gather() for parallel tool execution - **Code:** `results = await asyncio.gather(*tasks)` #### tests/gaia_testing_framework.py:1 - **Issue:** Async code without parallel execution - **Fix:** Use asyncio.gather() for parallel tool execution - **Code:** `results = await asyncio.gather(*tasks)` #### tests/gaia_testing_framework.py:51 - **Issue:** Constructor without type hints for DI - **Fix:** Add type hints for dependency injection - **Code:** `def __init__(self, service: ServiceType):` #### gaia_logic.py:222 - **Issue:** HTTP calls without retry - **Fix:** Add @retry decorator or use tenacity - **Code:** `response = requests.get(self.questions_url, timeout=15)` #### gaia_logic.py:325 - **Issue:** HTTP calls without retry - **Fix:** Add @retry decorator or use tenacity - **Code:** `response = requests.post(self.submit_url, json=submission_data, timeout=60)` #### tests/test_integration.py:1 - **Issue:** Async code without parallel execution - **Fix:** Use asyncio.gather() for parallel tool execution - **Code:** `results = await asyncio.gather(*tasks)` #### gaia_logic.py:30 - **Issue:** Constructor without type hints for DI - **Fix:** Add type hints for dependency injection - **Code:** `def __init__(self, service: ServiceType):` #### gaia_logic.py:150 - **Issue:** Constructor without type hints for DI - **Fix:** Add type hints for dependency injection - **Code:** `def __init__(self, service: ServiceType):` #### tests/test_integration_fixes.py:1 - **Issue:** Async code without parallel execution - **Fix:** Use asyncio.gather() for parallel tool execution - **Code:** `results = await asyncio.gather(*tasks)` #### src/integration_hub.py:1 - **Issue:** Async code without parallel execution - **Fix:** Use asyncio.gather() for parallel tool execution - **Code:** `results = await asyncio.gather(*tasks)` #### src/crew_enhanced.py:1 - **Issue:** Async code without parallel execution - **Fix:** Use asyncio.gather() for parallel tool execution - **Code:** `results = await asyncio.gather(*tasks)` #### src/crew_enhanced.py:15 - **Issue:** Constructor without type hints for DI - **Fix:** Add type hints for dependency injection - **Code:** `def __init__(self, service: ServiceType):` #### src/crew_enhanced.py:248 - **Issue:** Constructor without type hints for DI - **Fix:** Add type hints for dependency injection - **Code:** `def __init__(self, service: ServiceType):` #### src/crew_enhanced.py:255 - **Issue:** Constructor without type hints for DI - **Fix:** Add type hints for dependency injection - **Code:** `def __init__(self, service: ServiceType):` #### src/crew_enhanced.py:270 - **Issue:** Constructor without type hints for DI - **Fix:** Add type hints for dependency injection - **Code:** `def __init__(self, service: ServiceType):` #### tests/test_tools.py:204 - **Issue:** Sequential tool execution - **Fix:** Use asyncio.gather() or ThreadPoolExecutor - **Code:** `for tool in tools:` #### tests/test_tools.py:212 - **Issue:** Sequential tool execution - **Fix:** Use asyncio.gather() or ThreadPoolExecutor - **Code:** `for tool in tools:` #### tests/test_tools.py:220 - **Issue:** Sequential tool execution - **Fix:** Use asyncio.gather() or ThreadPoolExecutor - **Code:** `for tool in tools:` #### src/integration_hub.py:163 - **Issue:** Constructor without type hints for DI - **Fix:** Add type hints for dependency injection - **Code:** `def __init__(self, service: ServiceType):` #### src/integration_hub.py:227 - **Issue:** Constructor without type hints for DI - **Fix:** Add type hints for dependency injection - **Code:** `def __init__(self, service: ServiceType):` #### src/integration_hub.py:278 - **Issue:** Constructor without type hints for DI - **Fix:** Add type hints for dependency injection - **Code:** `def __init__(self, service: ServiceType):` #### src/integration_hub.py:353 - **Issue:** Constructor without type hints for DI - **Fix:** Add type hints for dependency injection - **Code:** `def __init__(self, service: ServiceType):` #### src/integration_hub.py:744 - **Issue:** Constructor without type hints for DI - **Fix:** Add type hints for dependency injection - **Code:** `def __init__(self, service: ServiceType):` #### src/integration_hub.py:1000 - **Issue:** Constructor without type hints for DI - **Fix:** Add type hints for dependency injection - **Code:** `def __init__(self, service: ServiceType):` #### src/integration_hub.py:1427 - **Issue:** Constructor without type hints for DI - **Fix:** Add type hints for dependency injection - **Code:** `def __init__(self, service: ServiceType):` #### src/integration_hub.py:1497 - **Issue:** Constructor without type hints for DI - **Fix:** Add type hints for dependency injection - **Code:** `def __init__(self, service: ServiceType):` #### src/integration_hub.py:1654 - **Issue:** Constructor without type hints for DI - **Fix:** Add type hints for dependency injection - **Code:** `def __init__(self, service: ServiceType):` #### src/advanced_hybrid_architecture.py:383 - **Issue:** Constructor without type hints for DI - **Fix:** Add type hints for dependency injection - **Code:** `def __init__(self, service: ServiceType):` #### src/advanced_hybrid_architecture.py:603 - **Issue:** Constructor without type hints for DI - **Fix:** Add type hints for dependency injection - **Code:** `def __init__(self, service: ServiceType):` #### src/advanced_hybrid_architecture.py:621 - **Issue:** Constructor without type hints for DI - **Fix:** Add type hints for dependency injection - **Code:** `def __init__(self, service: ServiceType):` #### src/advanced_hybrid_architecture.py:682 - **Issue:** Constructor without type hints for DI - **Fix:** Add type hints for dependency injection - **Code:** `def __init__(self, service: ServiceType):` #### src/advanced_hybrid_architecture.py:711 - **Issue:** Constructor without type hints for DI - **Fix:** Add type hints for dependency injection - **Code:** `def __init__(self, service: ServiceType):` #### src/advanced_hybrid_architecture.py:778 - **Issue:** Constructor without type hints for DI - **Fix:** Add type hints for dependency injection - **Code:** `def __init__(self, service: ServiceType):` #### src/advanced_hybrid_architecture.py:843 - **Issue:** Constructor without type hints for DI - **Fix:** Add type hints for dependency injection - **Code:** `def __init__(self, service: ServiceType):` #### src/advanced_hybrid_architecture.py:872 - **Issue:** Constructor without type hints for DI - **Fix:** Add type hints for dependency injection - **Code:** `def __init__(self, service: ServiceType):` #### src/advanced_hybrid_architecture.py:899 - **Issue:** Constructor without type hints for DI - **Fix:** Add type hints for dependency injection - **Code:** `def __init__(self, service: ServiceType):` #### src/integration_manager.py:1 - **Issue:** Async code without parallel execution - **Fix:** Use asyncio.gather() for parallel tool execution - **Code:** `results = await asyncio.gather(*tasks)` #### src/integration_manager.py:27 - **Issue:** Constructor without type hints for DI - **Fix:** Add type hints for dependency injection - **Code:** `def __init__(self, service: ServiceType):` #### src/database.py:1 - **Issue:** Async code without parallel execution - **Fix:** Use asyncio.gather() for parallel tool execution - **Code:** `results = await asyncio.gather(*tasks)` #### src/advanced_agent_fsm.py:756 - **Issue:** Sequential tool execution - **Fix:** Use asyncio.gather() or ThreadPoolExecutor - **Code:** `for tool in tools:` #### src/advanced_agent_fsm.py:772 - **Issue:** Sequential tool execution - **Fix:** Use asyncio.gather() or ThreadPoolExecutor - **Code:** `for tool in tools:` #### src/advanced_agent_fsm.py:500 - **Issue:** Constructor without type hints for DI - **Fix:** Add type hints for dependency injection - **Code:** `def __init__(self, service: ServiceType):` #### src/advanced_agent_fsm.py:873 - **Issue:** Constructor without type hints for DI - **Fix:** Add type hints for dependency injection - **Code:** `def __init__(self, service: ServiceType):` #### src/advanced_agent_fsm.py:910 - **Issue:** Constructor without type hints for DI - **Fix:** Add type hints for dependency injection - **Code:** `def __init__(self, service: ServiceType):` #### src/advanced_agent_fsm.py:930 - **Issue:** Constructor without type hints for DI - **Fix:** Add type hints for dependency injection - **Code:** `def __init__(self, service: ServiceType):` #### src/advanced_agent_fsm.py:1059 - **Issue:** Constructor without type hints for DI - **Fix:** Add type hints for dependency injection - **Code:** `def __init__(self, service: ServiceType):` #### src/integration_hub_examples.py:297 - **Issue:** Constructor without type hints for DI - **Fix:** Add type hints for dependency injection - **Code:** `def __init__(self, service: ServiceType):` #### src/knowledge_ingestion.py:1 - **Issue:** Async code without parallel execution - **Fix:** Use asyncio.gather() for parallel tool execution - **Code:** `results = await asyncio.gather(*tasks)` #### src/knowledge_ingestion.py:131 - **Issue:** HTTP calls without retry - **Fix:** Add @retry decorator or use tenacity - **Code:** `response = requests.get(url, timeout=30)` #### src/database_enhanced.py:1 - **Issue:** Async code without parallel execution - **Fix:** Use asyncio.gather() for parallel tool execution - **Code:** `results = await asyncio.gather(*tasks)` #### src/health_check.py:1 - **Issue:** Async code without parallel execution - **Fix:** Use asyncio.gather() for parallel tool execution - **Code:** `results = await asyncio.gather(*tasks)` #### src/tools_introspection.py:201 - **Issue:** Sequential tool execution - **Fix:** Use asyncio.gather() or ThreadPoolExecutor - **Code:** `for tool in tools:` #### src/tools_introspection.py:36 - **Issue:** Constructor without type hints for DI - **Fix:** Add type hints for dependency injection - **Code:** `def __init__(self, service: ServiceType):` #### src/knowledge_ingestion.py:25 - **Issue:** Constructor without type hints for DI - **Fix:** Add type hints for dependency injection - **Code:** `def __init__(self, service: ServiceType):` #### src/knowledge_ingestion.py:198 - **Issue:** Constructor without type hints for DI - **Fix:** Add type hints for dependency injection - **Code:** `def __init__(self, service: ServiceType):` #### src/knowledge_ingestion.py:287 - **Issue:** Constructor without type hints for DI - **Fix:** Add type hints for dependency injection - **Code:** `def __init__(self, service: ServiceType):` #### src/llamaindex_enhanced.py:1 - **Issue:** Async code without parallel execution - **Fix:** Use asyncio.gather() for parallel tool execution - **Code:** `results = await asyncio.gather(*tasks)` #### src/llamaindex_enhanced.py:61 - **Issue:** Constructor without type hints for DI - **Fix:** Add type hints for dependency injection - **Code:** `def __init__(self, service: ServiceType):` #### src/llamaindex_enhanced.py:175 - **Issue:** Constructor without type hints for DI - **Fix:** Add type hints for dependency injection - **Code:** `def __init__(self, service: ServiceType):` #### src/tools_interactive.py:1 - **Issue:** Async code without parallel execution - **Fix:** Use asyncio.gather() for parallel tool execution - **Code:** `results = await asyncio.gather(*tasks)` #### src/tools_interactive.py:18 - **Issue:** Constructor without type hints for DI - **Fix:** Add type hints for dependency injection - **Code:** `def __init__(self, service: ServiceType):` #### src/multi_agent_system.py:53 - **Issue:** Sequential tool execution - **Fix:** Use asyncio.gather() or ThreadPoolExecutor - **Code:** `for tool in tools:` #### src/multi_agent_system.py:69 - **Issue:** Sequential tool execution - **Fix:** Use asyncio.gather() or ThreadPoolExecutor - **Code:** `for tool in tools:` #### src/multi_agent_system.py:200 - **Issue:** Sequential tool execution - **Fix:** Use asyncio.gather() or ThreadPoolExecutor - **Code:** `for tool in tools:` #### src/langchain_enhanced.py:1 - **Issue:** Async code without parallel execution - **Fix:** Use asyncio.gather() for parallel tool execution - **Code:** `results = await asyncio.gather(*tasks)` #### src/langchain_enhanced.py:24 - **Issue:** Constructor without type hints for DI - **Fix:** Add type hints for dependency injection - **Code:** `def __init__(self, service: ServiceType):` #### src/langchain_enhanced.py:46 - **Issue:** Constructor without type hints for DI - **Fix:** Add type hints for dependency injection - **Code:** `def __init__(self, service: ServiceType):` #### src/langchain_enhanced.py:67 - **Issue:** Constructor without type hints for DI - **Fix:** Add type hints for dependency injection - **Code:** `def __init__(self, service: ServiceType):` #### src/langchain_enhanced.py:155 - **Issue:** Constructor without type hints for DI - **Fix:** Add type hints for dependency injection - **Code:** `def __init__(self, service: ServiceType):` #### src/multi_agent_system.py:41 - **Issue:** Constructor without type hints for DI - **Fix:** Add type hints for dependency injection - **Code:** `def __init__(self, service: ServiceType):` #### src/tools_enhanced.py:23 - **Issue:** Constructor without type hints for DI - **Fix:** Add type hints for dependency injection - **Code:** `def __init__(self, service: ServiceType):` #### src/tools_enhanced.py:45 - **Issue:** Constructor without type hints for DI - **Fix:** Add type hints for dependency injection - **Code:** `def __init__(self, service: ServiceType):` #### src/main.py:1 - **Issue:** Async code without parallel execution - **Fix:** Use asyncio.gather() for parallel tool execution - **Code:** `results = await asyncio.gather(*tasks)` #### src/main.py:34 - **Issue:** Constructor without type hints for DI - **Fix:** Add type hints for dependency injection - **Code:** `def __init__(self, service: ServiceType):` #### src/tools/weather.py:42 - **Issue:** HTTP calls without retry - **Fix:** Add @retry decorator or use tenacity - **Code:** `response = requests.get(url, params=params)` #### src/tools/base_tool.py:541 - **Issue:** Constructor without type hints for DI - **Fix:** Add type hints for dependency injection - **Code:** `def __init__(self, service: ServiceType):` #### src/tools/base_tool.py:22 - **Issue:** Constructor without type hints for DI - **Fix:** Add type hints for dependency injection - **Code:** `def __init__(self, service: ServiceType):` #### src/reasoning/reasoning_path.py:41 - **Issue:** Constructor without type hints for DI - **Fix:** Add type hints for dependency injection - **Code:** `def __init__(self, service: ServiceType):` #### src/config/integrations.py:94 - **Issue:** Constructor without type hints for DI - **Fix:** Add type hints for dependency injection - **Code:** `def __init__(self, service: ServiceType):` #### src/errors/error_category.py:96 - **Issue:** Constructor without type hints for DI - **Fix:** Add type hints for dependency injection - **Code:** `def __init__(self, service: ServiceType):` #### src/infrastructure/database/in_memory_tool_repository.py:1 - **Issue:** Async code without parallel execution - **Fix:** Use asyncio.gather() for parallel tool execution - **Code:** `results = await asyncio.gather(*tasks)` #### src/infrastructure/database/in_memory_tool_repository.py:13 - **Issue:** Constructor without type hints for DI - **Fix:** Add type hints for dependency injection - **Code:** `def __init__(self, service: ServiceType):` #### src/infrastructure/database/in_memory_message_repository.py:1 - **Issue:** Async code without parallel execution - **Fix:** Use asyncio.gather() for parallel tool execution - **Code:** `results = await asyncio.gather(*tasks)` #### src/infrastructure/database/in_memory_message_repository.py:13 - **Issue:** Constructor without type hints for DI - **Fix:** Add type hints for dependency injection - **Code:** `def __init__(self, service: ServiceType):` #### src/infrastructure/database/in_memory_session_repository.py:1 - **Issue:** Async code without parallel execution - **Fix:** Use asyncio.gather() for parallel tool execution - **Code:** `results = await asyncio.gather(*tasks)` #### src/infrastructure/database/in_memory_session_repository.py:13 - **Issue:** Constructor without type hints for DI - **Fix:** Add type hints for dependency injection - **Code:** `def __init__(self, service: ServiceType):` #### src/infrastructure/database/in_memory_user_repository.py:1 - **Issue:** Async code without parallel execution - **Fix:** Use asyncio.gather() for parallel tool execution - **Code:** `results = await asyncio.gather(*tasks)` #### src/infrastructure/database/in_memory_user_repository.py:13 - **Issue:** Constructor without type hints for DI - **Fix:** Add type hints for dependency injection - **Code:** `def __init__(self, service: ServiceType):` #### src/infrastructure/database/supabase_repositories.py:1 - **Issue:** Async code without parallel execution - **Fix:** Use asyncio.gather() for parallel tool execution - **Code:** `results = await asyncio.gather(*tasks)` #### src/infrastructure/database/supabase_repositories.py:212 - **Issue:** Sequential tool execution - **Fix:** Use asyncio.gather() or ThreadPoolExecutor - **Code:** `for tool in tools:` #### src/infrastructure/di/container.py:29 - **Issue:** Constructor without type hints for DI - **Fix:** Add type hints for dependency injection - **Code:** `def __init__(self, service: ServiceType):` #### src/infrastructure/logging/logging_service.py:1 - **Issue:** Async code without parallel execution - **Fix:** Use asyncio.gather() for parallel tool execution - **Code:** `results = await asyncio.gather(*tasks)` #### src/application/agents/agent_executor.py:1 - **Issue:** Async code without parallel execution - **Fix:** Use asyncio.gather() for parallel tool execution - **Code:** `results = await asyncio.gather(*tasks)` #### src/infrastructure/config/configuration_service.py:1 - **Issue:** Async code without parallel execution - **Fix:** Use asyncio.gather() for parallel tool execution - **Code:** `results = await asyncio.gather(*tasks)` #### src/infrastructure/config/configuration_service.py:38 - **Issue:** Constructor without type hints for DI - **Fix:** Add type hints for dependency injection - **Code:** `def __init__(self, service: ServiceType):` #### src/application/tools/tool_executor.py:1 - **Issue:** Async code without parallel execution - **Fix:** Use asyncio.gather() for parallel tool execution - **Code:** `results = await asyncio.gather(*tasks)` #### src/gaia/metrics/gaia_metrics.py:9 - **Issue:** Constructor without type hints for DI - **Fix:** Add type hints for dependency injection - **Code:** `def __init__(self, service: ServiceType):` #### src/application/services/query_classifier.py:89 - **Issue:** Constructor without type hints for DI - **Fix:** Add type hints for dependency injection - **Code:** `def __init__(self, service: ServiceType):` #### src/gaia/caching/gaia_cache.py:51 - **Issue:** Constructor without type hints for DI - **Fix:** Add type hints for dependency injection - **Code:** `def __init__(self, service: ServiceType):` #### src/gaia/caching/gaia_cache.py:70 - **Issue:** Constructor without type hints for DI - **Fix:** Add type hints for dependency injection - **Code:** `def __init__(self, service: ServiceType):` #### src/shared/types/config.py:1 - **Issue:** Async code without parallel execution - **Fix:** Use asyncio.gather() for parallel tool execution - **Code:** `results = await asyncio.gather(*tasks)` #### src/core/use_cases/process_message.py:1 - **Issue:** Async code without parallel execution - **Fix:** Use asyncio.gather() for parallel tool execution - **Code:** `results = await asyncio.gather(*tasks)` #### src/core/services/meta_cognition.py:73 - **Issue:** Constructor without type hints for DI - **Fix:** Add type hints for dependency injection - **Code:** `def __init__(self, service: ServiceType):` #### src/core/services/working_memory.py:67 - **Issue:** Constructor without type hints for DI - **Fix:** Add type hints for dependency injection - **Code:** `def __init__(self, service: ServiceType):` #### src/core/interfaces/session_repository.py:1 - **Issue:** Async code without parallel execution - **Fix:** Use asyncio.gather() for parallel tool execution - **Code:** `results = await asyncio.gather(*tasks)` #### src/core/interfaces/user_repository.py:1 - **Issue:** Async code without parallel execution - **Fix:** Use asyncio.gather() for parallel tool execution - **Code:** `results = await asyncio.gather(*tasks)` #### src/core/interfaces/tool_repository.py:1 - **Issue:** Async code without parallel execution - **Fix:** Use asyncio.gather() for parallel tool execution - **Code:** `results = await asyncio.gather(*tasks)` #### src/core/interfaces/message_repository.py:1 - **Issue:** Async code without parallel execution - **Fix:** Use asyncio.gather() for parallel tool execution - **Code:** `results = await asyncio.gather(*tasks)` #### src/core/interfaces/agent_repository.py:1 - **Issue:** Async code without parallel execution - **Fix:** Use asyncio.gather() for parallel tool execution - **Code:** `results = await asyncio.gather(*tasks)` ### 💡 Recommendations - Implement workflow orchestration with Temporal or Airflow - Add circuit breakers for external services - Use async/parallel execution for tool calls - Implement saga pattern for distributed transactions ## 📌 TESTING Upgrade Points ### 🔴 HIGH Priority (7 items) #### tests/test_session.py:1 - **Issue:** Missing integration tests - **Fix:** Add integration tests for critical workflows - **Code:** `class TestIntegration:` #### tests/test_repositories.py:1 - **Issue:** Missing integration tests - **Fix:** Add integration tests for critical workflows - **Code:** `class TestIntegration:` #### tests/test_core_entities.py:1 - **Issue:** Missing integration tests - **Fix:** Add integration tests for critical workflows - **Code:** `class TestIntegration:` #### tests/test_config.py:1 - **Issue:** Missing integration tests - **Fix:** Add integration tests for critical workflows - **Code:** `class TestIntegration:` #### tests/test_tools.py:1 - **Issue:** Missing integration tests - **Fix:** Add integration tests for critical workflows - **Code:** `class TestIntegration:` #### src/gaia/testing/gaia_test_patterns.py:1 - **Issue:** Missing integration tests - **Fix:** Add integration tests for critical workflows - **Code:** `class TestIntegration:` #### project_root:0 - **Issue:** Missing load testing setup - **Fix:** Add load testing with Locust or similar - **Code:** `load_tests/locustfile.py` ### 🔴 MEDIUM Priority (1506 items) #### simple_hybrid_demo.py:26 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class AgentState:` #### simple_hybrid_demo.py:34 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class Transition:` #### simple_hybrid_demo.py:43 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class ReasoningStep:` #### simple_hybrid_demo.py:55 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class ProbabilisticFSM:` #### simple_hybrid_demo.py:140 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class ChainOfThought:` #### simple_hybrid_demo.py:209 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class ComplexityAnalyzer:` #### simple_hybrid_demo.py:225 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class TemplateLibrary:` #### simple_hybrid_demo.py:253 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class SimpleTool:` #### simple_hybrid_demo.py:264 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class DemoTools:` #### simple_hybrid_demo.py:302 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class ReActAgent:` #### simple_hybrid_demo.py:375 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class HybridAgent:` #### simple_hybrid_demo.py:58 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self, name: str):` #### simple_hybrid_demo.py:67 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def add_state(self, state: AgentState):` #### simple_hybrid_demo.py:71 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def add_transition(self, transition: Transition):` #### simple_hybrid_demo.py:75 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def set_initial_state(self, state_name: str):` #### simple_hybrid_demo.py:82 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def evaluate_transitions(self) -> List[tuple]:` #### simple_hybrid_demo.py:99 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def execute_transition(self, transition: Transition):` #### simple_hybrid_demo.py:111 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def update_learning(self, transition: Transition):` #### simple_hybrid_demo.py:118 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def step(self) -> bool:` #### simple_hybrid_demo.py:143 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self, name: str):` #### simple_hybrid_demo.py:149 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def analyze_complexity(self, query: str) -> float:` #### simple_hybrid_demo.py:153 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_cached_reasoning(self, query: str) -> Optional[List[ReasoningStep]]:` #### simple_hybrid_demo.py:158 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def reason(self, query: str, max_depth: Optional[int] = None) -> List[ReasoningStep]:` #### simple_hybrid_demo.py:184 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def execute_reasoning(self, query: str, template: str,` #### simple_hybrid_demo.py:212 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def analyze(self, query: str) -> float:` #### simple_hybrid_demo.py:228 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self):` #### simple_hybrid_demo.py:236 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def select_template(self, query: str) -> str:` #### simple_hybrid_demo.py:256 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self, name: str, function: Callable, description: str):` #### simple_hybrid_demo.py:261 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def run(self, **kwargs):` #### simple_hybrid_demo.py:268 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def calculator_tool(expression: str) -> dict:` #### simple_hybrid_demo.py:277 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def text_analyzer_tool(text: str) -> dict:` #### simple_hybrid_demo.py:287 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def mock_search_tool(query: str) -> dict:` #### simple_hybrid_demo.py:305 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self, name: str, tools: List[SimpleTool], max_steps: int = 10):` #### simple_hybrid_demo.py:312 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def think(self, observation: str, context: Dict[str, Any]) -> str:` #### simple_hybrid_demo.py:317 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def act(self, thought: str, context: Dict[str, Any]) -> tuple:` #### simple_hybrid_demo.py:326 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def execute_tool(self, tool_name: str, args: Dict[str, Any]) -> str:` #### simple_hybrid_demo.py:338 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def reasoning_path(self, query: str, context: Dict[str, Any]) -> List[ReasoningStep]:` #### simple_hybrid_demo.py:378 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self, name: str, tools: List[SimpleTool] = None):` #### simple_hybrid_demo.py:391 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def select_mode(self, task: Dict[str, Any]) -> str:` #### simple_hybrid_demo.py:406 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def execute_task(self, task: Dict[str, Any]) -> Any:` #### simple_hybrid_demo.py:434 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def execute_fsm_task(self, task: Dict[str, Any]) -> Any:` #### simple_hybrid_demo.py:450 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def execute_react_task(self, task: Dict[str, Any]) -> Any:` #### simple_hybrid_demo.py:460 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def execute_cot_task(self, task: Dict[str, Any]) -> Any:` #### simple_hybrid_demo.py:469 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def update_performance(self, mode: str, success: bool, execution_time: float):` #### simple_hybrid_demo.py:484 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def demo_basic_hybrid_agent():` #### simple_hybrid_demo.py:532 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def demo_fsm_learning():` #### simple_hybrid_demo.py:553 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def has_energy(state):` #### simple_hybrid_demo.py:556 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def is_tired(state):` #### simple_hybrid_demo.py:559 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def work_complete(state):` #### simple_hybrid_demo.py:562 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def rested(state):` #### simple_hybrid_demo.py:603 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def demo_chain_of_thought():` #### simple_hybrid_demo.py:640 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def main():` #### session.py:23 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class SessionMetrics:` #### session.py:54 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class AsyncResponseCache:` #### session.py:146 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class SessionManager:` #### session.py:252 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class ParallelAgentPool:` #### session.py:35 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def average_response_time(self) -> float:` #### session.py:42 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def cache_hit_rate(self) -> float:` #### session.py:49 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def uptime_hours(self) -> float:` #### session.py:57 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self, max_size: int = 1000, ttl_seconds: int = 3600):` #### session.py:69 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _cleanup_expired(self):` #### session.py:92 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get(self, key: str) -> Optional[Any]:` #### session.py:106 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def set(self, key: str, value: Any):` #### session.py:120 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def invalidate(self, pattern: str = None):` #### session.py:134 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_stats(self) -> Dict[str, Any]:` #### session.py:149 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self):` #### session.py:155 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def create_session(self, session_id: str = None) -> str:` #### session.py:169 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_session(self, session_id: str) -> Optional[SessionMetrics]:` #### session.py:174 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def update_session(self, session_id: str, **kwargs):` #### session.py:184 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def record_query(self, session_id: str, response_time: float, tool_usage: Dict[str, int] = None):` #### session.py:196 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def record_cache_hit(self, session_id: str):` #### session.py:202 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def record_error(self, session_id: str, error: Dict[str, Any]):` #### session.py:211 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_session_stats(self, session_id: str) -> Optional[Dict[str, Any]]:` #### session.py:230 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def cleanup_old_sessions(self, max_age_hours: float = 24.0):` #### session.py:247 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_cache(self) -> AsyncResponseCache:` #### session.py:255 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self, max_workers: int = 4):` #### session.py:262 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def submit_task(self, task_id: str, func, *args, **kwargs) -> concurrent.futures.Future:` #### session.py:274 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_task_result(self, task_id: str, timeout: float = None) -> Any:` #### session.py:294 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def cancel_task(self, task_id: str):` #### session.py:302 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_active_tasks(self) -> List[str]:` #### session.py:307 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def shutdown(self, wait: bool = True):` #### session.py:312 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __enter__(self):` #### session.py:315 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __exit__(self, exc_type, exc_val, exc_tb):` #### session.py:324 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_session_manager() -> SessionManager:` #### session.py:329 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_parallel_pool() -> ParallelAgentPool:` #### session.py:334 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_cache() -> AsyncResponseCache:` #### ai_codebase_analyzer.py:32 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class UpgradePoint:` #### ai_codebase_analyzer.py:54 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class CodebaseAnalyzer:` #### ai_codebase_analyzer.py:291 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `code_snippet="class TestIntegration:"` #### ai_codebase_analyzer.py:42 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def to_dict(self) -> Dict[str, Any]:` #### ai_codebase_analyzer.py:57 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self, root_dir: str = ".", patterns_path: str = "analyzer_patterns.yaml", max_workers: ...` #### ai_codebase_analyzer.py:68 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _load_patterns(self, path: str) -> Dict[str, Any]:` #### ai_codebase_analyzer.py:80 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _get_default_patterns(self) -> Dict[str, Any]:` #### ai_codebase_analyzer.py:105 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def analyze(self) -> Dict[str, Any]:` #### ai_codebase_analyzer.py:130 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _should_skip_file(self, file_path: Path) -> bool:` #### ai_codebase_analyzer.py:135 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _analyze_file(self, file_path: Path) -> None:` #### ai_codebase_analyzer.py:165 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _check_monitoring(self, file_path: Path, content: str, lines: List[str]) -> None:` #### ai_codebase_analyzer.py:209 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _check_orchestration(self, file_path: Path, content: str, lines: List[str]) -> None:` #### ai_codebase_analyzer.py:253 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _check_testing(self, file_path: Path, content: str, lines: List[str]) -> None:` #### ai_codebase_analyzer.py:271 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `if "@pytest.fixture" not in content and "def test_" in content:` #### ai_codebase_analyzer.py:279 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `code_snippet="@pytest.fixture\ndef sample_data():"` #### ai_codebase_analyzer.py:311 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _check_agent_patterns(self, file_path: Path, content: str, lines: List[str]) -> None:` #### ai_codebase_analyzer.py:364 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _analyze_ast(self, file_path: Path, content: str) -> None:` #### ai_codebase_analyzer.py:383 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `code_snippet=f"def __init__(self, service: ServiceType):"` #### ai_codebase_analyzer.py:389 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _analyze_project_structure(self) -> None:` #### ai_codebase_analyzer.py:432 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _get_monitoring_suggestion(self, pattern_type: str) -> str:` #### ai_codebase_analyzer.py:441 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _get_orchestration_suggestion(self, pattern_type: str) -> str:` #### ai_codebase_analyzer.py:450 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _get_testing_suggestion(self, pattern_type: str) -> str:` #### ai_codebase_analyzer.py:459 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _generate_report(self) -> Dict[str, Any]:` #### ai_codebase_analyzer.py:530 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def print_report(report: Dict[str, Any]) -> None:` #### ai_codebase_analyzer.py:568 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def generate_markdown_report(report: Dict[str, Any]) -> str:` #### ai_codebase_analyzer.py:616 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def generate_html_report(report: Dict[str, Any]) -> str:` #### ai_codebase_analyzer.py:673 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def main() -> None:` #### demo_hybrid_architecture.py:27 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class DemoTools:` #### demo_hybrid_architecture.py:61 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class CustomTool:` #### demo_hybrid_architecture.py:31 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def calculator_tool(expression: str) -> dict:` #### demo_hybrid_architecture.py:40 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def text_analyzer_tool(text: str) -> dict:` #### demo_hybrid_architecture.py:50 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def mock_search_tool(query: str) -> dict:` #### demo_hybrid_architecture.py:64 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self, name: str, function, description: str):` #### demo_hybrid_architecture.py:69 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def run(self, **kwargs):` #### demo_hybrid_architecture.py:72 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def demo_basic_hybrid_agent():` #### demo_hybrid_architecture.py:120 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def demo_multi_agent_system():` #### demo_hybrid_architecture.py:178 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def demo_fsm_learning():` #### demo_hybrid_architecture.py:199 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def has_energy(state):` #### demo_hybrid_architecture.py:202 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def is_tired(state):` #### demo_hybrid_architecture.py:205 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def work_complete(state):` #### demo_hybrid_architecture.py:208 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def rested(state):` #### demo_hybrid_architecture.py:249 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def demo_chain_of_thought():` #### demo_hybrid_architecture.py:288 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def demo_performance_optimization():` #### demo_hybrid_architecture.py:345 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def demo_emergent_behavior():` #### demo_hybrid_architecture.py:392 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def main():` #### app.py:124 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class AIAgentApp:` #### app.py:125 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `"""Main application class for the AI Agent."""` #### app.py:84 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def format_chat_history(history: List[List[str]]) -> List[Dict[str, str]]:` #### app.py:92 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def extract_final_answer(response_output: str) -> str:` #### app.py:127 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self):` #### app.py:138 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def setup_environment(self):` #### app.py:160 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def initialize_components(self):` #### app.py:185 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def _initialize_integration_hub(self):` #### app.py:195 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _initialize_tools_with_fallback(self):` #### app.py:208 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _get_basic_tools(self):` #### app.py:213 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _initialize_agent(self):` #### app.py:227 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _initialize_minimal_setup(self):` #### app.py:234 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def process_gaia_questions(self, questions: List[Dict[str, Any]]) -> List[Dict[str, Any]]:` #### app.py:238 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def process_chat_message(self, message: str, history: list, log_to_db: bool = True, session_id: str ...` #### app.py:243 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def timeout_handler(signum, frame):` #### app.py:267 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def build_interface(self):` #### app.py:275 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def build_gradio_interface(process_chat_message, process_gaia_questions, session_manager):` #### app.py:308 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def main():` #### simple_test.py:90 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class TestTool(BaseTool):` #### simple_test.py:15 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_imports():` #### simple_test.py:42 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_embedding_manager():` #### simple_test.py:76 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_integration_hub():` #### simple_test.py:94 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _run(self, query: str) -> str:` #### simple_test.py:114 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_config():` #### simple_test.py:144 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_enhanced_components():` #### simple_test.py:167 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def main():` #### test_integration_fixes.py:159 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class MockTool:` #### test_integration_fixes.py:31 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def test_tool_call_tracker():` #### test_integration_fixes.py:65 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_circuit_breaker():` #### test_integration_fixes.py:90 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_local_knowledge_tool():` #### test_integration_fixes.py:129 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_error_categorization():` #### test_integration_fixes.py:152 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def test_fallback_logic():` #### test_integration_fixes.py:160 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self, name):` #### test_integration_fixes.py:163 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def execute(self, params):` #### test_integration_fixes.py:185 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def test_async_cleanup():` #### test_integration_fixes.py:192 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def async_cleanup():` #### test_integration_fixes.py:197 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def sync_cleanup():` #### test_integration_fixes.py:219 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def main():` #### tests/test_session.py:1 - **Issue:** Tests without parametrization - **Fix:** Use @pytest.mark.parametrize for comprehensive testing - **Code:** `@pytest.mark.parametrize('input,expected', [...])` #### tests/test_session.py:1 - **Issue:** Tests without fixtures - **Fix:** Use pytest fixtures for better test organization - **Code:** `@pytest.fixture def sample_data():` #### tests/test_session.py:11 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class TestSessionMetrics:` #### tests/test_session.py:59 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class TestAsyncResponseCache:` #### tests/test_session.py:120 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class TestRateLimiter:` #### tests/test_session.py:160 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class TestSessionManager:` #### tests/test_session.py:14 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_session_metrics_initialization(self):` #### tests/test_session.py:26 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_average_response_time(self):` #### tests/test_session.py:38 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_cache_hit_rate(self):` #### tests/test_session.py:50 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_uptime_hours(self):` #### tests/test_session.py:62 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_cache_initialization(self):` #### tests/test_session.py:71 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_cache_set_and_get(self):` #### tests/test_session.py:84 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_cache_expiration(self):` #### tests/test_session.py:96 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_cache_size_limit(self):` #### tests/test_session.py:107 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_cache_stats(self):` #### tests/test_session.py:123 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_rate_limiter_initialization(self):` #### tests/test_session.py:131 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_rate_limiting_enforcement(self):` #### tests/test_session.py:147 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_rate_limiter_status(self):` #### tests/test_session.py:163 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_session_creation(self):` #### tests/test_session.py:178 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_update_query_metrics(self):` #### tests/test_session.py:192 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_update_tool_usage(self):` #### tests/test_session.py:206 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_add_error(self):` #### tests/test_session.py:222 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_global_analytics(self):` #### tests/test_session.py:249 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_cleanup_old_sessions(self):` #### tests/test_repositories.py:1 - **Issue:** Tests without parametrization - **Fix:** Use @pytest.mark.parametrize for comprehensive testing - **Code:** `@pytest.mark.parametrize('input,expected', [...])` #### tests/test_repositories.py:20 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class TestInMemoryMessageRepository:` #### tests/test_repositories.py:134 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class TestInMemorySessionRepository:` #### tests/test_repositories.py:222 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class TestInMemoryToolRepository:` #### tests/test_repositories.py:325 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class TestInMemoryUserRepository:` #### tests/test_repositories.py:24 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def repository(self):` #### tests/test_repositories.py:28 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def sample_message(self):` #### tests/test_repositories.py:35 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def test_save_message(self, repository, sample_message):` #### tests/test_repositories.py:43 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def test_find_by_id(self, repository, sample_message):` #### tests/test_repositories.py:53 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def test_find_by_id_not_found(self, repository):` #### tests/test_repositories.py:59 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def test_find_by_session(self, repository):` #### tests/test_repositories.py:77 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def test_find_by_type(self, repository):` #### tests/test_repositories.py:95 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def test_delete_message(self, repository, sample_message):` #### tests/test_repositories.py:111 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def test_delete_nonexistent_message(self, repository):` #### tests/test_repositories.py:116 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def test_get_statistics(self, repository):` #### tests/test_repositories.py:138 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def repository(self):` #### tests/test_repositories.py:142 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def sample_session(self):` #### tests/test_repositories.py:148 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def test_save_session(self, repository, sample_session):` #### tests/test_repositories.py:156 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def test_find_by_id(self, repository, sample_session):` #### tests/test_repositories.py:166 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def test_find_by_id_not_found(self, repository):` #### tests/test_repositories.py:172 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def test_find_active(self, repository):` #### tests/test_repositories.py:189 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def test_delete_session(self, repository, sample_session):` #### tests/test_repositories.py:205 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def test_get_statistics(self, repository):` #### tests/test_repositories.py:226 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def repository(self):` #### tests/test_repositories.py:230 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def sample_tool(self):` #### tests/test_repositories.py:238 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def test_save_tool(self, repository, sample_tool):` #### tests/test_repositories.py:246 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def test_find_by_id(self, repository, sample_tool):` #### tests/test_repositories.py:256 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def test_find_by_name(self, repository, sample_tool):` #### tests/test_repositories.py:266 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def test_find_by_name_not_found(self, repository):` #### tests/test_repositories.py:272 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def test_find_by_type(self, repository):` #### tests/test_repositories.py:290 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def test_delete_tool(self, repository, sample_tool):` #### tests/test_repositories.py:310 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def test_get_statistics(self, repository):` #### tests/test_repositories.py:329 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def repository(self):` #### tests/test_repositories.py:333 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def sample_user(self):` #### tests/test_repositories.py:339 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def test_save_user(self, repository, sample_user):` #### tests/test_repositories.py:347 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def test_find_by_id(self, repository, sample_user):` #### tests/test_repositories.py:357 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def test_find_by_email(self, repository, sample_user):` #### tests/test_repositories.py:367 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def test_find_by_email_not_found(self, repository):` #### tests/test_repositories.py:373 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def test_find_all(self, repository):` #### tests/test_repositories.py:388 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def test_delete_user(self, repository, sample_user):` #### tests/test_repositories.py:408 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def test_get_statistics(self, repository):` #### tests/test_repositories.py:49 - **Issue:** Only checking for None - **Fix:** Use stronger assertions with specific comparisons - **Code:** `assert found_message is not None` #### tests/test_repositories.py:101 - **Issue:** Only checking for None - **Fix:** Use stronger assertions with specific comparisons - **Code:** `assert found_message is not None` #### tests/test_repositories.py:162 - **Issue:** Only checking for None - **Fix:** Use stronger assertions with specific comparisons - **Code:** `assert found_session is not None` #### tests/test_repositories.py:195 - **Issue:** Only checking for None - **Fix:** Use stronger assertions with specific comparisons - **Code:** `assert found_session is not None` #### tests/test_repositories.py:252 - **Issue:** Only checking for None - **Fix:** Use stronger assertions with specific comparisons - **Code:** `assert found_tool is not None` #### tests/test_repositories.py:262 - **Issue:** Only checking for None - **Fix:** Use stronger assertions with specific comparisons - **Code:** `assert found_tool is not None` #### tests/test_repositories.py:296 - **Issue:** Only checking for None - **Fix:** Use stronger assertions with specific comparisons - **Code:** `assert found_tool is not None` #### tests/test_repositories.py:353 - **Issue:** Only checking for None - **Fix:** Use stronger assertions with specific comparisons - **Code:** `assert found_user is not None` #### tests/test_repositories.py:363 - **Issue:** Only checking for None - **Fix:** Use stronger assertions with specific comparisons - **Code:** `assert found_user is not None` #### tests/test_repositories.py:394 - **Issue:** Only checking for None - **Fix:** Use stronger assertions with specific comparisons - **Code:** `assert found_user is not None` #### tests/test_core_entities.py:1 - **Issue:** Tests without parametrization - **Fix:** Use @pytest.mark.parametrize for comprehensive testing - **Code:** `@pytest.mark.parametrize('input,expected', [...])` #### tests/test_core_entities.py:1 - **Issue:** Tests without fixtures - **Fix:** Use pytest fixtures for better test organization - **Code:** `@pytest.fixture def sample_data():` #### tests/test_core_entities.py:17 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class TestAgent:` #### tests/test_core_entities.py:74 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class TestMessage:` #### tests/test_core_entities.py:131 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class TestTool:` #### tests/test_core_entities.py:188 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class TestSession:` #### tests/test_core_entities.py:235 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class TestUser:` #### tests/test_core_entities.py:20 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_agent_creation(self):` #### tests/test_core_entities.py:36 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_agent_serialization(self):` #### tests/test_core_entities.py:54 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_agent_from_dict(self):` #### tests/test_core_entities.py:77 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_message_creation(self):` #### tests/test_core_entities.py:93 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_message_serialization(self):` #### tests/test_core_entities.py:111 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_message_from_dict(self):` #### tests/test_core_entities.py:134 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_tool_creation(self):` #### tests/test_core_entities.py:151 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_tool_execution(self):` #### tests/test_core_entities.py:168 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_tool_serialization(self):` #### tests/test_core_entities.py:191 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_session_creation(self):` #### tests/test_core_entities.py:206 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_session_serialization(self):` #### tests/test_core_entities.py:222 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_session_closure(self):` #### tests/test_core_entities.py:238 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_user_creation(self):` #### tests/test_core_entities.py:251 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_user_serialization(self):` #### tests/test_core_entities.py:266 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_user_deactivation(self):` #### tests/test_core_entities.py:166 - **Issue:** Only checking for None - **Fix:** Use stronger assertions with specific comparisons - **Code:** `assert result.error_message is not None` #### tests/gaia_testing_framework.py:21 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class GAIAQuestion:` #### tests/gaia_testing_framework.py:33 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class AgentTestResult:` #### tests/gaia_testing_framework.py:48 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class GAIATestSuite:` #### tests/gaia_testing_framework.py:51 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self):` #### tests/gaia_testing_framework.py:77 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _create_comprehensive_test_set(self) -> List[GAIAQuestion]:` #### tests/gaia_testing_framework.py:199 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_agent_performance(self, agent, verbose=True) -> Dict[str, Any]:` #### tests/gaia_testing_framework.py:251 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _test_single_question(self, agent, question: GAIAQuestion, verbose=False) -> AgentTestResult:` #### tests/gaia_testing_framework.py:374 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _extract_clean_answer(self, response: str) -> str:` #### tests/gaia_testing_framework.py:412 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _check_answer_correctness(self, agent_answer: str, expected_answer: str) -> bool:` #### tests/gaia_testing_framework.py:443 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _calculate_validation_score(self, correct: bool, confidence: float,` #### tests/gaia_testing_framework.py:472 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _analyze_comprehensive_results(self, results: List[AgentTestResult],` #### tests/gaia_testing_framework.py:564 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _print_comprehensive_analysis(self, analysis: Dict[str, Any]):` #### tests/gaia_testing_framework.py:604 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _generate_improvement_recommendations(self, analysis: Dict[str, Any]) -> List[str]:` #### tests/gaia_testing_framework.py:654 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _init_results_csv(self, path: str = "test_results.csv"):` #### tests/gaia_testing_framework.py:662 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _append_result_csv(self, res: AgentTestResult):` #### tests/gaia_testing_framework.py:680 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _get_grader_llm(self):` #### tests/gaia_testing_framework.py:692 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _grade_with_llm_if_available(self, result: AgentTestResult) -> AgentTestResult:` #### tests/gaia_testing_framework.py:727 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def run_regression_tests(self, agent) -> Dict[str, Any]:` #### tests/gaia_testing_framework.py:756 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _check_expected_behavior(self, result, expected_behavior, duration):` #### tests/gaia_testing_framework.py:766 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def main():` #### gaia_logic.py:25 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class AdvancedGAIAAgent:` #### gaia_logic.py:147 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class GAIAEvaluator:` #### gaia_logic.py:30 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self, log_handler: Optional[logging.Handler] = None):` #### gaia_logic.py:46 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __call__(self, question: str) -> str:` #### gaia_logic.py:59 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _extract_clean_answer(self, response: str) -> str:` #### gaia_logic.py:119 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _update_stats(self, processing_time: float, success: bool):` #### gaia_logic.py:130 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_performance_summary(self) -> str:` #### gaia_logic.py:150 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self):` #### gaia_logic.py:165 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def run_evaluation(self, profile: gr.OAuthProfile | None) -> tuple[str, pd.DataFrame | None]:` #### gaia_logic.py:217 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _fetch_questions(self) -> List[Dict[str, Any]] | str:` #### gaia_logic.py:249 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _process_questions(self, agent: AdvancedGAIAAgent,` #### gaia_logic.py:319 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _submit_results(self, submission_data: Dict[str, Any],` #### gaia_logic.py:367 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def check_gaia_availability() -> bool:` #### tests/test_integration.py:1 - **Issue:** Tests without parametrization - **Fix:** Use @pytest.mark.parametrize for comprehensive testing - **Code:** `@pytest.mark.parametrize('input,expected', [...])` #### tests/test_integration.py:35 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class TestEmbeddingConsistency:` #### tests/test_integration.py:77 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class TestImportPathResolution:` #### tests/test_integration.py:121 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class TestAsyncSyncExecution:` #### tests/test_integration.py:131 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class DummyTool(BaseTool):` #### tests/test_integration.py:151 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class TestIntegrationHub:` #### tests/test_integration.py:185 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class TestTool(BaseTool):` #### tests/test_integration.py:206 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class TestErrorHandling:` #### tests/test_integration.py:244 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class TestComponentIntegration:` #### tests/test_integration.py:293 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class TestPerformance:` #### tests/test_integration.py:323 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class PerfTool(BaseTool):` #### tests/test_integration.py:26 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def integration_hub():` #### tests/test_integration.py:31 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def embedding_manager():` #### tests/test_integration.py:38 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_embedding_manager_singleton(self, embedding_manager):` #### tests/test_integration.py:45 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_embedding_method_consistency(self, embedding_manager):` #### tests/test_integration.py:53 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_embedding_output_consistency(self, embedding_manager):` #### tests/test_integration.py:63 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_batch_embedding(self, embedding_manager):` #### tests/test_integration.py:80 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_config_import(self):` #### tests/test_integration.py:88 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_embedding_manager_import(self):` #### tests/test_integration.py:97 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_database_enhanced_import(self):` #### tests/test_integration.py:105 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_crew_enhanced_import(self):` #### tests/test_integration.py:113 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_llamaindex_enhanced_import(self):` #### tests/test_integration.py:124 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_crew_execution_is_sync(self):` #### tests/test_integration.py:135 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def run(self, query: str) -> str:` #### tests/test_integration.py:155 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def test_hub_initialization(self, integration_hub):` #### tests/test_integration.py:166 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def test_hub_cleanup(self, integration_hub):` #### tests/test_integration.py:175 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_tool_registration(self):` #### tests/test_integration.py:189 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def run(self, query: str) -> str:` #### tests/test_integration.py:200 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_get_tools_function(self):` #### tests/test_integration.py:209 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_embedding_fallback(self, embedding_manager):` #### tests/test_integration.py:220 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def test_database_error_handling(self):` #### tests/test_integration.py:232 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_config_validation(self):` #### tests/test_integration.py:248 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def test_full_integration_flow(self, integration_hub):` #### tests/test_integration.py:276 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_configuration_consistency(self):` #### tests/test_integration.py:296 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_embedding_performance(self, embedding_manager):` #### tests/test_integration.py:315 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_tool_registry_performance(self):` #### tests/test_integration.py:327 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def run(self, query: str) -> str:` #### tests/test_integration.py:84 - **Issue:** Only checking for None - **Fix:** Use stronger assertions with specific comparisons - **Code:** `assert integration_config is not None` #### tests/test_integration.py:93 - **Issue:** Only checking for None - **Fix:** Use stronger assertions with specific comparisons - **Code:** `assert manager is not None` #### tests/test_integration.py:263 - **Issue:** Only checking for None - **Fix:** Use stronger assertions with specific comparisons - **Code:** `assert embedding_manager is not None` #### tests/test_enhanced_error_handling.py:58 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class TestEnhancedInputValidation(unittest.TestCase):` #### tests/test_enhanced_error_handling.py:136 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class TestPerformanceMonitoring(unittest.TestCase):` #### tests/test_enhanced_error_handling.py:186 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class TestReasoningValidator(unittest.TestCase):` #### tests/test_enhanced_error_handling.py:238 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class TestAnswerSynthesizer(unittest.TestCase):` #### tests/test_enhanced_error_handling.py:289 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class TestFSMErrorHandling(unittest.TestCase):` #### tests/test_enhanced_error_handling.py:369 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class TestIntegrationScenarios(unittest.TestCase):` #### tests/test_enhanced_error_handling.py:429 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `for test_class in test_classes:` #### tests/test_enhanced_error_handling.py:61 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_valid_input(self):` #### tests/test_enhanced_error_handling.py:69 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_empty_input(self):` #### tests/test_enhanced_error_handling.py:75 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_too_short_input(self):` #### tests/test_enhanced_error_handling.py:81 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_problematic_patterns(self):` #### tests/test_enhanced_error_handling.py:97 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_control_characters(self):` #### tests/test_enhanced_error_handling.py:107 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_url_injection(self):` #### tests/test_enhanced_error_handling.py:120 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_sanitization(self):` #### tests/test_enhanced_error_handling.py:129 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_suggestions_provided(self):` #### tests/test_enhanced_error_handling.py:139 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def setUp(self):` #### tests/test_enhanced_error_handling.py:142 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_track_execution(self):` #### tests/test_enhanced_error_handling.py:153 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_health_status(self):` #### tests/test_enhanced_error_handling.py:166 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_error_distribution(self):` #### tests/test_enhanced_error_handling.py:176 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_recommendations(self):` #### tests/test_enhanced_error_handling.py:189 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def setUp(self):` #### tests/test_enhanced_error_handling.py:192 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_logical_transition(self):` #### tests/test_enhanced_error_handling.py:203 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_sufficient_evidence(self):` #### tests/test_enhanced_error_handling.py:216 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_circular_reasoning_detection(self):` #### tests/test_enhanced_error_handling.py:227 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_contradiction_detection(self):` #### tests/test_enhanced_error_handling.py:241 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def setUp(self):` #### tests/test_enhanced_error_handling.py:244 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_fact_extraction(self):` #### tests/test_enhanced_error_handling.py:255 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_fact_verification(self):` #### tests/test_enhanced_error_handling.py:267 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_numeric_answer_building(self):` #### tests/test_enhanced_error_handling.py:274 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_person_answer_building(self):` #### tests/test_enhanced_error_handling.py:281 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_answer_question_check(self):` #### tests/test_enhanced_error_handling.py:292 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def setUp(self):` #### tests/test_enhanced_error_handling.py:297 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_state_transition_with_error(self):` #### tests/test_enhanced_error_handling.py:310 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_circuit_breaker_logic(self):` #### tests/test_enhanced_error_handling.py:319 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_tool_parameter_validation(self):` #### tests/test_enhanced_error_handling.py:331 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_plan_validation(self):` #### tests/test_enhanced_error_handling.py:372 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_end_to_end_validation_flow(self):` #### tests/test_enhanced_error_handling.py:383 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_error_recovery_scenario(self):` #### tests/test_enhanced_error_handling.py:398 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_reasoning_validation_integration(self):` #### tests/test_enhanced_error_handling.py:414 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def run_comprehensive_tests():` #### tests/test_config.py:1 - **Issue:** Tests without parametrization - **Fix:** Use @pytest.mark.parametrize for comprehensive testing - **Code:** `@pytest.mark.parametrize('input,expected', [...])` #### tests/test_config.py:1 - **Issue:** Tests without fixtures - **Fix:** Use pytest fixtures for better test organization - **Code:** `@pytest.fixture def sample_data():` #### tests/test_config.py:10 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class TestConfig:` #### tests/test_config.py:13 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_environment_detection(self):` #### tests/test_config.py:48 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_model_config(self):` #### tests/test_config.py:65 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_api_config_loading(self):` #### tests/test_config.py:86 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_performance_config(self):` #### tests/test_config.py:96 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_config_validation(self):` #### tests/test_config.py:115 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_get_model(self):` #### tests/test_config.py:131 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_environment_overrides(self):` #### tests/test_integration_fixes.py:19 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def test_config_imports():` #### tests/test_integration_fixes.py:38 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def test_llamaindex_fixes():` #### tests/test_integration_fixes.py:56 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def test_database_fixes():` #### tests/test_integration_fixes.py:79 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def test_integration_manager():` #### tests/test_integration_fixes.py:98 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def test_health_check():` #### tests/test_integration_fixes.py:116 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def test_config_cli():` #### tests/test_integration_fixes.py:139 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def main():` #### scripts/setup_supabase.py:26 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def check_environment_variables() -> tuple[bool, list[str]]:` #### scripts/setup_supabase.py:38 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_connection() -> Optional[Client]:` #### scripts/setup_supabase.py:51 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def check_tables(client: Client) -> dict[str, bool]:` #### scripts/setup_supabase.py:79 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def check_extensions(client: Client) -> dict[str, bool]:` #### scripts/setup_supabase.py:91 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def create_sample_data(client: Client) -> bool:` #### scripts/setup_supabase.py:110 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def generate_env_template():` #### scripts/setup_supabase.py:136 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def main():` #### src/crew_enhanced.py:12 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class GAIACrewOrchestrator:` #### src/crew_enhanced.py:123 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class GAIATaskFactory:` #### src/crew_enhanced.py:171 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class EnhancedCrewExecutor:` #### src/crew_enhanced.py:245 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class EnhancedKnowledgeBase:` #### src/crew_enhanced.py:252 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class MultiModalGAIAIndex:` #### src/crew_enhanced.py:260 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class IncrementalKnowledgeBase:` #### src/crew_enhanced.py:267 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class GAIAQueryEngine:` #### src/crew_enhanced.py:15 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self, tools: List[BaseTool]):` #### src/crew_enhanced.py:19 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _get_model(self, model_type: str):` #### src/crew_enhanced.py:29 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _create_specialized_agents(self) -> Dict[str, Agent]:` #### src/crew_enhanced.py:80 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _create_dummy_tool(self, name: str):` #### src/crew_enhanced.py:83 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def dummy_tool(query: str) -> str:` #### src/crew_enhanced.py:88 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def create_gaia_crew(self, question_type: str) -> Crew:` #### src/crew_enhanced.py:127 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def create_tasks(question: str, question_analysis: Dict, agents: Dict[str, Agent]) -> List[Task]:` #### src/crew_enhanced.py:174 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self, orchestrator: GAIACrewOrchestrator):` #### src/crew_enhanced.py:178 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def execute_gaia_question(self, question: str, question_analysis: Dict) -> Dict[str, Any]:` #### src/crew_enhanced.py:218 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_execution_stats(self) -> Dict[str, Any]:` #### src/crew_enhanced.py:234 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def initialize_crew_enhanced(tools: List[BaseTool]) -> EnhancedCrewExecutor:` #### src/crew_enhanced.py:248 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self):` #### src/crew_enhanced.py:255 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self):` #### src/crew_enhanced.py:263 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self, storage_path: str = "./knowledge_cache"):` #### src/crew_enhanced.py:270 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self, index):` #### src/integration_hub.py:44 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class ToolCallTracker:` #### src/integration_hub.py:92 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class CircuitBreaker:` #### src/integration_hub.py:137 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class ToolContext:` #### src/integration_hub.py:160 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class RateLimitManager:` #### src/integration_hub.py:224 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class ToolCompatibilityChecker:` #### src/integration_hub.py:275 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class ResourcePoolManager:` #### src/integration_hub.py:350 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class UnifiedToolRegistry:` #### src/integration_hub.py:447 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class ToolOrchestrator:` #### src/integration_hub.py:682 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class EnhancedSession:` #### src/integration_hub.py:741 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class IntegratedSessionManager:` #### src/integration_hub.py:786 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class MetricAwareErrorHandler:` #### src/integration_hub.py:924 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class EmbeddingManager:` #### src/integration_hub.py:997 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class IntegrationHub:` #### src/integration_hub.py:1385 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class SemanticToolDiscovery:` #### src/integration_hub.py:1424 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class ToolVersionManager:` #### src/integration_hub.py:1494 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class MonitoringDashboard:` #### src/integration_hub.py:1651 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class IntegrationTestFramework:` #### src/integration_hub.py:1756 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class MigrationHelper:` #### src/integration_hub.py:47 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self, max_depth: int = 10, max_repeats: int = 3):` #### src/integration_hub.py:53 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def start_call(self, tool_name: str, params: Dict[str, Any]) -> bool:` #### src/integration_hub.py:78 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def end_call(self):` #### src/integration_hub.py:83 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def reset(self):` #### src/integration_hub.py:95 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self, failure_threshold: int = 5, recovery_timeout: float = 60.0):` #### src/integration_hub.py:102 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def is_open(self, tool_name: str) -> bool:` #### src/integration_hub.py:117 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def record_success(self, tool_name: str):` #### src/integration_hub.py:123 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def record_failure(self, tool_name: str):` #### src/integration_hub.py:144 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def share_result(self, tool_name: str, key: str, value: Any):` #### src/integration_hub.py:148 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_shared_result(self, pattern: str) -> Dict[str, Any]:` #### src/integration_hub.py:152 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_tool_output(self, tool_name: str) -> Optional[Any]:` #### src/integration_hub.py:156 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def set_tool_output(self, tool_name: str, output: Any):` #### src/integration_hub.py:163 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self):` #### src/integration_hub.py:167 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def set_limit(self, tool_name: str, calls_per_minute: int, burst_size: int = None):` #### src/integration_hub.py:176 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def check_and_wait(self, tool_name: str) -> bool:` #### src/integration_hub.py:204 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_tool_stats(self, tool_name: str) -> Dict[str, Any]:` #### src/integration_hub.py:227 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self):` #### src/integration_hub.py:231 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def register_tool_requirements(self, tool_name: str, requirements: Dict[str, Any]):` #### src/integration_hub.py:236 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def check_compatibility(self, tool1: str, tool2: str) -> bool:` #### src/integration_hub.py:259 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_compatible_tools(self, tool_name: str) -> List[str]:` #### src/integration_hub.py:267 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_incompatible_tools(self, tool_name: str) -> List[str]:` #### src/integration_hub.py:278 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self):` #### src/integration_hub.py:282 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def create_pool(self, resource_type: str, factory_func: Callable,` #### src/integration_hub.py:303 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def acquire(self, resource_type: str, timeout: float = 30.0):` #### src/integration_hub.py:327 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def release(self, resource_type: str, resource):` #### src/integration_hub.py:337 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_pool_stats(self, resource_type: str) -> Dict[str, Any]:` #### src/integration_hub.py:353 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self):` #### src/integration_hub.py:361 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def register(self, tool: BaseTool, tool_doc: Dict[str, Any] = None,` #### src/integration_hub.py:392 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_tool(self, name: str) -> Optional[BaseTool]:` #### src/integration_hub.py:396 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_tools_for_role(self, role: str) -> List[BaseTool]:` #### src/integration_hub.py:401 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_tools_by_reliability(self, min_success_rate: float = 0.7) -> List[BaseTool]:` #### src/integration_hub.py:417 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def update_tool_metrics(self, tool_name: str, success: bool, latency: float,` #### src/integration_hub.py:450 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self, registry: UnifiedToolRegistry, cache: Any, db_client: Any = None,` #### src/integration_hub.py:464 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def execute_with_fallback(self, tool_name: str, params: Dict[str, Any],` #### src/integration_hub.py:540 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def execute_with_compatibility_check(self, tool_name: str, params: Dict[str, Any],` #### src/integration_hub.py:553 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def execute_with_resource_pool(self, tool_name: str, params: Dict[str, Any],` #### src/integration_hub.py:578 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def _execute_tool(self, tool: BaseTool, params: Dict[str, Any]) -> Dict[str, Any]:` #### src/integration_hub.py:590 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def _try_fallback_tools(self, failed_tool: str, params: Dict[str, Any]) -> Optional[Dict[str, ...` #### src/integration_hub.py:634 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _adapt_params(self, source_tool: str, target_tool: str, params: Dict[str, Any]) -> Dict[str, Any...` #### src/integration_hub.py:658 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def _update_database_metrics(self, tool_name: str, success: bool, latency: float, error: str =...` #### src/integration_hub.py:691 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def track_tool_usage(self, tool_name: str, success: bool, latency: float,` #### src/integration_hub.py:729 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_tool_preferences(self) -> List[str]:` #### src/integration_hub.py:737 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_tool_performance(self, tool_name: str) -> Optional[Dict[str, Any]]:` #### src/integration_hub.py:744 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self):` #### src/integration_hub.py:748 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def create_session(self, session_id: str = None) -> str:` #### src/integration_hub.py:761 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_session(self, session_id: str) -> Optional[EnhancedSession]:` #### src/integration_hub.py:765 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def track_tool_usage(self, session_id: str, tool_name: str, result: Dict[str, Any]):` #### src/integration_hub.py:789 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self, metric_service: Any = None, db_client: Any = None):` #### src/integration_hub.py:795 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def handle_error(self, context: Dict[str, Any]) -> Dict[str, Any]:` #### src/integration_hub.py:809 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _categorize_error(self, error_str: str) -> str:` #### src/integration_hub.py:860 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _handle_error_logic(self, context: Dict[str, Any]) -> Dict[str, Any]:` #### src/integration_hub.py:879 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _get_suggestions(self, error_type: str) -> List[str]:` #### src/integration_hub.py:890 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def _update_error_metrics(self, tool_name: str, error_type: str, recovery_strategy: str):` #### src/integration_hub.py:929 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __new__(cls):` #### src/integration_hub.py:935 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _initialize(self):` #### src/integration_hub.py:953 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _setup_local_embeddings(self):` #### src/integration_hub.py:967 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def encode(self, text: str) -> List[float]:` #### src/integration_hub.py:985 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _encode_local(self, text: str) -> List[float]:` #### src/integration_hub.py:1000 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self):` #### src/integration_hub.py:1012 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def initialize(self):` #### src/integration_hub.py:1061 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def _initialize_new_components(self):` #### src/integration_hub.py:1083 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def _initialize_monitoring(self):` #### src/integration_hub.py:1105 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def _monitoring_loop(self, monitoring: 'MonitoringDashboard'):` #### src/integration_hub.py:1115 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def _initialize_tools(self):` #### src/integration_hub.py:1147 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def _initialize_database(self):` #### src/integration_hub.py:1160 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def cleanup_db():` #### src/integration_hub.py:1172 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def _initialize_knowledge_base(self):` #### src/integration_hub.py:1199 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def _initialize_tool_orchestrator(self):` #### src/integration_hub.py:1223 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def _initialize_session_manager(self):` #### src/integration_hub.py:1234 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def _initialize_error_handler(self):` #### src/integration_hub.py:1249 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def _initialize_langchain(self):` #### src/integration_hub.py:1259 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def _initialize_crewai(self):` #### src/integration_hub.py:1269 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_tool_orchestrator(self) -> Optional[ToolOrchestrator]:` #### src/integration_hub.py:1273 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_unified_registry(self) -> UnifiedToolRegistry:` #### src/integration_hub.py:1277 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_session_manager(self) -> IntegratedSessionManager:` #### src/integration_hub.py:1281 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_error_handler(self) -> MetricAwareErrorHandler:` #### src/integration_hub.py:1285 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_tools(self) -> List[BaseTool]:` #### src/integration_hub.py:1289 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def is_ready(self) -> bool:` #### src/integration_hub.py:1294 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_tool_compatibility_checker(self) -> ToolCompatibilityChecker:` #### src/integration_hub.py:1298 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_semantic_discovery(self) -> Optional['SemanticToolDiscovery']:` #### src/integration_hub.py:1302 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_resource_manager(self) -> Optional[ResourcePoolManager]:` #### src/integration_hub.py:1306 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_tool_version_manager(self) -> ToolVersionManager:` #### src/integration_hub.py:1310 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_monitoring_dashboard(self) -> Optional[MonitoringDashboard]:` #### src/integration_hub.py:1314 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_rate_limit_manager(self) -> RateLimitManager:` #### src/integration_hub.py:1318 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_test_framework(self) -> Optional[IntegrationTestFramework]:` #### src/integration_hub.py:1322 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def cleanup(self):` #### src/integration_hub.py:1349 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def initialize_integrations():` #### src/integration_hub.py:1353 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def cleanup_integrations():` #### src/integration_hub.py:1357 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_integration_hub() -> IntegrationHub:` #### src/integration_hub.py:1361 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_tools() -> List[BaseTool]:` #### src/integration_hub.py:1365 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_tool_orchestrator() -> Optional[ToolOrchestrator]:` #### src/integration_hub.py:1369 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_session_manager() -> IntegratedSessionManager:` #### src/integration_hub.py:1373 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_error_handler() -> MetricAwareErrorHandler:` #### src/integration_hub.py:1377 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_unified_registry() -> UnifiedToolRegistry:` #### src/integration_hub.py:1388 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self, embedding_manager: EmbeddingManager):` #### src/integration_hub.py:1392 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def index_tool(self, tool_name: str, description: str, examples: List[str]):` #### src/integration_hub.py:1404 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def find_tools_for_task(self, task_description: str, top_k: int = 5) -> List[Tuple[str, float]]:` #### src/integration_hub.py:1417 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _cosine_similarity(self, vec1: List[float], vec2: List[float]) -> float:` #### src/integration_hub.py:1427 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self):` #### src/integration_hub.py:1431 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def register_version(self, tool_name: str, version: str, schema: Dict[str, Any]):` #### src/integration_hub.py:1442 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_latest_version(self, tool_name: str) -> Optional[str]:` #### src/integration_hub.py:1447 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def migrate_params(self, tool_name: str, params: Dict[str, Any],` #### src/integration_hub.py:1461 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _migrate_v1_to_v2(self, params: Dict[str, Any]) -> Dict[str, Any]:` #### src/integration_hub.py:1476 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _migrate_v2_to_v3(self, params: Dict[str, Any]) -> Dict[str, Any]:` #### src/integration_hub.py:1487 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def deprecate_version(self, tool_name: str, version: str):` #### src/integration_hub.py:1497 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self, components: Dict[str, Any]):` #### src/integration_hub.py:1508 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def collect_metrics(self):` #### src/integration_hub.py:1526 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def _collect_tool_metrics(self) -> Dict[str, Any]:` #### src/integration_hub.py:1549 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def _collect_session_metrics(self) -> Dict[str, Any]:` #### src/integration_hub.py:1566 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def _collect_error_metrics(self) -> Dict[str, Any]:` #### src/integration_hub.py:1580 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def _collect_performance_metrics(self) -> Dict[str, Any]:` #### src/integration_hub.py:1589 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def _collect_resource_metrics(self) -> Dict[str, Any]:` #### src/integration_hub.py:1602 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def _check_alerts(self, metrics: Dict[str, Any]):` #### src/integration_hub.py:1638 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_alerts(self, severity: str = None) -> List[Dict[str, Any]]:` #### src/integration_hub.py:1644 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def clear_alerts(self, alert_type: str = None):` #### src/integration_hub.py:1654 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self, integration_hub: 'IntegrationHub'):` #### src/integration_hub.py:1658 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def run_integration_tests(self) -> Dict[str, Any]:` #### src/integration_hub.py:1686 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def _test_tool_registration(self):` #### src/integration_hub.py:1701 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def _test_tool_execution(self):` #### src/integration_hub.py:1713 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def _test_session_persistence(self):` #### src/integration_hub.py:1726 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def _test_error_handling(self):` #### src/integration_hub.py:1738 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def _test_fallback_mechanisms(self):` #### src/integration_hub.py:1747 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def _test_cross_tool_communication(self):` #### src/integration_hub.py:1759 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self, old_registry, unified_registry: UnifiedToolRegistry):` #### src/integration_hub.py:1763 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def migrate_tools(self) -> Dict[str, Any]:` #### src/integration_hub.py:1804 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _convert_tool_doc(self, tool) -> Dict[str, Any]:` #### src/integration_hub.py:1817 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_tool_compatibility_checker() -> Optional[ToolCompatibilityChecker]:` #### src/integration_hub.py:1821 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_semantic_discovery() -> Optional['SemanticToolDiscovery']:` #### src/integration_hub.py:1825 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_resource_manager() -> Optional[ResourcePoolManager]:` #### src/integration_hub.py:1829 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_tool_version_manager() -> Optional[ToolVersionManager]:` #### src/integration_hub.py:1833 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_monitoring_dashboard() -> Optional[MonitoringDashboard]:` #### src/integration_hub.py:1837 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_rate_limit_manager() -> Optional[RateLimitManager]:` #### src/integration_hub.py:1841 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_test_framework() -> Optional[IntegrationTestFramework]:` #### src/integration_hub.py:1721 - **Issue:** Only checking for None - **Fix:** Use stronger assertions with specific comparisons - **Code:** `assert session is not None` #### src/config.py:4 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class Config:` #### src/config.py:31 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def primary_model(self) -> str:` #### src/config.py:42 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def search_provider(self) -> str:` #### src/config.py:53 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def is_tracing_enabled(self) -> bool:` #### src/config.py:58 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def has_database(self) -> bool:` #### src/config.py:62 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def validate(self) -> tuple[bool, list[str]]:` #### tests/test_tools.py:1 - **Issue:** Tests without parametrization - **Fix:** Use @pytest.mark.parametrize for comprehensive testing - **Code:** `@pytest.mark.parametrize('input,expected', [...])` #### tests/test_tools.py:1 - **Issue:** Tests without fixtures - **Fix:** Use pytest fixtures for better test organization - **Code:** `@pytest.fixture def sample_data():` #### tests/test_tools.py:22 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class TestWebResearcher:` #### tests/test_tools.py:52 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class TestSemanticSearchTool:` #### tests/test_tools.py:82 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class TestPythonInterpreter:` #### tests/test_tools.py:115 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class TestTavilySearch:` #### tests/test_tools.py:146 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class TestFileReader:` #### tests/test_tools.py:27 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_web_researcher_success(self, mock_wikipedia):` #### tests/test_tools.py:40 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_web_researcher_error(self, mock_wikipedia):` #### tests/test_tools.py:56 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_semantic_search_success(self, mock_engine):` #### tests/test_tools.py:76 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_semantic_search_invalid_params(self):` #### tests/test_tools.py:85 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_python_interpreter_simple(self):` #### tests/test_tools.py:92 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_python_interpreter_imports(self):` #### tests/test_tools.py:99 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_python_interpreter_error(self):` #### tests/test_tools.py:106 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_python_interpreter_timeout(self):` #### tests/test_tools.py:120 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_tavily_search_success(self, mock_tavily, mock_getenv):` #### tests/test_tools.py:136 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_tavily_search_no_api_key(self, mock_getenv):` #### tests/test_tools.py:150 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_file_reader_text_file(self, mock_open):` #### tests/test_tools.py:161 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_file_reader_with_lines(self, mock_open):` #### tests/test_tools.py:182 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_file_reader_nonexistent_file(self):` #### tests/test_tools.py:190 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_file_reader_pdf(self, mock_open, mock_pypdf):` #### tests/test_tools.py:201 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_enhanced_tools_discoverable():` #### tests/test_tools.py:209 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_production_tools_discoverable():` #### tests/test_tools.py:217 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_interactive_tools_discoverable():` #### tests/test_tools.py:225 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test_introspection_lists_tools():` #### src/advanced_hybrid_architecture.py:43 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class AgentState:` #### src/advanced_hybrid_architecture.py:51 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class Transition:` #### src/advanced_hybrid_architecture.py:60 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class ReasoningStep:` #### src/advanced_hybrid_architecture.py:69 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class Tool:` #### src/advanced_hybrid_architecture.py:81 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class ProbabilisticFSM:` #### src/advanced_hybrid_architecture.py:166 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class HierarchicalFSM(ProbabilisticFSM):` #### src/advanced_hybrid_architecture.py:200 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class ReActAgent:` #### src/advanced_hybrid_architecture.py:295 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class ChainOfThought:` #### src/advanced_hybrid_architecture.py:364 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class ComplexityAnalyzer:` #### src/advanced_hybrid_architecture.py:380 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class TemplateLibrary:` #### src/advanced_hybrid_architecture.py:408 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class HybridAgent:` #### src/advanced_hybrid_architecture.py:600 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class AgentRegistry:` #### src/advanced_hybrid_architecture.py:618 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class MultiAgentSystem:` #### src/advanced_hybrid_architecture.py:679 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class SharedMemory:` #### src/advanced_hybrid_architecture.py:708 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class EmergentBehaviorEngine:` #### src/advanced_hybrid_architecture.py:763 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class BehaviorPattern:` #### src/advanced_hybrid_architecture.py:775 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class PerformanceOptimizer:` #### src/advanced_hybrid_architecture.py:805 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class ResultCache:` #### src/advanced_hybrid_architecture.py:840 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class TaskPredictor:` #### src/advanced_hybrid_architecture.py:869 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class ResourceMonitor:` #### src/advanced_hybrid_architecture.py:896 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class AdvancedHybridSystem:` #### src/advanced_hybrid_architecture.py:84 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self, name: str):` #### src/advanced_hybrid_architecture.py:93 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def add_state(self, state: AgentState):` #### src/advanced_hybrid_architecture.py:97 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def add_transition(self, transition: Transition):` #### src/advanced_hybrid_architecture.py:101 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def set_initial_state(self, state_name: str):` #### src/advanced_hybrid_architecture.py:108 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def evaluate_transitions(self) -> List[Tuple[Transition, float]]:` #### src/advanced_hybrid_architecture.py:125 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def execute_transition(self, transition: Transition):` #### src/advanced_hybrid_architecture.py:137 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def update_learning(self, transition: Transition):` #### src/advanced_hybrid_architecture.py:144 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def step(self) -> bool:` #### src/advanced_hybrid_architecture.py:169 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self, name: str):` #### src/advanced_hybrid_architecture.py:174 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def add_child_fsm(self, state_name: str, child_fsm: ProbabilisticFSM):` #### src/advanced_hybrid_architecture.py:182 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def step(self) -> bool:` #### src/advanced_hybrid_architecture.py:203 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self, name: str, tools: List[BaseTool], max_steps: int = 10):` #### src/advanced_hybrid_architecture.py:212 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def think(self, observation: str, context: Dict[str, Any]) -> str:` #### src/advanced_hybrid_architecture.py:218 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def act(self, thought: str, context: Dict[str, Any]) -> Tuple[str, Any]:` #### src/advanced_hybrid_architecture.py:228 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def execute_tool(self, tool_name: str, args: Dict[str, Any]) -> str:` #### src/advanced_hybrid_architecture.py:240 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def parallel_reasoning(self, query: str, context: Dict[str, Any],` #### src/advanced_hybrid_architecture.py:251 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def reasoning_path(self, query: str, context: Dict[str, Any],` #### src/advanced_hybrid_architecture.py:285 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def discover_tool(self, tool: BaseTool):` #### src/advanced_hybrid_architecture.py:298 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self, name: str):` #### src/advanced_hybrid_architecture.py:304 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def analyze_complexity(self, query: str) -> float:` #### src/advanced_hybrid_architecture.py:308 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_cached_reasoning(self, query: str) -> Optional[List[ReasoningStep]]:` #### src/advanced_hybrid_architecture.py:313 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def reason(self, query: str, max_depth: Optional[int] = None) -> List[ReasoningStep]:` #### src/advanced_hybrid_architecture.py:339 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def execute_reasoning(self, query: str, template: str,` #### src/advanced_hybrid_architecture.py:367 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def analyze(self, query: str) -> float:` #### src/advanced_hybrid_architecture.py:383 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self):` #### src/advanced_hybrid_architecture.py:391 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def select_template(self, query: str) -> str:` #### src/advanced_hybrid_architecture.py:411 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self, name: str, tools: List[BaseTool] = None):` #### src/advanced_hybrid_architecture.py:433 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def select_mode(self, task: Dict[str, Any]) -> str:` #### src/advanced_hybrid_architecture.py:450 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def execute_task(self, task: Dict[str, Any]) -> Any:` #### src/advanced_hybrid_architecture.py:480 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def execute_fsm_task(self, task: Dict[str, Any]) -> Any:` #### src/advanced_hybrid_architecture.py:496 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def execute_react_task(self, task: Dict[str, Any]) -> Any:` #### src/advanced_hybrid_architecture.py:515 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def execute_cot_task(self, task: Dict[str, Any]) -> Any:` #### src/advanced_hybrid_architecture.py:524 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def execute_fsm_react_task(self, task: Dict[str, Any]) -> Any:` #### src/advanced_hybrid_architecture.py:585 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def update_performance(self, mode: str, success: bool, execution_time: float):` #### src/advanced_hybrid_architecture.py:603 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self):` #### src/advanced_hybrid_architecture.py:607 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def register_agent(self, agent: HybridAgent, capabilities: List[str]):` #### src/advanced_hybrid_architecture.py:613 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def find_agents_by_capability(self, capability: str) -> List[HybridAgent]:` #### src/advanced_hybrid_architecture.py:621 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self):` #### src/advanced_hybrid_architecture.py:627 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def add_agent(self, agent: HybridAgent, capabilities: List[str]):` #### src/advanced_hybrid_architecture.py:631 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def distribute_task(self, task: Dict[str, Any]) -> Any:` #### src/advanced_hybrid_architecture.py:655 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def collaborate_on_task(self, complex_task: Dict[str, Any]) -> Any:` #### src/advanced_hybrid_architecture.py:671 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def aggregate_results(self, results: List[Any]) -> Any:` #### src/advanced_hybrid_architecture.py:682 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self):` #### src/advanced_hybrid_architecture.py:686 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def store(self, key: str, value: Any):` #### src/advanced_hybrid_architecture.py:691 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def retrieve(self, key: str) -> Optional[Any]:` #### src/advanced_hybrid_architecture.py:696 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def search(self, pattern: str) -> Dict[str, Any]:` #### src/advanced_hybrid_architecture.py:711 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self):` #### src/advanced_hybrid_architecture.py:716 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def observe_behavior(self, agent: HybridAgent, task: Dict[str, Any],` #### src/advanced_hybrid_architecture.py:731 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def analyze_patterns(self):` #### src/advanced_hybrid_architecture.py:748 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def evolve_behavior(self, agent: HybridAgent, behavior: Dict[str, Any]) -> Dict[str, Any]:` #### src/advanced_hybrid_architecture.py:778 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self):` #### src/advanced_hybrid_architecture.py:783 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def optimize_execution(self, agent: HybridAgent, task: Dict[str, Any]) -> Any:` #### src/advanced_hybrid_architecture.py:800 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def precompute_task(self, agent: HybridAgent, task: Dict[str, Any]):` #### src/advanced_hybrid_architecture.py:808 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self, max_size: int = 1000):` #### src/advanced_hybrid_architecture.py:813 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get(self, task: Dict[str, Any]) -> Optional[Any]:` #### src/advanced_hybrid_architecture.py:821 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def store(self, task: Dict[str, Any], result: Any):` #### src/advanced_hybrid_architecture.py:834 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _task_key(self, task: Dict[str, Any]) -> str:` #### src/advanced_hybrid_architecture.py:843 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self):` #### src/advanced_hybrid_architecture.py:846 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def record_sequence(self, tasks: List[Dict[str, Any]]):` #### src/advanced_hybrid_architecture.py:850 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def predict_next_tasks(self, current_task: Dict[str, Any]) -> List[Dict[str, Any]]:` #### src/advanced_hybrid_architecture.py:865 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _tasks_similar(self, task1: Dict[str, Any], task2: Dict[str, Any]) -> bool:` #### src/advanced_hybrid_architecture.py:872 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self):` #### src/advanced_hybrid_architecture.py:875 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def record_usage(self, resource: str, amount: float):` #### src/advanced_hybrid_architecture.py:879 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_usage_summary(self) -> Dict[str, Dict[str, float]]:` #### src/advanced_hybrid_architecture.py:899 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self):` #### src/advanced_hybrid_architecture.py:905 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def create_agent(self, name: str, tools: List[BaseTool], capabilities: List[str]) -> HybridAgent:` #### src/advanced_hybrid_architecture.py:911 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def execute_complex_task(self, task: Dict[str, Any]) -> Any:` #### src/advanced_hybrid_architecture.py:935 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_system_health(self) -> Dict[str, Any]:` #### src/advanced_hybrid_architecture.py:954 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def main():` #### src/tools_production.py:18 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_whisper_model():` #### src/tools_production.py:32 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def video_analyzer_production(video_url: str) -> str:` #### src/tools_production.py:114 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def chess_analyzer_production(fen_string: str, analysis_time_seconds: float = 3.0) -> str:` #### src/tools_production.py:190 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def install_stockfish() -> str:` #### src/tools_production.py:227 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def image_analyzer_chess(image_path: str) -> str:` #### src/tools_production.py:250 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def music_discography_tool(artist_name: str) -> str:` #### src/tools_production.py:279 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def sports_data_tool(query: str) -> str:` #### src/tools_production.py:305 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def text_reversal_tool(text: str) -> str:` #### src/tools_production.py:328 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def mathematical_calculator(expression: str) -> str:` #### src/tools_production.py:372 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_production_tools() -> List[tool]:` #### src/crew_workflow.py:15 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def run_crew_workflow(query: str, tools: Dict[str, Any]) -> Dict[str, Any]:` #### src/integration_manager.py:24 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class IntegrationManager:` #### src/integration_manager.py:27 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self):` #### src/integration_manager.py:32 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def initialize_all(self):` #### src/integration_manager.py:100 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _get_available_tools(self) -> List[Any]:` #### src/integration_manager.py:137 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_component(self, name: str) -> Optional[Any]:` #### src/integration_manager.py:141 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_status(self) -> Dict[str, Any]:` #### src/integration_manager.py:158 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def shutdown(self):` #### src/integration_manager.py:180 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def get_integration_manager() -> IntegrationManager:` #### src/next_gen_integration.py:31 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class NextGenFSMAgent(FSMReActAgent):` #### src/next_gen_integration.py:41 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(` #### src/next_gen_integration.py:102 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def run(self, inputs: dict):` #### src/next_gen_integration.py:159 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _apply_operational_parameters(self, params: OperationalParameters):` #### src/next_gen_integration.py:176 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _setup_interactive_callbacks(self):` #### src/next_gen_integration.py:182 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _track_tool_performance(self, result: dict):` #### src/next_gen_integration.py:210 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _learn_from_clarifications(self, original_query: str, result: dict):` #### src/next_gen_integration.py:238 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def handle_tool_error(self, tool_name: str, error: Exception, attempted_params: dict) -> Optional[di...` #### src/next_gen_integration.py:280 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _build_corrected_params(` #### src/next_gen_integration.py:311 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def suggest_clarification(self, query: str) -> Optional[str]:` #### src/next_gen_integration.py:338 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_tool_recommendations(self, task_description: str) -> List[str]:` #### src/next_gen_integration.py:370 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def create_next_gen_agent(` #### src/next_gen_integration.py:397 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def setup_interactive_ui_callbacks(agent: NextGenFSMAgent, ui_callbacks: dict):` #### src/database.py:58 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class SupabaseLogHandler(logging.Handler):` #### src/database.py:17 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_supabase_client() -> Client:` #### src/database.py:33 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_vector_store():` #### src/database.py:61 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self, client: Client):` #### src/database.py:65 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def emit(self, record):` #### src/database.py:84 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def log_interaction(self, session_id: str, user_message: str, assistant_response: str):` #### src/database.py:99 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def create_tables():` #### src/database.py:115 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def health_check() -> dict:` #### src/advanced_agent_fsm.py:107 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class CorrelationFilter(logging.Filter):` #### src/advanced_agent_fsm.py:128 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class FSMState(str, Enum):` #### src/advanced_agent_fsm.py:148 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class PlanStep(BaseModel):` #### src/advanced_agent_fsm.py:155 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class PlanResponse(BaseModel):` #### src/advanced_agent_fsm.py:161 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class ExecutionResult(BaseModel):` #### src/advanced_agent_fsm.py:170 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class ValidationResult:` #### src/advanced_agent_fsm.py:309 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class ToolCall:` #### src/advanced_agent_fsm.py:321 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class EnhancedAgentState(TypedDict):` #### src/advanced_agent_fsm.py:405 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class ModelConfig:` #### src/advanced_agent_fsm.py:477 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class FinalIntegerAnswer(BaseModel):` #### src/advanced_agent_fsm.py:481 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class FinalStringAnswer(BaseModel):` #### src/advanced_agent_fsm.py:485 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class FinalNameAnswer(BaseModel):` #### src/advanced_agent_fsm.py:489 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class VerificationResult(BaseModel):` #### src/advanced_agent_fsm.py:497 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class RateLimiter:` #### src/advanced_agent_fsm.py:522 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class ResilientAPIClient:` #### src/advanced_agent_fsm.py:625 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class EnhancedPlanner:` #### src/advanced_agent_fsm.py:705 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class AgentState:` #### src/advanced_agent_fsm.py:728 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class FSMReActAgent:` #### src/advanced_agent_fsm.py:863 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class ToolDocumentation(BaseModel):` #### src/advanced_agent_fsm.py:871 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class ToolRegistry:` #### src/advanced_agent_fsm.py:892 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class ToolCapability(BaseModel):` #### src/advanced_agent_fsm.py:900 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class ToolAnnouncement(BaseModel):` #### src/advanced_agent_fsm.py:908 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class MCPToolRegistry:` #### src/advanced_agent_fsm.py:927 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class PerformanceMonitor:` #### src/advanced_agent_fsm.py:1056 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class ReasoningValidator:` #### src/advanced_agent_fsm.py:1185 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class AnswerSynthesizer:` #### src/advanced_agent_fsm.py:1479 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class GAIAAgentState(EnhancedAgentState):` #### src/advanced_agent_fsm.py:51 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def circuit(*args, **kwargs):` #### src/advanced_agent_fsm.py:52 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def decorator(func):` #### src/advanced_agent_fsm.py:109 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def filter(self, record):` #### src/advanced_agent_fsm.py:119 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def correlation_context(correlation_id: str):` #### src/advanced_agent_fsm.py:179 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __post_init__(self):` #### src/advanced_agent_fsm.py:185 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def validate_user_prompt(prompt: str) -> ValidationResult:` #### src/advanced_agent_fsm.py:317 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __post_init__(self):` #### src/advanced_agent_fsm.py:465 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_model_config(cls, task_type: str) -> Dict[str, Any]:` #### src/advanced_agent_fsm.py:470 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_model_for_task(cls, task_type: str) -> str:` #### src/advanced_agent_fsm.py:500 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self, max_requests_per_minute=60, burst_allowance=10):` #### src/advanced_agent_fsm.py:505 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def wait_if_needed(self):` #### src/advanced_agent_fsm.py:525 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self, api_key: str, base_url: str = "https://api.groq.com/openai/v1"):` #### src/advanced_agent_fsm.py:531 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _create_resilient_session(self) -> requests.Session:` #### src/advanced_agent_fsm.py:553 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _add_timeout(self, original_request):` #### src/advanced_agent_fsm.py:555 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def request_with_timeout(*args, **kwargs):` #### src/advanced_agent_fsm.py:561 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def make_chat_completion(self, messages: List[Dict], model: str = "llama-3.3-70b-versatile",` #### src/advanced_agent_fsm.py:628 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self, api_client: ResilientAPIClient):` #### src/advanced_agent_fsm.py:631 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def create_structured_plan(self, query: str, context: Dict = None, correlation_id: str = None) -> Pl...` #### src/advanced_agent_fsm.py:717 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __post_init__(self):` #### src/advanced_agent_fsm.py:731 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(` #### src/advanced_agent_fsm.py:820 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def select_best_tool(self, task: str, available_tools: List[BaseTool]) -> Optional[BaseTool]:` #### src/advanced_agent_fsm.py:854 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_tools_for_task(self, task_description: str) -> List[BaseTool]:` #### src/advanced_agent_fsm.py:873 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self):` #### src/advanced_agent_fsm.py:877 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def register_tool(self, tool_doc: ToolDocumentation):` #### src/advanced_agent_fsm.py:882 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_tool_doc(self, tool_name: str) -> Optional[ToolDocumentation]:` #### src/advanced_agent_fsm.py:886 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def find_relevant_tools(self, task_description: str, top_k: int = 3) -> List[ToolDocumentation]:` #### src/advanced_agent_fsm.py:910 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self):` #### src/advanced_agent_fsm.py:913 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def register_tool(self, announcement: ToolAnnouncement):` #### src/advanced_agent_fsm.py:917 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def discover_tools(self, capability_filter: Optional[str] = None) -> List[ToolAnnouncement]:` #### src/advanced_agent_fsm.py:930 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self):` #### src/advanced_agent_fsm.py:946 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def track_execution(self, operation: str, success: bool, duration: float, error: str = None):` #### src/advanced_agent_fsm.py:965 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_health_status(self) -> Dict[str, Any]:` #### src/advanced_agent_fsm.py:1010 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def calculate_success_rate(self) -> float:` #### src/advanced_agent_fsm.py:1016 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def calculate_avg_response_time(self) -> float:` #### src/advanced_agent_fsm.py:1022 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_error_distribution(self) -> Dict[str, int]:` #### src/advanced_agent_fsm.py:1030 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def generate_recommendations(self) -> List[str]:` #### src/advanced_agent_fsm.py:1046 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def reset_metrics(self):` #### src/advanced_agent_fsm.py:1059 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self):` #### src/advanced_agent_fsm.py:1067 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def validate_reasoning_path(self, path: ReasoningPath) -> ValidationResult:` #### src/advanced_agent_fsm.py:1100 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def is_logical_transition(self, current_step, next_step) -> bool:` #### src/advanced_agent_fsm.py:1122 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def has_sufficient_evidence(self, path: ReasoningPath) -> bool:` #### src/advanced_agent_fsm.py:1135 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def has_circular_reasoning(self, path: ReasoningPath) -> bool:` #### src/advanced_agent_fsm.py:1148 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def has_contradictions(self, path: ReasoningPath) -> bool:` #### src/advanced_agent_fsm.py:1165 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _are_contradictory(self, stmt1: str, stmt2: str) -> bool:` #### src/advanced_agent_fsm.py:1188 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self, api_client: ResilientAPIClient = None):` #### src/advanced_agent_fsm.py:1192 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def synthesize_with_verification(self, results: List[Dict], question: str) -> str:` #### src/advanced_agent_fsm.py:1218 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def extract_facts(self, result: Dict) -> List[str]:` #### src/advanced_agent_fsm.py:1236 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _is_factual(self, sentence: str) -> bool:` #### src/advanced_agent_fsm.py:1248 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def cross_verify_facts(self, facts: List[str]) -> List[str]:` #### src/advanced_agent_fsm.py:1272 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _are_consistent(self, fact1: str, fact2: str) -> bool:` #### src/advanced_agent_fsm.py:1289 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _extract_entities(self, text: str) -> List[str]:` #### src/advanced_agent_fsm.py:1303 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _are_contradictory(self, text1: str, text2: str) -> bool:` #### src/advanced_agent_fsm.py:1322 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def build_answer(self, facts: List[str], question: str) -> str:` #### src/advanced_agent_fsm.py:1345 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _group_related_facts(self, facts: List[str]) -> Dict[str, List[str]]:` #### src/advanced_agent_fsm.py:1358 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _extract_key_terms(self, text: str) -> List[str]:` #### src/advanced_agent_fsm.py:1371 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _build_numeric_answer(self, grouped_facts: Dict[str, List[str]]) -> str:` #### src/advanced_agent_fsm.py:1386 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _build_person_answer(self, grouped_facts: Dict[str, List[str]]) -> str:` #### src/advanced_agent_fsm.py:1401 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _build_temporal_answer(self, grouped_facts: Dict[str, List[str]]) -> str:` #### src/advanced_agent_fsm.py:1423 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _build_general_answer(self, grouped_facts: Dict[str, List[str]]) -> str:` #### src/advanced_agent_fsm.py:1437 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def answers_question(self, answer: str, question: str) -> bool:` #### src/advanced_agent_fsm.py:1453 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def fallback_synthesis(self, results: List[Dict], question: str) -> str:` #### src/advanced_agent_fsm.py:1487 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def analyze_question_type(query: str) -> Dict[str, str]:` #### src/advanced_agent_fsm.py:1510 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def should_verify_calculation(state: GAIAAgentState) -> bool:` #### src/advanced_agent_fsm.py:1516 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def create_gaia_optimized_plan(query: str) -> Dict[str, any]:` #### src/embedding_manager.py:14 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class EmbeddingManager:` #### src/embedding_manager.py:19 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __new__(cls):` #### src/embedding_manager.py:25 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _initialize(self):` #### src/embedding_manager.py:43 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _setup_local_embeddings(self):` #### src/embedding_manager.py:56 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def embed(self, text: str) -> List[float]:` #### src/embedding_manager.py:80 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def embed_batch(self, texts: List[str]) -> List[List[float]]:` #### src/embedding_manager.py:103 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_dimension(self) -> int:` #### src/embedding_manager.py:107 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_method(self) -> str:` #### src/embedding_manager.py:114 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_embedding_manager() -> EmbeddingManager:` #### src/knowledge_utils.py:15 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class LocalKnowledgeTool:` #### src/knowledge_utils.py:18 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self, cache_dir: str = "./knowledge_cache"):` #### src/knowledge_utils.py:26 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _load_local_docs(self):` #### src/knowledge_utils.py:37 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _build_index(self):` #### src/knowledge_utils.py:49 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def search(self, query: str, top_k: int = 3) -> List[Dict[str, Any]]:` #### src/knowledge_utils.py:89 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _extract_snippet(self, text: str, query: str, context_words: int = 50) -> str:` #### src/knowledge_utils.py:118 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def add_document(self, text: str, source: str = "local") -> str:` #### src/knowledge_utils.py:145 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def create_local_knowledge_tool() -> LocalKnowledgeTool:` #### src/integration_hub_examples.py:296 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class MockOldRegistry:` #### src/integration_hub_examples.py:13 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def demonstrate_tool_compatibility_checker():` #### src/integration_hub_examples.py:59 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def demonstrate_semantic_tool_discovery():` #### src/integration_hub_examples.py:102 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def demonstrate_resource_pool_manager():` #### src/integration_hub_examples.py:114 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def create_db_connection():` #### src/integration_hub_examples.py:143 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def demonstrate_tool_version_manager():` #### src/integration_hub_examples.py:195 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def demonstrate_rate_limit_manager():` #### src/integration_hub_examples.py:213 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def simulate_tool_call(tool_name: str, call_number: int):` #### src/integration_hub_examples.py:232 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def demonstrate_monitoring_dashboard():` #### src/integration_hub_examples.py:265 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def demonstrate_integration_test_framework():` #### src/integration_hub_examples.py:289 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def demonstrate_migration_helper():` #### src/integration_hub_examples.py:297 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self):` #### src/integration_hub_examples.py:321 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def demonstrate_advanced_orchestrator_features():` #### src/integration_hub_examples.py:342 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def main():` #### src/config_cli.py:24 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def cli():` #### src/config_cli.py:29 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def validate():` #### src/config_cli.py:40 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def show():` #### src/config_cli.py:48 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def save(file_path):` #### src/config_cli.py:57 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def load(file_path):` #### src/config_cli.py:65 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def env():` #### src/config_cli.py:99 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def update(section, key, value):` #### src/config_cli.py:112 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def test():` #### src/knowledge_ingestion.py:22 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class DocumentProcessor:` #### src/knowledge_ingestion.py:195 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class KnowledgeLifecycleManager:` #### src/knowledge_ingestion.py:284 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class KnowledgeIngestionService:` #### src/knowledge_ingestion.py:25 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self):` #### src/knowledge_ingestion.py:35 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _compute_hash(self, content: str) -> str:` #### src/knowledge_ingestion.py:39 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def process_file(self, file_path: Path) -> bool:` #### src/knowledge_ingestion.py:97 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _read_file(self, file_path: Path) -> Optional[str]:` #### src/knowledge_ingestion.py:125 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def process_url(self, url: str) -> bool:` #### src/knowledge_ingestion.py:198 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self, db_client=None, cache=None):` #### src/knowledge_ingestion.py:204 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def update_knowledge_lifecycle(self, doc_id: str, doc_metadata: Dict[str, Any]):` #### src/knowledge_ingestion.py:223 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def trigger_reindex(self, force: bool = False):` #### src/knowledge_ingestion.py:245 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def invalidate_cache(self, pattern: str = "knowledge_base:*"):` #### src/knowledge_ingestion.py:257 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def _get_recent_document_count(self) -> int:` #### src/knowledge_ingestion.py:274 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def _perform_reindex(self):` #### src/knowledge_ingestion.py:287 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self, watch_directories: List[str] = None, poll_urls: List[str] = None,` #### src/knowledge_ingestion.py:297 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def ingest_document(self, doc_path: str) -> str:` #### src/knowledge_ingestion.py:335 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def ingest_url(self, url: str) -> str:` #### src/knowledge_ingestion.py:368 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def start(self):` #### src/knowledge_ingestion.py:385 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def stop(self):` #### src/knowledge_ingestion.py:390 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _process_directory(self, directory: str):` #### src/knowledge_ingestion.py:405 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def _poll_urls(self):` #### src/knowledge_ingestion.py:419 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def add_watch_directory(self, directory: str):` #### src/knowledge_ingestion.py:424 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def add_poll_url(self, url: str):` #### src/knowledge_ingestion.py:429 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def run_ingestion_service(config: Dict[str, Any]):` #### src/database_enhanced.py:29 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class SearchResult:` #### src/database_enhanced.py:36 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class SupabaseConnectionPool:` #### src/database_enhanced.py:87 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class OptimizedVectorStore:` #### src/database_enhanced.py:144 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class HybridVectorSearch:` #### src/database_enhanced.py:242 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class SupabaseRealtimeManager:` #### src/database_enhanced.py:39 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self, url: str, key: str, pool_size: int = 10):` #### src/database_enhanced.py:47 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def initialize(self):` #### src/database_enhanced.py:70 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def get_client(self):` #### src/database_enhanced.py:81 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def close(self):` #### src/database_enhanced.py:90 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self, pool: SupabaseConnectionPool):` #### src/database_enhanced.py:102 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _compute_embedding(self, text: str) -> np.ndarray:` #### src/database_enhanced.py:107 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def _get_cached_embedding(self, text: str) -> np.ndarray:` #### src/database_enhanced.py:112 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def batch_insert_embeddings(` #### src/database_enhanced.py:147 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self, pool: SupabaseConnectionPool):` #### src/database_enhanced.py:152 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def get_embedding(self, text: str) -> np.ndarray:` #### src/database_enhanced.py:158 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def hybrid_search(` #### src/database_enhanced.py:203 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def _rerank_results(self, query: str, results: List[SearchResult]) -> List[SearchResult]:` #### src/database_enhanced.py:215 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def _fallback_search(self, client, query_embedding: np.ndarray, top_k: int) -> List[SearchResu...` #### src/database_enhanced.py:245 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self, client: Client):` #### src/database_enhanced.py:249 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def subscribe_to_tool_metrics(self, callback):` #### src/database_enhanced.py:258 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def subscribe_to_knowledge_updates(self, callback):` #### src/database_enhanced.py:267 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def unsubscribe_all(self):` #### src/database_enhanced.py:277 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def initialize_supabase_enhanced(url: Optional[str] = None, key: Optional[str] = None):` #### src/health_check.py:25 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def check_integrations_health() -> Dict[str, Any]:` #### src/health_check.py:163 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def check_specific_integration(integration_name: str) -> Dict[str, Any]:` #### src/health_check.py:187 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def _check_supabase_health() -> Dict[str, Any]:` #### src/health_check.py:231 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def _check_llamaindex_health() -> Dict[str, Any]:` #### src/health_check.py:263 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def _check_langchain_health() -> Dict[str, Any]:` #### src/health_check.py:286 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def _check_crewai_health() -> Dict[str, Any]:` #### src/health_check.py:309 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_health_summary() -> Dict[str, Any]:` #### src/tools_introspection.py:14 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class ToolSchemaInfo(BaseModel):` #### src/tools_introspection.py:24 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class ToolCallError:` #### src/tools_introspection.py:33 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class ToolIntrospector:` #### src/tools_introspection.py:36 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self, tool_registry: Optional[Dict[str, BaseTool]] = None):` #### src/tools_introspection.py:46 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_tool_schema(self, tool_name: str) -> Dict[str, Any]:` #### src/tools_introspection.py:91 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def analyze_tool_error(` #### src/tools_introspection.py:130 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _get_tool_examples(self, tool_name: str) -> List[Dict[str, Any]]:` #### src/tools_introspection.py:153 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _suggest_parameter_fix(self, tool_name: str, attempted_params: Dict[str, Any]) -> str:` #### src/tools_introspection.py:168 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _suggest_validation_fix(self, tool_name: str, attempted_params: Dict[str, Any]) -> str:` #### src/tools_introspection.py:177 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _suggest_general_fix(self, tool_name: str, error_message: str) -> str:` #### src/tools_introspection.py:181 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_error_history(self) -> List[ToolCallError]:` #### src/tools_introspection.py:185 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def clear_error_history(self):` #### src/tools_introspection.py:194 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def register_tools(tools: List[BaseTool]):` #### src/tools_introspection.py:205 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_tool_schema(tool_name: str) -> Dict[str, Any]:` #### src/tools_introspection.py:218 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def analyze_tool_error(tool_name: str, error_message: str, attempted_params: Dict[str, Any]) -> Tool...` #### src/tools_introspection.py:233 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_available_tools() -> List[str]:` #### src/tools_introspection.py:243 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_tool_examples(tool_name: str) -> List[Dict[str, Any]]:` #### src/tools_introspection.py:257 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def inspect_tool_parameters(tool: BaseTool) -> Dict[str, Any]:` #### src/tools_introspection.py:282 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def validate_tool_call(tool: BaseTool, parameters: Dict[str, Any]) -> Dict[str, Any]:` #### src/tools_introspection.py:314 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def suggest_tool_alternatives(tool_name: str, available_tools: List[BaseTool]) -> List[str]:` #### src/llamaindex_enhanced.py:58 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class EnhancedKnowledgeBase:` #### src/llamaindex_enhanced.py:172 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class MultiModalGAIAIndex:` #### src/llamaindex_enhanced.py:232 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class IncrementalKnowledgeBase:` #### src/llamaindex_enhanced.py:302 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class GAIAQueryEngine:` #### src/llamaindex_enhanced.py:61 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self, vector_store: Optional[Any] = None):` #### src/llamaindex_enhanced.py:68 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _setup_service_context(self):` #### src/llamaindex_enhanced.py:111 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def create_hierarchical_index(self, documents: List[Document]) -> VectorStoreIndex:` #### src/llamaindex_enhanced.py:138 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def load_documents_from_directory(self, directory_path: str) -> List[Document]:` #### src/llamaindex_enhanced.py:175 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self):` #### src/llamaindex_enhanced.py:181 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _setup_loaders(self):` #### src/llamaindex_enhanced.py:193 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def process_gaia_content(self, content_path: str) -> Dict[str, Any]:` #### src/llamaindex_enhanced.py:235 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self, storage_path: str = "./knowledge_cache"):` #### src/llamaindex_enhanced.py:241 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _load_existing_index(self):` #### src/llamaindex_enhanced.py:256 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def add_documents_incrementally(self, documents: List[Document]) -> bool:` #### src/llamaindex_enhanced.py:284 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_cache_stats(self) -> Dict[str, Any]:` #### src/llamaindex_enhanced.py:305 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self, index: VectorStoreIndex):` #### src/llamaindex_enhanced.py:310 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _setup_query_engine(self):` #### src/llamaindex_enhanced.py:341 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def query_gaia_task(self, query: str, task_type: str = "general") -> str:` #### src/llamaindex_enhanced.py:359 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _enhance_query_for_task(self, query: str, task_type: str) -> str:` #### src/llamaindex_enhanced.py:370 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_query_stats(self) -> Dict[str, Any]:` #### src/llamaindex_enhanced.py:381 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def create_gaia_knowledge_base(` #### src/tools_interactive.py:16 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class InteractiveState:` #### src/tools_interactive.py:51 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class ClarificationInput(BaseModel):` #### src/tools_interactive.py:60 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class UserFeedbackInput(BaseModel):` #### src/tools_interactive.py:18 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self):` #### src/tools_interactive.py:23 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def set_clarification_callback(self, callback: Callable):` #### src/tools_interactive.py:27 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def add_pending_clarification(self, question_id: str, question: str, context: Dict):` #### src/tools_interactive.py:35 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_user_response(self, question_id: str) -> Optional[str]:` #### src/tools_interactive.py:39 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def set_user_response(self, question_id: str, response: str):` #### src/tools_interactive.py:72 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def ask_user_for_clarification(question: str, context: Optional[str] = None) -> str:` #### src/tools_interactive.py:110 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def collect_user_feedback(feedback_type: str, content: str, related_to: Optional[str] = None) -> str...` #### src/tools_interactive.py:142 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def request_user_confirmation(action_description: str, details: Optional[str] = None) -> str:` #### src/tools_interactive.py:179 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_interactive_tools() -> List[StructuredTool]:` #### src/tools_interactive.py:207 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def set_clarification_callback(callback: Callable):` #### src/tools_interactive.py:217 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_pending_clarifications() -> Dict[str, Dict]:` #### src/tools_interactive.py:227 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def clear_pending_clarifications():` #### src/multi_agent_system.py:13 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class AgentRole(str, Enum):` #### src/multi_agent_system.py:21 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class AgentCapability(BaseModel):` #### src/multi_agent_system.py:29 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class AgentState:` #### src/multi_agent_system.py:38 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class MultiAgentSystem:` #### src/multi_agent_system.py:41 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self, tools: List[BaseTool], model_config: Dict[str, Any] = None):` #### src/multi_agent_system.py:82 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _create_agent_team(self) -> Dict[AgentRole, Agent]:` #### src/multi_agent_system.py:142 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _get_tools_for_role(self, role: AgentRole, tool_categories: List[str]) -> List[BaseTool]:` #### src/multi_agent_system.py:194 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _filter_by_reliability(self, tools: List[BaseTool]) -> List[BaseTool]:` #### src/multi_agent_system.py:212 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _create_planning_task(self, query: str) -> Task:` #### src/multi_agent_system.py:220 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _create_research_task(self, query: str) -> Task:` #### src/multi_agent_system.py:228 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _create_execution_task(self, step: Dict[str, Any]) -> Task:` #### src/multi_agent_system.py:236 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _create_verification_task(self, findings: Dict[str, Any]) -> Task:` #### src/multi_agent_system.py:244 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _create_synthesis_task(self, query: str, findings: Dict[str, Any]) -> Task:` #### src/multi_agent_system.py:252 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def process_query(self, query: str) -> str:` #### src/multi_agent_system.py:304 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _update_tool_metrics(self):` #### src/multi_agent_system.py:317 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_state(self) -> AgentState:` #### src/multi_agent_system.py:321 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_tool_usage_stats(self) -> Dict[str, Any]:` #### src/langchain_enhanced.py:21 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class CustomMetricsCallback(BaseCallbackHandler):` #### src/langchain_enhanced.py:43 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class ErrorRecoveryCallback(BaseCallbackHandler):` #### src/langchain_enhanced.py:64 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class ParallelToolExecutor:` #### src/langchain_enhanced.py:152 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class EnhancedLangChainAgent:` #### src/langchain_enhanced.py:24 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self):` #### src/langchain_enhanced.py:28 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def on_llm_start(self, serialized: Dict[str, Any], prompts: List[str], **kwargs):` #### src/langchain_enhanced.py:33 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def on_llm_end(self, response, **kwargs):` #### src/langchain_enhanced.py:39 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def on_llm_error(self, error: str, **kwargs):` #### src/langchain_enhanced.py:46 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self):` #### src/langchain_enhanced.py:50 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def on_llm_error(self, error: str, **kwargs):` #### src/langchain_enhanced.py:67 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self, tools: List[BaseTool]):` #### src/langchain_enhanced.py:71 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _group_compatible_tools(self, tool_calls: List[ToolCall]) -> List[List[ToolCall]]:` #### src/langchain_enhanced.py:86 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def execute_parallel(` #### src/langchain_enhanced.py:120 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def _execute_single(self, tool_call: ToolCall) -> Any:` #### src/langchain_enhanced.py:136 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _execute_single_sync(self, tool_call: ToolCall) -> Any:` #### src/langchain_enhanced.py:155 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self, llm, tools: List[BaseTool]):` #### src/langchain_enhanced.py:193 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def create_optimized_chain(self):` #### src/langchain_enhanced.py:206 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def run(self, inputs: Dict[str, Any]) -> Dict[str, Any]:` #### src/langchain_enhanced.py:228 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_memory_summary(self) -> str:` #### src/langchain_enhanced.py:235 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def initialize_enhanced_agent(llm, tools: List[BaseTool]):` #### src/tools_enhanced.py:22 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class TavilySearch: # type: ignore` #### src/tools_enhanced.py:44 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class ChatGroq: # type: ignore` #### src/tools_enhanced.py:340 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class ImageAnalyzerEnhancedInput(BaseModel):` #### src/tools_enhanced.py:23 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self, *_, **__): pass` #### src/tools_enhanced.py:24 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def run(self, query: str):` #### src/tools_enhanced.py:33 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def PythonREPLTool(code: str) -> str: # type: ignore` #### src/tools_enhanced.py:45 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self, *_, **__): pass` #### src/tools_enhanced.py:46 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def invoke(self, prompt: str):` #### src/tools_enhanced.py:113 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def gaia_video_analyzer(video_url: str) -> str:` #### src/tools_enhanced.py:159 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def chess_logic_tool(fen_string: str, analysis_time_seconds: float = 2.0) -> str:` #### src/tools_enhanced.py:202 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def web_researcher(` #### src/tools_enhanced.py:267 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def abstract_reasoning_tool(puzzle_text: str) -> str:` #### src/tools_enhanced.py:344 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _image_analyzer_enhanced_structured(filename: str, task: str = "describe") -> str:` #### src/tools_enhanced.py:356 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_enhanced_tools() -> List[Tool]:` #### src/tools_enhanced.py:446 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def echo_tool(message: str) -> str:` #### src/tools_enhanced.py:457 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def extract_numbers_from_text(text: str) -> List[int]:` #### src/tools_enhanced.py:466 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def find_maximum_in_text(text: str, keyword: str) -> Optional[int]:` #### src/tools_enhanced.py:483 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def image_analyzer_enhanced(filename: str, task: str = "describe") -> str:` #### src/tools_enhanced.py:514 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_enhanced_tools():` #### src/main.py:25 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class AIAgentApplication:` #### src/main.py:27 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `Main application class with clean architecture.` #### src/main.py:29 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `This class orchestrates the entire application lifecycle,` #### src/main.py:34 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self):` #### src/main.py:41 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def initialize(self) -> None:` #### src/main.py:67 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def _initialize_configuration(self) -> None:` #### src/main.py:79 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def _initialize_logging(self) -> None:` #### src/main.py:87 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def _initialize_services(self) -> None:` #### src/main.py:107 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def _initialize_interfaces(self) -> None:` #### src/main.py:123 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def run_web(self) -> None:` #### src/main.py:131 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def run_cli(self) -> None:` #### src/main.py:139 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def shutdown(self) -> None:` #### src/main.py:156 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def main():` #### src/tools/file_reader.py:10 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class FileReaderInput(BaseModel):` #### src/tools/file_reader.py:16 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def file_reader(filename: str, lines: int = -1) -> str:` #### src/tools/semantic_search_tool.py:23 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class SemanticSearchInput(BaseModel):` #### src/tools/semantic_search_tool.py:30 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def semantic_search_tool(query: str, filename: str, top_k: int = 3) -> str:` #### src/tools/tavily_search.py:10 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class TavilySearchInput(BaseModel):` #### src/tools/tavily_search.py:16 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def tavily_search(query: str, max_results: int = 3) -> str:` #### src/tools/tavily_search.py:39 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def tavily_search_backoff(query: str, max_results: int = 3) -> str:` #### src/tools/base_tool.py:21 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class TavilySearch: # type: ignore` #### src/tools/base_tool.py:263 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class VideoAnalyzerInput(BaseModel):` #### src/tools/base_tool.py:466 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class TavilySearchInput(BaseModel):` #### src/tools/base_tool.py:538 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class SemanticSearchEngine:` #### src/tools/base_tool.py:547 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class WebSearchTool(BaseTool):` #### src/tools/base_tool.py:557 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class CalculatorTool(BaseTool):` #### src/tools/base_tool.py:571 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class CodeAnalysisTool(BaseTool):` #### src/tools/base_tool.py:581 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class DataValidationTool(BaseTool):` #### src/tools/base_tool.py:22 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self, *_, **__):` #### src/tools/base_tool.py:24 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def run(self, query: str):` #### src/tools/base_tool.py:41 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def PythonREPLTool(code: str) -> str: # type: ignore` #### src/tools/base_tool.py:132 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _exponential_backoff(func, max_retries: int = 4):` #### src/tools/base_tool.py:153 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def file_reader(filename: str, lines: int = -1) -> str:` #### src/tools/base_tool.py:184 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def advanced_file_reader(filename: str) -> str:` #### src/tools/base_tool.py:242 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def audio_transcriber(filename: str) -> str:` #### src/tools/base_tool.py:267 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def video_analyzer(url: str, action: str = "download_info") -> str:` #### src/tools/base_tool.py:272 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _video_analyzer_structured(url: str, action: str = "download_info") -> str:` #### src/tools/base_tool.py:314 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def image_analyzer(filename: str, task: str = "describe") -> str:` #### src/tools/base_tool.py:356 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def web_researcher(query: str, source: str = "wikipedia") -> str:` #### src/tools/base_tool.py:392 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def semantic_search_tool(query: str, filename: str, top_k: int = 3) -> str:` #### src/tools/base_tool.py:442 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def python_interpreter(code: str) -> str:` #### src/tools/base_tool.py:471 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def tavily_search_backoff(query: str, max_results: int = 3) -> str:` #### src/tools/base_tool.py:486 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _call():` #### src/tools/base_tool.py:495 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_tools() -> List[BaseTool]:` #### src/tools/base_tool.py:520 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_weather(city: str) -> str:` #### src/tools/base_tool.py:541 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self, *args, **kwargs):` #### src/tools/base_tool.py:544 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def search(self, *args, **kwargs):` #### src/tools/base_tool.py:553 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _run(self, query: str) -> str:` #### src/tools/base_tool.py:563 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _run(self, expression: str) -> str:` #### src/tools/base_tool.py:577 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _run(self, code: str) -> str:` #### src/tools/base_tool.py:587 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _run(self, data: str) -> str:` #### src/tools/base_tool.py:616 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_tools() -> List[BaseTool]:` #### src/tools/python_interpreter.py:12 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class PythonInterpreterInput(BaseModel):` #### src/tools/python_interpreter.py:17 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def python_interpreter(code: str) -> str:` #### src/tools/weather.py:11 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class WeatherInput(BaseModel):` #### src/tools/weather.py:17 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_weather(location: str, units: str = "metric") -> str:` #### src/tools/advanced_file_reader.py:10 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class AdvancedFileReaderInput(BaseModel):` #### src/tools/advanced_file_reader.py:18 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def advanced_file_reader(` #### src/reasoning/reasoning_path.py:12 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class ReasoningType(Enum):` #### src/reasoning/reasoning_path.py:20 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class ReasoningStep:` #### src/reasoning/reasoning_path.py:31 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class ReasoningPath:` #### src/reasoning/reasoning_path.py:38 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class AdvancedReasoning:` #### src/reasoning/reasoning_path.py:41 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self):` #### src/reasoning/reasoning_path.py:46 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def generate_reasoning_plan(self, query: str, reasoning_type: ReasoningType) -> List[ReasoningStep]:` #### src/reasoning/reasoning_path.py:59 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _generate_linear_plan(self, query: str) -> List[ReasoningStep]:` #### src/reasoning/reasoning_path.py:102 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _generate_tree_plan(self, query: str) -> List[ReasoningStep]:` #### src/reasoning/reasoning_path.py:136 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _generate_self_consistent_plan(self, query: str) -> List[ReasoningStep]:` #### src/reasoning/reasoning_path.py:170 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _generate_layered_plan(self, query: str) -> List[ReasoningStep]:` #### src/reasoning/reasoning_path.py:213 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def verify_step(self, step: ReasoningStep) -> bool:` #### src/reasoning/reasoning_path.py:230 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def verify_path(self, path: ReasoningPath) -> bool:` #### src/reasoning/reasoning_path.py:246 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def record_reasoning(self, path: ReasoningPath):` #### src/reasoning/reasoning_path.py:250 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_reasoning_history(self) -> List[ReasoningPath]:` #### src/reasoning/reasoning_path.py:254 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def analyze_reasoning_patterns(self) -> Dict[str, Any]:` #### src/tools/audio_transcriber.py:10 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class AudioTranscriberInput(BaseModel):` #### src/tools/audio_transcriber.py:16 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def audio_transcriber(audio_file: str, language: str = "en") -> str:` #### src/config/integrations.py:16 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class SupabaseConfig:` #### src/config/integrations.py:36 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class LangChainConfig:` #### src/config/integrations.py:52 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class CrewAIConfig:` #### src/config/integrations.py:65 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class LlamaIndexConfig:` #### src/config/integrations.py:79 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class GAIAConfig:` #### src/config/integrations.py:91 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class IntegrationConfig:` #### src/config/integrations.py:27 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def is_configured(self) -> bool:` #### src/config/integrations.py:30 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_connection_string(self) -> str:` #### src/config/integrations.py:48 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def is_tracing_configured(self) -> bool:` #### src/config/integrations.py:94 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self):` #### src/config/integrations.py:102 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _load_from_environment(self):` #### src/config/integrations.py:128 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def update_config(self, updates: Dict[str, Any]) -> bool:` #### src/config/integrations.py:145 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def validate(self) -> tuple[bool, List[str]]:` #### src/config/integrations.py:168 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def to_dict(self) -> Dict[str, Any]:` #### src/config/integrations.py:199 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def save_to_file(self, file_path: str) -> bool:` #### src/config/integrations.py:211 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def load_from_file(self, file_path: str) -> bool:` #### src/errors/error_category.py:13 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class ErrorCategory(Enum):` #### src/errors/error_category.py:38 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class RetryStrategy:` #### src/errors/error_category.py:50 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class ToolExecutionResult:` #### src/errors/error_category.py:58 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class CircuitBreaker:` #### src/errors/error_category.py:93 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class ErrorHandler:` #### src/errors/error_category.py:61 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self, failure_threshold: int = 5, recovery_timeout: int = 60):` #### src/errors/error_category.py:68 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def call(self, func, *args, **kwargs):` #### src/errors/error_category.py:96 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self):` #### src/errors/error_category.py:101 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def categorize_error(self, error_str: str) -> ErrorCategory:` #### src/errors/error_category.py:137 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_retry_strategy(self, error_category: ErrorCategory, state: Dict[str, Any]) -> RetryStrategy:` #### src/errors/error_category.py:209 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_retry_suggestions(self, error_category: ErrorCategory) -> List[str]:` #### src/errors/error_category.py:245 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def track_error(self, error_category: ErrorCategory):` #### src/errors/error_category.py:249 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_error_stats(self) -> Dict[ErrorCategory, int]:` #### src/errors/error_category.py:253 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def record_recovery(self, error_category: ErrorCategory, success: bool):` #### src/errors/error_category.py:263 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_recovery_stats(self) -> Dict[ErrorCategory, Dict[str, int]]:` #### src/errors/error_category.py:267 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_circuit_breaker(self, tool_name: str) -> CircuitBreaker:` #### src/infrastructure/database/in_memory_tool_repository.py:12 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class InMemoryToolRepository(ToolRepository):` #### src/infrastructure/database/in_memory_tool_repository.py:13 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self):` #### src/infrastructure/database/in_memory_tool_repository.py:17 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def save(self, tool: Tool) -> Tool:` #### src/infrastructure/database/in_memory_tool_repository.py:22 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def find_by_id(self, tool_id: UUID) -> Optional[Tool]:` #### src/infrastructure/database/in_memory_tool_repository.py:25 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def find_by_name(self, name: str) -> Optional[Tool]:` #### src/infrastructure/database/in_memory_tool_repository.py:28 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def find_by_type(self, tool_type: ToolType) -> List[Tool]:` #### src/infrastructure/database/in_memory_tool_repository.py:31 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def delete(self, tool_id: UUID) -> bool:` #### src/infrastructure/database/in_memory_tool_repository.py:40 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def get_statistics(self) -> dict:` #### src/infrastructure/database/in_memory_message_repository.py:12 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class InMemoryMessageRepository(MessageRepository):` #### src/infrastructure/database/in_memory_message_repository.py:13 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self):` #### src/infrastructure/database/in_memory_message_repository.py:16 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def save(self, message: Message) -> Message:` #### src/infrastructure/database/in_memory_message_repository.py:20 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def find_by_id(self, message_id: UUID) -> Optional[Message]:` #### src/infrastructure/database/in_memory_message_repository.py:23 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def find_by_session(self, session_id: UUID) -> List[Message]:` #### src/infrastructure/database/in_memory_message_repository.py:26 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def find_by_type(self, message_type: MessageType) -> List[Message]:` #### src/infrastructure/database/in_memory_message_repository.py:29 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def delete(self, message_id: UUID) -> bool:` #### src/infrastructure/database/in_memory_message_repository.py:35 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def get_statistics(self) -> dict:` #### src/infrastructure/database/in_memory_session_repository.py:12 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class InMemorySessionRepository(SessionRepository):` #### src/infrastructure/database/in_memory_session_repository.py:13 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self):` #### src/infrastructure/database/in_memory_session_repository.py:16 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def save(self, session: Session) -> Session:` #### src/infrastructure/database/in_memory_session_repository.py:20 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def find_by_id(self, session_id: UUID) -> Optional[Session]:` #### src/infrastructure/database/in_memory_session_repository.py:23 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def find_active(self) -> List[Session]:` #### src/infrastructure/database/in_memory_session_repository.py:26 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def delete(self, session_id: UUID) -> bool:` #### src/infrastructure/database/in_memory_session_repository.py:32 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def get_statistics(self) -> dict:` #### src/infrastructure/database/in_memory_user_repository.py:12 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class InMemoryUserRepository(UserRepository):` #### src/infrastructure/database/in_memory_user_repository.py:13 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self):` #### src/infrastructure/database/in_memory_user_repository.py:17 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def save(self, user: User) -> User:` #### src/infrastructure/database/in_memory_user_repository.py:23 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def find_by_id(self, user_id: UUID) -> Optional[User]:` #### src/infrastructure/database/in_memory_user_repository.py:26 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def find_by_email(self, email: str) -> Optional[User]:` #### src/infrastructure/database/in_memory_user_repository.py:29 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def find_all(self) -> List[User]:` #### src/infrastructure/database/in_memory_user_repository.py:32 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def delete(self, user_id: UUID) -> bool:` #### src/infrastructure/database/in_memory_user_repository.py:41 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def get_statistics(self) -> dict:` #### src/infrastructure/database/supabase_repositories.py:19 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class SupabaseClient:` #### src/infrastructure/database/supabase_repositories.py:30 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class SupabaseMessageRepository(MessageRepository):` #### src/infrastructure/database/supabase_repositories.py:144 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class SupabaseToolRepository(ToolRepository):` #### src/infrastructure/database/supabase_repositories.py:307 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class SupabaseSessionRepository(SessionRepository):` #### src/infrastructure/database/supabase_repositories.py:407 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class SupabaseAgentRepository(AgentRepository):` #### src/infrastructure/database/supabase_repositories.py:24 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_client(cls, url: str, key: str) -> Client:` #### src/infrastructure/database/supabase_repositories.py:32 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self, client: Client):` #### src/infrastructure/database/supabase_repositories.py:36 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def save(self, message: Message) -> Message:` #### src/infrastructure/database/supabase_repositories.py:64 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def find_by_id(self, message_id: UUID) -> Optional[Message]:` #### src/infrastructure/database/supabase_repositories.py:75 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def find_by_session(self, session_id: UUID) -> List[Message]:` #### src/infrastructure/database/supabase_repositories.py:84 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def find_by_type(self, message_type: MessageType) -> List[Message]:` #### src/infrastructure/database/supabase_repositories.py:93 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def delete(self, message_id: UUID) -> bool:` #### src/infrastructure/database/supabase_repositories.py:102 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def get_statistics(self) -> dict:` #### src/infrastructure/database/supabase_repositories.py:124 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _to_entity(self, data: Dict[str, Any]) -> Message:` #### src/infrastructure/database/supabase_repositories.py:146 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self, client: Client):` #### src/infrastructure/database/supabase_repositories.py:151 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def save(self, tool: Tool) -> Tool:` #### src/infrastructure/database/supabase_repositories.py:181 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def find_by_id(self, tool_id: UUID) -> Optional[Tool]:` #### src/infrastructure/database/supabase_repositories.py:194 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def find_by_name(self, name: str) -> Optional[Tool]:` #### src/infrastructure/database/supabase_repositories.py:207 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def find_by_type(self, tool_type: ToolType) -> List[Tool]:` #### src/infrastructure/database/supabase_repositories.py:219 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def delete(self, tool_id: UUID) -> bool:` #### src/infrastructure/database/supabase_repositories.py:228 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def get_statistics(self) -> dict:` #### src/infrastructure/database/supabase_repositories.py:255 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def _update_metrics(self, tool: Tool) -> None:` #### src/infrastructure/database/supabase_repositories.py:270 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def _load_metrics(self, tool: Tool) -> None:` #### src/infrastructure/database/supabase_repositories.py:285 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _to_entity(self, data: Dict[str, Any]) -> Tool:` #### src/infrastructure/database/supabase_repositories.py:309 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self, client: Client):` #### src/infrastructure/database/supabase_repositories.py:313 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def save(self, session: Session) -> Session:` #### src/infrastructure/database/supabase_repositories.py:339 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def find_by_id(self, session_id: UUID) -> Optional[Session]:` #### src/infrastructure/database/supabase_repositories.py:350 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def find_active(self) -> List[Session]:` #### src/infrastructure/database/supabase_repositories.py:359 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def delete(self, session_id: UUID) -> bool:` #### src/infrastructure/database/supabase_repositories.py:368 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def get_statistics(self) -> dict:` #### src/infrastructure/database/supabase_repositories.py:389 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _to_entity(self, data: Dict[str, Any]) -> Session:` #### src/infrastructure/database/supabase_repositories.py:409 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self, client: Client):` #### src/infrastructure/database/supabase_repositories.py:413 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def save(self, agent: Agent) -> Agent:` #### src/infrastructure/database/supabase_repositories.py:438 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def find_by_id(self, agent_id: UUID) -> Optional[Agent]:` #### src/infrastructure/database/supabase_repositories.py:449 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def find_by_type(self, agent_type: AgentType) -> List[Agent]:` #### src/infrastructure/database/supabase_repositories.py:458 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def find_available(self) -> List[Agent]:` #### src/infrastructure/database/supabase_repositories.py:467 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def delete(self, agent_id: UUID) -> bool:` #### src/infrastructure/database/supabase_repositories.py:476 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def update_performance_metrics(self, agent_id: UUID, metrics: dict) -> bool:` #### src/infrastructure/database/supabase_repositories.py:485 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def get_statistics(self) -> dict:` #### src/infrastructure/database/supabase_repositories.py:506 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _to_entity(self, data: Dict[str, Any]) -> Agent:` #### src/infrastructure/di/container.py:21 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class Container:` #### src/infrastructure/di/container.py:159 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `Decorator to make a class a singleton.` #### src/infrastructure/di/container.py:162 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `cls: The class to make a singleton` #### src/infrastructure/di/container.py:29 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self):` #### src/infrastructure/di/container.py:35 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def register(self, service_name: str, factory: Callable, singleton: bool = True) -> None:` #### src/infrastructure/di/container.py:48 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def register_instance(self, service_name: str, instance: Any) -> None:` #### src/infrastructure/di/container.py:58 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def resolve(self, service_name: str) -> Any:` #### src/infrastructure/di/container.py:94 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def resolve_all(self, service_names: list[str]) -> Dict[str, Any]:` #### src/infrastructure/di/container.py:106 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def has_service(self, service_name: str) -> bool:` #### src/infrastructure/di/container.py:110 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def clear(self) -> None:` #### src/infrastructure/di/container.py:116 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_registered_services(self) -> list[str]:` #### src/infrastructure/di/container.py:125 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_container() -> Container:` #### src/infrastructure/di/container.py:133 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def inject(*service_names: str):` #### src/infrastructure/di/container.py:143 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def decorator(func: Callable) -> Callable:` #### src/infrastructure/di/container.py:145 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def wrapper(*args, **kwargs):` #### src/infrastructure/di/container.py:157 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def singleton(cls: Type) -> Type:` #### src/infrastructure/di/container.py:169 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_instance(*args, **kwargs):` #### src/infrastructure/di/container.py:177 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def setup_container():` #### src/infrastructure/events/event_bus.py:38 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class EventBus:` #### src/infrastructure/events/event_bus.py:8 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def my_handler(event: Event):` #### src/infrastructure/events/event_bus.py:11 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def main():` #### src/infrastructure/events/event_bus.py:51 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self, max_queue_size: int = 10000):` #### src/infrastructure/events/event_bus.py:66 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def __aenter__(self) -> "EventBus":` #### src/infrastructure/events/event_bus.py:70 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def __aexit__(self, exc_type, exc, tb) -> None:` #### src/infrastructure/events/event_bus.py:73 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def start(self) -> None:` #### src/infrastructure/events/event_bus.py:85 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def shutdown(self) -> None:` #### src/infrastructure/events/event_bus.py:98 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def stop(self) -> None:` #### src/infrastructure/events/event_bus.py:102 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def publish(self, event: Event) -> None:` #### src/infrastructure/events/event_bus.py:121 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def subscribe(` #### src/infrastructure/events/event_bus.py:159 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def unsubscribe(self, subscription_id: UUID) -> bool:` #### src/infrastructure/events/event_bus.py:168 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def _process_events(self) -> None:` #### src/infrastructure/events/event_bus.py:188 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def _handle_event(self, event: Event) -> None:` #### src/infrastructure/events/event_bus.py:200 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def _safe_handle(self, subscription: EventSubscription, event: Event) -> None:` #### src/infrastructure/events/event_bus.py:208 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _add_to_history(self, event: Event) -> None:` #### src/infrastructure/events/event_bus.py:214 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_stats(self) -> Dict[str, Any]:` #### src/infrastructure/events/event_bus.py:230 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_recent_events(` #### src/infrastructure/events/event_bus.py:241 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def query_event_history(self, filter_fn: Optional[Callable[[Event], bool]] = None) -> List[Event]:` #### src/infrastructure/events/event_bus.py:247 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def list_subscriptions(self) -> List[Dict[str, Any]]:` #### src/infrastructure/events/event_bus.py:265 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def serialize_event_history(self, limit: int = 100) -> str:` #### src/infrastructure/logging/logging_service.py:9 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class LoggingService:` #### src/infrastructure/logging/logging_service.py:10 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self, config: LoggingConfig):` #### src/infrastructure/logging/logging_service.py:15 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _configure_logger(self):` #### src/infrastructure/logging/logging_service.py:30 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def initialize(self):` #### src/infrastructure/logging/logging_service.py:34 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def info(self, msg: str, extra: Optional[Dict[str, Any]] = None):` #### src/infrastructure/logging/logging_service.py:37 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def warning(self, msg: str, extra: Optional[Dict[str, Any]] = None):` #### src/infrastructure/logging/logging_service.py:40 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def error(self, msg: str, extra: Optional[Dict[str, Any]] = None):` #### src/infrastructure/logging/logging_service.py:43 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def log_interaction(self, **kwargs):` #### src/infrastructure/logging/logging_service.py:46 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def log_error(self, error_type: str, message: str, context: Optional[dict] = None):` #### src/application/agents/agent_executor.py:9 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class AgentExecutor:` #### src/application/agents/agent_executor.py:10 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def execute(self, agent: Agent, message: Message) -> Dict[str, Any]:` #### src/infrastructure/config/configuration_service.py:29 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class ConfigurationService:` #### src/infrastructure/config/configuration_service.py:38 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self, config_dir: Optional[str] = None):` #### src/infrastructure/config/configuration_service.py:44 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def load_configuration(self) -> SystemConfig:` #### src/infrastructure/config/configuration_service.py:62 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _get_defaults(self) -> Dict[str, Any]:` #### src/infrastructure/config/configuration_service.py:136 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def _load_from_file(self) -> Dict[str, Any]:` #### src/infrastructure/config/configuration_service.py:152 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def _read_config_file(self, file_path: Path) -> Dict[str, Any]:` #### src/infrastructure/config/configuration_service.py:166 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _load_from_env(self) -> Dict[str, Any]:` #### src/infrastructure/config/configuration_service.py:218 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _load_nested_env_vars(self, config: Dict[str, Any]) -> Dict[str, Any]:` #### src/infrastructure/config/configuration_service.py:231 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def _load_from_secrets(self) -> Dict[str, Any]:` #### src/infrastructure/config/configuration_service.py:244 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _deep_merge(self, *dicts: Dict[str, Any]) -> Dict[str, Any]:` #### src/infrastructure/config/configuration_service.py:254 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _create_config_objects(self, config: Dict[str, Any]) -> SystemConfig:` #### src/infrastructure/config/configuration_service.py:330 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _validate_config(self, config: SystemConfig) -> None:` #### src/infrastructure/config/configuration_service.py:351 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def _notify_watchers(self, config: SystemConfig) -> None:` #### src/infrastructure/config/configuration_service.py:358 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def add_watcher(self, watcher: Callable[[SystemConfig], Awaitable[None]]) -> None:` #### src/infrastructure/config/configuration_service.py:361 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_config(self) -> SystemConfig:` #### src/infrastructure/config/configuration_service.py:366 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def reload(self) -> SystemConfig:` #### src/infrastructure/config/configuration_service.py:369 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_api_key(self, service: str) -> Optional[str]:` #### src/application/tools/tool_executor.py:8 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class ToolExecutor:` #### src/application/tools/tool_executor.py:9 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def execute(self, tool: Tool, parameters: Dict[str, Any]) -> Dict[str, Any]:` #### src/gaia/metrics/gaia_metrics.py:6 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class GAIAMetrics:` #### src/gaia/metrics/gaia_metrics.py:9 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self):` #### src/gaia/metrics/gaia_metrics.py:16 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def log_result(self, question_type: str, correct: bool, time_taken: float,` #### src/gaia/metrics/gaia_metrics.py:43 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_accuracy_by_type(self) -> Dict[str, float]:` #### src/gaia/metrics/gaia_metrics.py:50 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_tool_effectiveness(self) -> Dict[str, float]:` #### src/gaia/metrics/gaia_metrics.py:57 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_avg_time_by_type(self) -> Dict[str, float]:` #### src/gaia/metrics/gaia_metrics.py:64 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_confidence_calibration(self) -> Dict[str, Dict[str, float]]:` #### src/gaia/metrics/gaia_metrics.py:78 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_error_analysis(self) -> Dict[str, int]:` #### src/gaia/metrics/gaia_metrics.py:82 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_overall_stats(self) -> Dict[str, Any]:` #### src/gaia/metrics/gaia_metrics.py:100 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def export_metrics(self, filename: str = "gaia_metrics.json"):` #### src/gaia/metrics/gaia_metrics.py:105 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def print_summary(self):` #### src/application/services/query_classifier.py:18 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class QueryCategory(str, Enum):` #### src/application/services/query_classifier.py:26 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class QueryClassification(BaseModel):` #### src/application/services/query_classifier.py:37 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class OperationalParameters:` #### src/application/services/query_classifier.py:47 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class QueryClassifier:` #### src/application/services/query_classifier.py:89 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self, anthropic_api_key: Optional[str] = None):` #### src/application/services/query_classifier.py:98 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def classify_query(self, query: str) -> Tuple[QueryClassification, OperationalParameters]:` #### src/application/services/query_classifier.py:125 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _llm_classification(self, query: str) -> QueryClassification:` #### src/application/services/query_classifier.py:175 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _heuristic_classification(self, query: str) -> QueryClassification:` #### src/application/services/query_classifier.py:229 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_security_requirements(self, classification: QueryClassification) -> Dict[str, any]:` #### src/gaia/tools/gaia_specialized.py:6 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def gaia_chess_analyzer(query: str) -> str:` #### src/gaia/tools/gaia_specialized.py:47 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def gaia_music_search(query: str) -> str:` #### src/gaia/tools/gaia_specialized.py:85 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def gaia_country_code_lookup(query: str) -> str:` #### src/gaia/tools/gaia_specialized.py:121 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def gaia_mathematical_calculator(query: str) -> str:` #### src/gaia/caching/gaia_cache.py:8 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class GAIAResponseCache:` #### src/gaia/caching/gaia_cache.py:48 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class GAIAQuestionCache:` #### src/gaia/caching/gaia_cache.py:67 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class GAIAErrorCache:` #### src/gaia/caching/gaia_cache.py:11 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self, ttl_seconds: int = 3600):` #### src/gaia/caching/gaia_cache.py:16 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_cache_key(self, question: str, question_type: str) -> str:` #### src/gaia/caching/gaia_cache.py:24 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get(self, key: str) -> Optional[Any]:` #### src/gaia/caching/gaia_cache.py:35 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def set(self, key: str, value: Any) -> None:` #### src/gaia/caching/gaia_cache.py:39 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_stats(self) -> Dict[str, Any]:` #### src/gaia/caching/gaia_cache.py:51 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self):` #### src/gaia/caching/gaia_cache.py:56 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_question_type(self, question: str) -> Dict[str, str]:` #### src/gaia/caching/gaia_cache.py:62 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_plan(self, question: str) -> Dict[str, Any]:` #### src/gaia/caching/gaia_cache.py:70 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self):` #### src/gaia/caching/gaia_cache.py:74 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_recovery_strategy(self, error_type: str) -> Optional[str]:` #### src/gaia/caching/gaia_cache.py:78 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def record_recovery_attempt(self, error_type: str, success: bool):` #### src/gaia/caching/gaia_cache.py:84 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_success_rate(self, error_type: str) -> float:` #### src/gaia/testing/gaia_test_patterns.py:6 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class GAIATestPattern:` #### src/gaia/testing/gaia_test_patterns.py:14 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class GAIATestPatterns:` #### src/gaia/testing/gaia_test_patterns.py:116 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_pattern_by_question(cls, question: str) -> GAIATestPattern:` #### src/gaia/testing/gaia_test_patterns.py:138 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def validate_answer(cls, question: str, answer: Any) -> Dict[str, Any]:` #### src/gaia/testing/gaia_test_patterns.py:162 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def generate_test_cases(cls) -> List[Dict[str, Any]]:` #### src/shared/exceptions/domain.py:8 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class DomainException(Exception):` #### src/shared/exceptions/domain.py:23 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class ValidationException(DomainException):` #### src/shared/exceptions/domain.py:36 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class BusinessRuleException(DomainException):` #### src/shared/exceptions/domain.py:45 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class AgentStateException(DomainException):` #### src/shared/exceptions/domain.py:58 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class ToolExecutionException(DomainException):` #### src/shared/exceptions/domain.py:11 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self, message: str, error_code: Optional[str] = None, details: Optional[Dict[str, Any]]...` #### src/shared/exceptions/domain.py:17 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __str__(self) -> str:` #### src/shared/exceptions/domain.py:26 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self, message: str, field: Optional[str] = None, value: Optional[Any] = None):` #### src/shared/exceptions/domain.py:39 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self, message: str, rule_name: Optional[str] = None):` #### src/shared/exceptions/domain.py:48 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self, message: str, current_state: str, attempted_action: str):` #### src/shared/exceptions/domain.py:61 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self, message: str, tool_name: str, tool_input: Optional[Dict[str, Any]] = None):` #### src/shared/types/config.py:10 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class Environment(str, Enum):` #### src/shared/types/config.py:18 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class LogLevel(str, Enum):` #### src/shared/types/config.py:28 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class ModelConfig:` #### src/shared/types/config.py:61 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class AgentConfig:` #### src/shared/types/config.py:92 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class DatabaseConfig:` #### src/shared/types/config.py:104 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class LoggingConfig:` #### src/shared/types/config.py:127 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class SystemConfig:` #### src/shared/types/config.py:49 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_model_for_task(self, task_type: str) -> str:` #### src/shared/types/config.py:154 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def is_production(self) -> bool:` #### src/shared/types/config.py:158 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def is_development(self) -> bool:` #### src/core/use_cases/process_message.py:21 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class ProcessMessageUseCase:` #### src/core/use_cases/process_message.py:29 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(` #### src/core/use_cases/process_message.py:44 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def execute(` #### src/core/use_cases/process_message.py:141 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _validate_input(self, user_message: str) -> None:` #### src/core/use_cases/process_message.py:155 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _contains_malicious_content(self, message: str) -> bool:` #### src/core/use_cases/process_message.py:174 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def _select_agent(self, message: str, context: Optional[Dict[str, Any]]) -> Agent:` #### src/core/use_cases/process_message.py:190 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def _execute_agent(self, agent: Agent, message: Message) -> Dict[str, Any]:` #### src/core/use_cases/process_message.py:212 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def _update_agent_metrics(self, agent: Agent, result: Dict[str, Any]) -> None:` #### src/core/use_cases/process_message.py:224 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def _log_interaction(` #### src/core/services/meta_cognition.py:14 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class MetaCognitiveScore(BaseModel):` #### src/core/services/meta_cognition.py:23 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class KnowledgeDomain:` #### src/core/services/meta_cognition.py:31 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class MetaCognition:` #### src/core/services/meta_cognition.py:246 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class MetaCognitiveRouter:` #### src/core/services/meta_cognition.py:73 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self):` #### src/core/services/meta_cognition.py:77 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def assess_capability(self, query: str, available_tools: List[str]) -> MetaCognitiveScore:` #### src/core/services/meta_cognition.py:128 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def should_use_tools(self, score: MetaCognitiveScore, threshold: float = 0.7) -> bool:` #### src/core/services/meta_cognition.py:141 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _compile_domain_patterns(self) -> Dict[str, List[str]]:` #### src/core/services/meta_cognition.py:155 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _identify_domains(self, query: str) -> List[KnowledgeDomain]:` #### src/core/services/meta_cognition.py:170 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _calculate_base_confidence(self, domains: List[KnowledgeDomain]) -> float:` #### src/core/services/meta_cognition.py:179 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _identify_tool_needs(self, query: str) -> List[str]:` #### src/core/services/meta_cognition.py:189 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _is_temporally_sensitive(self, query: str) -> bool:` #### src/core/services/meta_cognition.py:198 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _generate_reasoning(` #### src/core/services/meta_cognition.py:225 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_tool_confidence_boost(self, tool_name: str) -> float:` #### src/core/services/meta_cognition.py:249 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self, meta_cognition: MetaCognition, confidence_threshold: float = 0.7):` #### src/core/services/meta_cognition.py:253 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def should_enter_tool_loop(` #### src/core/services/working_memory.py:19 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class WorkingMemoryState:` #### src/core/services/working_memory.py:64 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class WorkingMemoryManager:` #### src/core/services/working_memory.py:32 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def to_json(self) -> str:` #### src/core/services/working_memory.py:37 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def from_json(cls, json_str: str) -> 'WorkingMemoryState':` #### src/core/services/working_memory.py:42 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_context_string(self) -> str:` #### src/core/services/working_memory.py:67 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self, api_key: Optional[str] = None):` #### src/core/services/working_memory.py:78 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def update_memory(` #### src/core/services/working_memory.py:135 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _create_update_prompt(` #### src/core/services/working_memory.py:183 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _heuristic_update(` #### src/core/services/working_memory.py:237 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def compress_memory(self, max_tokens: int = 500) -> WorkingMemoryState:` #### src/core/services/working_memory.py:282 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _simple_compress(self, max_tokens: int) -> WorkingMemoryState:` #### src/core/services/working_memory.py:302 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_memory_for_prompt(self) -> str:` #### src/core/services/working_memory.py:306 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def clear_memory(self):` #### src/core/services/working_memory.py:311 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_memory_stats(self) -> Dict[str, Any]:` #### src/core/services/data_quality.py:14 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class DataQualityLevel(Enum):` #### src/core/services/data_quality.py:22 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class ValidationResult:` #### src/core/services/data_quality.py:30 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class DataQualityMetrics:` #### src/core/services/data_quality.py:38 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class DataQualityValidator:` #### src/core/services/data_quality.py:41 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __init__(self, quality_level: DataQualityLevel = DataQualityLevel.STANDARD):` #### src/core/services/data_quality.py:46 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def validate_input(self, input_data: Union[str, Dict[str, Any]]) -> ValidationResult:` #### src/core/services/data_quality.py:60 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _validate_text_input(self, text: str) -> ValidationResult:` #### src/core/services/data_quality.py:132 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _validate_dict_input(self, data: Dict[str, Any]) -> ValidationResult:` #### src/core/services/data_quality.py:188 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _check_balanced_brackets(self, text: str) -> bool:` #### src/core/services/data_quality.py:206 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def assess_quality(self, data: Union[str, Dict[str, Any]]) -> DataQualityMetrics:` #### src/core/services/data_quality.py:233 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_quality_trends(self) -> Dict[str, List[float]]:` #### src/core/services/data_quality.py:246 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_validation_history(self) -> List[ValidationResult]:` #### src/core/entities/tool.py:16 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class ToolType(str, Enum):` #### src/core/entities/tool.py:29 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class ToolStatus(str, Enum):` #### src/core/entities/tool.py:39 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class ToolResult:` #### src/core/entities/tool.py:95 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class Tool:` #### src/core/entities/tool.py:313 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class ToolRegistry:` #### src/core/entities/tool.py:65 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __post_init__(self):` #### src/core/entities/tool.py:71 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def duration(self) -> float:` #### src/core/entities/tool.py:77 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def to_dict(self) -> Dict[str, Any]:` #### src/core/entities/tool.py:136 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __post_init__(self):` #### src/core/entities/tool.py:147 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def execute(self, parameters: Dict[str, Any]) -> ToolResult:` #### src/core/entities/tool.py:217 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _validate_parameters(self, parameters: Dict[str, Any]) -> None:` #### src/core/entities/tool.py:228 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def _update_metrics(self, result: ToolResult) -> None:` #### src/core/entities/tool.py:248 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def enable(self) -> None:` #### src/core/entities/tool.py:254 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def disable(self) -> None:` #### src/core/entities/tool.py:260 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def add_tag(self, tag: str) -> None:` #### src/core/entities/tool.py:266 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def remove_tag(self, tag: str) -> None:` #### src/core/entities/tool.py:273 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def success_rate(self) -> float:` #### src/core/entities/tool.py:280 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def is_available(self) -> bool:` #### src/core/entities/tool.py:284 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def to_dict(self) -> Dict[str, Any]:` #### src/core/entities/tool.py:329 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def register_tool(self, tool: Tool) -> None:` #### src/core/entities/tool.py:344 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def unregister_tool(self, tool_id: UUID) -> None:` #### src/core/entities/tool.py:355 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_tool(self, tool_id: UUID) -> Optional[Tool]:` #### src/core/entities/tool.py:359 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_tool_by_name(self, name: str) -> Optional[Tool]:` #### src/core/entities/tool.py:363 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_tools_by_type(self, tool_type: ToolType) -> List[Tool]:` #### src/core/entities/tool.py:367 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_available_tools(self) -> List[Tool]:` #### src/core/entities/tool.py:371 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_enabled_tools(self) -> List[Tool]:` #### src/core/entities/tool.py:375 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def search_tools(self, query: str) -> List[Tool]:` #### src/core/entities/tool.py:388 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_statistics(self) -> Dict[str, Any]:` #### src/core/entities/tool.py:408 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def to_dict(self) -> Dict[str, Any]:` #### src/core/entities/message.py:14 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class MessageType(str, Enum):` #### src/core/entities/message.py:23 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class MessageStatus(str, Enum):` #### src/core/entities/message.py:33 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class Message:` #### src/core/entities/message.py:188 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class Conversation:` #### src/core/entities/message.py:67 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __post_init__(self):` #### src/core/entities/message.py:75 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def start_processing(self) -> None:` #### src/core/entities/message.py:83 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def complete_processing(self, processing_time: float) -> None:` #### src/core/entities/message.py:92 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def fail_processing(self, error_message: str) -> None:` #### src/core/entities/message.py:101 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def cancel_processing(self) -> None:` #### src/core/entities/message.py:109 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def add_context(self, key: str, value: Any) -> None:` #### src/core/entities/message.py:114 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def add_metadata(self, key: str, value: Any) -> None:` #### src/core/entities/message.py:120 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def is_user_message(self) -> bool:` #### src/core/entities/message.py:125 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def is_agent_message(self) -> bool:` #### src/core/entities/message.py:130 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def is_system_message(self) -> bool:` #### src/core/entities/message.py:135 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def is_tool_message(self) -> bool:` #### src/core/entities/message.py:140 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def is_error_message(self) -> bool:` #### src/core/entities/message.py:145 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def is_processed(self) -> bool:` #### src/core/entities/message.py:150 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def is_pending(self) -> bool:` #### src/core/entities/message.py:155 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def is_processing(self) -> bool:` #### src/core/entities/message.py:159 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def to_dict(self) -> Dict[str, Any]:` #### src/core/entities/message.py:216 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def add_message(self, message: Message) -> None:` #### src/core/entities/message.py:235 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_messages_by_type(self, message_type: MessageType) -> List[Message]:` #### src/core/entities/message.py:239 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_user_messages(self) -> List[Message]:` #### src/core/entities/message.py:243 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_agent_messages(self) -> List[Message]:` #### src/core/entities/message.py:247 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_last_message(self) -> Optional[Message]:` #### src/core/entities/message.py:251 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def get_message_count(self) -> int:` #### src/core/entities/message.py:255 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def archive(self) -> None:` #### src/core/entities/message.py:261 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def reactivate(self) -> None:` #### src/core/entities/message.py:267 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def add_tag(self, tag: str) -> None:` #### src/core/entities/message.py:273 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def remove_tag(self, tag: str) -> None:` #### src/core/entities/message.py:279 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def to_dict(self) -> Dict[str, Any]:` #### src/core/interfaces/session_repository.py:11 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class SessionRepository(ABC):` #### src/core/interfaces/session_repository.py:16 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def save(self, session: Session) -> Session:` #### src/core/interfaces/session_repository.py:20 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def find_by_id(self, session_id: UUID) -> Optional[Session]:` #### src/core/interfaces/session_repository.py:24 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def find_active(self) -> List[Session]:` #### src/core/interfaces/session_repository.py:28 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def delete(self, session_id: UUID) -> bool:` #### src/core/interfaces/session_repository.py:32 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def get_statistics(self) -> dict:` #### src/core/interfaces/user_repository.py:11 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class UserRepository(ABC):` #### src/core/interfaces/user_repository.py:16 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def save(self, user: User) -> User:` #### src/core/interfaces/user_repository.py:20 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def find_by_id(self, user_id: UUID) -> Optional[User]:` #### src/core/interfaces/user_repository.py:24 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def find_by_email(self, email: str) -> Optional[User]:` #### src/core/interfaces/user_repository.py:28 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def find_all(self) -> List[User]:` #### src/core/interfaces/user_repository.py:32 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def delete(self, user_id: UUID) -> bool:` #### src/core/interfaces/user_repository.py:36 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def get_statistics(self) -> dict:` #### src/core/entities/agent.py:15 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class AgentType(str, Enum):` #### src/core/entities/agent.py:23 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class AgentState(str, Enum):` #### src/core/entities/agent.py:34 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class Agent:` #### src/core/entities/agent.py:65 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def __post_init__(self):` #### src/core/entities/agent.py:73 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def start_task(self, task_description: str) -> None:` #### src/core/entities/agent.py:82 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def complete_task(self, success: bool = True) -> None:` #### src/core/entities/agent.py:97 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def enter_error_state(self, error_message: str) -> None:` #### src/core/entities/agent.py:104 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def reset_to_idle(self) -> None:` #### src/core/entities/agent.py:111 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def success_rate(self) -> float:` #### src/core/entities/agent.py:118 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def is_available(self) -> bool:` #### src/core/entities/agent.py:122 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def update_response_time(self, response_time: float) -> None:` #### src/core/entities/agent.py:134 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `def to_dict(self) -> Dict[str, Any]:` #### src/core/interfaces/tool_repository.py:11 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class ToolRepository(ABC):` #### src/core/interfaces/tool_repository.py:16 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def save(self, tool: Tool) -> Tool:` #### src/core/interfaces/tool_repository.py:20 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def find_by_id(self, tool_id: UUID) -> Optional[Tool]:` #### src/core/interfaces/tool_repository.py:24 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def find_by_name(self, name: str) -> Optional[Tool]:` #### src/core/interfaces/tool_repository.py:28 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def find_by_type(self, tool_type: ToolType) -> List[Tool]:` #### src/core/interfaces/tool_repository.py:32 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def delete(self, tool_id: UUID) -> bool:` #### src/core/interfaces/tool_repository.py:36 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def get_statistics(self) -> dict:` #### src/core/interfaces/message_repository.py:11 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class MessageRepository(ABC):` #### src/core/interfaces/message_repository.py:16 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def save(self, message: Message) -> Message:` #### src/core/interfaces/message_repository.py:20 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def find_by_id(self, message_id: UUID) -> Optional[Message]:` #### src/core/interfaces/message_repository.py:24 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def find_by_session(self, session_id: UUID) -> List[Message]:` #### src/core/interfaces/message_repository.py:28 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def find_by_type(self, message_type: MessageType) -> List[Message]:` #### src/core/interfaces/message_repository.py:32 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def delete(self, message_id: UUID) -> bool:` #### src/core/interfaces/message_repository.py:36 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def get_statistics(self) -> dict:` #### src/core/interfaces/agent_repository.py:12 - **Issue:** Classes without corresponding tests - **Fix:** Add comprehensive test coverage - **Code:** `class AgentRepository(ABC):` #### src/core/interfaces/agent_repository.py:22 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def save(self, agent: Agent) -> Agent:` #### src/core/interfaces/agent_repository.py:38 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def find_by_id(self, agent_id: UUID) -> Optional[Agent]:` #### src/core/interfaces/agent_repository.py:54 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def find_by_type(self, agent_type: AgentType) -> List[Agent]:` #### src/core/interfaces/agent_repository.py:70 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def find_available(self) -> List[Agent]:` #### src/core/interfaces/agent_repository.py:83 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def update_state(self, agent_id: UUID, state: AgentState) -> bool:` #### src/core/interfaces/agent_repository.py:100 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def update_performance_metrics(` #### src/core/interfaces/agent_repository.py:121 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def delete(self, agent_id: UUID) -> bool:` #### src/core/interfaces/agent_repository.py:137 - **Issue:** Functions without test coverage - **Fix:** Add comprehensive test coverage - **Code:** `async def get_statistics(self) -> Dict[str, Any]:` ### 💡 Recommendations - Add integration tests for all major workflows - Implement contract testing for APIs - Set up load testing with Locust - Add mutation testing for critical components ## 📌 AGENT_SPECIFIC Upgrade Points ### 🔴 HIGH Priority (1 items) #### src/core/services/meta_cognition.py:1 - **Issue:** FSM without error handling - **Fix:** Add error states and timeout handling to FSM - **Code:** `ERROR_STATE = 'error' TIMEOUT_STATE = 'timeout'` ### 🔴 MEDIUM Priority (13 items) #### src/integration_hub.py:1 - **Issue:** Sequential async tool calls - **Fix:** Use asyncio.gather() for parallel tool execution - **Code:** `results = await asyncio.gather(*[tool() for tool in tools])` #### src/tools_production.py:1 - **Issue:** Tools not registered with orchestrator - **Fix:** Register tools with the integration hub orchestrator - **Code:** `orchestrator.register_tool(tool_name, tool_function)` #### src/langchain_enhanced.py:1 - **Issue:** Sequential async tool calls - **Fix:** Use asyncio.gather() for parallel tool execution - **Code:** `results = await asyncio.gather(*[tool() for tool in tools])` #### src/tools_enhanced.py:1 - **Issue:** Tools not registered with orchestrator - **Fix:** Register tools with the integration hub orchestrator - **Code:** `orchestrator.register_tool(tool_name, tool_function)` #### src/tools/file_reader.py:1 - **Issue:** Tools not registered with orchestrator - **Fix:** Register tools with the integration hub orchestrator - **Code:** `orchestrator.register_tool(tool_name, tool_function)` #### src/tools/semantic_search_tool.py:1 - **Issue:** Tools not registered with orchestrator - **Fix:** Register tools with the integration hub orchestrator - **Code:** `orchestrator.register_tool(tool_name, tool_function)` #### src/tools/tavily_search.py:1 - **Issue:** Tools not registered with orchestrator - **Fix:** Register tools with the integration hub orchestrator - **Code:** `orchestrator.register_tool(tool_name, tool_function)` #### src/tools/python_interpreter.py:1 - **Issue:** Tools not registered with orchestrator - **Fix:** Register tools with the integration hub orchestrator - **Code:** `orchestrator.register_tool(tool_name, tool_function)` #### src/tools/base_tool.py:1 - **Issue:** Tools not registered with orchestrator - **Fix:** Register tools with the integration hub orchestrator - **Code:** `orchestrator.register_tool(tool_name, tool_function)` #### src/tools/weather.py:1 - **Issue:** Tools not registered with orchestrator - **Fix:** Register tools with the integration hub orchestrator - **Code:** `orchestrator.register_tool(tool_name, tool_function)` #### src/tools/advanced_file_reader.py:1 - **Issue:** Tools not registered with orchestrator - **Fix:** Register tools with the integration hub orchestrator - **Code:** `orchestrator.register_tool(tool_name, tool_function)` #### src/tools/audio_transcriber.py:1 - **Issue:** Tools not registered with orchestrator - **Fix:** Register tools with the integration hub orchestrator - **Code:** `orchestrator.register_tool(tool_name, tool_function)` #### src/gaia/tools/gaia_specialized.py:1 - **Issue:** Tools not registered with orchestrator - **Fix:** Register tools with the integration hub orchestrator - **Code:** `orchestrator.register_tool(tool_name, tool_function)` ### 💡 Recommendations - Register all tools with the integration hub orchestrator - Implement proper error handling in FSM workflows - Use parallel execution for tool calls - Add comprehensive agent testing with mock tools