ComposioHQ has announced the release of version 0.12.0, introducing critical updates to its file handling functionalities.
auto_upload_download_files constructor option. Code that sets it must migrate to the new setting dangerously_allow_auto_upload_download_files.dangerously_allow_auto_upload_download_files: bool = False on Composio(...). When set to True, the SDK will collapse file-uploadable schemas to {"type": "string", "format": "path"} for the model and will stage local paths/URLs at execute time.file_upload_dirs: Sequence[str] | Literal[False] | None = None — this is a fail-closed allowlist for local upload paths. By default, it will stage uploads in [/.composio/temp] . If set to False, it will reject all local paths, while an explicit list will replace the default.file_download_dir: str | None — designates the directory used to stage downloads on file-downloadable results.The new opt-in system for file uploads and downloads enhances security and provides developers with greater control over their file management processes. These changes ensure that developers can fine-tune the file-handling capabilities of the SDK according to their specific needs.
Official Source: https://github.com/ComposioHQ/composio/releases/tag/py%400.12.0