framework code has been completed basicly. Through the use of aios_shell, we are now able to get agents run able (at openai compute node)

This commit is contained in:
Liu Zhicong
2023-08-27 18:07:33 -07:00
parent 1a6cf1ad7a
commit ccbef2104b
25 changed files with 1011 additions and 198 deletions
+7 -2
View File
@@ -1,11 +1,17 @@
from abc import ABC, abstractmethod
from .compute_kernel import ComputeTask
from .compute_task import ComputeTask
class ComputeNode(ABC):
def __init__(self) -> None:
self.node_id = "default"
self.enable = True
@abstractmethod
async def push_task(self,task:ComputeTask,proiority:int = 0):
pass
@abstractmethod
async def remove_task(self,task_id:str):
pass
@@ -29,7 +35,6 @@ class ComputeNode(ABC):
def is_local(self) -> bool:
pass
@abstractmethod
def is_trusted(self) -> bool:
return True