feat: add tool calling toggle switch in chat input#7
Merged
Conversation
Backend (agent-service): - Add data-driven tool plugin system with PostgreSQL storage - Implement ReAct Agent integration using Cloudwego Eino - Support HTTP tools with various auth types (bearer/api_key/basic) - Add internal test tools (calculator, time) for testing - Create GenericToolExecutor for tool execution - Add tool management API endpoints Frontend: - Add tools management page with CRUD operations - Add CreateToolModal and EditToolModal for tool configuration - Update ChatView to display tool call events in chat - Add Navbar link for tools management - Add i18n translations for all supported languages Documentation: - Add TOOL_CALLING_SYSTEM.md design document Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add toggle button to enable/disable tool calling from chat interface - Move actions area inside input box border for better UI - Use shadcn Button component for ChatInputAction - Add i18n translation keys for tool toggle - Backend: respect enable_tools parameter in both Go and TypeScript services - When tools disabled, still use agent's system prompt but skip tool execution Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add GetToolDisplayName method to ToolService interface - Query tool display names from builtin tools and database - Update ChatHandler to use dynamic tool display names - Add getBuiltinToolDisplayName method to TypeScript ToolService Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
enable_toolsparameterKey Changes
ChatInputActioncomponent using shadcn/ui Button with toggle variantenableToolsstate that is passed to the APIactionsprop slot inside the input borderEnableToolsparameter handling in chat handlerenable_toolsparameter handling in chat route/serviceTest Plan
🤖 Generated with Claude Code