{"id":48607424,"url":"https://github.com/dootask/ai","last_synced_at":"2026-04-09T00:11:52.919Z","repository":{"id":306064362,"uuid":"1024188538","full_name":"dootask/ai","owner":"dootask","description":null,"archived":false,"fork":false,"pushed_at":"2025-11-19T09:13:32.000Z","size":1691,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-11-19T11:10:17.980Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dootask.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-07-22T10:08:31.000Z","updated_at":"2025-11-19T09:10:39.000Z","dependencies_parsed_at":"2025-07-23T13:28:30.130Z","dependency_job_id":"d8e0aaca-948a-4e48-bed9-c3a958222db2","html_url":"https://github.com/dootask/ai","commit_stats":null,"previous_names":["dootask/ai"],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/dootask/ai","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dootask%2Fai","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dootask%2Fai/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dootask%2Fai/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dootask%2Fai/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dootask","download_url":"https://codeload.github.com/dootask/ai/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dootask%2Fai/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31579124,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"ssl_error","status_checked_at":"2026-04-08T14:31:17.202Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-04-09T00:11:52.136Z","updated_at":"2026-04-09T00:11:52.913Z","avatar_url":"https://github.com/dootask.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# 🤖 DooTask AI 智能体插件\n\n基于 **DooTask** 主程序的企业级 AI 智能体插件系统\n\n[![Next.js](https://img.shields.io/badge/Next.js-15-black)](https://nextjs.org/)\n[![Go](https://img.shields.io/badge/Go-1.21+-00ADD8)](https://golang.org/)\n[![Python](https://img.shields.io/badge/Python-3.11+-3776AB)](https://python.org/)\n[![LangChain](https://img.shields.io/badge/LangChain-Latest-green)](https://langchain.com/)\n[![TypeScript](https://img.shields.io/badge/TypeScript-5-blue)](https://typescriptlang.org/)\n\n\n## ✨ 核心功能\n\n### 🤖 **多智能体管理**\n- **角色定制**：可视化配置 AI 角色、专业领域和能力范围\n- **提示词工程**：高级提示词编辑器，支持模板和变量\n- **智能体市场**：丰富的预设智能体模板，快速部署\n\n### 💬 **实时对话系统**\n- **流式回复**：SSE 实时更新，体验流畅自然\n- **群聊支持**：完美支持群组对话，智能理解上下文\n- **图片识别**：支持图片内容识别和理解\n- **思考过程**：显示 AI 的思考过程，支持思考型模型（如 DeepSeek）\n\n### 🛠️ **MCP 工具集成**\n- **内部工具**：深度集成 DooTask 功能（聊天记录、项目管理、任务分配）\n- **外部工具**：支持天气查询、网页搜索、邮件发送等第三方服务\n- **自动关联**：定时检测 MCP 服务，自动关联到智能体\n- **权限控制**：精细化控制不同智能体的工具访问权限\n\n### 📚 **知识库系统**\n- **多格式支持**：PDF、Word、Excel、Markdown、TXT 等文档格式\n- **向量化检索**：基于 AI Embedding 的语义搜索，精准匹配\n- **文档管理**：完整的文档上传、解析、版本管理机制\n- **智能分块**：自动优化文档分块策略，提升检索效果\n\n### 📊 **数据统计与监控**\n- **Token 统计**：完整的 AI 使用统计和成本监控\n- **对话监控**：实时监控对话状态和性能指标\n- **使用分析**：智能体使用情况统计和热门推荐\n\n### 🏢 **企业级特性**\n- **权限管理**：基于角色的精细访问控制\n- **审计日志**：完整的操作和对话审计追踪\n- **多租户支持**：支持多个企业独立使用\n\n## 📖 使用指南\n\n### 创建第一个智能体\n\n1. 访问 **智能体管理** 页面\n2. 点击 **创建智能体** 按钮\n3. 配置智能体信息：\n   - **名称和描述**：定义智能体的基本信息\n   - **角色提示词**：设置 AI 的角色和行为模式\n   - **模型选择**：选择 GPT-4、Claude、DeepSeek 等模型\n   - **工具权限**：选择智能体可以使用的 MCP 工具\n   - **知识库绑定**：关联相关的知识库\n4. 保存并启用智能体\n\n### 集成 DooTask 机器人\n\n1. 在 DooTask 中创建机器人\n2. 配置机器人的 Webhook 地址（如：`http://your-domain/api/webhook/message`）\n3. 在插件中绑定机器人 ID 和智能体\n4. 开始在 DooTask 中与 AI 智能体对话\n\n### 管理知识库\n\n1. 访问 **知识库管理** 页面\n2. 创建知识库并配置 Embedding 模型\n3. 上传文档（支持 PDF、Word、Markdown 等格式）\n4. 系统自动进行文档解析和向量化\n5. 将知识库绑定到相应的智能体\n\n### 配置 MCP 工具\n\n1. 访问 **MCP 工具管理** 页面\n2. 添加 MCP 服务地址和配置\n3. 系统会自动检测可用的工具\n4. 在创建智能体时选择需要的工具\n\n## 🎯 应用场景\n\n### 💼 **企业客服助手**\n- 基于知识库快速回答客户问题\n- 自动处理常见咨询，提升服务效率\n- 支持多语言和上下文理解\n\n### 📋 **项目管理助手**\n- 智能任务分配和建议\n- 项目进度分析和风险评估\n- 自动生成项目报告和总结\n\n### 📚 **知识管理**\n- 企业文档智能检索\n- 知识图谱构建和管理\n- 团队知识共享和协作\n\n### 🤝 **团队协作**\n- 群聊智能助手\n- 会议记录和总结\n- 文档协作和审阅\n\n## 🔧 技术架构\n\n- **前端**：Next.js 15 + TypeScript + shadcn/ui\n- **后端**：Go（主服务）+ Python（AI 引擎）\n- **数据库**：PostgreSQL + pgvector（向量搜索）\n- **缓存**：Redis\n- **AI 框架**：LangChain + MCP 协议\n\n\n### 核心技术栈\n\n#### 前端技术\n\n- **[Next.js 15](https://nextjs.org/)** - React 全栈框架\n- **[shadcn/ui](https://ui.shadcn.com/)** - 现代化组件库\n- **[Tailwind CSS](https://tailwindcss.com/)** - 原子化 CSS 框架\n- **[TypeScript](https://typescriptlang.org/)** - 类型安全的 JavaScript\n\n#### 后端技术\n\n- **[Go](https://golang.org/)** - 高性能 API 网关服务\n- **[Python](https://python.org/)** - AI 引擎和 LangChain 服务\n- **[LangChain](https://langchain.com/)** - AI 应用开发框架\n- **[PostgreSQL](https://postgresql.org/)** - 主数据库（支持向量搜索）\n- **[Redis](https://redis.io/)** - 缓存和会话存储\n\n## 🚀 快速开始\n\n### 环境要求\n\n- Node.js 22+\n- Go 1.21+\n- Python 3.11+\n- Docker \u0026 Docker Compose\n\n### 一键启动\n\n```bash\n# 克隆项目\ngit clone https://github.com/dootask/ai.git\ncd ai\n\n# 快速启动（推荐）\nnpm install\nnpm run dev:all\n```\n\n### 访问应用\n\n- **前端界面**: http://localhost:3000\n- **API 文档**: http://localhost:8080/swagger (开发中)\n- **数据库**: PostgreSQL (localhost:5432)\n\n\n## 🛠️ 开发指南\n\n### 项目结构\n\n```\ndootask-ai/                 # Next.js 前端项目根目录\n├── app/                    # Next.js App Router 页面\n├── components/             # 共享 React 组件\n├── lib/                   # 前端工具库和 API 接口\n├── public/                # 静态资源文件\n├── backend/               # 后端服务\n│   ├── go-service/        # Go 主服务\n│   └── python-ai/         # Python AI 服务\n├── mcp-tools/             # MCP 工具集\n├── docker/                # Docker 配置\n├── scripts/               # 部署和初始化脚本\n├── docs/                  # 项目文档\n├── package.json           # Node.js 依赖配置\n└── next.config.ts         # Next.js 配置文件\n```\n\n### 开发命令\n\n```bash\n# 安装依赖\nnpm install\n\n# 启动所有开发服务（前端 + Go后端 + Python AI）\nnpm run dev:all\n\n# 停止所有开发服务\nnpm run stop:all\n```\n\n### 扩展开发\n\n#### 添加新的 MCP 工具\n\n1. 在 `mcp-tools/` 目录创建工具定义\n2. 实现工具的接口和逻辑\n3. 在智能体配置中启用该工具\n\n#### 自定义智能体类型\n\n1. 在 `backend/python-ai/agents/` 目录添加智能体类\n2. 继承 `BaseAgent` 并实现特定逻辑\n3. 在前端添加对应的配置界面\n\n## 📚 文档链接\n\n- [项目规划](./docs/PROJECT_PLAN.md) - 完整的项目规划和发展路线图\n- [技术架构](./docs/ARCHITECTURE.md) - 详细的技术架构设计文档\n- [开发指南](./docs/DEVELOPMENT.md) - 开发环境搭建和编码规范\n- [部署指南](./docs/DEPLOYMENT.md) - 生产环境部署说明 (开发中)\n\n## 🤝 贡献指南\n\n我们欢迎所有形式的贡献！\n\n### 如何贡献\n\n1. Fork 本项目\n2. 创建特性分支 (`git checkout -b feature/AmazingFeature`)\n3. 提交更改 (`git commit -m 'Add some AmazingFeature'`)\n4. 推送到分支 (`git push origin feature/AmazingFeature`)\n5. 创建 Pull Request\n\n### 开发规范\n\n- 遵循 [代码规范](./docs/DEVELOPMENT.md#代码规范)\n- 编写测试用例\n- 更新相关文档\n- 确保 CI 通过\n\n## 📄 开源协议\n\n本项目基于 [MIT 协议](./LICENSE) 开源。\n\n## 🙏 致谢\n\n感谢以下开源项目的贡献：\n\n- [Next.js](https://nextjs.org/) - React 全栈框架\n- [LangChain](https://langchain.com/) - AI 应用开发框架\n- [shadcn/ui](https://ui.shadcn.com/) - 现代化 UI 组件库\n- [OpenAI](https://openai.com/) - 强大的 AI 模型支持\n\n## 📞 联系我们\n\n- 项目主页：[https://github.com/dootask/ai](https://github.com/dootask/ai)\n- 问题反馈：[Issues](https://github.com/dootask/ai/issues)\n- 功能建议：[Discussions](https://github.com/dootask/ai/discussions)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdootask%2Fai","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdootask%2Fai","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdootask%2Fai/lists"}