Skip to content

Add dynamic tool handling and quick toggle functionality #9

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 10, 2025

Conversation

shahariaazam
Copy link
Member

This pull request includes several changes to add a feature for loading and displaying available tools in the chat interface. The most important changes include importing the ToolService, updating state and effect hooks to fetch tools, and modifying components to handle and display the available tools.

Feature additions:

Component updates:

Utility additions:

Introduced `availableTools` for dynamic tool management and enhanced `ToolsToggle` with quick toggle buttons for grouped tool actions. Refactored tool icons into a separate module and integrated tool fetching via `ToolService` in `ChatContainer`.
@shahariaazam
Copy link
Member Author

Now it looks like this:

image

Also, we can add more tools mapping in toolIconMappings

@shahariaazam shahariaazam merged commit fe25a7c into main Mar 10, 2025
3 checks passed
@shahariaazam shahariaazam deleted the issue-8 branch March 10, 2025 23:53
@shahariaazam shahariaazam linked an issue Mar 10, 2025 that may be closed by this pull request
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