P1: 完整参数验证 + 错误处理/日志 + 测试覆盖

- 为所有 action 实现参数验证函数
- 添加 GraphMemoryLogger 日志系统(info/warn/error/action)
- 敏感数据脱敏:attributes 只记录属性名,triplets 只记录数量
- 顶层 action 参数空值检查
- 参数验证错误返回 validation_error 类型
- 添加 11 个参数验证测试用例
- 全部 118 个测试通过
This commit is contained in:
root
2026-04-24 13:56:14 +08:00
parent 135041e8b0
commit a4a904f66b
5 changed files with 712 additions and 226 deletions

View File

@ -1,13 +1,15 @@
{
"id": "graph-memory",
"name": "Graph Memory",
"kind": "memory",
"description": "让 AI 拥有真正的长期记忆能力 - 基于图数据库的记忆系统",
"description": "让 AI 拥有真正的长期记忆能力 - 基于图数据库的记忆系统(作为增强工具,不替换memory-core)",
"skills": [
"bundled-skills/graph-memory",
"bundled-skills/graph-memory-persona",
"bundled-skills/graph-memory-task"
],
"contracts": {
"tools": ["graph_memory"]
},
"configSchema": {
"type": "object",
"additionalProperties": false,