The framework design of the aios kernel has been basically completed, as well as the key logic code centered on workflow.
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
class ai_function:
|
||||
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.
|
||||
class call_chain:
|
||||
def __init__(self) -> None:
|
||||
pass
|
||||
|
||||
def load_from_config(self,config:dict) -> bool:
|
||||
pass
|
||||
|
||||
async def execute(self):
|
||||
pass
|
||||
Reference in New Issue
Block a user