Ai
ComposioHQ Release Notes for Version 0.12.0

ComposioHQ Release Notes for Version 0.12.0

ComposioHQ Release Notes for Version 0.12.0

ComposioHQ has announced the release of version 0.12.0, introducing critical updates to its file handling functionalities.

What Changed

  • BREAKING CHANGE: Automatic file upload/download is now opt-in. The SDK will no longer auto-stage local paths or URLs for tools with file-uploadable inputs, nor will it auto-download file-downloadable results. Existing code that relied on this function must now opt back in using the new flag.
  • Removed: The legacy auto_upload_download_files constructor option. Code that sets it must migrate to the new setting dangerously_allow_auto_upload_download_files.
  • Added: 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.
  • Added: 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.
  • Added: file_download_dir: str | None — designates the directory used to stage downloads on file-downloadable results.

Why It Matters

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

What's your reaction?

0
AWESOME!
AWESOME!
0
LOVED
LOVED
0
NICE
NICE
0
LOL
LOL
0
FUNNY
FUNNY
0
EW!
EW!
0
OMG!
OMG!
0
FAIL!
FAIL!