Files
agentic_security/agentic_security/core/app.py
T
Alexander Myasoedov f57f3e9f43 fix(fmt):
2024-11-30 00:02:31 +02:00

23 lines
435 B
Python

from asyncio import Event, Queue
from fastapi import FastAPI
tools_inbox: Queue = Queue()
stop_event: Event = Event()
def create_app() -> FastAPI:
"""Create and configure the FastAPI application."""
app = FastAPI()
return app
def get_tools_inbox() -> Queue:
"""Get the global tools inbox queue."""
return tools_inbox
def get_stop_event() -> Event:
"""Get the global stop event."""
return stop_event