change
This commit is contained in:
@@ -4,10 +4,11 @@ LLM 只需输出离散决策(type, radius, width …),
|
||||
求解器负责生成精确的实体和轮廓边坐标。
|
||||
|
||||
架构:注册表模式 —— 每个轮廓类型对应一个生成器函数,
|
||||
按 "type" 字符串索引。新增形状只需 3 步:
|
||||
按 "type" 字符串索引。新增形状或调整既有 profile 参数契约时:
|
||||
1. 写 def solver_xxx(profile, meta) -> (entities, contour)
|
||||
2. 注册: SHAPE_GENERATORS["xxx"] = solver_xxx
|
||||
3. 在 convert 脚本中输出对应的 profile
|
||||
4. 同步更新 profile_schema.json(Agent 与后端校验器的公开契约)
|
||||
|
||||
支持的 profile 类型:
|
||||
- circle: 单个圆
|
||||
|
||||
Reference in New Issue
Block a user