Commit Graph

2 Commits

Author SHA1 Message Date
gaoziman
68ba9b3204 feat(工具): 实现混合代码执行架构
codeExecution.ts:
- 实现 Pyodide + Piston 混合执行架构
- Python 图形代码使用 Pyodide 在浏览器端执行
- 其他代码使用 Piston API 在服务端执行
- 响应增加 images、engine、executionTime 字段

executor.ts:
- 集成代码分析工具判断执行方式
- 支持返回 requiresPyodide 标记浏览器端执行需求
- 传递图片数据到执行结果
2025-12-19 20:18:58 +08:00
gaoziman
ab9dd5aff8 feat(services): 添加 AI 工具服务实现
- codeExecution: 代码执行工具定义
- webFetch: 网页抓取工具定义
- webSearch: 网络搜索工具定义
- executor: 工具执行器统一处理
2025-12-18 11:31:10 +08:00