MCPcopy Create free account

hub / github.com/GeminiLight/gen-mentor / functions

Functions216 in github.com/GeminiLight/gen-mentor

↓ 74 callersFunctionsave_persistent_state
Save whitelisted st.session_state keys to a local JSON file.
frontend/utils/state.py:58
↓ 24 callersMethodinvoke
Invoke the agent with the given input text.
backend/base/base_agent.py:80
↓ 15 callersFunctionget_llm
(model_provider: str | None = None, model_name: str | None = None, **kwargs)
backend/main.py:33
↓ 12 callersFunctionmake_post_request
Send a POST request to the backend API, or return mock data if enabled.
frontend/utils/request_api.py:27
↓ 11 callersMethodcreate
Initialize LLM client with model parameters. Args: model: Model name (e.g., 'gpt-4', 'claude-3-5-sonnet-20241022') mo
backend/base/llm_factory.py:17
↓ 8 callersFunctionget_current_session_uid
()
frontend/utils/state.py:226
↓ 5 callersMethodfrom_config
Initialize LLM client from WorkflowConfig. This is a convenience method that extracts LLM parameters from WorkflowConfig and creates
backend/base/llm_factory.py:62
↓ 5 callersMethodsearch
(self, query: str)
backend/base/search_rag.py:72
↓ 3 callersFunction_get_data_store_path
()
frontend/utils/state.py:36
↓ 3 callersFunctioncreate_learner_profile
(learning_goal, learner_information, skill_gaps, llm_type="gpt4o", method_name="genmentor")
frontend/utils/request_api.py:90
↓ 3 callersFunctiondraft_knowledge_points_with_llm
Draft multiple knowledge points in parallel or sequentially using the agent.
backend/modules/personalized_resource_delivery/agents/search_enhanced_knowledge_drafter.py:91
↓ 3 callersFunctionensure_config_dict
Ensure the config is a plain dictionary.
backend/utils/config.py:5
↓ 3 callersFunctionformat_docs
(docs: List[Document])
backend/base/search_rag.py:107
↓ 3 callersFunctionindex_goal_by_id
(goal_id)
frontend/utils/state.py:166
↓ 3 callersFunctioninitialize_learner_profile_with_llm
Public helper for generating a learner profile with minimal boilerplate.
backend/modules/adaptive_learner_modeling/agents/adaptive_learning_profiler.py:67
↓ 3 callersMethodmap_goal_to_skill
(self, input_dict: Mapping[str, Any])
backend/modules/skill_gap_identification/agents/skill_requirement_mapper.py:32
↓ 3 callersFunctionrender_skill_info
(learner_profile)
frontend/components/skill_info.py:5
↓ 3 callersFunctionreset_to_add_goal
()
frontend/utils/state.py:154
↓ 3 callersMethodretrieve
(self, query: str, k: Optional[int] = None)
backend/base/search_rag.py:92
↓ 2 callersMethod_build_agent
(self)
backend/base/base_agent.py:52
↓ 2 callersMethodadd_documents
(self, documents: List[Document])
backend/base/search_rag.py:78
↓ 2 callersFunctionadd_new_goal
(learning_goal="", skill_gaps=[], learner_profile={}, learning_path=[], is_completed=False, is_deleted=False)
frontend/utils/state.py:199
↓ 2 callersFunctionchange_selected_goal_id
(new_goal_id)
frontend/utils/state.py:173
↓ 2 callersMethodcreate
(provider: str, **kwargs: Any)
backend/base/searcher_factory.py:22
↓ 2 callersFunctiondraft_knowledge_point_with_llm
Draft a single knowledge point using the agent, optionally enriching with a SearchRagManager.
backend/modules/personalized_resource_delivery/agents/search_enhanced_knowledge_drafter.py:68
↓ 2 callersFunctionexplore_knowledge_points_with_llm
Convenience wrapper to explore knowledge points for a session using the agent. Mirrors the selected helper signature and behavior.
backend/modules/personalized_resource_delivery/agents/goal_oriented_knowledge_explorer.py:34
↓ 2 callersFunctionextract_text_from_pdf
Extracts text from the uploaded PDF file.
frontend/utils/pdf.py:4
↓ 2 callersFunctionextract_text_from_pdf
(file_path)
backend/utils/preprocess.py:10
↓ 2 callersMethodfrom_dict
Constructs a dataclass instance from a dictionary. This method recursively converts nested dictionaries into instances of their
backend/base/dataclass.py:20
↓ 2 callersFunctiongenerate_document_quizzes_with_llm
( llm, learner_profile, learning_document, single_choice_count: int = 3, multiple_choice_c
backend/modules/personalized_resource_delivery/agents/document_quiz_generator.py:49
↓ 2 callersFunctionget_available_models
(backend_endpoint)
frontend/utils/request_api.py:45
↓ 2 callersMethodidentify_skill_gap
Identify knowledge gaps using learner information and expected skills.
backend/modules/skill_gap_identification/agents/skill_gap_identifier.py:34
↓ 2 callersFunctionidentify_skill_gap_with_llm
Identify skill gaps and return both the gaps and the skill requirements used.
backend/modules/skill_gap_identification/agents/skill_gap_identifier.py:45
↓ 2 callersFunctionintegrate_learning_document_with_llm
(llm, learner_profile, learning_path, learning_session, knowledge_points, knowledge_drafts, output_markdown=Tr
backend/modules/personalized_resource_delivery/agents/learning_document_integrator.py:48
↓ 2 callersFunctionload_config
Compose Hydra config from a config module with optional env overrides. Uses hydra.initialize_config_module to avoid relative-path issues.
backend/config/loader.py:13
↓ 2 callersFunctionparse_ground_truth_profile_result
Validate LLM output of ground-truth profile creation/progression.
backend/modules/learner_simulation/schemas.py:27
↓ 2 callersFunctionrender_goal_refinement
(goal, button_col=None, hint_col=None)
frontend/components/goal_refinement.py:9
↓ 2 callersFunctionrender_identified_skill_gap
Render skill gaps in a card-style with prev/next switching.
frontend/components/gap_identification.py:19
↓ 2 callersFunctionrender_identifying_skill_gap
(goal)
frontend/components/gap_identification.py:6
↓ 2 callersFunctionrender_skill_gap_dialog
()
frontend/pages/goal_management.py:132
↓ 2 callersFunctionsettings
Settings dialog to edit backend endpoint and LLM API key stored in frontend/config.py This writes updates back to the `frontend/config.py` file a
frontend/components/topbar.py:92
↓ 2 callersFunctionupdate_learner_profile
(learner_profile, learner_interactions, learner_information="", session_information="", llm_type="gpt4o", meth
frontend/utils/request_api.py:101
↓ 1 callersMethod_build_prompt
Build chat messages for model call.
backend/base/base_agent.py:68
↓ 1 callersFunction_init_onboarding_state
Ensure required session_state keys exist to avoid KeyErrors.
frontend/pages/onboarding.py:19
↓ 1 callersFunction_inject_card_css
Inject lightweight CSS to make sections look like cards and style nav buttons.
frontend/pages/onboarding.py:33
↓ 1 callersFunction_last_user_query
(messages: Any)
backend/modules/ai_chatbot_tutor/agents/ai_chatbot_tutor.py:36
↓ 1 callersFunction_stringify_history
(messages: Any)
backend/modules/ai_chatbot_tutor/agents/ai_chatbot_tutor.py:16
↓ 1 callersFunctionask_autor_chatbot
()
frontend/components/chatbot.py:8
↓ 1 callersMethodchat
(self, payload: TutorChatPayload | Mapping[str, Any] | str)
backend/modules/ai_chatbot_tutor/agents/ai_chatbot_tutor.py:80
↓ 1 callersFunctionchat_with_tutor
(chat_messages, learner_profile, llm_type="gpt4o", method_name="genmentor")
frontend/utils/request_api.py:58
↓ 1 callersFunctionchat_with_tutor_with_llm
Convenience helper to run an AI tutor chat turn with optional RAG. - If a SearchRagManager is provided and use_search=True, performs web search + re
backend/modules/ai_chatbot_tutor/agents/ai_chatbot_tutor.py:112
↓ 1 callersFunctionconvert_json_output
Convert raw JSON output from the LLM into structured format. Args: output: The JSON output from the LLM Returns:
backend/utils/llm_output.py:6
↓ 1 callersMethodcreate
Create an embedding model instance based on the specified model name.
backend/base/embedder_factory.py:7
↓ 1 callersMethodcreate_content
(self, payload: ContentBasePayload | Mapping[str, Any] | str)
backend/modules/personalized_resource_delivery/agents/learning_content_creator.py:50
↓ 1 callersFunctioncreate_learning_content_with_llm
( llm, learner_profile, learning_path, learning_session, document_outline=None, allow_
backend/modules/personalized_resource_delivery/agents/learning_content_creator.py:68
↓ 1 callersMethodcreate_profile
(self, input_dict: Mapping[str, Any])
backend/modules/learner_simulation/grounding_profile_creator.py:74
↓ 1 callersMethoddraft
(self, payload: KnowledgeDraftPayload | Mapping[str, Any] | str)
backend/modules/personalized_resource_delivery/agents/search_enhanced_knowledge_drafter.py:48
↓ 1 callersFunctiondraft_knowledge_points
(learner_profile, learning_path, learning_session, knowledge_points, allow_parallel, use_search, llm_type="gpt
frontend/utils/request_api.py:177
↓ 1 callersFunctiondraft_one
(kp)
backend/modules/personalized_resource_delivery/agents/search_enhanced_knowledge_drafter.py:110
↓ 1 callersMethodexplore
(self, payload: KnowledgeExplorePayload | Mapping[str, Any] | str | dict)
backend/modules/personalized_resource_delivery/agents/goal_oriented_knowledge_explorer.py:26
↓ 1 callersFunctionexplore_knowledge_points
(learner_profile, learning_path, learning_session, llm_type="gpt4o", method_name="genmentor")
frontend/utils/request_api.py:152
↓ 1 callersFunctionextract_think_and_result
(info)
backend/utils/llm_output.py:44
↓ 1 callersMethodfrom_config
( config: Union[DictConfig, Dict[str, Any]], )
backend/base/search_rag.py:37
↓ 1 callersMethodgenerate
(self, payload: DocumentQuizPayload | Mapping[str, Any] | str)
backend/modules/personalized_resource_delivery/agents/document_quiz_generator.py:41
↓ 1 callersFunctiongenerate_document_quizzes
(learner_profile, learning_document, single_choice_count, multiple_choice_count, true_false_count, short_answe
frontend/utils/request_api.py:137
↓ 1 callersFunctionget_new_goal_uid
()
frontend/utils/state.py:151
↓ 1 callersFunctionget_text_from_response
Extract text from the response object.
backend/utils/llm_output.py:36
↓ 1 callersFunctionidentify_skill_gap
(learning_goal, learner_information, llm_type="gpt4o", method_name="genmentor")
frontend/utils/request_api.py:79
↓ 1 callersMethodinitialize_profile
Generate an initial learner profile using the provided onboarding information.
backend/modules/adaptive_learner_modeling/agents/adaptive_learning_profiler.py:50
↓ 1 callersFunctioninitialize_session_state
()
frontend/utils/state.py:76
↓ 1 callersMethodintegrate
(self, payload: IntegratedDocPayload | Mapping[str, Any] | str)
backend/modules/personalized_resource_delivery/agents/learning_document_integrator.py:40
↓ 1 callersFunctionintegrate_learning_document
(learner_profile, learning_path, learning_session, knowledge_points, knowledge_drafts, output_markdown=False,
frontend/utils/request_api.py:192
↓ 1 callersMethodinvoke
(self, query: str)
backend/base/search_rag.py:99
↓ 1 callersMethodinvoke
Perform a search and return structured results.
backend/base/searcher_factory.py:100
↓ 1 callersFunctionload_knowledge_point_content
(file_path)
frontend/pages/knowledge_document.py:515
↓ 1 callersFunctionload_persistent_state
Load persisted keys from a local JSON file into st.session_state. Only keys listed in PERSIST_KEYS will be restored.
frontend/utils/state.py:40
↓ 1 callersFunctionlogin
()
frontend/components/topbar.py:11
↓ 1 callersFunctionlogout
()
frontend/components/topbar.py:24
↓ 1 callersFunctionparse_learner_behavior_log
Validate arbitrary LLM output as a LearnerBehaviorLog.
backend/modules/learner_simulation/schemas.py:15
↓ 1 callersFunctionprepare_content_outline_with_llm
(llm, learner_profile, learning_path, learning_session, *, search_rag_manager: Optional[SearchRagManager] = No
backend/modules/personalized_resource_delivery/agents/learning_content_creator.py:58
↓ 1 callersFunctionprepare_markdown_document
(document_structure, knowledge_points, knowledge_drafts)
frontend/utils/format.py:13
↓ 1 callersFunctionprepare_markdown_document
Render a markdown learning document from the integrated structure and drafts. Expects document_structure with keys: title, overview, summary.
backend/modules/personalized_resource_delivery/agents/learning_document_integrator.py:65
↓ 1 callersMethodprepare_outline
(self, payload: ContentBasePayload | Mapping[str, Any] | str)
backend/modules/personalized_resource_delivery/agents/learning_content_creator.py:36
↓ 1 callersFunctionpreprocess_response
(response, only_text=True, exclude_think=False, json_output=False)
backend/utils/llm_output.py:52
↓ 1 callersMethodrefine_goal
Refine a learner's goal using contextual learner information.
backend/modules/skill_gap_identification/agents/learning_goal_refiner.py:29
↓ 1 callersFunctionrefine_learning_goal
(learning_goal, learner_information, llm_type="gpt4o", method_name="genmentor")
frontend/utils/request_api.py:68
↓ 1 callersFunctionrefine_learning_goal_with_llm
Refine a learner's goal using the provided LLM.
backend/modules/skill_gap_identification/agents/learning_goal_refiner.py:41
↓ 1 callersMethodreflexion
Refine the learning path based on evaluator feedback.
backend/modules/personalized_resource_delivery/agents/learning_path_scheduler.py:60
↓ 1 callersFunctionrender_add_new_goal
()
frontend/pages/goal_management.py:18
↓ 1 callersFunctionrender_additional_info_form
(goal)
frontend/pages/learner_profile.py:106
↓ 1 callersFunctionrender_behavioral_patterns
(goal)
frontend/pages/learner_profile.py:93
↓ 1 callersFunctionrender_cards_with_nav
Show either the Goal or Information section as a card with left/center/right nav buttons.
frontend/pages/onboarding.py:181
↓ 1 callersFunctionrender_chatbot
()
frontend/components/chatbot.py:35
↓ 1 callersFunctionrender_cognitive_status
(goal)
frontend/pages/learner_profile.py:76
↓ 1 callersFunctionrender_content_feedback_form
(goal)
frontend/pages/knowledge_document.py:468
↓ 1 callersFunctionrender_content_preparation
(goal)
frontend/pages/knowledge_document.py:175
↓ 1 callersFunctionrender_continue_button
(goal)
frontend/pages/onboarding.py:168
↓ 1 callersFunctionrender_dashboard
()
frontend/pages/dashboard.py:9
↓ 1 callersFunctionrender_document_content_by_document
(document)
frontend/pages/knowledge_document.py:377
↓ 1 callersFunctionrender_document_content_by_section
(document)
frontend/pages/knowledge_document.py:255
next →1–100 of 216, ranked by callers