ApiManager D

Total Complexity 266
Dependencies 2
Dependents 4
Total lines 2,153
Lines of code 1,425
Logical lines of code 678
Comment lines 424
Methods 37
Properties 14

Methods 37

Method Rating Maintainability Complexity Lines of code
update_settings()
C
36 25 76
get_openai_response()
B
32 16 114
extract_search_answer()
B
42 20 49
get_search_enhanced_response()
B
38 16 68
get_deepseek_response()
B
37 15 75
get_enhanced_product_context()
B
34 13 95
get_response()
A
39 10 81
get_product_specific_response()
A
44 12 46
analyze_query_type()
A
46 12 35
search_duckduckgo()
A
40 10 61
get_general_info_response()
A
44 9 48
get_common_response()
A
39 7 76
build_enhanced_system_message()
A
44 8 45
extract_product_information()
A
42 7 52
get_fallback_response()
A
48 8 34
needs_internet_search()
A
45 6 46
get_product_comparison_response()
S
49 7 29
test_openai_connection()
S
46 5 43
get_ai_response()
S
53 6 22
format_search_results_as_text()
S
56 6 17
get_conversation_history()
S
50 5 31
test_deepseek_connection()
S
50 5 30
test_query_classification()
S
55 5 18
get_popular_products()
S
49 4 31
get_default_helpful_response()
S
51 4 29
is_product_query()
S
50 4 25
get_ai_response_with_search_context()
S
54 4 21
format_search_results_for_ai()
S
58 4 15
get_internet_search_response()
S
56 3 20
get_product_general_response()
S
55 2 21
get_settings()
S
51 1 24
load_settings()
S
57 1 15
test_duckduckgo_search()
S
70 2 6
get_greeting_response()
S
63 1 12
__construct()
S
77 1 4
init()
S
83 1 3
test_api_connections()
S
67 1 8