Spaces:
Runtime error
Runtime error
from langchain.tools import tool | |
from swarms.tools.base import BaseToolSet, SessionGetter, ToolScope | |
from swarms.utils.logger import logger | |
class ExitConversation(BaseToolSet): | |
def exit(self, message: str, get_session: SessionGetter) -> str: | |
"""Run the tool.""" | |
_, executor = get_session() | |
del executor | |
logger.debug("\nProcessed ExitConversation.") | |
return message | |