Pretor/archonbot/individual_plugin/consciousness_node.py

17 lines
455 B
Python

import ray
from archonbot.protocol__plugin.model_protocol.modelbase import ModelBase
@ray.remote
class ConsciousnessNode:
def __init__(self):
self.model_id : str
self.path : str
self.adapter : str
self.name : str
self.model_method : ModelBase
async def get_model(self):
return await self.model_method.get_model
async def post_message(self):
return await self.model_method.post_message