import logging from typing import Any, Dict from reachy_mini_conversation_app.tools.core_tools import Tool, ToolDependencies logger = logging.getLogger(__name__) class StopEmotion(Tool): """Stop the current emotion.""" name = "stop_emotion" description = "Stop the current emotion" parameters_schema = { "type": "object", "properties": { "dummy": { "type": "boolean", "description": "dummy boolean, set it to true", }, }, "required": ["dummy"], } async def __call__(self, deps: ToolDependencies, **kwargs: Any) -> Dict[str, Any]: """Stop the current emotion.""" logger.info("Tool call: stop_emotion") movement_manager = deps.movement_manager movement_manager.clear_move_queue() return {"status": "stopped emotion and cleared queue"}