Skip to content

Refactor tool selection logic and enhance regex mapping #10

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

Merged
merged 1 commit into from
Mar 11, 2025

Conversation

shahariaazam
Copy link
Member

This pull request includes updates to the ToolsToggle component and the toolIcons configuration to enhance the tool selection functionality. The most important changes involve the introduction of regex-based tool matching and the addition of new tool icon mappings.

Enhancements to tool selection functionality:

Updates to tool icon mappings:

  • src/components/ChatInputButton/toolIcons.tsx: Added new tool icon mappings for Docker, GitHub, Git, and filesystem management tools, and made regex a required field for all tool mappings.Updated the tool selection logic to use regex for more precise matching, replacing the simple pattern-based approach. Introduced required regex fields in toolIconMappings for consistent behavior across tool integrations. Expanded toolIcons.tsx with additional tool mappings and refined titles.

Updated the tool selection logic to use regex for more precise matching, replacing the simple pattern-based approach. Introduced required regex fields in `toolIconMappings` for consistent behavior across tool integrations. Expanded `toolIcons.tsx` with additional tool mappings and refined titles.
@shahariaazam
Copy link
Member Author

image

@shahariaazam shahariaazam linked an issue Mar 11, 2025 that may be closed by this pull request
@shahariaazam shahariaazam merged commit a45a875 into main Mar 11, 2025
3 checks passed
@shahariaazam shahariaazam deleted the add-more-tools-icon branch March 11, 2025 00:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add tools specific icon in the chat input area
1 participant