feat(core): add downloadPath config for custom file download location#2411
Closed
SamarthAP wants to merge 1 commit into
Closed
feat(core): add downloadPath config for custom file download location#2411SamarthAP wants to merge 1 commit into
SamarthAP wants to merge 1 commit into
Conversation
Add `downloadPath` option to ComposioConfig to allow specifying a custom directory for downloaded files instead of the default `$HOME/.composio/temp_files/`. This is useful for isolated environments (sandboxed VMs, containers) where files need to be downloaded to a specific location. Changes: - Add `downloadPath` to ComposioConfig type - Update `saveFile()` to accept custom directory via options object - Update `downloadFileFromS3()` to accept and pass through downloadPath - Update FileToolModifier to store and use downloadPath - Update Tools class to pass downloadPath to FileToolModifier
|
@SamarthAP is attempting to deploy a commit to the Composio Team on Vercel. A member of the Team first needs to authorize it. |
Contributor
|
Thanks for the PR. Closing this for now, please start with an Issue before submiting a PR 🙌🏽 |
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
This PR adds a
downloadPathconfiguration option to the Composio SDK, allowing users to specify a custom directory for downloaded files instead of the default$HOME/.composio/temp_files/location.Use Case
When running Composio in isolated environments (VMs, containers, sandboxes), the default download path may not be accessible or appropriate. This feature allows specifying a custom path that works for the specific deployment environment.
Changes
downloadPathoption toComposioConfiginterfacefileUtils.tsto accept custom download paths viasaveFile()anddownloadFileFromS3()FileToolModifier.tsto pass through the custom download pathTools.tsto propagatedownloadPathto FileToolModifierUsage
Test Plan
downloadPathnot specifieddownloadPathis specified