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:
Liu Zhicong
2023-08-22 17:11:20 -07:00
parent ae09b24cc6
commit 760b0871cd
18 changed files with 496 additions and 98 deletions
+14 -3
View File
@@ -1,12 +1,23 @@
# basic environment class
# we have some built-in environment: Calender(include timer),Home(connect to IoT device in your home), ,KnwoledgeBase,FileSystem,
from abc import ABC, abstractmethod
from typing import Callable
from .agent import agent_msg
class environment_event(ABC):
@abstractmethod
def display(self) -> str:
pass
class environment:
def __init__(self) -> None:
pass
def event_to_msg(self,) -> environment_event:
pass
def get_id(self) -> str:
pass
def attach_event_handler(self,event_id:str,handler:Callable) -> None:
pass