MCPcopy Create free account

hub / github.com/congde/emotional_chat / functions

Functions1,867 in github.com/congde/emotional_chat

Method__init__
(self, checkpoint_dir: Optional[Path] = None)
backend/runtime/session/resume.py:26
Method__init__
(self, from_state: SessionState, to_state: SessionState)
backend/runtime/session/fsm.py:43
Method__init__
(self)
backend/runtime/session/lineage.py:38
Method__init__
初始化记忆技能 Args: memory_hub: MemoryHub 实例(可选,延迟加载)
backend/runtime/skills/memory_skill.py:38
Method__init__
初始化情感分析技能 Args: emotion_analyzer: 情感分析器实例(可选,延迟加载)
backend/runtime/skills/emotion_skill.py:36
Method__init__
(self)
backend/runtime/skills/base.py:168
Method__init__
初始化工具调用技能 Args: tool_executor: ToolExecutor Protocol 实现(可选)
backend/runtime/skills/tool_skill.py:39
Method__init__
( self, goal: Dict[str, Any], strategy: Strategy, steps: List[Dict[str, Any]],
backend/runtime/skills/planning_skill.py:60
Method__init__
(self, llm_client=None)
backend/runtime/skills/planning_skill.py:95
Method__init__
(self, llm_client=None)
backend/runtime/skills/reflect_skill.py:54
Method__init__
(self, hooks: Optional[list] = None)
backend/runtime/hooks/base.py:134
Method__init__
(self, overrides: Optional[Dict[str, bool]] = None)
backend/runtime/config/toggles.py:89
Method__init__
(self, module: str)
backend/runtime/config/guards.py:38
Method__init__
( self, store_id: str, scope: Scope, target_id: str, description: str
backend/agent/memory_store.py:66
Method__init__
( self, goal: Dict[str, Any], strategy: Strategy, steps: List[Dict[str, Any]],
backend/agent/planner.py:58
Method__init__
初始化规划器 Args: llm_client: LLM客户端(用于复杂规划)
backend/agent/planner.py:85
Method__init__
初始化反思器 Args: llm_client: LLM客户端(用于高级分析)
backend/agent/reflector.py:49
Method__init__
初始化Agent Core Args: memory_hub: 记忆中枢(可选,默认使用全局实例) planner: 规划器(可选) tool_caller: 工具调用器(可选
backend/agent/agent_core.py:41
Method__init__
( self, name: str, description: str, function: Callable, parameters: D
backend/agent/tool_caller.py:33
Method__init__
(self)
backend/agent/tool_caller.py:61
Method__init__
(self)
backend/agent/tool_caller.py:94
Method__init__
(self, legacy_llm=None, context_assembler=None, emotion_analyzer=None)
backend/agent/agent_core_v2.py:43
Method__init__
(self, legacy_tool_caller=None)
backend/agent/agent_core_v2.py:104
Method__init__
初始化 — 自动检测并使用 Runtime 或回退到旧模式
backend/agent/agent_core_v2.py:157
Method__init__
(self)
backend/agent/memory_hub.py:65
Method__init__
( self, user_id: str = "", session_id: str = "", agent_type: str = "xinyu",
backend/agent/memory_hub.py:104
Method__init__
初始化调度服务
backend/agent/tools/scheduler_service.py:35
Method__init__
初始化资源数据库
backend/agent/tools/psychology_db.py:17
Method__init__
初始化音频播放器
backend/agent/tools/audio_player.py:16
Method__init__
初始化日历服务
backend/agent/tools/calendar_api.py:18
Function__new__
(cls, *args, **kwargs)
backend/core/utils/dependency_injection.py:154
Method__new__
(cls)
backend/dependencies.py:20
Method__post_init__
初始化后处理
backend/core/config.py:153
Method__repr__
(self)
backend/plugins/base_plugin.py:66
Method__repr__
(self)
backend/runtime/session/fsm.py:173
Method__repr__
(self)
backend/runtime/skills/base.py:144
Method_check_calendar
查看日历事件
backend/modules/agent/core/agent/tool_caller.py:654
Method_check_calendar
查看日历事件
backend/agent/tool_caller.py:741
Function_done_dict
将 TurnResult 转换为 SSE 事件 dict
backend/runtime/conversation/_helpers.py:30
Function_error_dict
构造错误 SSE 事件 dict
backend/runtime/conversation/_helpers.py:43
Method_get_emotion_log
获取情绪日志工具实现
backend/modules/agent/core/agent/tool_caller.py:435
Method_get_emotion_log
获取情绪日志工具实现
backend/agent/tool_caller.py:522
Method_get_location_id
获取城市代码(和风天气需要)
backend/plugins/weather_plugin.py:306
Method_lazy_import_agent_tools
延迟导入 agent_tools 中的函数
backend/agent/tool_caller.py:207
Method_parse_usage
解析使用统计 Args: usage_data: 原始使用数据 Returns: 使用统计
backend/modules/llm/providers/base_provider.py:168
Method_psychological_assessment
心理健康评估工具
backend/modules/agent/core/agent/tool_caller.py:610
Method_psychological_assessment
心理健康评估工具
backend/agent/tool_caller.py:697
Method_recommend_meditation
推荐冥想音频工具实现
backend/modules/agent/core/agent/tool_caller.py:507
Method_recommend_meditation
推荐冥想音频工具实现
backend/agent/tool_caller.py:594
Method_recommend_resource
推荐心理健康资源
backend/modules/agent/core/agent/tool_caller.py:575
Method_recommend_resource
推荐心理健康资源
backend/agent/tool_caller.py:662
Method_save_conversation_sync
同步保存对话记录
backend/services/optimized_chat_service.py:212
Method_search_memory
搜索记忆工具实现
backend/modules/agent/core/agent/tool_caller.py:391
Method_search_memory
搜索记忆工具实现
backend/agent/tool_caller.py:478
Method_set_reminder
设置提醒工具实现
backend/modules/agent/core/agent/tool_caller.py:479
Method_set_reminder
设置提醒工具实现
backend/agent/tool_caller.py:566
MethodaddEmotionExample
(text, emotion, intensity)
frontend/src/services/ChatAPI.js:173
FunctionaddFiles
(files)
frontend/src/hooks/useFileUpload.js:41
MethodaddKnowledge
(text, category = 'general')
frontend/src/services/ChatAPI.js:160
Methodadd_document
添加文档到知识库
backend/core/interfaces.py:188
Methodadd_emotion_example
添加情感示例
backend/vector_store.py:134
Methodadd_high_risk_keyword
动态添加高风险关键词 Args: keyword: 关键词
backend/modules/intent/core/enhanced_input_processor.py:484
Methodadd_hook
添加 Hook
backend/runtime/hooks/base.py:137
Methodadd_knowledge
添加知识库内容
backend/vector_store.py:112
Methodadd_layer
添加额外的提示层
backend/runtime/prompt_builder.py:65
Methodadd_typo_rule
动态添加错别字纠正规则 Args: typo: 错误写法 correct: 正确写法
backend/modules/intent/core/enhanced_input_processor.py:473
Functionagent_chat
Agent聊天接口 使用Agent模式处理用户消息,提供智能规划和工具调用
backend/modules/agent/routers/agent_router.py:34
Functionagent_chat
Agent聊天接口 使用Agent模式处理用户消息,提供智能规划和工具调用
backend/routers/agent.py:34
Methodagent_store
L4 Agent 实例级 Store
backend/agent/memory_hub.py:191
Methodanalyze
(self, text)
examples/performance_optimization_example.py:30
MethodanalyzeImage
(imageBlob)
frontend/src/services/ChatAPI.js:298
Functionanalyze_emotion
情感分析接口
simple_backend.py:162
Methodanalyze_emotion
分析用户消息的情感(公开接口,兼容 SimpleEmotionalChatEngine) Args: message: 用户消息 Returns: 情感分析结
backend/modules/llm/core/llm_with_plugins.py:877
Methodanalyze_emotion
情绪分析 Args: text: 要分析的文本 Returns: 情绪分析结果
backend/modules/llm/services/llm_service.py:187
Methodanalyze_emotion
图像整体情感分析 Args: image_file_path: 图像文件路径 Returns: 包含情感分析结果的字典
backend/modules/multimodal/services/image_service.py:390
Methodanalyze_emotion_batch
批量分析情绪
backend/core/interfaces.py:83
Methodanalyze_emotion_consistency
分析多模态情感一致性 Args: modalities: 多种模态的处理结果 Returns: 包含一致性分析结果的字典
backend/modules/multimodal/services/emotion_fusion.py:445
Functionanalyze_emotion_trend
便捷函数:分析用户情绪趋势 Args: user_id: 用户ID days: 天数 Returns: 趋势分析结果
backend/services/emotion_trend_analyzer.py:664
Functionanalyze_experiment
分析实验数据
backend/routers/ab_testing.py:261
Methodanalyze_feedback
分析反馈
backend/core/interfaces.py:257
Functionanalyze_image
图像分析接口 - 上传图片,返回情感分析结果
backend/main.py:337
Functionanalyze_intent
分析用户输入的意图 Args: request: 意图识别请求 intent_service: 意图服务实例 Returns: 意图分析结果 Example:
backend/modules/intent/routers/intent_router.py:35
Functionanalyze_sentiment
分析文本的情感 这是实时情感分析接口,可以独立使用或集成到对话流程中。 **示例请求**: ```json { "text": "今天好累啊,工作压力太大了", "user_id": "user_123"
backend/routers/emotion_analysis.py:76
FunctionapplyTemplate
(templateId)
frontend/src/components/PersonalizationPanel.js:403
Functionapply_template
应用角色模板到用户配置 **参数**: - user_id: 用户ID - template_id: 模板ID **示例**: ``` POST /api/personalization/config/user_123/a
backend/routers/personalization.py:286
Methodask
向知识库提问
backend/core/interfaces.py:167
Methodask_permission
请求权限审批 Args: request: 权限请求 Returns: 审批决策
backend/runtime/protocols/permission_prompter.py:47
Functionask_question
向知识库提问 基于知识库内容生成专业的心理健康建议
backend/modules/rag/routers/rag_router.py:261
Functionask_with_context
结合上下文的问答 考虑对话历史和用户情绪,生成更个性化的回答
backend/modules/rag/routers/rag_router.py:286
Methodask_with_context
带上下文的提问
backend/core/interfaces.py:172
Methodassemble_context
组装完整上下文 Args: user_id: 用户ID session_id: 会话ID current_message: 当前用户消息 chat_hi
backend/context_assembler.py:99
Functionassert_error_response
断言错误响应
backend/tests/__init__.py:170
Functionassert_success_response
断言成功响应
backend/tests/__init__.py:178
Functionassign_group
为用户分配实验组
backend/routers/ab_testing.py:172
Functionasync_wrapper
(*args, **kwargs)
backend/core/utils/decorators.py:30
Functionauto_register
自动注册装饰器
backend/core/utils/dependency_injection.py:190
Functionbatch_analyze
批量分析意图 Args: texts: 文本列表 intent_service: 意图服务实例 Returns: 批量意图分析结果
backend/modules/intent/routers/intent_router.py:229
Methodbatch_detect
批量检测意图 Args: texts: 文本列表 Returns: 意图结果列表
backend/modules/intent/core/intent_classifier.py:216
Functionbatch_evaluate
批量评估会话中的对话
backend/main.py:780
Functionbatch_evaluate
批量评估会话中的对话
backend/routers/evaluation.py:94
← previousnext →1,101–1,200 of 1,867, ranked by callers