Skip to content

Conversation

@jkomyno
Copy link
Collaborator

@jkomyno jkomyno commented Jan 7, 2026

This PR:

  • closes PLEN-1030
  • adds auto_upload_download_files: bool to Python's Composio() constructor.

@vercel
Copy link

vercel bot commented Jan 7, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
fumadocs Error Error Jan 7, 2026 6:26am

@jkomyno jkomyno changed the title core(py): add auto_upload_download_files boolean flag to Composio() core(py): add auto_upload_download_files boolean flag to Composio() Jan 7, 2026
@jkomyno jkomyno marked this pull request as ready for review January 7, 2026 06:02
@jkomyno jkomyno requested a review from haxzie as a code owner January 7, 2026 06:02
# Process file uploadable schemas
for tool in router_tools:
tool.input_parameters = (
tools_model._file_helper.process_file_uploadable_schema(
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ToolRouter ignores auto_upload_download_files setting from SDK

Medium Severity

The ToolRouter always calls process_file_uploadable_schema unconditionally, ignoring the auto_upload_download_files setting. When ToolRouter is initialized in sdk.py, the auto_upload_download_files parameter isn't passed to it. Inside _create_tools_fn, a new ToolsModel is created without this parameter, defaulting to True. Meanwhile, tools.py correctly gates this processing with if self._auto_upload_download_files. This causes inconsistent behavior: users setting auto_upload_download_files=False on Composio() will find that composio.tools respects the setting but composio.tool_router does not.

Additional Locations (1)

Fix in Cursor Fix in Web

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants