@devries-cameron20 / composio Mirror · read-only / commits / 90d793eba
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.

Mirrored from https://github.com/Camo67/composio.git

Synced Nov 22, 19:30 UTC

format fix

Sushmithamallesh committed Sep 29, 2025 at 12:45 UTC 90d793eba8fb4582141d7352ec6fb5b233fa3a41
1 file changed +6 -8
python/composio/core/provider/_openai_responses.py
+6 -8
@@ -24,12 +24,10 @@ ResponsesToolCollection = t.List[ResponsesTool]
24 class OpenAIResponsesProvider(
25 NonAgenticProvider[ResponsesTool, ResponsesToolCollection], name="openai_responses"
26 ):
27 - """OpenAI Responses API Provider class definition.
28 - """
27 + """OpenAI Responses API Provider class definition."""
28
29 def wrap_tool(self, tool: Tool) -> ResponsesTool:
31 - """Wrap a tool for the Responses API format.
32 - """
30 + """Wrap a tool for the Responses API format."""
31 return {
32 "type": "function",
33 "name": tool.slug,
@@ -56,7 +54,7 @@ class OpenAIResponsesProvider(
54 """
55 slug = tool_call.name
56 arguments = json.loads(tool_call.arguments)
59 -
57 +
58 return self.execute_tool(
59 slug=slug,
60 arguments=arguments,
@@ -79,7 +77,7 @@ class OpenAIResponsesProvider(
77 :return: List[ToolExecutionResponse] with tool execution results
78 """
79 outputs = []
82 -
80 +
81 if response.output:
82 for item in response.output:
83 if isinstance(item, ResponseFunctionToolCall):
@@ -89,5 +87,5 @@ class OpenAIResponsesProvider(
87 modifiers=modifiers,
88 )
89 outputs.append(result)
92 -
93 - return outputs
\ No newline at end of file
90 +
91 + return outputs