fix: 补 scheam 漏项:add_aec_well 缺 sump(集水坑)、update_aec_well 缺 angle_deg

上一版加集水坑时,代码里的 shape 分派和 mcp_config.json 都加了 sump,
但 cpp 里 private_input_schema 的 enum 只列了 4 种、description 也没提集水坑,
LLM 读 schema 时看不到这条路;update_aec_well 同理少了 angle_deg(放坡角)。
代码本身支持(ApplyWell 读 angle_deg),只是对外没声明。补上后 tools/list 仍为 53。
This commit is contained in:
company-desktop committed 2026-10-30 22:40:30 +08:00
1 parent d2e44a6770
commit 15fce7516f
1 file changed
+8 -5
@@ -2409,9 +2409,11 @@ public:
std::string private_description() const override
{
return "在池底板上加井(对应菜单命令 方井 PL_JFZJ / 圆井 PL_JYZJ / 方圆井 PL_JFYJ / 异形井 PL_JYXJ):"
"给母体板 handle、井位与尺寸,内部先开洞再叠井体(AecDbX3dPartEntity),自动挂到板下(LAY_HOLE)。"
"shape=rect 方井 / circle 圆井 / rect_circle 方圆井 / polygon 异形井。尺寸用图纸单位。";
return "在池底板上加井(对应菜单命令 方井 PL_JFZJ / 圆井 PL_JYZJ / 方圆井 PL_JFYJ / "
"异形井 PL_JYXJ / 集水坑 PL_JJSK):给母体板 handle、井位与尺寸,内部先开洞再叠井体"
"(AecDbX3dPartEntity),自动挂到板下(LAY_HOLE)。"
"shape=rect 方井 / circle 圆井 / rect_circle 方圆井 / polygon 异形井 / sump 集水坑。"
"集水坑在方井基础上多一个放坡角 angle_deg(缺省 22.5°,0~75)与板厚 slab_thickness。尺寸用图纸单位。";
}
nlohmann::json private_input_schema() const override
@@ -2420,8 +2422,8 @@ public:
"type": "object",
"properties": {
"host": { "type": "string", "description": "母体板(池底板)的 handle" },
"shape": { "type": "string", "enum": [ "rect", "circle", "rect_circle", "polygon" ],
"description": "rect=方井(缺省,上口矩形/下口矩形)/ circle=圆井 / rect_circle=方圆井(上口矩形、下口圆)/ polygon=异形井(上下口点串)" },
"shape": { "type": "string", "enum": [ "rect", "circle", "rect_circle", "polygon", "sump" ],
"description": "rect=方井(缺省,上口矩形/下口矩形)/ circle=圆井 / rect_circle=方圆井(上口矩形、下口圆)/ polygon=异形井(上下口点串)/ sump=集水坑(矩形井 + 放坡角)" },
"position": { "type": "array", "items": { "type": "number" }, "description": "井位 [x,y]" },
"length": { "type": "number", "description": "上口长(X 向,rect / rect_circle)" },
"width": { "type": "number", "description": "上口宽(Y 向,rect / rect_circle)" },
@@ -2573,6 +2575,7 @@ public:
"bulges": { "type": "array", "items": { "type": "number" } },
"height": { "type": "number" }, "wall_thickness": { "type": "number" },
"slab_thickness": { "type": "number" },
"angle_deg": { "type": "number", "description": "集水坑放坡角(度,0~75)" },
"offset_x": { "type": "number" }, "offset_y": { "type": "number" },
"no": { "type": "string" }, "remark": { "type": "string" }, "purpose": { "type": "string" }
},