Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
TypeScript agentic-aiagentsaiai-agentsaiagentsdeveloper-toolsfunction-callinggpt-4javascriptjsllmllmopsmcppythonremote-mcp-serverssetypescript
Fix non-agentic tool execution (#2190)
Karan Vaidyae0bde197c762
diff --git a/python/composio/core/models/tools.py b/python/composio/core/models/tools.pyindex ae56f1efc..9e0c9130e 100644--- a/python/composio/core/models/tools.py+++ b/python/composio/core/models/tools.py@@ -190,8 +190,15 @@ class Tools(Resource, t.Generic[TProvider]):t.cast(NonAgenticProvider, self.provider).set_execute_tool_fn(t.cast(NoneAgenticProviderExecuteFn,- self.execute,- )+ functools.partial(+ self.execute,+ # Dangerously skip version check for non-agentic tool execution+ # via providers (e.g. OpenAI tool calling). This mirrors the+ # behavior used for agentic providers in `_wrap_execute_tool`+ # and keeps manual `tools.execute(...)` calls strict by default.+ dangerously_skip_version_check=True,+ ),+ ),)return t.cast(NonAgenticProvider, self.provider).wrap_tools(tools=tools_list