Files
uipath-explainator/Project Designs.md
2026-04-02 09:59:50 +08:00

23 lines
884 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
我需要设计一个自动化分析 UiPath 项目的脚本。具体需求如下:
1. 用户将会指定一个项目目录。
2. 从该项目开始,扫描 `main.xaml` 文件。
3. 递归提取出它所有的 Invoke Workflow 和 Invoke VBA
4. 然后将他们复制到工作区
5. 先把所有涉及到的代码全部删掉 Comment Out 的代码块,注意,是 Comment Out XAML 里是 `<ui:CommentOut>`
6. 再次递归提取出所有的 Invoke Workflow 和 Invoke VBA
7. 删除那些没用到的 Invoke Workflow 和 Invoke VBA
8. 将代码逐个发送给 Gemini,让 Gemini 分析这个代码在:
1. 做什么?
2. 怎么做?
3. 涉及数据
4. 范例
9. 按照原本的目录,输出到工作区中
关于 Gemini, 我可以调用官方库,并且允许配置(在 .env 文件)
- API KEY
- BASE URL
- MODEL
代码保持精简干净,可读性要高