Initial commit: add .gitignore and README
This commit is contained in:
9
fusionagi/tools/connectors/base.py
Normal file
9
fusionagi/tools/connectors/base.py
Normal file
@@ -0,0 +1,9 @@
|
||||
from abc import ABC, abstractmethod
|
||||
from typing import Any
|
||||
|
||||
class BaseConnector(ABC):
|
||||
name = "base"
|
||||
@abstractmethod
|
||||
def invoke(self, action: str, params: dict) -> Any: ...
|
||||
def schema(self) -> dict:
|
||||
return {"name": self.name, "actions": [], "parameters": {}}
|
||||
Reference in New Issue
Block a user