import os.path from fastapi import FastAPI from .datatemplates.agent_id import AgentId from .modules import daemon from .config import Config app = FastAPI() @app.post("/tasks") async def get_tasks(agent_id: AgentId): return "foo" # if __name__ == "__main__": # with open(os.path.join(os.path.dirname(__file__), Config.TOKEN_FILE_NAME)) as f: # token = f.read().strip() # # d = daemon.Daemon(Config.AGENT_SYMBOL, token) # d.run()