mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-06 04:35:00 +00:00
Remove unused private function
This commit is contained in:
parent
6a9b72e5b3
commit
99bec73f2e
1 changed files with 0 additions and 12 deletions
|
@ -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."""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue