composio icon indicating copy to clipboard operation
composio copied to clipboard

More flexible providers

Open Eddydpyl opened this issue 2 months ago • 1 comments

With this, you can now specify what connected_account_id to use in function calls made from providers. For example, if a user has multiple connected accounts for Gmail, it's now possible to choose which one to use for the tool calls.

Eddydpyl avatar Oct 07 '25 09:10 Eddydpyl

Allow provider execute functions to accept and forward arbitrary keyword arguments for more flexible providers in composio.core.models.tools.Tools._wrap_execute_tool and provider execute protocols

Update the execute wrapper to forward **kwargs with per-call overrides for modifiers and user_id in tools.py, and expand provider execute protocols to include **kwargs in agentic.py and none_agentic.py.

📍Where to Start

Start with Tools._wrap_execute_tool in tools.py to see the new wrapper and kwargs handling, then review the updated execute protocol signatures in agentic.py and none_agentic.py.


Macroscope summarized 32c06e3.

macroscopeapp[bot] avatar Nov 06 '25 12:11 macroscopeapp[bot]