from backend.app import run_processes
from backend.executor import DatabaseManager
from backend.notifications.notifications import NotificationManager
from backend.server.rest_api import AgentServer


def main():
    """
    Run all the processes required for the AutoGPT-server REST API.
    """
    run_processes(
        NotificationManager(),
        DatabaseManager(),
        AgentServer(),
    )


if __name__ == "__main__":
    main()

from backend.app import run_processes
from backend.executor import DatabaseManager, Scheduler
from backend.notifications.notifications import NotificationManager
from backend.server.rest_api import AgentServer


def main():
    """
    Run all the processes required for the AutoGPT-server REST API.
    """
    run_processes(
        NotificationManager(),
        DatabaseManager(),
        Scheduler(),
        AgentServer(),
    )


if __name__ == "__main__":
    main()
