feat(tools): add readFile tool for local file access#37
Open
herrryan wants to merge 6 commits intoTraderAlice:devfrom
Open
feat(tools): add readFile tool for local file access#37herrryan wants to merge 6 commits intoTraderAlice:devfrom
herrryan wants to merge 6 commits intoTraderAlice:devfrom
Conversation
refactor: ConnectorCenter, persistent media store, SSE stability
Adds the necessary frontend components, configuration, and backend logic to support the Discord connector. - Defines the discord connector schema in the core configuration. - Implements the plugin loading and reconnect logic for the Discord connector in the main application entry point. - Adds 'discord.js' and its related dependencies to the project. - Updates the frontend API types to include the Discord connector configuration. - Adds the Discord option to the connector selection component in the UI. - Implements the UI section for displaying and configuring the Discord bot token and channel ID on the Connectors page.
Fixes a race condition where the auto-save functionality for model/provider settings could overwrite newly saved API keys.
The 'Save Keys' handler now uses the most up-to-date form state ('modelData') when building the configuration object, ensuring that manual key updates are not lost.
Adds message chunking to the 'messageCreate' handler in the Discord plugin. This prevents crashes when the AI generates a response longer than Discord's 2000-character limit by splitting the message into multiple, smaller messages.
Adds a new 'readFile' tool to the thinking-kit. This provides the AI with a secure, dedicated tool to read the contents of local files, addressing a previous limitation where it had to rely on other, less suitable tools.
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.
Adds a new 'readFile' tool to the thinking-kit.
This provides the AI with a secure, dedicated tool to read the contents of local files, addressing a previous limitation where it had to rely on other, less suitable tools.