![logo.png](assets/aidev.png) [![license](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat)](https://github.com/TencentBlueKing/bk-aidev-agent/blob/master/LICENSE.txt) [![Release Version](https://img.shields.io/badge/release-1.3.0-brightgreen.svg)](https://github.com/TencentBlueKing/bk-aidev-agent/releases) [![Coverage](https://codecov.io/gh/TencentBlueKing/bk-aidev-agent/branch/main/graph/badge.svg)](https://codecov.io/gh/TencentBlueKing/bk-aidev-agent) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://github.com/TencentBlueKing/bk-aidev-agent/pulls) [(δΈ­ζ–‡ζ–‡ζ‘£)](./readme.md) ## πŸš€ Product Overview BlueKing AIDev platform is dedicated to providing excellent intelligent development tool support for key stages of the development lifecycle, offering tool support for general AI business scenarios, and providing customized development extension capabilities to meet the needs of different business scenarios. ## ✨ Core Features ### Agent Development Kit | Feature | Description | |---------------------------------------|-------------| | πŸ€– [Agent Builder SDK](./src/agent) | Agent development framework based on LangChain, providing core capabilities such as tool invocation, memory management, streaming output, and supporting rapid construction of custom agent applications | | πŸ”Œ [BKPlugin](./src/plugins/aidev_bkplugin) | Agent plugin encapsulation for quick integration into the BlueKing ecosystem (such as SOPS, bkflow) | | 🐳 [AI BlueKing](./src/plugins/aidev_ai_blueking) | Official website agent plugin, providing complete web interaction experience including multi-turn dialogue, session management, content sharing, etc. | | πŸ’¬ [WeCom](./src/plugins/aidev_wxbot) | WeCom bot plugin, supporting message callback processing, automated responses, and RabbitMQ message queue integration | ### AI Dolphin Intelligent Component | Feature | Description | |------|------| | πŸ’¬ Intelligent Dialogue | Natural language interaction with streaming output | | πŸ“ Rich Text Rendering | Markdown message parsing and display | | πŸ”— Content Reference | Document fragment referencing and context association | | ⚑ Quick Actions | Preset commands and shortcut function support | ### Dolphin Documentation System | Feature | Description | |------|------| | πŸ“š User Guide | Detailed tutorials from beginner to advanced | | πŸ› οΈ API Reference | Complete interface and type definitions | | πŸ’‘ Example Center | Code examples for typical scenarios | | πŸ” Interactive Demo | Operational real-time demonstration environment | | πŸ“œ Version Management | Clear change history records | ## πŸ› οΈ Quick Start ### System Requirements - Python 3.11+ - uv 0.7.14+ - Node.js 20+ ### Agent Development 1. Confirm uv version ```bash $ uv --version uv 0.7.14 (e7f596711 2025-06-23) ``` 2. Initialize the project environment (virtual environment located in the project root directory `.venv`), this step will initialize the local `pre-commit` component ```shell $ make ``` 3. For more development instructions, please refer to: - [General Agent SDK Development Guide](./src/agent/readme.md) - [BlueKing Plugin Development Guide](./src/plugins/aidev_bkplugin/readme.md) - [WeCom Bot Development Guide](./src/plugins/aidev_wxbot/readme.md) ### Frontend Development #### Component Development ```bash cd src/frontend pnpm install pnpm dev:component # Development mode (AI Dolphin component) pnpm build:component # Production build (AI Dolphin component) ``` #### Vue2 Component Testing ```bash cd src/frontend pnpm install cd vue2-playground pnpm run serve # Start Vue2 environment testing ``` #### Documentation Development ```bash cd src/frontend pnpm install pnpm dev:docs # Development mode (http://localhost:5173) pnpm build:docs # Production build ``` ### Development Recommendations 1. Execute code check before submission: ```bash cd src/frontend/ai-blueking pnpm prettier ``` 2. Recommended development tools: - VS Code + Volar extension - ESLint + Prettier - Chrome Developer Tools ## πŸ“‚ Project Structure ``` bk-aidev-agent/ β”œβ”€β”€ src/ β”‚ β”œβ”€β”€ agent/ # Agent SDK Core β”‚ β”œβ”€β”€ frontend/ # Frontend project β”‚ β”‚ β”œβ”€β”€ ai-blueking/ # AI Dolphin page component β”‚ β”‚ β”‚ β”œβ”€β”€ src/ # Component source code β”‚ β”‚ β”‚ β”œβ”€β”€ playground/ # Local development environment β”‚ β”‚ β”‚ └── scripts/ # Build scripts β”‚ β”‚ β”œβ”€β”€ publish-template/ # Publish template project β”‚ β”‚ β”‚ └── src/ # Template application source code β”‚ β”‚ β”œβ”€β”€ vue2-playground/ # Vue2 environment testing project β”‚ β”‚ β”‚ β”œβ”€β”€ src/ # Vue2 test application source code β”‚ β”‚ β”‚ └── public/ # Static resources β”‚ β”‚ └── web/ # Documentation site β”‚ β”‚ β”œβ”€β”€ docs/ # Documentation content (api, guide, demos) β”‚ β”‚ └── server.cjs # Documentation server β”‚ └── plugins/ # Plugin collection β”‚ β”œβ”€β”€ aidev_ai_blueking/ # AI Dolphin page plugin: Provides static page entry and routing β”‚ β”œβ”€β”€ aidev_bkplugin/ # BlueKing agent plugin: Agent development & management backend with frontend, agent services, permissions β”‚ └── aidev_wxbot/ # WeCom bot plugin: Handles message callbacks, automated processing, RabbitMQ integration β”œβ”€β”€ template/ # Custom agent template β”‚ └── {{cookiecutter.project_name}}/ β”‚ β”œβ”€β”€ bk_plugin/ # Plugin core code β”‚ β”‚ β”œβ”€β”€ apis/ # API interfaces β”‚ β”‚ β”œβ”€β”€ extend/ # Extension modules (agent, config_manager) β”‚ β”‚ β”œβ”€β”€ openapi/ # BlueKing plugin app-level API routing (prefix /openapi/, supports app authentication) β”‚ β”‚ β”œβ”€β”€ patch/ # Patch modules β”‚ β”‚ └── versions/ # [Important] Agent configuration β”‚ └── bin/ # Management scripts β”œβ”€β”€ docs/ # Project design documents β”œβ”€β”€ assets/ # Project assets β”œβ”€β”€ dist/ # Build artifacts └── Makefile # Build commands ``` ## πŸ“š Related Resources ### Agent Development - [Agent FAQ](docs/agent/FAQ.md) - [Agent Extension Development Guide](docs/agent/EXTENSION_AGENT.md) ### AI Dolphin - [Dolphin Component API Documentation](src/frontend/web/docs/api/props.md) - [Dolphin Component Changelog](src/frontend/ai-blueking/CHANGELOG.md) - [Dolphin Component FAQ](src/frontend/web/docs/faq.md) ## πŸ’¬ Community Support - [BlueKing Forum](https://bk.tencent.com/s-mart/community) - [BlueKing DevOps Online Video Tutorials](https://bk.tencent.com/s-mart/video/) - [BlueKing Community Edition Exchange Group](https://jq.qq.com/?_wv=1027&k=5zk8F7G) ## 🌐 BlueKing Open Source Ecosystem | Project | Description | |------|------| | [BK-CMDB](https://github.com/Tencent/bk-cmdb) | Enterprise Configuration Management Platform | | [BK-CI](https://github.com/Tencent/bk-ci) | Continuous Integration and Delivery System | | [BK-BCS](https://github.com/Tencent/bk-bcs) | Container Management Service Platform | | [BK-PaaS](https://github.com/Tencent/bk-paas) | SaaS Application Development Platform | | [BK-SOPS](https://github.com/Tencent/bk-sops) | Standard Operation and Maintenance Scheduling System | | [BK-JOB](https://github.com/Tencent/bk-job) | Job Script Management System | ## 🀝 Contributing We welcome all forms of contributions! If you have good opinions or suggestions, welcome to give us Issues or Pull Requests to contribute to the BlueKing open source community. 1. Fork the project repository 2. Create a feature branch (`git checkout -b feat/your-feature`) 3. Commit your changes (`git commit -m 'feat: add some feature'`) 4. Push to the branch (`git push origin feat/your-feature`) 5. Create a Pull Request The [Tencent Open Source Incentive Plan](https://opensource.tencent.com/contribution) encourages developer participation and contribution. Looking forward to your joining. ## πŸ“œ License This project is open-sourced under the [MIT License](./LICENSE.txt)