chore: add RAG toolkit to frontend tool setting part

This commit is contained in:
Wendong-Fan 2026-02-05 22:34:54 +08:00
parent 55e395be41
commit 98ac727fd0
3 changed files with 10 additions and 2 deletions

View file

@ -164,6 +164,10 @@ class ConfigInfo:
"env_vars": [],
"toolkit": "pptx_toolkit",
},
ConfigGroup.RAG.value: {
"env_vars": ["OPENAI_API_KEY"],
"toolkit": "rag_toolkit",
},
ConfigGroup.REDDIT.value: {
"env_vars": [
"REDDIT_CLIENT_ID",

View file

@ -40,6 +40,7 @@ class ConfigGroup(str, Enum):
IMAGE_ANALYSIS = "Image Analysis"
MCP_SEARCH = "MCP Search"
PPTX = "PPTX"
RAG = "RAG"
TERMINAL = "Terminal"
@classmethod

View file

@ -103,8 +103,11 @@ export default function IntegrationList({
console.log(item);
const searchKey = isSelectMode ? 'EXA Search' : 'Search';
if (item.key === searchKey || item.key === 'Lark') {
const mcp = createMcpFromItem(item, item.key === 'Lark' ? 15 : 13);
if (item.key === searchKey || item.key === 'Lark' || item.key === 'RAG') {
const mcp = createMcpFromItem(
item,
item.key === 'Lark' ? 15 : item.key === 'RAG' ? 16 : 13
);
if (isSelectMode) {
onShowEnvConfig?.(mcp);
} else {