Files
airflow-mcp-server/src/airflow_mcp_server/tools/base_tools.py
2025-03-19 20:45:51 +05:30

21 lines
436 B
Python

from abc import ABC, abstractmethod
from typing import Any
class BaseTools(ABC):
"""Abstract base class for tools."""
@abstractmethod
def __init__(self) -> None:
"""Initialize the tool."""
pass
@abstractmethod
def run(self) -> Any:
"""Execute the tool's main functionality.
Returns:
Any: The result of the tool execution
"""
raise NotImplementedError