quivr/backend/repository/brain/get_brain_by_id.py

10 lines
218 B
Python
Raw Normal View History

from uuid import UUID
from models import BrainEntity, 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)