MCPcopy Create free account

hub / github.com/KerwinMai/Multi-Agent-Exp / functions

Functions125 in github.com/KerwinMai/Multi-Agent-Exp

Methodget_knowledge_by_category
按分类获取用户知识 Args: user_id: 用户ID category: 知识分类 limit: 返回数量限制 Returns:
memory/long_term_memory.py:229
Methodget_preference
获取用户偏好 Args: user_id: 用户ID key: 偏好键 default: 默认值 Returns: 偏好值,如果
memory/long_term_memory.py:139
Functionget_response_format_prompt
格式化查询结果的提示词 Args: question: 原始问题 query_result: SQL查询结果 Returns: 格式化提示词
prompts.py:97
FunctionhandleLogout
()
static/app.js:83
FunctionhandleNewSession
()
static/app.js:530
FunctionhandleShowUserInfo
()
static/app.js:563
Functionhealth
健康检查接口
app.py:203
FunctionhideLoading
()
static/app.js:372
FunctionhideStatus
()
static/app.js:276
Functionindex
返回前端页面
app.py:35
Functionlogin
用户登录接口
app.py:41
Functionnew_session
创建新会话
app.py:111
Functionquery
查询接口
app.py:78
Methodquery
执行查询,失败时自动纠错并重试(Reflection 循环) 流程:SQL生成 → 执行 → [失败] → 错误反馈给LLM → 重新生成 → 最多重试 max_retries 次 Args: questio
agents/sql_agent.py:180
Functionquery_stream
流式查询接口(Server-Sent Events) 前端使用 fetch + ReadableStream 接收,实现逐字打字效果。 事件类型: - status: 处理状态更新(如"正在查询数据库...") - intent: 识别到的意图类型
app.py:157
Methodreplace_env_vars
(obj)
agent.py:74
FunctionsetStatus
(text)
static/app.js:261
Methodset_thread_id
设置会话线程ID(保留兼容性) Args: thread_id: 线程ID
agent.py:171
FunctionshowChart
(chartConfig)
static/app.js:327
FunctionshowLoading
()
static/app.js:342
FunctionshowSQL
(sql, retryCount)
static/app.js:281
FunctionshowSources
(sources)
static/app.js:301
Methodsse
(type_: str, **kwargs)
agents/master_agent.py:634
Methodstream_query
流式查询,以 SSE 格式生成事件流 使用 LangGraph 的 graph.stream() 在每个节点完成后推送状态更新, 最终 LLM 汇总回答以流式方式逐字输出。 Yields: S
agents/master_agent.py:620
Functionuser_info
获取用户信息
app.py:133
← previous101–125 of 125, ranked by callers