quivr/backend/repository/brain/get_brain_by_id.py

11 lines
258 B
Python

from uuid import UUID
from models.brain_entity import BrainEntity
from models.settings import get_supabase_db
def get_brain_by_id(brain_id: UUID) -> BrainEntity | None:
supabase_db = get_supabase_db()
return supabase_db.get_brain_by_id(brain_id)