SYMBOL INDEX (496 symbols across 92 files) FILE: alembic/env.py function run_migrations_offline (line 37) | def run_migrations_offline() -> None: function run_migrations_online (line 61) | def run_migrations_online() -> None: FILE: api/ai.py function create_model (line 14) | async def create_model( function get_model (line 24) | async def get_model( function update_model (line 37) | async def update_model( function predict (line 48) | async def predict( function explain (line 60) | async def explain( FILE: api/auth.py function register_user (line 39) | async def register_user(user_in: UserCreate, session: AsyncSession = Dep... function login_user (line 74) | async def login_user(user_in: UserLogin, session: AsyncSession = Depends... function get_me (line 112) | async def get_me(current_user=Depends(get_current_user)): FILE: api/games.py function get_game_definition_crud (line 11) | def get_game_definition_crud(): function get_game_instance_crud (line 14) | def get_game_instance_crud(): function create_game_definition (line 18) | async def create_game_definition(game_definition: GameDefinitionCreate, ... function list_game_definitions (line 22) | async def list_game_definitions(crud: GameDefinitionCRUD = Depends(get_g... function update_game_definition (line 26) | async def update_game_definition(game_id: int, game_definition: GameDefi... function delete_game_definition (line 33) | async def delete_game_definition(game_id: int, crud: GameDefinitionCRUD ... function create_game_instance (line 40) | async def create_game_instance(game_instance: GameInstanceCreate, crud: ... function list_game_instances (line 44) | async def list_game_instances(crud: GameInstanceCRUD = Depends(get_game_... function update_game_instance (line 48) | async def update_game_instance(instance_id: int, game_instance: GameInst... function delete_game_instance (line 55) | async def delete_game_instance(instance_id: int, crud: GameInstanceCRUD ... FILE: api/llm.py function call_llm_endpoint (line 20) | async def call_llm_endpoint( function get_logs (line 40) | async def get_logs( FILE: api/llm_service.py class LLMRequest (line 6) | class LLMRequest(BaseModel): class LLMResponse (line 10) | class LLMResponse(BaseModel): function generate_response (line 14) | async def generate_response(request: LLMRequest): FILE: api/llm_service_utils.py function preprocess_input (line 12) | def preprocess_input(input_data: Dict[str, Any]) -> Dict[str, Any]: function format_response (line 30) | def format_response(response_data: Any) -> Dict[str, Any]: function log_llm_request (line 47) | def log_llm_request(request_data: Dict[str, Any]) -> None: function handle_error (line 59) | def handle_error(error: Exception) -> Dict[str, Any]: FILE: api/routers/ai_engine.py function initialize_ai_engine (line 27) | async def initialize_ai_engine(): function predict_game_state (line 33) | async def predict_game_state( function provide_feedback (line 73) | async def provide_feedback( function get_cognitive_profile (line 105) | async def get_cognitive_profile( function get_collective_wisdom (line 144) | async def get_collective_wisdom( function get_explanations (line 183) | async def get_explanations( function get_uncertainty_factors (line 222) | async def get_uncertainty_factors( FILE: api/tasks.py function trigger_example_task (line 13) | async def trigger_example_task(task_in: TaskTrigger) -> TaskStatus: function get_task_status (line 22) | async def get_task_status(task_id: str) -> TaskStatus: FILE: api/test_llm.py function test_client (line 9) | def test_client(): function test_llm_endpoint_valid_request (line 12) | def test_llm_endpoint_valid_request(test_client): function test_llm_endpoint_invalid_request (line 22) | def test_llm_endpoint_invalid_request(test_client): function test_llm_endpoint_edge_case (line 29) | def test_llm_endpoint_edge_case(test_client): FILE: api/users.py function get_profile (line 39) | async def get_profile(current_user=Depends(get_current_user)): function update_profile_info (line 71) | async def update_profile_info( function get_cognitive_profile (line 108) | async def get_cognitive_profile( function update_cognitive_profile (line 148) | async def update_cognitive_profile( FILE: core/ai_engine/ai_processing.py function process_ai_task (line 21) | def process_ai_task(task_data: Dict[str, Any]) -> Dict[str, Any]: function perform_cognitive_modeling (line 43) | def perform_cognitive_modeling(data: Dict[str, Any]) -> Dict[str, Any]: FILE: core/ai_engine/ai_utilities.py function preprocess_input (line 19) | def preprocess_input(data: Any) -> Dict[str, Any]: function generate_response (line 35) | def generate_response(model_output: Any) -> str: function log_model_interaction (line 51) | def log_model_interaction(model_name: str, input_data: Any, output_data:... FILE: core/ai_engine/base.py class AIComponent (line 11) | class AIComponent(ABC): method initialize (line 15) | async def initialize(self) -> None: method process (line 20) | async def process(self, input_data: Dict[str, Any]) -> Dict[str, Any]: method update (line 25) | async def update(self, feedback: Dict[str, Any]) -> None: class AIEngine (line 30) | class AIEngine: method __init__ (line 33) | def __init__(self): method initialize_components (line 40) | async def initialize_components(self) -> None: method process_game_state (line 62) | async def process_game_state(self, game_state: Dict[str, Any]) -> Dict... method update_components (line 108) | async def update_components(self, feedback: Dict[str, Any]) -> None: FILE: core/ai_engine/cognitive.py class CognitiveProfile (line 12) | class CognitiveProfile(BaseModel): class CognitiveModelBuilder (line 23) | class CognitiveModelBuilder(AIComponent): method __init__ (line 26) | def __init__(self): method initialize (line 35) | async def initialize(self) -> None: method _initialize_feature_extractors (line 41) | def _initialize_feature_extractors(self) -> None: method _create_learning_extractor (line 50) | def _create_learning_extractor(self) -> Dict[str, Any]: method _create_decision_extractor (line 63) | def _create_decision_extractor(self) -> Dict[str, Any]: method _create_attention_extractor (line 75) | def _create_attention_extractor(self) -> Dict[str, Any]: method _create_skill_extractor (line 86) | def _create_skill_extractor(self) -> Dict[str, Any]: method process (line 100) | async def process(self, input_data: Dict[str, Any]) -> Dict[str, Any]: method _extract_learning_features (line 127) | def _extract_learning_features(self, game_state: Dict[str, Any]) -> Di... method _extract_decision_features (line 138) | def _extract_decision_features(self, game_state: Dict[str, Any]) -> Di... method _extract_attention_features (line 149) | def _extract_attention_features(self, game_state: Dict[str, Any]) -> D... method _extract_skill_features (line 160) | def _extract_skill_features(self, game_state: Dict[str, Any]) -> Dict[... method _calculate_learning_metric (line 171) | def _calculate_learning_metric(self, feature: str, game_state: Dict[st... method _calculate_decision_metric (line 182) | def _calculate_decision_metric(self, feature: str, game_state: Dict[st... method _calculate_attention_metric (line 192) | def _calculate_attention_metric(self, feature: str, game_state: Dict[s... method _calculate_skill_metric (line 201) | def _calculate_skill_metric(self, feature: str, game_state: Dict[str, ... method _calc_improvement_rate (line 214) | def _calc_improvement_rate(self, game_state: Dict[str, Any]) -> float: method _calc_error_correction (line 217) | def _calc_error_correction(self, game_state: Dict[str, Any]) -> float: method _calc_pattern_recognition (line 220) | def _calc_pattern_recognition(self, game_state: Dict[str, Any]) -> float: method _calc_knowledge_retention (line 223) | def _calc_knowledge_retention(self, game_state: Dict[str, Any]) -> float: method _calc_adaptation_speed (line 226) | def _calc_adaptation_speed(self, game_state: Dict[str, Any]) -> float: method _calc_reaction_time (line 230) | def _calc_reaction_time(self, game_state: Dict[str, Any]) -> float: method _calc_risk_taking (line 233) | def _calc_risk_taking(self, game_state: Dict[str, Any]) -> float: method _calc_strategic_depth (line 236) | def _calc_strategic_depth(self, game_state: Dict[str, Any]) -> float: method _calc_tactical_awareness (line 239) | def _calc_tactical_awareness(self, game_state: Dict[str, Any]) -> float: method _calc_focus_duration (line 243) | def _calc_focus_duration(self, game_state: Dict[str, Any]) -> float: method _calc_distraction_resistance (line 246) | def _calc_distraction_resistance(self, game_state: Dict[str, Any]) -> ... method _calc_multi_tasking (line 249) | def _calc_multi_tasking(self, game_state: Dict[str, Any]) -> float: method _calc_mechanical_skill (line 253) | def _calc_mechanical_skill(self, game_state: Dict[str, Any]) -> float: method _calc_strategic_planning (line 256) | def _calc_strategic_planning(self, game_state: Dict[str, Any]) -> float: method _calc_resource_management (line 259) | def _calc_resource_management(self, game_state: Dict[str, Any]) -> float: method _calc_spatial_awareness (line 262) | def _calc_spatial_awareness(self, game_state: Dict[str, Any]) -> float: method _calc_timing_precision (line 265) | def _calc_timing_precision(self, game_state: Dict[str, Any]) -> float: method _calc_coordination (line 268) | def _calc_coordination(self, game_state: Dict[str, Any]) -> float: method _update_cognitive_profile (line 271) | def _update_cognitive_profile( method _determine_learning_style (line 299) | def _determine_learning_style(self, learning_features: Dict[str, float... method _calc_visual_score (line 308) | def _calc_visual_score(self, features: Dict[str, float]) -> float: method _calc_kinesthetic_score (line 312) | def _calc_kinesthetic_score(self, features: Dict[str, float]) -> float: method _calc_analytical_score (line 316) | def _calc_analytical_score(self, features: Dict[str, float]) -> float: method _calculate_adaptability (line 320) | def _calculate_adaptability(self, learning_features: Dict[str, float])... method update (line 335) | async def update(self, feedback: Dict[str, Any]) -> None: method _update_feature_weights (line 356) | def _update_feature_weights(self, feedback: Dict[str, Any]) -> None: FILE: core/ai_engine/cognitive_functions.py function process_cognitive_input (line 12) | def process_cognitive_input(input_data: Dict[str, Any]) -> Dict[str, Any]: function cognitive_analysis (line 30) | def cognitive_analysis(data: List[Dict[str, Any]]) -> List[Dict[str, Any]]: FILE: core/ai_engine/collective.py class CollectiveKnowledge (line 12) | class CollectiveKnowledge(BaseModel): class CollectiveWisdomAggregator (line 22) | class CollectiveWisdomAggregator(AIComponent): method __init__ (line 25) | def __init__(self): method initialize (line 32) | async def initialize(self) -> None: method _initialize_pattern_recognition (line 39) | def _initialize_pattern_recognition(self) -> None: method _initialize_strategy_analysis (line 48) | def _initialize_strategy_analysis(self) -> None: method _initialize_meta_analyzers (line 57) | def _initialize_meta_analyzers(self) -> None: method _create_trend_analyzer (line 65) | def _create_trend_analyzer(self) -> Dict[str, Any]: method _create_correlation_analyzer (line 73) | def _create_correlation_analyzer(self) -> Dict[str, Any]: method _create_anomaly_detector (line 81) | def _create_anomaly_detector(self) -> Dict[str, Any]: method process (line 89) | async def process(self, input_data: Dict[str, Any]) -> Dict[str, Any]: method _analyze_patterns (line 132) | def _analyze_patterns( method _analyze_behavioral_patterns (line 158) | def _analyze_behavioral_patterns( method _analyze_temporal_patterns (line 176) | def _analyze_temporal_patterns(self, game_state: Dict[str, Any]) -> Di... method _analyze_spatial_patterns (line 189) | def _analyze_spatial_patterns(self, game_state: Dict[str, Any]) -> Dic... method _analyze_strategic_patterns (line 204) | def _analyze_strategic_patterns( method _analyze_strategies (line 221) | def _analyze_strategies( method _analyze_offensive_strategies (line 247) | def _analyze_offensive_strategies(self, game_state: Dict[str, Any]) ->... method _analyze_defensive_strategies (line 259) | def _analyze_defensive_strategies(self, game_state: Dict[str, Any]) ->... method _analyze_resource_strategies (line 271) | def _analyze_resource_strategies(self, game_state: Dict[str, Any]) -> ... method _analyze_social_strategies (line 284) | def _analyze_social_strategies( method _perform_meta_analysis (line 300) | def _perform_meta_analysis( method _analyze_trends (line 322) | def _analyze_trends( method _analyze_correlations (line 350) | def _analyze_correlations( method _detect_anomalies (line 371) | def _detect_anomalies( method _calculate_confidence_scores (line 402) | def _calculate_confidence_scores( method _calculate_trend_confidence (line 441) | def _calculate_trend_confidence(self, trends: Dict[str, List[float]]) ... method _calculate_correlation_confidence (line 446) | def _calculate_correlation_confidence( method _extract_behavioral_features (line 455) | def _extract_behavioral_features( method _extract_temporal_features (line 469) | def _extract_temporal_features(self, game_state: Dict[str, Any]) -> np... method _extract_spatial_features (line 478) | def _extract_spatial_features(self, game_state: Dict[str, Any]) -> np.... method _extract_strategic_features (line 489) | def _extract_strategic_features( method _extract_offensive_features (line 502) | def _extract_offensive_features(self, game_state: Dict[str, Any]) -> n... method _extract_defensive_features (line 510) | def _extract_defensive_features(self, game_state: Dict[str, Any]) -> n... method _extract_resource_features (line 518) | def _extract_resource_features(self, game_state: Dict[str, Any]) -> np... method _extract_social_features (line 527) | def _extract_social_features( method _sigmoid (line 539) | def _sigmoid(self, x: float) -> float: method update (line 543) | async def update(self, feedback: Dict[str, Any]) -> None: method _update_pattern_weights (line 561) | def _update_pattern_weights(self, feedback: Dict[str, Any]) -> None: method _update_strategy_weights (line 573) | def _update_strategy_weights(self, feedback: Dict[str, Any]) -> None: method _update_meta_analyzers (line 585) | def _update_meta_analyzers(self, feedback: Dict[str, Any]) -> None: FILE: core/ai_engine/collective_intelligence.py class CollectiveIntelligence (line 3) | class CollectiveIntelligence: method __init__ (line 9) | def __init__(self): method aggregate_knowledge (line 12) | def aggregate_knowledge(self, new_knowledge: Dict[str, Any]) -> None: method make_decision (line 19) | def make_decision(self, criteria: Dict[str, Any]) -> Any: method learn_collaboratively (line 32) | def learn_collaboratively(self, external_data: List[Dict[str, Any]]) -... method get_knowledge_base (line 40) | def get_knowledge_base(self) -> List[Dict[str, Any]]: FILE: core/ai_engine/llm_utils.py function preprocess_llm_input (line 9) | def preprocess_llm_input(user_input: str) -> Dict[str, Any]: function format_llm_response (line 28) | def format_llm_response(response: Any) -> str: function log_llm_interaction (line 47) | def log_llm_interaction(user_input: str, response: Any) -> None: FILE: core/ai_engine/prediction.py class PredictionModel (line 12) | class PredictionModel(BaseModel): class AdaptivePredictionEngine (line 22) | class AdaptivePredictionEngine(AIComponent): method __init__ (line 25) | def __init__(self): method initialize (line 30) | async def initialize(self) -> None: method _create_behavior_model (line 40) | def _create_behavior_model(self) -> Dict[str, Any]: method _create_outcome_model (line 48) | def _create_outcome_model(self) -> Dict[str, Any]: method _create_strategy_model (line 56) | def _create_strategy_model(self) -> Dict[str, Any]: method process (line 64) | async def process(self, input_data: Dict[str, Any]) -> Dict[str, Any]: method _predict_behavior (line 104) | def _predict_behavior(self, game_state: Dict[str, Any], cognitive_stat... method _predict_outcome (line 115) | def _predict_outcome(self, game_state: Dict[str, Any], uncertainty: Di... method _predict_strategy (line 126) | def _predict_strategy(self, game_state: Dict[str, Any], cognitive_stat... method _extract_features (line 137) | def _extract_features(self, state: Dict[str, Any], context: Dict[str, ... method _normalize_prediction (line 146) | def _normalize_prediction(self, prediction: np.ndarray) -> List[float]: method _sigmoid (line 151) | def _sigmoid(self, x: float) -> float: method _calculate_confidence (line 155) | def _calculate_confidence(self, *predictions: Dict[str, Any]) -> float: method _calculate_outcome_confidence (line 160) | def _calculate_outcome_confidence(self, prediction: float, uncertainty... method _calculate_strategy_confidence (line 166) | def _calculate_strategy_confidence(self, prediction: float, cognitive_... method _strategy_to_actions (line 172) | def _strategy_to_actions(self, prediction: float) -> List[Dict[str, An... method update (line 187) | async def update(self, feedback: Dict[str, Any]) -> None: method _calculate_prediction_error (line 209) | def _calculate_prediction_error(self, actual: Dict[str, Any], predicte... method _update_weights (line 215) | def _update_weights(self, error: float, feedback: Dict[str, Any]) -> N... method _adjust_learning_rate (line 227) | def _adjust_learning_rate(self, error: float) -> None: FILE: core/ai_engine/quantum.py class UncertaintyFactors (line 12) | class UncertaintyFactors(BaseModel): class QuantumUncertaintyGenerator (line 22) | class QuantumUncertaintyGenerator(AIComponent): method __init__ (line 25) | def __init__(self): method initialize (line 31) | async def initialize(self) -> None: method _initialize_quantum_states (line 37) | def _initialize_quantum_states(self) -> None: method _initialize_entanglement_matrix (line 48) | def _initialize_entanglement_matrix(self) -> None: method _create_quantum_state (line 57) | def _create_quantum_state(self, dimensions: int) -> np.ndarray: method process (line 62) | async def process(self, input_data: Dict[str, Any]) -> Dict[str, Any]: method _evolve_quantum_states (line 109) | def _evolve_quantum_states(self, game_state: Dict[str, Any]) -> None: method _create_evolution_matrix (line 120) | def _create_evolution_matrix(self, size: int, game_state: Dict[str, An... method _calculate_player_uncertainty (line 135) | def _calculate_player_uncertainty(self, player_state: Dict[str, Any]) ... method _calculate_game_uncertainty (line 146) | def _calculate_game_uncertainty(self, game_state: Dict[str, Any]) -> D... method _calculate_environmental_uncertainty (line 158) | def _calculate_environmental_uncertainty(self, game_state: Dict[str, A... method _apply_entanglement_effects (line 168) | def _apply_entanglement_effects( method _calculate_composite_uncertainty (line 195) | def _calculate_composite_uncertainty( method update (line 218) | async def update(self, feedback: Dict[str, Any]) -> None: method _update_decoherence_rate (line 236) | def _update_decoherence_rate(self, feedback: Dict[str, Any]) -> None: method _update_entanglement_matrix (line 243) | def _update_entanglement_matrix(self, feedback: Dict[str, Any]) -> None: method _reinitialize_quantum_states (line 253) | def _reinitialize_quantum_states(self, feedback: Dict[str, Any]) -> None: FILE: core/ai_engine/utils.py function load_json (line 7) | def load_json(file_path: str) -> Dict[str, Any]: function save_json (line 20) | def save_json(data: Dict[str, Any], file_path: str) -> None: function extract_keys (line 31) | def extract_keys(data: List[Dict[str, Any]], keys: List[str]) -> List[Di... function validate_input (line 42) | def validate_input(data: Any, expected_type: type) -> bool: FILE: core/ai_engine/xai.py class Explanation (line 12) | class Explanation(BaseModel): class ExplainableAI (line 22) | class ExplainableAI(AIComponent): method __init__ (line 25) | def __init__(self): method _initialize_templates (line 35) | def _initialize_templates(self) -> Dict[str, str]: method initialize (line 59) | async def initialize(self) -> None: method _initialize_feature_analyzers (line 64) | def _initialize_feature_analyzers(self) -> None: method _create_decision_analyzer (line 72) | def _create_decision_analyzer(self) -> Dict[str, Any]: method _create_outcome_analyzer (line 85) | def _create_outcome_analyzer(self) -> Dict[str, Any]: method _create_strategy_analyzer (line 97) | def _create_strategy_analyzer(self) -> Dict[str, Any]: method process (line 111) | async def process(self, input_data: Dict[str, Any]) -> Dict[str, Any]: method _explain_decisions (line 164) | def _explain_decisions( method _analyze_decision_factors (line 193) | def _analyze_decision_factors( method _analyze_outcome_factors (line 215) | def _analyze_outcome_factors( method _analyze_strategy_factors (line 237) | def _analyze_strategy_factors( method _calculate_feature_importance (line 259) | def _calculate_feature_importance( method _generate_counterfactuals (line 295) | def _generate_counterfactuals( method _calculate_confidence_levels (line 320) | def _calculate_confidence_levels( method _extract_decision_features (line 356) | def _extract_decision_features( method _extract_outcome_features (line 370) | def _extract_outcome_features( method _extract_strategy_features (line 383) | def _extract_strategy_features( method update (line 398) | async def update(self, feedback: Dict[str, Any]) -> None: method _update_feature_weights (line 416) | def _update_feature_weights(self, feedback: Dict[str, Any]) -> None: method _update_templates (line 428) | def _update_templates(self, feedback: Dict[str, Any]) -> None: FILE: core/auth.py class AuthSettings (line 15) | class AuthSettings(BaseSettings): class Config (line 20) | class Config: function verify_password (line 31) | def verify_password(plain_password: str, hashed_password: str) -> bool: function get_password_hash (line 36) | def get_password_hash(password: str) -> str: function create_access_token (line 41) | def create_access_token(data: dict[str, Any], expires_delta: timedelta |... function decode_access_token (line 52) | def decode_access_token(token: str) -> dict[str, Any]: function get_current_user (line 62) | async def get_current_user( FILE: core/auth_utils.py class AuthUtils (line 5) | class AuthUtils: method hash_password (line 11) | def hash_password(password: str) -> str: method generate_jwt_token (line 21) | def generate_jwt_token(user_id: str, secret: str, expiration_minutes: ... method validate_jwt_token (line 36) | def validate_jwt_token(token: str, secret: str) -> Optional[Dict[str, ... FILE: core/database.py class Settings (line 8) | class Settings(BaseSettings): class Config (line 12) | class Config: function get_async_session (line 23) | async def get_async_session() -> AsyncGenerator[AsyncSession, None]: FILE: core/llm_processing.py class LLMProcessor (line 8) | class LLMProcessor: method __init__ (line 13) | def __init__(self, model: str) -> None: method process_input (line 22) | def process_input(self, user_input: str) -> Dict[str, Any]: method _interact_with_llm (line 37) | def _interact_with_llm(self, user_input: str) -> Dict[str, Any]: FILE: core/llm_utilities.py function preprocess_input (line 11) | def preprocess_input(text: str) -> str: function postprocess_output (line 25) | def postprocess_output(output: Any) -> str: function extract_entities (line 39) | def extract_entities(data: Dict[str, Any]) -> List[str]: FILE: core/logging.py function get_logger (line 7) | def get_logger(name: str) -> logging.Logger: FILE: core/tasks.py function process_llm_response (line 9) | def process_llm_response(response_data): function generate_llm_prompt (line 30) | def generate_llm_prompt(game_context): FILE: crud/ai_model.py function get_by_id (line 8) | async def get_by_id(session: AsyncSession, id: uuid.UUID) -> AIModel | N... function create (line 14) | async def create(session: AsyncSession, data: AIModelCreate) -> AIModel: function list_all (line 29) | async def list_all(session: AsyncSession) -> list[AIModel]: FILE: crud/cognitive_profile.py function get_by_user_id (line 8) | async def get_by_user_id(session: AsyncSession, user_id: uuid.UUID) -> C... function create_profile (line 14) | async def create_profile(session: AsyncSession, user_id: uuid.UUID, prof... function update_profile (line 23) | async def update_profile(session: AsyncSession, profile: CognitiveProfil... FILE: crud/game_definition.py function get_by_id (line 8) | async def get_by_id(session: AsyncSession, id: uuid.UUID) -> GameDefinit... function get_by_name (line 14) | async def get_by_name(session: AsyncSession, name: str) -> GameDefinitio... function create (line 20) | async def create(session: AsyncSession, data: GameDefinitionCreate) -> G... function list_all (line 34) | async def list_all(session: AsyncSession) -> list[GameDefinition]: FILE: crud/game_instance.py function get_by_id (line 8) | async def get_by_id(session: AsyncSession, id: uuid.UUID) -> GameInstanc... function create (line 14) | async def create(session: AsyncSession, data: GameInstanceCreate) -> Gam... function list_by_user (line 28) | async def list_by_user(session: AsyncSession, user_id: uuid.UUID) -> lis... FILE: crud/user.py function get_user_by_email (line 13) | async def get_user_by_email(session: AsyncSession, email: str) -> User |... function get_user_by_id (line 19) | async def get_user_by_id(session: AsyncSession, user_id: uuid.UUID) -> U... function create_user (line 25) | async def create_user(session: AsyncSession, user_in: UserCreate) -> User: function update_user (line 39) | async def update_user(session: AsyncSession, user: User, user_in: UserUp... FILE: llm_service/crud.py function create_log (line 8) | async def create_log(session: AsyncSession, req: LLMCallRequest, respons... function list_logs_by_user (line 24) | async def list_logs_by_user(session: AsyncSession, user_id: uuid.UUID) -... FILE: llm_service/models.py class LLMCallLog (line 9) | class LLMCallLog(Base): FILE: llm_service/schemas.py class LLMCallRequest (line 6) | class LLMCallRequest(BaseModel): class LLMCallResponse (line 14) | class LLMCallResponse(BaseModel): class LLMCallLogRead (line 20) | class LLMCallLogRead(BaseModel): class Config (line 31) | class Config: FILE: llm_service/service.py class LLMService (line 4) | class LLMService: method __init__ (line 8) | def __init__(self, api_key: str, api_url: str): method generate_response (line 16) | def generate_response(self, prompt: str) -> str: FILE: llm_service/test_ai_engine_service.py class TestAIEngineService (line 5) | class TestAIEngineService: method service (line 7) | def service(self): method test_initialization (line 11) | def test_initialization(self, service): method test_method_1 (line 15) | def test_method_1(self, service): method test_method_2 (line 20) | def test_method_2(self, service): method test_method_3 (line 25) | def test_method_3(self, service): FILE: llm_service/test_llm_service.py class TestLLMService (line 4) | class TestLLMService(unittest.TestCase): method setUp (line 7) | def setUp(self): method test_generate_response (line 11) | def test_generate_response(self): method test_invalid_input (line 19) | def test_invalid_input(self): method test_performance (line 25) | def test_performance(self): FILE: llm_service/test_llm_service_integration.py function test_client (line 6) | def test_client(): function test_llm_service_integration (line 12) | def test_llm_service_integration(test_client): function test_llm_service_error_handling (line 25) | def test_llm_service_error_handling(test_client): FILE: llm_service/test_service.py function llm_service (line 6) | def llm_service(): function test_llm_service_integration (line 11) | def test_llm_service_integration(llm_service): function test_llm_service_error_handling (line 21) | def test_llm_service_error_handling(llm_service): function test_llm_service_multiple_cases (line 34) | def test_llm_service_multiple_cases(llm_service, input_data, expected_ou... FILE: main.py function startup_event (line 41) | async def startup_event(): function shutdown_event (line 47) | async def shutdown_event(): function root (line 53) | async def root(): FILE: models/ai_model.py class AIModel (line 8) | class AIModel(Base): FILE: models/cognitive_profile.py class CognitiveProfile (line 9) | class CognitiveProfile(Base): FILE: models/game_definition.py class GameDefinition (line 8) | class GameDefinition(Base): FILE: models/game_instance.py class GameInstance (line 9) | class GameInstance(Base): FILE: models/user.py class User (line 10) | class User(Base): FILE: schemas/ai_engine.py class GameState (line 8) | class GameState(BaseModel): class PredictionRequest (line 22) | class PredictionRequest(BaseModel): class PredictionResponse (line 29) | class PredictionResponse(BaseModel): class FeedbackRequest (line 45) | class FeedbackRequest(BaseModel): class CognitiveProfile (line 62) | class CognitiveProfile(BaseModel): class CollectiveKnowledge (line 78) | class CollectiveKnowledge(BaseModel): class UncertaintyFactors (line 91) | class UncertaintyFactors(BaseModel): class Explanation (line 105) | class Explanation(BaseModel): class CognitiveProfileResponse (line 121) | class CognitiveProfileResponse(BaseModel): class CollectiveWisdomResponse (line 127) | class CollectiveWisdomResponse(BaseModel): class UncertaintyResponse (line 133) | class UncertaintyResponse(BaseModel): class ExplanationResponse (line 139) | class ExplanationResponse(BaseModel): FILE: schemas/ai_model.py class AIModelBase (line 7) | class AIModelBase(BaseModel): class AIModelCreate (line 15) | class AIModelCreate(AIModelBase): class AIModelUpdate (line 21) | class AIModelUpdate(BaseModel): class AIModelRead (line 29) | class AIModelRead(AIModelBase): class Config (line 35) | class Config: FILE: schemas/cognitive_profile.py class CognitiveProfileRead (line 6) | class CognitiveProfileRead(BaseModel): class CognitiveProfileUpdate (line 14) | class CognitiveProfileUpdate(BaseModel): FILE: schemas/game_definition.py class GameDefinition (line 4) | class GameDefinition(BaseModel): class GameDefinitionCreate (line 12) | class GameDefinitionCreate(BaseModel): class GameDefinitionUpdate (line 17) | class GameDefinitionUpdate(BaseModel): class GameDefinitionResponse (line 22) | class GameDefinitionResponse(BaseModel): class Config (line 30) | class Config: FILE: schemas/game_instance.py class GameInstance (line 4) | class GameInstance(BaseModel): class Config (line 12) | class Config: FILE: schemas/llm_request.py class LLMRequest (line 4) | class LLMRequest(BaseModel): class Config (line 12) | class Config: FILE: schemas/llm_response.py class LLMResponse (line 4) | class LLMResponse(BaseModel): class LLMResponseList (line 12) | class LLMResponseList(BaseModel): FILE: schemas/task.py class TaskTrigger (line 4) | class TaskTrigger(BaseModel): class TaskStatus (line 9) | class TaskStatus(BaseModel): FILE: schemas/user.py class UserCreate (line 6) | class UserCreate(BaseModel): class UserLogin (line 13) | class UserLogin(BaseModel): class UserRead (line 19) | class UserRead(BaseModel): class Config (line 27) | class Config: class UserUpdate (line 31) | class UserUpdate(BaseModel): FILE: schemas/user_profile.py class UserProfile (line 4) | class UserProfile(BaseModel): class Config (line 12) | class Config: class UserProfileCreate (line 15) | class UserProfileCreate(BaseModel): class UserProfileUpdate (line 22) | class UserProfileUpdate(BaseModel): FILE: tests/integration/test_ai_engine.py function sample_data (line 9) | def sample_data(): function test_ai_engine_service_integration (line 16) | def test_ai_engine_service_integration(sample_data): function test_ai_engine_service_error_handling (line 22) | def test_ai_engine_service_error_handling(): FILE: tests/integration/test_ai_engine_integration.py function client (line 6) | def client(): function test_ai_engine_integration (line 11) | def test_ai_engine_integration(client): function test_ai_engine_integration_invalid_data (line 20) | def test_ai_engine_integration_invalid_data(client): function test_ai_engine_integration_error_handling (line 29) | def test_ai_engine_integration_error_handling(client): FILE: tests/integration/test_auth.py function test_login (line 13) | def test_login(username, password, expected_status): function test_register (line 21) | def test_register(): function test_register_existing_user (line 31) | def test_register_existing_user(): FILE: tests/integration/test_auth_integration.py function client (line 6) | def client(): function create_user (line 10) | def create_user(client): function login_user (line 19) | def login_user(client, create_user): function test_user_registration (line 26) | def test_user_registration(client): function test_user_login (line 36) | def test_user_login(client, create_user): function test_login_with_invalid_credentials (line 45) | def test_login_with_invalid_credentials(client): function test_login_without_password (line 54) | def test_login_without_password(client): function test_registration_with_existing_username (line 62) | def test_registration_with_existing_username(client): FILE: tests/integration/test_game_integration.py function create_game (line 10) | def create_game(): function test_create_game (line 22) | def test_create_game(create_game): function test_get_game (line 29) | def test_get_game(create_game): function test_update_game (line 38) | def test_update_game(create_game): function test_delete_game (line 50) | def test_delete_game(create_game): FILE: tests/integration/test_game_management_integration.py function game_data (line 9) | def game_data(): function test_create_game (line 17) | def test_create_game(game_data): function test_get_game (line 25) | def test_get_game(game_data): function test_update_game (line 38) | def test_update_game(game_data): function test_delete_game (line 51) | def test_delete_game(game_data): FILE: tests/integration/test_games.py function test_create_game (line 12) | def test_create_game(game_data): function test_get_all_games (line 19) | def test_get_all_games(): function test_get_game_by_id (line 25) | def test_get_game_by_id(): function test_update_game (line 32) | def test_update_game(): function test_delete_game (line 40) | def test_delete_game(): FILE: tests/integration/test_llm.py function test_client (line 6) | def test_client(): function test_llm_endpoint (line 12) | def test_llm_endpoint(client): function test_llm_invalid_input (line 22) | def test_llm_invalid_input(client): FILE: tests/integration/test_llm_integration.py function setup_module (line 9) | def setup_module(): function test_llm_integration_setup (line 15) | def test_llm_integration_setup(setup_module): function test_llm_integration_prediction (line 22) | def test_llm_integration_prediction(setup_module): function test_llm_integration_error_handling (line 30) | def test_llm_integration_error_handling(setup_module): function test_llm_integration_performance (line 38) | def test_llm_integration_performance(setup_module): FILE: tests/integration/test_llm_service.py function test_llm_service (line 12) | def test_llm_service(input_data, expected_status): function test_llm_service_response_format (line 18) | def test_llm_service_response_format(): function test_llm_service_invalid_method (line 26) | def test_llm_service_invalid_method(): FILE: tests/integration/test_llm_service_integration.py function test_llm_response (line 14) | def test_llm_response(input_data, expected_response_code): function test_llm_service_integration (line 20) | def test_llm_service_integration(): FILE: tests/integration/test_user_management.py function setup_module (line 8) | def setup_module(): function test_user_registration (line 14) | def test_user_registration(setup_module): function test_user_login (line 24) | def test_user_login(setup_module): function test_user_profile_retrieval (line 33) | def test_user_profile_retrieval(setup_module): function test_user_profile_update (line 45) | def test_user_profile_update(setup_module): FILE: tests/integration/test_user_management_integration.py function test_client (line 7) | def test_client(): function setup_user (line 12) | def setup_user(): function test_user_registration (line 25) | def test_user_registration(test_client): function test_user_login (line 35) | def test_user_login(test_client, setup_user): function test_user_profile_retrieval (line 44) | def test_user_profile_retrieval(test_client, setup_user): function test_user_profile_update (line 60) | def test_user_profile_update(test_client, setup_user): FILE: tests/unit/test_ai_engine.py function test_cognitive_functionality (line 5) | def test_cognitive_functionality(): function test_collective_functionality (line 13) | def test_collective_functionality(): function test_prediction_algorithm (line 21) | def test_prediction_algorithm(): function setup_data (line 30) | def setup_data(): function test_prediction_with_setup (line 35) | def test_prediction_with_setup(setup_data): FILE: tests/unit/test_ai_engine_model.py function sample_ai_model (line 6) | def sample_ai_model(): function test_ai_model_initialization (line 10) | def test_ai_model_initialization(sample_ai_model): function test_ai_model_prediction (line 15) | def test_ai_model_prediction(sample_ai_model): function test_ai_model_update (line 21) | def test_ai_model_update(sample_ai_model): function test_ai_model_invalid_prediction (line 27) | def test_ai_model_invalid_prediction(sample_ai_model): FILE: tests/unit/test_ai_engine_service.py function ai_engine_service (line 6) | def ai_engine_service(): function test_ai_engine_service_prediction (line 12) | def test_ai_engine_service_prediction(ai_engine_service): function test_ai_engine_service_error_handling (line 24) | def test_ai_engine_service_error_handling(ai_engine_service): FILE: tests/unit/test_ai_processing.py class TestAIProcessing (line 4) | class TestAIProcessing: method test_process_data_valid_input (line 5) | def test_process_data_valid_input(self): method test_process_data_invalid_input (line 11) | def test_process_data_invalid_input(self): method test_some_other_function (line 17) | def test_some_other_function(self): method test_some_other_function_invalid (line 23) | def test_some_other_function_invalid(self): FILE: tests/unit/test_auth.py function client (line 6) | def client(): function test_user_registration (line 11) | def test_user_registration(client): function test_user_login (line 21) | def test_user_login(client): function test_invalid_login (line 32) | def test_invalid_login(client): FILE: tests/unit/test_cognitive_profile.py function test_cognitive_profile_initialization (line 5) | def test_cognitive_profile_initialization(): function test_cognitive_profile_add_attribute (line 14) | def test_cognitive_profile_add_attribute(): function test_cognitive_profile_remove_attribute (line 23) | def test_cognitive_profile_remove_attribute(): function test_cognitive_profile_update_attribute (line 32) | def test_cognitive_profile_update_attribute(): FILE: tests/unit/test_game_definition.py function test_create_game_definition (line 5) | def test_create_game_definition(): function test_update_game_definition (line 14) | def test_update_game_definition(): function test_delete_game_definition (line 23) | def test_delete_game_definition(): function test_game_definition_repr (line 32) | def test_game_definition_repr(): FILE: tests/unit/test_game_instance.py function game_instance_data (line 7) | def game_instance_data(): function test_create_game_instance (line 15) | def test_create_game_instance(game_instance_data): function test_read_game_instance (line 23) | def test_read_game_instance(game_instance_data): function test_update_game_instance (line 30) | def test_update_game_instance(game_instance_data): function test_delete_game_instance (line 37) | def test_delete_game_instance(game_instance_data): FILE: tests/unit/test_game_management.py function test_client (line 7) | def test_client(): function setup_game_definition (line 12) | def setup_game_definition(): function test_create_game (line 25) | def test_create_game(test_client, setup_game_definition): function test_get_games (line 31) | def test_get_games(test_client): function test_update_game (line 37) | def test_update_game(test_client, setup_game_definition): function test_delete_game (line 44) | def test_delete_game(test_client, setup_game_definition): FILE: tests/unit/test_game_model.py function test_game_definition_creation (line 5) | def test_game_definition_creation(): function test_game_definition_str (line 14) | def test_game_definition_str(): function test_game_definition_update (line 22) | def test_game_definition_update(): function test_game_definition_invalid_name (line 33) | def test_game_definition_invalid_name(): function test_game_definition_invalid_description (line 41) | def test_game_definition_invalid_description(): FILE: tests/unit/test_games.py class TestGameManagement (line 9) | class TestGameManagement: method create_game (line 11) | def create_game(self): method test_create_game (line 19) | def test_create_game(self, create_game): method test_get_game (line 23) | def test_get_game(self, create_game): method test_update_game (line 29) | def test_update_game(self, create_game): method test_delete_game (line 38) | def test_delete_game(self, create_game): FILE: tests/unit/test_llm.py class TestLLMAPI (line 10) | class TestLLMAPI: method test_llm_endpoint (line 12) | def test_llm_endpoint(self): method test_llm_endpoint_invalid_model (line 24) | def test_llm_endpoint_invalid_model(self): method test_llm_endpoint_missing_fields (line 34) | def test_llm_endpoint_missing_fields(self): method test_llm_endpoint_empty_input (line 41) | def test_llm_endpoint_empty_input(self): FILE: tests/unit/test_llm_processing.py class TestLLMProcessing (line 4) | class TestLLMProcessing(unittest.TestCase): method test_process_llm_request_valid_input (line 5) | def test_process_llm_request_valid_input(self): method test_process_llm_request_empty_prompt (line 12) | def test_process_llm_request_empty_prompt(self): method test_process_llm_request_invalid_max_tokens (line 18) | def test_process_llm_request_invalid_max_tokens(self): method test_process_llm_request_missing_keys (line 24) | def test_process_llm_request_missing_keys(self): FILE: tests/unit/test_llm_response.py function test_llm_response_initialization (line 5) | def test_llm_response_initialization(): function test_llm_response_invalid_data (line 20) | def test_llm_response_invalid_data(): function test_llm_response_missing_fields (line 28) | def test_llm_response_missing_fields(): function test_llm_response_empty_data (line 36) | def test_llm_response_empty_data(): FILE: tests/unit/test_llm_schema.py function test_llm_request_schema_valid (line 7) | def test_llm_request_schema_valid(): function test_llm_request_schema_invalid (line 20) | def test_llm_request_schema_invalid(): function test_llm_response_schema_valid (line 31) | def test_llm_response_schema_valid(): function test_llm_response_schema_invalid (line 42) | def test_llm_response_schema_invalid(): FILE: tests/unit/test_llm_service.py function llm_service (line 6) | def llm_service(): function test_service_initialization (line 13) | def test_service_initialization(llm_service): function test_process_request_valid (line 20) | def test_process_request_valid(llm_service): function test_process_request_invalid (line 31) | def test_process_request_invalid(llm_service): function test_service_response_format (line 40) | def test_service_response_format(llm_service): FILE: tests/unit/test_llm_service_integration.py class TestLLMServiceIntegration (line 4) | class TestLLMServiceIntegration: method llm_service (line 6) | def llm_service(self): method test_llm_service_initialization (line 11) | def test_llm_service_initialization(self, llm_service): method test_llm_service_functionality (line 15) | def test_llm_service_functionality(self, llm_service): method test_llm_service_error_handling (line 23) | def test_llm_service_error_handling(self, llm_service): FILE: tests/unit/test_user_management.py function client (line 7) | def client(): function user_data (line 11) | def user_data(): function create_user (line 19) | def create_user(client, user_data): function test_user_registration (line 23) | def test_user_registration(client, user_data): function test_user_login (line 29) | def test_user_login(client, create_user, user_data): function test_user_login_with_incorrect_password (line 37) | def test_user_login_with_incorrect_password(client, create_user, user_da... function test_user_profile (line 46) | def test_user_profile(client, create_user): FILE: tests/unit/test_user_model.py function test_user_creation (line 5) | def test_user_creation(): function test_user_str (line 12) | def test_user_str(): function test_user_email_validation (line 18) | def test_user_email_validation(): function test_user_update (line 24) | def test_user_update(): function test_user_profile_link (line 32) | def test_user_profile_link(): FILE: tests/unit/test_user_profile.py function create_user (line 9) | def create_user(): function test_user_profile_creation (line 19) | def test_user_profile_creation(create_user): function test_get_user_profile (line 30) | def test_get_user_profile(create_user): function test_update_user_profile (line 39) | def test_update_user_profile(create_user): function test_delete_user_profile (line 50) | def test_delete_user_profile(create_user):