Spaces:
Runtime error
Runtime error
File size: 482 Bytes
9f9394b | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | #
# SPDX-FileCopyrightText: Hadad <hadad@linuxmail.org>
# SPDX-License-Identifier: Apache-2.0
#
from .workflows.open_link import open_link
from .workflows.web_search import web_search
async def tool_execution(tool_name, tool_arguments):
if tool_name == "open_link":
return await open_link(tool_arguments["url"])
elif tool_name == "web_search":
return await web_search(tool_arguments["query"])
else:
return f"Unknown tool: {tool_name}" |