@devries-cameron20 / composio-1 / commits / e0bde197c
Fork 0

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

Fix non-agentic tool execution (#2190)

Non-agentic providers now execute tools via a partial that skips version checks, aligning with agentic behavior while keeping direct calls strict. Core tools (python/composio/core/models/tools.py): Non-agentic providers: set_execute_tool_fn now passes functools.partial(self.execute, dangerously_skip_version_check=True) to skip version checks during provider-invoked executions, mirroring _wrap_execute_tool behavior for agentic providers.

Karan Vaidya committed Nov 22, 2025 at 21:14 UTC e0bde197c76228591aa58eeee8b4544fe14c04bf
1 file changed +9 -2
python/composio/core/models/tools.py
+9 -2
@@ -190,8 +190,15 @@ class Tools(Resource, t.Generic[TProvider]):
190 t.cast(NonAgenticProvider, self.provider).set_execute_tool_fn(
191 t.cast(
192 NoneAgenticProviderExecuteFn,
193 - self.execute,
194 - )
193 + functools.partial(
194 + self.execute,
195 + # Dangerously skip version check for non-agentic tool execution
196 + # via providers (e.g. OpenAI tool calling). This mirrors the
197 + # behavior used for agentic providers in `_wrap_execute_tool`
198 + # and keeps manual `tools.execute(...)` calls strict by default.
199 + dangerously_skip_version_check=True,
200 + ),
201 + ),
202 )
203 return t.cast(NonAgenticProvider, self.provider).wrap_tools(
204 tools=tools_list