- memory_store: org_id/user_id归属列、可见性规则(visible_to)、key掺租户维度、 分区淘汰(不碰种子/他租户)、写后失效缓存(多worker一致) - agent_config: GENERAL_TOOLS 新增 memory/manage_skill/process/subagent 四工具; run_command 加 background/timeout; ToolDefinition 加显式 required 字段 (可选参数不再被 native FC 标成 required) - tool_registry: to_openai_schema 尊重显式 required - models: pipeline_user_memory 加 org_id/user_id(配套迁移 m0023)
119 lines
2.1 KiB
JSON
119 lines
2.1 KiB
JSON
{
|
|
"summary": [
|
|
{
|
|
"name": "pipeline_user_memory",
|
|
"title": "用户记忆",
|
|
"primary": [
|
|
"id"
|
|
],
|
|
"catelog": "entity"
|
|
}
|
|
],
|
|
"fields": [
|
|
{
|
|
"name": "id",
|
|
"title": "主键ID",
|
|
"type": "str",
|
|
"length": 32,
|
|
"nullable": "no"
|
|
},
|
|
{
|
|
"name": "memory_key",
|
|
"title": "记忆键",
|
|
"type": "str",
|
|
"length": 64,
|
|
"nullable": "no"
|
|
},
|
|
{
|
|
"name": "content",
|
|
"title": "记忆内容",
|
|
"type": "text",
|
|
"nullable": "no"
|
|
},
|
|
{
|
|
"name": "category",
|
|
"title": "分类",
|
|
"type": "str",
|
|
"length": 32,
|
|
"nullable": "no",
|
|
"default": "memory"
|
|
},
|
|
{
|
|
"name": "scope",
|
|
"title": "作用域",
|
|
"type": "str",
|
|
"length": 32,
|
|
"nullable": "no",
|
|
"default": "global"
|
|
},
|
|
{
|
|
"name": "scope_id",
|
|
"title": "作用域ID",
|
|
"type": "str",
|
|
"length": 64,
|
|
"nullable": "no",
|
|
"default": ""
|
|
},
|
|
{
|
|
"name": "org_id",
|
|
"title": "归属机构ID(空=平台种子)",
|
|
"type": "str",
|
|
"length": 32,
|
|
"nullable": "no",
|
|
"default": ""
|
|
},
|
|
{
|
|
"name": "user_id",
|
|
"title": "归属用户ID(user域必填)",
|
|
"type": "str",
|
|
"length": 32,
|
|
"nullable": "no",
|
|
"default": ""
|
|
},
|
|
{
|
|
"name": "priority",
|
|
"title": "优先级",
|
|
"type": "int",
|
|
"nullable": "no",
|
|
"default": "0"
|
|
},
|
|
{
|
|
"name": "access_count",
|
|
"title": "访问次数",
|
|
"type": "int",
|
|
"nullable": "no",
|
|
"default": "0"
|
|
},
|
|
{
|
|
"name": "created_at",
|
|
"title": "创建时间",
|
|
"type": "timestamp",
|
|
"nullable": "no"
|
|
},
|
|
{
|
|
"name": "updated_at",
|
|
"title": "更新时间",
|
|
"type": "timestamp",
|
|
"nullable": "no"
|
|
}
|
|
],
|
|
"indexes": [
|
|
{
|
|
"name": "uk_memory",
|
|
"idxtype": "unique",
|
|
"idxfields": [
|
|
"memory_key",
|
|
"category"
|
|
]
|
|
},
|
|
{
|
|
"name": "idx_category_priority",
|
|
"idxtype": "index",
|
|
"idxfields": [
|
|
"category",
|
|
"priority"
|
|
]
|
|
}
|
|
]
|
|
}
|