13 lines
237 B
Python
13 lines
237 B
Python
from abc import ABC, abstractmethod
|
|
from typing import Any
|
|
|
|
|
|
class Tool(ABC):
|
|
name: str
|
|
description: str
|
|
|
|
@abstractmethod
|
|
async def run(self, payload: dict[str, Any]) -> dict[str, Any]:
|
|
raise NotImplementedError
|
|
|