diff --git a/apps/ai-game-creator-shell/src-tauri/src/ui_editor/commands/recognition.rs b/apps/ai-game-creator-shell/src-tauri/src/ui_editor/commands/recognition.rs index bc578daf8..6671e9c83 100644 --- a/apps/ai-game-creator-shell/src-tauri/src/ui_editor/commands/recognition.rs +++ b/apps/ai-game-creator-shell/src-tauri/src/ui_editor/commands/recognition.rs @@ -46,9 +46,10 @@ const SYSTEM_PROMPT: &str = r#" * 面向用户的字段如名称描述等请用中文 * 由于每个截图未必是完整的, 可能是局部的, 每棵树描述清楚每个截图上UI的层次结构即可 * 不同树的共用框架/层次/...请使用使用相同的名称描述. 不同状态/变体名称使用相同的前缀, 用后缀区别 -* 粒度要求: 尽可能细致, 最小单元举例: 进度条的底槽、填充和外框; slider的底槽, dragger等 -* 为每个节点直接返回完整 components。纯容器返回空数组;需要从设计图自动分离图片的 Image component 必须令 target_graphic 为 null。文本内容和组件类型完全由视觉判断,不调用或依赖 OCR。 +* 粒度要求: 以可交互,方便程序化控制的最小单位为准: 进度条的底槽、填充和外框; slider的底槽, dragger等. +* 为每个节点直接返回完整 components。纯容器返回空数组;目前我们只做识别, 不要求图片字体参数 * 每个节点当前最多返回一个 Image component 和一个 Text component。 +* 文字组件要求: 艺术字等作为图片组件, 其余正常文字要作为单独的节点识别. "#;