feat: backend servis iskeletini ve yönetim uçlarını ekle
This commit is contained in:
12
backend/app/tools/base.py
Normal file
12
backend/app/tools/base.py
Normal file
@@ -0,0 +1,12 @@
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user