Skip to content

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

Sushmithamalleshbd75f823e5e8
diff --git a/python/composio/core/provider/_openai_responses.py b/python/composio/core/provider/_openai_responses.py
index 7b2918276..732e0fe40 100644
--- a/python/composio/core/provider/_openai_responses.py
+++ b/python/composio/core/provider/_openai_responses.py
@@ -49,12 +49,8 @@ class OpenAIResponsesProvider(
:param modifiers: Optional modifiers for tool execution.
:return: Object containing output data from the tool call.
"""
- if isinstance(tool_call, ChatCompletionMessageToolCall):
- slug = tool_call.function.name
- arguments = json.loads(tool_call.function.arguments)
- else: # ResponseFunctionToolCall
- slug = tool_call.name
- arguments = json.loads(tool_call.arguments)
+ slug = tool_call.name
+ arguments = json.loads(tool_call.arguments)
return self.execute_tool(
slug=slug,