-
Notifications
You must be signed in to change notification settings - Fork 300
✨ Add tool category feature. #1362 #1363
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
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.
Pull Request Overview
This PR adds a tool category feature to enable secondary grouping of tools within the tool pool interface. The implementation includes backend database schema updates, Python tool categorization, and frontend UI enhancements for better tool organization.
Key changes:
- Introduces a
ToolCategory
enum with predefined categories (search, file, email, terminal) - Updates all local tools to include appropriate category assignments
- Enhances the frontend tool pool UI with category-based filtering and navigation
Reviewed Changes
Copilot reviewed 27 out of 27 changed files in this pull request and generated 2 comments.
Show a summary per file
File | Description |
---|---|
sdk/nexent/core/utils/constants.py | Defines new ToolCategory enum with standard tool categories |
sdk/nexent/core/tools/*.py | Updates all tool classes to include category assignments |
frontend/types/agentConfig.ts | Adds category field to Tool interface and ToolSubGroup type |
frontend/services/agentConfigService.ts | Updates API service to handle category field |
frontend/app/[locale]/setup/agents/components/tool/ToolPool.tsx | Implements category-based UI with sidebar navigation |
backend/database/db_models.py | Adds category column to ToolInfo database model |
backend/services/tool_configuration_service.py | Updates tool processing to handle category field |
docker/sql/1013_add_tool_group_to_ag_tool_info.sql | Database migration script for category column |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
c658be3
to
7cd2fa8
Compare
二级菜单建议采用统一组件风格,不要产生不同风格 |
frontend/app/[locale]/setup/agents/components/tool/ToolConfigModal.tsx
Outdated
Show resolved
Hide resolved
e29fb4e
to
9e178f8
Compare
9e178f8
to
45c095a
Compare
45c095a
to
616553e
Compare
|
已修改 |
✨ Add tool category feature. #1362