File size: 313 Bytes
cd0c7a9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
from abc import ABC, abstractmethod
from typing import Any


class BaseTool(ABC):
    name: str = ""

    @abstractmethod
    async def run(self, input: dict) -> dict:
        ...

    def requires_input_from(self) -> list[str]:
        return []

    def provides_output_to(self) -> list[str]:
        return []