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.

format fix

Sushmithamallesh90d793eba8fb
diff --git a/python/composio/core/provider/_openai_responses.py b/python/composio/core/provider/_openai_responses.py
index dd9309d74..c06640f9a 100644
--- a/python/composio/core/provider/_openai_responses.py
+++ b/python/composio/core/provider/_openai_responses.py
@@ -24,12 +24,10 @@ ResponsesToolCollection = t.List[ResponsesTool]
class OpenAIResponsesProvider(
NonAgenticProvider[ResponsesTool, ResponsesToolCollection], name="openai_responses"
):
- """OpenAI Responses API Provider class definition.
- """
+ """OpenAI Responses API Provider class definition."""
def wrap_tool(self, tool: Tool) -> ResponsesTool:
- """Wrap a tool for the Responses API format.
- """
+ """Wrap a tool for the Responses API format."""
return {
"type": "function",
"name": tool.slug,
@@ -56,7 +54,7 @@ class OpenAIResponsesProvider(
"""
slug = tool_call.name
arguments = json.loads(tool_call.arguments)
-
+
return self.execute_tool(
slug=slug,
arguments=arguments,
@@ -79,7 +77,7 @@ class OpenAIResponsesProvider(
:return: List[ToolExecutionResponse] with tool execution results
"""
outputs = []
-
+
if response.output:
for item in response.output:
if isinstance(item, ResponseFunctionToolCall):
@@ -89,5 +87,5 @@ class OpenAIResponsesProvider(
modifiers=modifiers,
)
outputs.append(result)
-
- return outputs
\ No newline at end of file
+
+ return outputs