mirror of
https://github.com/TencentCloud/TencentDB-Agent-Memory
synced 2026-07-11 12:54:29 +00:00
111 lines
3.3 KiB
JSON
111 lines
3.3 KiB
JSON
{
|
||
"id": "memory-tencentdb-client",
|
||
"name": "Memory TencentDB (Client)",
|
||
"version": "0.1.0",
|
||
"description": "长期记忆插件(客户端接入版)— 通过远端 memory server 提供四层记忆能力",
|
||
"author": "TDAI Team",
|
||
"activation": {
|
||
"onStartup": true
|
||
},
|
||
"contracts": {
|
||
"tools": [
|
||
"tdai_memory_search",
|
||
"tdai_conversation_search",
|
||
"tdai_read_cos"
|
||
]
|
||
},
|
||
"configSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"server": {
|
||
"type": "object",
|
||
"description": "远端 memory server 连接配置",
|
||
"properties": {
|
||
"url": {
|
||
"type": "string",
|
||
"default": "http://127.0.0.1:8420",
|
||
"description": "Memory server URL"
|
||
},
|
||
"apiKey": {
|
||
"type": "string",
|
||
"default": "sk-xxxx",
|
||
"description": "API Key for server authentication"
|
||
},
|
||
"instanceId": {
|
||
"type": "string",
|
||
"default": "default",
|
||
"description": "Memory instance id(HTTP header x-tdai-service-id)"
|
||
},
|
||
"rejectUnauthorized": {
|
||
"type": "boolean",
|
||
"default": true,
|
||
"description": "是否校验 HTTPS 证书。默认 true;仅自签证书测试环境需要显式设为 false"
|
||
}
|
||
}
|
||
},
|
||
"recall": {
|
||
"type": "object",
|
||
"description": "记忆召回设置",
|
||
"properties": {
|
||
"maxResults": {
|
||
"type": "number",
|
||
"default": 5,
|
||
"description": "每轮最多注入多少条 L1 记忆"
|
||
},
|
||
"includePersona": {
|
||
"type": "boolean",
|
||
"default": true,
|
||
"description": "是否注入 L3 画像"
|
||
},
|
||
"includeSceneNav": {
|
||
"type": "boolean",
|
||
"default": true,
|
||
"description": "是否注入 L2 场景导航索引"
|
||
}
|
||
}
|
||
},
|
||
"capture": {
|
||
"type": "object",
|
||
"description": "对话捕获设置",
|
||
"properties": {
|
||
"enabled": {
|
||
"type": "boolean",
|
||
"default": true,
|
||
"description": "是否启用自动对话捕获 (L0)"
|
||
}
|
||
}
|
||
},
|
||
"offload": {
|
||
"type": "object",
|
||
"description": "Offload 压缩/摘要服务配置(可选,不配则复用 server 配置)",
|
||
"properties": {
|
||
"enabled": {
|
||
"type": "boolean",
|
||
"default": false,
|
||
"description": "是否启用 Offload 上下文压缩"
|
||
},
|
||
"serverUrl": {
|
||
"type": "string",
|
||
"description": "Offload server URL。不填则自动从 server.url 推导(替换端口为 9100)"
|
||
},
|
||
"compactionRatio": {
|
||
"type": "number",
|
||
"default": 0.5,
|
||
"description": "上下文占比超过此阈值时触发压缩(0-1)"
|
||
},
|
||
"ingestTimeoutMs": {
|
||
"type": "number",
|
||
"default": 5000,
|
||
"description": "Ingest 请求超时(毫秒)"
|
||
},
|
||
"compactionTimeoutMs": {
|
||
"type": "number",
|
||
"default": 30000,
|
||
"description": "Compaction 请求超时(毫秒)"
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|