2023-08-23 11:19:16 -07:00
|
|
|
class AIFunction:
|
2023-08-22 17:11:20 -07:00
|
|
|
def __init__(self) -> None:
|
|
|
|
|
self.intro : str = None
|
|
|
|
|
|
|
|
|
|
def load_from_config(self,config:dict) -> bool:
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
def is_local(self) -> bool:
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
def is_in_zone(self) -> bool:
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
def is_readyonly(self) -> bool:
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
def get_intro(self) -> str:
|
|
|
|
|
return self.intro
|
|
|
|
|
|
|
|
|
|
async def execute(self):
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
# call chain is a combination of ai_function,group of ai_function.
|
2023-08-23 11:19:16 -07:00
|
|
|
class CallChain:
|
2023-08-22 17:11:20 -07:00
|
|
|
def __init__(self) -> None:
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
def load_from_config(self,config:dict) -> bool:
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
async def execute(self):
|
|
|
|
|
pass
|