-
Notifications
You must be signed in to change notification settings - Fork 61
feat(ai-plugin): integrate AI assistant with gRPC architecture and MVP implementation #815
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(ai-plugin): integrate AI assistant with gRPC architecture and MVP implementation #815
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
为什么会生成github.com/linuxsuren/api-testing这个目录呢?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
grpc client 不需要手写的,是可以生成的
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
我看你实现的是一个独立的页面,请参考https://github.com/LinuxSuRen/atest-ext-store-database 这个项目把前端部分迁移到插件里
…ecture - Added AI plugin configuration in extension.yaml with correct naming (atest-ext-ai) - Implemented gRPC client wrapper (pkg/server/ai_client.go) for AI service communication - Created AI service interface with graceful degradation to template responses - Integrated AI assistant UI component in frontend with chat interface - Added AI assistant entry point in StoreManager for seamless user access - Fixed Vue compilation errors in AIAssistant.vue component - Implemented natural language to SQL/test case conversion interface - Added comprehensive error handling and fallback mechanisms Task: AI Plugin Integration MVP Phase: MVP
1b2a037 to
ec8961d
Compare
…rchitecture - Remove AIAssistant.vue from main project frontend - Clean up AI assistant UI integration from StoreManager.vue - Maintain backend AI client infrastructure (ai_client.go, ai_manager.go) - Preserve gRPC client implementation for AI plugin communication - Update project architecture to separate frontend/backend concerns Breaking Changes: - Frontend AI assistant interface removed from main project - AI plugin frontend code should be developed independently in plugin repository Technical Details: - Deleted: console/atest-ui/src/views/AIAssistant.vue - Modified: Removed AI assistant entry points from StoreManager.vue - Preserved: pkg/server/ai_client.go (gRPC client implementation) - Preserved: pkg/server/ai_manager.go (AI service management) - Maintained: Backend API architecture for AI plugin integration Architecture Impact: - Frontend code separation: AI plugin UI should be in plugin repo's ui/ directory - Backend integration maintained: gRPC communication layer preserved - Resource embedding: AI plugin will serve frontend assets via gRPC endpoints - Build process: Frontend assets will be embedded in plugin binary - Refactor the AI client and manager code, replacing the custom AIRequest and AIResponse types with those generated by protobuf. Modified request processing logic to accommodate the new type structure and updated metadata field types. Also fixed formatting issues in the code Next Steps: - AI plugin repository should implement independent frontend in ui/ directory - Frontend assets will be served via GetPageOfJS() and GetPageOfCSS() gRPC methods - Main project will consume AI frontend through plugin's resource endpoints fix(protobuf): Resolve Git conflicts in .pb.go files by regenerating from .proto sources feat(tools): Add protoc-gen-go and protoc-gen-go-grpc tool dependencies - Added go.mod, go.sum and pin.go files for protoc-gen-go tool - Added go.mod, go.sum and pin.go files for protoc-gen-go-grpc tool - These tools are required for generating protobuf Go code - Following the same pattern as other tools like golangci-lint Task: Tool dependency management Phase: Infrastructure
ec8961d to
f004b33
Compare
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
前端的代码需要迁移出去
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tools 下的这些文件是做什么用的呢?
|
CI构建错误,你也需要关注的 |
|
This PR submission record is too cluttered and not conducive to subsequent maintenance and tracking. Refreshed and available, traceable production-grade code is submitted within 1-2 days. |



What type of PR is this?
/kind feature
This PR introduces a new AI assistant plugin integration with MVP implementation.
What this PR does / why we need it :
This PR integrates an AI assistant plugin into the API Testing project, enabling natural language to SQL/test case conversion through a chat interface. The implementation follows the existing plugin architecture pattern and provides:
Key Features:
Technical Implementation:
Testing:
Which issue(s) this PR fixes : /
Additional Notes: