Remove unused private function

This commit is contained in:
Quinlan Jager 2025-05-03 00:55:01 -07:00
parent 6a9b72e5b3
commit 99bec73f2e

View file

@ -1550,18 +1550,6 @@ class Coder:
self.reflected_message = test_errors self.reflected_message = test_errors
return return
async def _exec_server_tool(self, server, tool_call):
"""Execute a tool call on an MCP server."""
try:
session = await server.connect() # Use connect() directly
call_result = await experimental_mcp_client.call_openai_tool(
session=session,
openai_tool=tool_call,
)
return (str(call_result.content[0].text),)
finally:
await server.disconnect()
def execute_tool_calls(self, tool_call_response): def execute_tool_calls(self, tool_call_response):
"""Process tool calls from the response and execute them if they match MCP tools. """Process tool calls from the response and execute them if they match MCP tools.
Returns a list of tool response messages.""" Returns a list of tool response messages."""