from typing import Optional, Dict, Any | |
from abc import ABC, abstractmethod | |
class CommandHandler(ABC): | |
# {"base": {"name": command}, "advance": {"name": command}} | |
def get_command() -> Dict[str, Dict[str, list]] -> Any: | |
"Method to get command from yaml file and return dictionary" | |
pass | |
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 | |
def execute() -> Any: | |
"Method to execute command" | |
pass | |