Files
opendan/src/aios_kernel/environment.py
T

24 lines
546 B
Python
Raw Normal View History

# 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
2023-08-20 22:53:35 -07:00
class environment_event(ABC):
@abstractmethod
def display(self) -> str:
pass
class environment:
def __init__(self) -> None:
pass
def get_id(self) -> str:
pass
def attach_event_handler(self,event_id:str,handler:Callable) -> None:
pass