Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/KerwinMai/Multi-Agent-Exp
/ functions
Functions
125 in github.com/KerwinMai/Multi-Agent-Exp
⨍
Functions
125
◇
Types & classes
8
↳
Endpoints
7
Method
get_knowledge_by_category
按分类获取用户知识 Args: user_id: 用户ID category: 知识分类 limit: 返回数量限制 Returns:
memory/long_term_memory.py:229
Method
get_preference
获取用户偏好 Args: user_id: 用户ID key: 偏好键 default: 默认值 Returns: 偏好值,如果
memory/long_term_memory.py:139
Function
get_response_format_prompt
格式化查询结果的提示词 Args: question: 原始问题 query_result: SQL查询结果 Returns: 格式化提示词
prompts.py:97
Function
handleLogout
()
static/app.js:83
Function
handleNewSession
()
static/app.js:530
Function
handleShowUserInfo
()
static/app.js:563
Function
health
健康检查接口
app.py:203
Function
hideLoading
()
static/app.js:372
Function
hideStatus
()
static/app.js:276
Function
index
返回前端页面
app.py:35
Function
login
用户登录接口
app.py:41
Function
new_session
创建新会话
app.py:111
Function
query
查询接口
app.py:78
Method
query
执行查询,失败时自动纠错并重试(Reflection 循环) 流程:SQL生成 → 执行 → [失败] → 错误反馈给LLM → 重新生成 → 最多重试 max_retries 次 Args: questio
agents/sql_agent.py:180
Function
query_stream
流式查询接口(Server-Sent Events) 前端使用 fetch + ReadableStream 接收,实现逐字打字效果。 事件类型: - status: 处理状态更新(如"正在查询数据库...") - intent: 识别到的意图类型
app.py:157
Method
replace_env_vars
(obj)
agent.py:74
Function
setStatus
(text)
static/app.js:261
Method
set_thread_id
设置会话线程ID(保留兼容性) Args: thread_id: 线程ID
agent.py:171
Function
showChart
(chartConfig)
static/app.js:327
Function
showLoading
()
static/app.js:342
Function
showSQL
(sql, retryCount)
static/app.js:281
Function
showSources
(sources)
static/app.js:301
Method
sse
(type_: str, **kwargs)
agents/master_agent.py:634
Method
stream_query
流式查询,以 SSE 格式生成事件流 使用 LangGraph 的 graph.stream() 在每个节点完成后推送状态更新, 最终 LLM 汇总回答以流式方式逐字输出。 Yields: S
agents/master_agent.py:620
Function
user_info
获取用户信息
app.py:133
← previous
101–125 of 125, ranked by callers