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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user