@devries-cameron20 / composio-1 / commits / e0da978ee
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 python responses API

Sushmithamallesh committed Oct 1, 2025 at 10:44 UTC e0da978eeeff0cc036a0b9b3fa6a1d007817d68a
1 file changed +1 -4
python/composio/core/provider/_openai_responses.py
+1 -4
@@ -9,9 +9,6 @@ import typing as t
9
10 from openai.types.responses.response import Response
11 from openai.types.responses.response_output_item import ResponseFunctionToolCall
12 -from openai.types.chat.chat_completion_message_tool_call import (
13 - ChatCompletionMessageToolCall,
14 -)
12
13 from composio.core.provider import NonAgenticProvider
14 from composio.types import Modifiers, Tool, ToolExecutionResponse
@@ -42,7 +39,7 @@ class OpenAIResponsesProvider(
39 def execute_tool_call(
40 self,
41 user_id: str,
45 - tool_call: t.Union[ChatCompletionMessageToolCall, ResponseFunctionToolCall],
42 + tool_call: t.Union[ResponseFunctionToolCall],
43 modifiers: t.Optional[Modifiers] = None,
44 ) -> ToolExecutionResponse:
45 """Execute a tool call from the Responses API.