Chelsea / command /command_interface.py
CineAI's picture
Update command/command_interface.py
7e02c6a verified
raw
history blame
640 Bytes
from typing import Optional, Dict, Any
from abc import ABC, abstractmethod
class CommandHandler(ABC):
# {"base": {"name": command}, "advance": {"name": command}}
@abstractmethod
def get_command() -> Dict[str, Dict[str, list]] -> Any:
"Method to get command from yaml file and return dictionary"
pass
@abstractmethod
def is_contains(text: Optional[str], llm: Any, prompt: Any, command: Dict[str, Dict[str, list]]) -> bool:
"""Method to check contains command in text or not"""
pass
@abstractmethod
def execute() -> Any:
"Method to execute command"
pass